diff --git a/sdk/network/azure-mgmt-network/CHANGELOG.md b/sdk/network/azure-mgmt-network/CHANGELOG.md index 08a8f09c8d41..bb2c0d3befe7 100644 --- a/sdk/network/azure-mgmt-network/CHANGELOG.md +++ b/sdk/network/azure-mgmt-network/CHANGELOG.md @@ -1,5 +1,116 @@ # Release History +## 32.0.0b1 (2026-08-14) + +### Features Added + + - Client `NetworkManagementClient` added operation group `address_prefix_sets` + - Client `NetworkManagementClient` added operation group `express_route_lags` + - Client `NetworkManagementClient` added operation group `firewall_policy_kube_selector_groups` + - Client `NetworkManagementClient` added operation group `first_party_service_tags` + - Model `ApplicationGatewayGlobalConfiguration` added property `disable_default_server_header_in_response` + - Model `ApplicationRule` added property `source_kube_selector_groups` + - Model `ExpressRouteCircuitPropertiesFormat` added property `activation_key` + - Model `ExpressRouteCircuitPropertiesFormat` added property `partner_account_id` + - Model `ExpressRouteCircuitPropertiesFormat` added property `resiliency_level` + - Enum `ExpressRouteCircuitSkuTier` added member `MULTI_CLOUD` + - Model `FirewallPolicyPropertiesFormat` added property `afc_managed` + - Model `FirewallPolicyPropertiesFormat` added property `kube_selector_groups` + - Model `FrontendIPConfigurationPropertiesFormat` added property `enable_connection_tracking` + - Model `HubVirtualNetworkConnectionProperties` added property `enable_only_ipv6_peering` + - Model `IpTag` added property `first_party_service_tag_id` + - Model `LoadBalancerPropertiesFormat` added property `mode` + - Enum `LoadBalancerSkuName` added member `SERVICE` + - Model `NetworkRule` added property `source_kube_selector_groups` + - Model `NetworkVirtualAppliancePropertiesFormat` added property `address_family` + - Model `NetworkVirtualAppliancePropertiesFormat` added property `address_prefix_v6` + - Model `NetworkVirtualAppliancePropertiesFormat` added property `migration_status` + - Model `NetworkVirtualAppliancePropertiesFormat` added property `private_ip_address_v6` + - Model `PublicIPAddressPropertiesFormat` added property `upgraded_to_v2` + - Model `PublicIPPrefixPropertiesFormat` added property `upgraded_to_v2` + - Enum `ServiceProviderProvisioningState` added member `DE_PROVISIONED` + - Model `VirtualApplianceNicProperties` added property `private_ip_address_v6` + - Model `VirtualApplianceNicProperties` added property `public_ip_address_v6` + - Model `VirtualHubProperties` added property `address_prefix_v6` + - Model `VirtualHubProperties` added property `virtual_router_ips_v6` + - Added model `AddressPrefixSet` + - Added model `AddressPrefixSetPropertiesFormat` + - Added model `ConnectionAnalyzer` + - Added model `ConnectionAnalyzerEndpoint` + - Added enum `ConnectionAnalyzerEndpointType` + - Added model `ConnectionAnalyzerProperties` + - Added model `ConnectionAnalyzerQueryStatusResult` + - Added enum `ConnectionAnalyzerStatus` + - Added model `ConnectivityCheckSettings` + - Added enum `DiagnosticOperation` + - Added model `DiagnosticOperationResult` + - Added model `DiagnosticOperationsSettings` + - Added enum `EnableOnlyIpv6PeeringState` + - Added model `ExpressRouteDiagnosticsSettings` + - Added model `ExpressRouteLag` + - Added enum `ExpressRouteLagBillingType` + - Added enum `ExpressRouteLagEncapsulation` + - Added enum `ExpressRouteLagLacpTimer` + - Added model `ExpressRouteLagLink` + - Added model `ExpressRouteLagLinkPropertiesFormat` + - Added model `ExpressRouteLagMember` + - Added model `ExpressRouteLagMemberPropertiesFormat` + - Added model `ExpressRouteLagPropertiesFormat` + - Added model `ExpressRouteLagUpdateTagsOrIdentityRequest` + - Added model `FirewallPolicyKubeSelectorGroup` + - Added model `FirewallPolicyKubeSelectorGroupProperties` + - Added model `FirstPartyServiceTag` + - Added model `FirstPartyServiceTagPropertiesFormat` + - Added model `GatewayEffectiveRoute` + - Added model `GatewayEffectiveRouteListResult` + - Added enum `GatewayEffectiveRouteNextHopType` + - Added model `GenerateExpressRouteLagsLOARequest` + - Added model `GenerateExpressRouteLagsLOAResult` + - Added model `KubeLabelSelector` + - Added model `LabelSelectorExpression` + - Added enum `LabelSelectorOperator` + - Added enum `LoadBalancerMode` + - Added enum `MigrationType` + - Added model `MoveIpConfigurationItem` + - Added model `MoveIpConfigurationResourceReference` + - Added model `MoveIpConfigurationsRequest` + - Added model `NetworkVirtualApplianceCommitMigrationProperties` + - Added model `NetworkVirtualApplianceCommitMigrationRequest` + - Added model `NetworkVirtualApplianceExecuteMigrationProperties` + - Added model `NetworkVirtualApplianceExecuteMigrationRequest` + - Added model `NetworkVirtualApplianceMigrationStatus` + - Added model `NetworkVirtualAppliancePrepareMigrationProperties` + - Added model `NetworkVirtualAppliancePrepareMigrationRequest` + - Added model `OutputSettings` + - Added model `ProtocolSettings` + - Added enum `ResiliencyLevel` + - Added model `ServiceGatewayActionOkResponseBody` + - Added model `StorageAccountSettings` + - Model `FirewallPoliciesOperations` added parameter `afc_managed_sync` in method `begin_create_or_update` + - Model `NetworkVirtualAppliancesOperations` added method `begin_abort_migration` + - Model `NetworkVirtualAppliancesOperations` added method `begin_commit_migration` + - Model `NetworkVirtualAppliancesOperations` added method `begin_execute_migration` + - Model `NetworkVirtualAppliancesOperations` added method `begin_prepare_migration` + - Model `NetworkWatchersOperations` added method `begin_connection_analyzers_create` + - Model `NetworkWatchersOperations` added method `begin_connection_analyzers_delete` + - Model `NetworkWatchersOperations` added method `begin_connection_analyzers_query` + - Model `NetworkWatchersOperations` added method `connection_analyzers_get` + - Model `NetworkWatchersOperations` added method `connection_analyzers_list` + - Model `NetworkWatchersOperations` added method `connection_analyzers_update_tags` + - Model `ServiceGatewaysOperations` added method `update_address_locations` + - Model `ServiceGatewaysOperations` added method `update_services` + - Model `VirtualNetworkGatewaysOperations` added method `begin_get_effective_routes` + - Model `VirtualNetworksOperations` added method `begin_move_ip_configurations` + - Added operation group `AddressPrefixSetsOperations` + - Added operation group `ExpressRouteLagsOperations` + - Added operation group `FirewallPolicyKubeSelectorGroupsOperations` + - Added operation group `FirstPartyServiceTagsOperations` + +### Breaking Changes + + - Deleted or renamed method `ServiceGatewaysOperations.begin_update_address_locations` + - Deleted or renamed method `ServiceGatewaysOperations.begin_update_services` + ## 31.0.1 (2026-07-02) ### Other Changes @@ -557,596 +668,4 @@ - Deleted or renamed enum value `FirewallPolicyIntrusionDetectionProfileType.BASIC` - Deleted or renamed enum value `FirewallPolicyIntrusionDetectionProfileType.STANDARD` -## 30.1.0 (2025-11-19) - -### Features Added - - - Added operation PublicIPAddressesOperations.begin_disassociate_cloud_service_reserved_public_ip - - Added operation PublicIPAddressesOperations.begin_reserve_cloud_service_public_ip_address - - Model ApplicationGateway has a new parameter entra_jwt_validation_configs - - Model ApplicationGatewayBackendSettings has a new parameter enable_l4_client_ip_preservation - - Model ApplicationGatewayClientAuthConfiguration has a new parameter verify_client_auth_mode - - Model ApplicationGatewayOnDemandProbe has a new parameter enable_probe_proxy_protocol_header - - Model ApplicationGatewayProbe has a new parameter enable_probe_proxy_protocol_header - - Model ApplicationGatewayRequestRoutingRule has a new parameter entra_jwt_validation_config - - Model DdosCustomPolicy has a new parameter detection_rules - - Model DdosCustomPolicy has a new parameter front_end_ip_configuration - - Model FlowLog has a new parameter record_types - - Model FlowLogInformation has a new parameter record_types - - Model LoadBalancer has a new parameter scope - - Model NetworkManagerRoutingConfiguration has a new parameter route_table_usage_mode - - Model PrivateEndpoint has a new parameter ip_version_type - - Model PrivateLinkService has a new parameter access_mode - - Model VirtualNetworkGatewayConnection has a new parameter authentication_type - - Model VirtualNetworkGatewayConnection has a new parameter certificate_authentication - -## 30.0.0 (2025-10-24) - -### Features Added - - - Added operation AzureFirewallsOperations.begin_packet_capture_operation - - Added operation VirtualNetworkGatewaysOperations.list_radius_secrets - - Added operation VpnServerConfigurationsOperations.list_radius_secrets - - Added operation group NetworkSecurityPerimeterServiceTagsOperations - - Model ApplicationGatewayBackendHttpSettings has a new parameter dedicated_backend_connection - - Model ApplicationGatewayBackendHttpSettings has a new parameter sni_name - - Model ApplicationGatewayBackendHttpSettings has a new parameter validate_cert_chain_and_expiry - - Model ApplicationGatewayBackendHttpSettings has a new parameter validate_sni - - Model AzureFirewall has a new parameter extended_location - - Model FirewallPacketCaptureParameters has a new parameter operation - - Model NetworkVirtualAppliance has a new parameter nva_interface_configurations - - Model NetworkVirtualAppliance has a new parameter private_ip_address - -### Breaking Changes - - - Removed operation group NetworkManagementClientOperationsMixin - -## 29.0.0 (2025-05-22) - -### Features Added - - - Added operation NetworkVirtualAppliancesOperations.begin_get_boot_diagnostic_logs - - Added operation NetworkVirtualAppliancesOperations.begin_reimage - - Added operation VirtualNetworkGatewaysOperations.begin_get_resiliency_information - - Added operation VirtualNetworkGatewaysOperations.begin_get_routes_information - - Added operation VirtualNetworkGatewaysOperations.begin_invoke_abort_migration - - Added operation VirtualNetworkGatewaysOperations.begin_invoke_commit_migration - - Added operation VirtualNetworkGatewaysOperations.begin_invoke_execute_migration - - Added operation VirtualNetworkGatewaysOperations.begin_invoke_prepare_migration - - Added operation group NetworkSecurityPerimeterAccessRulesOperations - - Added operation group NetworkSecurityPerimeterAssociableResourceTypesOperations - - Added operation group NetworkSecurityPerimeterAssociationsOperations - - Added operation group NetworkSecurityPerimeterLinkReferencesOperations - - Added operation group NetworkSecurityPerimeterLinksOperations - - Added operation group NetworkSecurityPerimeterLoggingConfigurationsOperations - - Added operation group NetworkSecurityPerimeterOperationStatusesOperations - - Added operation group NetworkSecurityPerimeterProfilesOperations - - Added operation group NetworkSecurityPerimetersOperations - - Model ActiveConnectivityConfiguration has a new parameter connectivity_capabilities - - Model ConnectivityConfiguration has a new parameter connectivity_capabilities - - Model EffectiveConnectivityConfiguration has a new parameter connectivity_capabilities - - Model ExpressRouteCircuitPeeringConfig has a new parameter advertised_public_prefix_info - - Model IpamPool has a new parameter etag - - Model LoadBalancingRule has a new parameter enable_connection_tracking - - Model ManagedRuleSet has a new parameter computed_disabled_rules - - Model NatGateway has a new parameter public_ip_addresses_v6 - - Model NatGateway has a new parameter public_ip_prefixes_v6 - - Model NatGateway has a new parameter source_virtual_network - - Model VerifierWorkspace has a new parameter etag - - Model VirtualNetwork has a new parameter default_public_nat_gateway - - Model VirtualNetworkGateway has a new parameter enable_high_bandwidth_vpn_gateway - - Model VirtualNetworkGateway has a new parameter virtual_network_gateway_migration_status - - Model VirtualNetworkGatewayConnection has a new parameter tunnel_properties - - Operation IpamPoolsOperations.begin_create has a new optional parameter if_match - - Operation IpamPoolsOperations.begin_delete has a new optional parameter if_match - - Operation IpamPoolsOperations.update has a new optional parameter if_match - - Operation VerifierWorkspacesOperations.begin_delete has a new optional parameter if_match - - Operation VerifierWorkspacesOperations.create has a new optional parameter if_match - - Operation VerifierWorkspacesOperations.update has a new optional parameter if_match - -### Breaking Changes - - - Removed operation ConnectionMonitorsOperations.begin_query - - Removed operation ConnectionMonitorsOperations.begin_start - -## 28.1.0 (2024-12-20) - -### Features Added - - - Client `NetworkManagementClient` added operation group `ipam_pools` - - Client `NetworkManagementClient` added operation group `static_cidrs` - - Client `NetworkManagementClient` added operation group `reachability_analysis_intents` - - Client `NetworkManagementClient` added operation group `reachability_analysis_runs` - - Client `NetworkManagementClient` added operation group `verifier_workspaces` - - Enum `AddressPrefixType` added member `NETWORK_GROUP` - - Model `AddressSpace` added property `ipam_pool_prefix_allocations` - - Model `BastionHost` added property `enable_private_only_bastion` - - Enum `FirewallPolicyIDPSSignatureDirection` added member `FIVE` - - Model `NetworkInterface` added property `default_outbound_connectivity_enabled` - - Enum `ProvisioningState` added member `CANCELED` - - Enum `ProvisioningState` added member `CREATING` - - Model `SecurityAdminConfiguration` added property `network_group_address_space_aggregation_option` - - Model `Subnet` added property `ipam_pool_prefix_allocations` - - Added enum `AddressSpaceAggregationOption` - - Added model `CommonErrorAdditionalInfo` - - Added model `CommonErrorDetail` - - Added model `CommonErrorResponse` - - Added model `CommonProxyResource` - - Added model `CommonResource` - - Added model `CommonTrackedResource` - - Added model `ExpressRouteFailoverCircuitResourceDetails` - - Added model `ExpressRouteFailoverConnectionResourceDetails` - - Added model `ExpressRouteFailoverRedundantRoute` - - Added model `ExpressRouteFailoverSingleTestDetails` - - Added model `ExpressRouteFailoverStopApiParameters` - - Added model `ExpressRouteFailoverTestDetails` - - Added model `FailoverConnectionDetails` - - Added enum `FailoverConnectionStatus` - - Added enum `FailoverTestStatus` - - Added enum `FailoverTestStatusForSingleTest` - - Added enum `FailoverTestType` - - Added model `IPTraffic` - - Added model `IntentContent` - - Added enum `IpType` - - Added model `IpamPool` - - Added model `IpamPoolList` - - Added model `IpamPoolPrefixAllocation` - - Added model `IpamPoolProperties` - - Added model `IpamPoolUpdate` - - Added model `IpamPoolUpdateProperties` - - Added model `LoadBalancerHealthPerRule` - - Added model `LoadBalancerHealthPerRulePerBackendAddress` - - Added enum `NetworkProtocol` - - Added model `PoolAssociation` - - Added model `PoolAssociationList` - - Added model `PoolUsage` - - Added model `ReachabilityAnalysisIntent` - - Added model `ReachabilityAnalysisIntentListResult` - - Added model `ReachabilityAnalysisIntentProperties` - - Added model `ReachabilityAnalysisRun` - - Added model `ReachabilityAnalysisRunListResult` - - Added model `ReachabilityAnalysisRunProperties` - - Added model `ResourceBasics` - - Added model `StaticCidr` - - Added model `StaticCidrList` - - Added model `StaticCidrProperties` - - Added model `VerifierWorkspace` - - Added model `VerifierWorkspaceListResult` - - Added model `VerifierWorkspaceProperties` - - Added model `VerifierWorkspaceUpdate` - - Added model `VerifierWorkspaceUpdateProperties` - - Operation group `LoadBalancerLoadBalancingRulesOperations` added method `begin_health` - - Operation group `VirtualNetworkGatewaysOperations` added method `begin_get_failover_all_test_details` - - Operation group `VirtualNetworkGatewaysOperations` added method `begin_get_failover_single_test_details` - - Operation group `VirtualNetworkGatewaysOperations` added method `begin_start_express_route_site_failover_simulation` - - Operation group `VirtualNetworkGatewaysOperations` added method `begin_stop_express_route_site_failover_simulation` - - Added operation group `IpamPoolsOperations` - - Added operation group `ReachabilityAnalysisIntentsOperations` - - Added operation group `ReachabilityAnalysisRunsOperations` - - Added operation group `StaticCidrsOperations` - - Added operation group `VerifierWorkspacesOperations` - -## 28.0.0 (2024-11-01) - -### Breaking Changes - -- This package now only targets the latest Api-Version available on Azure and removes APIs of other Api-Version. After this change, the package can have much smaller size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change. - -## 27.0.0 (2024-09-22) - -### Features Added - - - Added operation SecurityUserConfigurationsOperations.begin_delete - - Added operation VpnLinkConnectionsOperations.begin_set_or_init_default_shared_key - - Added operation VpnLinkConnectionsOperations.get_all_shared_keys - - Added operation VpnLinkConnectionsOperations.get_default_shared_key - - Added operation VpnLinkConnectionsOperations.list_default_shared_key - - Added operation group NetworkManagerRoutingConfigurationsOperations - - Added operation group RoutingRuleCollectionsOperations - - Added operation group RoutingRulesOperations - - Added operation group SecurityUserRuleCollectionsOperations - - Added operation group SecurityUserRulesOperations - - Model ApplicationGatewayFirewallRule has a new parameter sensitivity - - Model AzureFirewall has a new parameter autoscale_configuration - - Model ConfigurationGroup has a new parameter member_type - - Model ConnectionSharedKeyResult has a new parameter id - - Model ConnectionSharedKeyResult has a new parameter name - - Model ConnectionSharedKeyResult has a new parameter properties - - Model ConnectionSharedKeyResult has a new parameter type - - Model FlowLog has a new parameter enabled_filtering_criteria - - Model FlowLogInformation has a new parameter enabled_filtering_criteria - - Model ManagedRuleOverride has a new parameter sensitivity - - Model ManagedRulesDefinition has a new parameter exceptions - - Model NetworkGroup has a new parameter member_type - - Model PrivateLinkService has a new parameter destination_ip_address - - Model VirtualNetwork has a new parameter private_endpoint_v_net_policies - - Model VirtualNetworkGateway has a new parameter resiliency_model - - Model WebApplicationFirewallPolicy has a new parameter application_gateway_for_containers - -### Breaking Changes - - - Model ConnectionSharedKeyResult no longer has parameter value - -## 26.0.0 (2024-07-21) - -### Features Added - - - Added operation InboundSecurityRuleOperations.get - - Model BastionHost has a new parameter enable_session_recording - - Model ExpressRouteCircuitAuthorization has a new parameter connection_resource_uri - - Model FlowLog has a new parameter identity - - Model FlowLogInformation has a new parameter identity - - Model Probe has a new parameter no_healthy_backends_behavior - - Model ServiceEndpointPropertiesFormat has a new parameter network_identifier - - Model VirtualNetworkGateway has a new parameter identity - - Operation ExpressRouteCrossConnectionsOperations.list has a new optional parameter filter - -### Breaking Changes - - - Model FirewallPacketCaptureParameters no longer has parameter id - -## 25.4.0 (2024-05-27) - -### Features Added - - - Added operation NetworkVirtualAppliancesOperations.begin_restart - - Added operation group FirewallPolicyDeploymentsOperations - - Added operation group FirewallPolicyDraftsOperations - - Added operation group FirewallPolicyRuleCollectionGroupDraftsOperations - - Model ApplicationGatewayHeaderConfiguration has a new parameter header_value_matcher - - Model ApplicationGatewaySku has a new parameter family - - Model ConnectionMonitorEndpoint has a new parameter location_details - - Model ConnectionMonitorEndpoint has a new parameter subscription_id - - Model ExpressRouteCircuit has a new parameter enable_direct_port_rate_limit - - Model InboundSecurityRule has a new parameter rule_type - - Model InboundSecurityRules has a new parameter applies_on - - Model InboundSecurityRules has a new parameter destination_port_ranges - - Model InboundSecurityRules has a new parameter name - - Model NetworkInterfaceIPConfiguration has a new parameter private_ip_address_prefix_length - - Model NetworkVirtualAppliance has a new parameter network_profile - - Model PacketCapture has a new parameter capture_settings - - Model PacketCapture has a new parameter continuous_capture - - Model PacketCaptureParameters has a new parameter capture_settings - - Model PacketCaptureParameters has a new parameter continuous_capture - - Model PacketCaptureResult has a new parameter capture_settings - - Model PacketCaptureResult has a new parameter continuous_capture - - Model PacketCaptureResultProperties has a new parameter capture_settings - - Model PacketCaptureResultProperties has a new parameter continuous_capture - - Model PacketCaptureStorageLocation has a new parameter local_path - - Model PolicySettings has a new parameter js_challenge_cookie_expiration_in_mins - - Model Subnet has a new parameter sharing_scope - - Model VirtualApplianceNicProperties has a new parameter nic_type - - Model VirtualNetworkPeering has a new parameter enable_only_i_pv6_peering - - Model VirtualNetworkPeering has a new parameter local_address_space - - Model VirtualNetworkPeering has a new parameter local_subnet_names - - Model VirtualNetworkPeering has a new parameter local_virtual_network_address_space - - Model VirtualNetworkPeering has a new parameter peer_complete_vnets - - Model VirtualNetworkPeering has a new parameter remote_subnet_names - - Model VpnSiteLinkConnection has a new parameter dpd_timeout_seconds - -## 25.3.0 (2024-02-22) - -### Features Added - - - Model BastionHost has a new parameter zones - -## 25.2.0 (2023-12-18) - -### Features Added - - - Added operation NetworkManagementClientOperationsMixin.begin_delete_bastion_shareable_link_by_token - - Added operation NetworkSecurityPerimetersOperations.patch - - Model ApplicationGatewayListener has a new parameter host_names - - Model FirewallPolicyIntrusionDetection has a new parameter profile - - Model NetworkVirtualAppliance has a new parameter internet_ingress_public_ips - -## 25.1.0 (2023-09-15) - -### Features Added - - - Model BastionHost has a new parameter network_acls - - Model BastionHost has a new parameter virtual_network - - Model FirewallPolicy has a new parameter size - - Model FirewallPolicyRuleCollectionGroup has a new parameter size - - Model Subnet has a new parameter default_outbound_access - - Model VirtualNetworkGateway has a new parameter auto_scale_configuration - -## 25.0.0 (2023-08-18) - -### Features Added - - - Added operation LoadBalancersOperations.migrate_to_ip_based - - Model BackendAddressPool has a new parameter sync_mode - -### Breaking Changes - - - Removed operation group NspLinkReconcileOperations - - Removed operation group NspLinkReferenceReconcileOperations - -## 24.0.0 (2023-07-21) - -### Breaking Changes - - - Removed `HTTP_STATUS499` from enum `ApplicationGatewayCustomErrorStatusCode` - -### Features Added - - - Added enum `AdminState` - - Model ActiveConnectivityConfiguration has a new parameter resource_guid - - Model ActiveDefaultSecurityAdminRule has a new parameter resource_guid - - Model ActiveSecurityAdminRule has a new parameter resource_guid - - Model AdminRule has a new parameter resource_guid - - Model AdminRuleCollection has a new parameter resource_guid - - Model ApplicationGateway has a new parameter default_predefined_ssl_policy - - Model ConfigurationGroup has a new parameter resource_guid - - Model ConnectivityConfiguration has a new parameter resource_guid - - Model DefaultAdminRule has a new parameter resource_guid - - Model EffectiveConnectivityConfiguration has a new parameter resource_guid - - Model EffectiveDefaultSecurityAdminRule has a new parameter resource_guid - - Model EffectiveSecurityAdminRule has a new parameter resource_guid - - Model NetworkGroup has a new parameter resource_guid - - Model NetworkManager has a new parameter resource_guid - - Model SecurityAdminConfiguration has a new parameter resource_guid - - Model VirtualNetworkGateway has a new parameter admin_state - -## 23.1.0 (2023-05-20) - -### Features Added - - - Added operation AzureFirewallsOperations.begin_packet_capture - - Added operation group NetworkVirtualApplianceConnectionsOperations - - Model ApplicationRule has a new parameter http_headers_to_insert - - Model BastionHost has a new parameter enable_kerberos - - Model NetworkInterface has a new parameter auxiliary_sku - - Model NetworkVirtualAppliance has a new parameter additional_nics - - Model NetworkVirtualAppliance has a new parameter virtual_appliance_connections - - Model PolicySettings has a new parameter file_upload_enforcement - - Model PolicySettings has a new parameter log_scrubbing - - Model PolicySettings has a new parameter request_body_enforcement - - Model PolicySettings has a new parameter request_body_inspect_limit_in_kb - - Model PrivateEndpointConnection has a new parameter private_endpoint_location - - Model PublicIPAddressDnsSettings has a new parameter domain_name_label_scope - - Model VirtualApplianceNicProperties has a new parameter instance_name - - Model WebApplicationFirewallCustomRule has a new parameter group_by_user_session - - Model WebApplicationFirewallCustomRule has a new parameter rate_limit_duration - - Model WebApplicationFirewallCustomRule has a new parameter rate_limit_threshold - -## 23.0.1 (2023-04-26) - -### Bugs Fixed - - - Fix calling failure for those operations which could be called by client directly #30057 - -## 23.0.0 (2023-03-29) - -### Other Changes - - - Initial stable release with our new combined multiapi package. Package size is now 5% of what it used to be. - -### Breaking Changes - - - All query and header parameters are now keyword-only - - Removed api version subfolders. This means you can no longer access any `azure.mgmt.network.v20xx_xx_xx` modules. - - Removed `.models` method from `NetworkManagementClient`. Instead, import models from `azure.mgmt.network.models`. - -## 22.3.0 (2023-03-20) - -### Features Added - - - Model ExpressRouteCircuit has a new parameter authorization_status - - Model NspAccessRule has a new parameter email_addresses - - Model NspAccessRule has a new parameter phone_numbers - - Model NspLink has a new parameter remote_perimeter_location - - Model NspLinkReference has a new parameter remote_perimeter_location - - Model VirtualNetwork has a new parameter flow_logs - - Model WebApplicationFirewallCustomRule has a new parameter state - - Operation VpnGatewaysOperations.begin_reset has a new optional parameter ip_configuration_id - -## 23.0.0b2 (2023-02-20) - -### Other Changes - - - Continued package size improvements. The whole package is now 5% of the latest stable release - -### Breaking Changes - - - Removed api version subfolders. This means you can no longer access any `azure.mgmt.network.v20xx_xx_xx` modules - - Removed `.models` method from `NetworkManagementClient` - -## 23.0.0b1 (2022-12-19) - -### Other Changes - - - Preview package with the same multiapi support but much reduced package size. - -### Breaking Changes - - - All query and header parameters are now keyword-only - - Can not individually access each API version's client and operations - -## 22.2.0 (2022-12-15) - -### Features Added - - - Model BackendAddressPool has a new parameter virtual_network - - Model NetworkVirtualAppliance has a new parameter delegation - - Model NetworkVirtualAppliance has a new parameter deployment_type - - Model NetworkVirtualAppliance has a new parameter partner_managed_resource - - Model PolicySettings has a new parameter custom_block_response_body - - Model PolicySettings has a new parameter custom_block_response_status_code - -## 22.1.0 (2022-10-24) - -### Features Added - - - Added operation group NspLinkReconcileOperations - - Added operation group NspLinkReferenceReconcileOperations - - Added operation group NspLinkReferencesOperations - - Added operation group NspLinksOperations - -## 22.0.0 (2022-10-12) - -### Features Added - - - Added operation PublicIPAddressesOperations.begin_ddos_protection_status - - Added operation VirtualHubsOperations.begin_get_inbound_routes - - Added operation VirtualHubsOperations.begin_get_outbound_routes - - Added operation VirtualNetworksOperations.begin_list_ddos_protection_status - - Added operation group ApplicationGatewayWafDynamicManifestsDefaultOperations - - Added operation group ApplicationGatewayWafDynamicManifestsOperations - - Added operation group NspAssociationReconcileOperations - - Added operation group RouteMapsOperations - - Added operation group VipSwapOperations - - Model ApplicationGatewayClientAuthConfiguration has a new parameter verify_client_revocation - - Model ApplicationGatewayFirewallRule has a new parameter action - - Model ApplicationGatewayFirewallRule has a new parameter rule_id_string - - Model ApplicationGatewayFirewallRule has a new parameter state - - Model ApplicationGatewayFirewallRuleSet has a new parameter tiers - - Model CustomIpPrefix has a new parameter asn - - Model CustomIpPrefix has a new parameter express_route_advertise - - Model CustomIpPrefix has a new parameter geo - - Model CustomIpPrefix has a new parameter prefix_type - - Model DdosProtectionPlan has a new parameter public_ip_addresses - - Model DdosSettings has a new parameter ddos_protection_plan - - Model DdosSettings has a new parameter protection_mode - - Model ExpressRouteConnection has a new parameter enable_private_link_fast_path - - Model ExpressRouteGateway has a new parameter allow_non_virtual_wan_traffic - - Model ExpressRouteLink has a new parameter colo_location - - Model ExpressRoutePort has a new parameter billing_type - - Model ManagedRuleOverride has a new parameter action - - Model NetworkInterface has a new parameter disable_tcp_state_tracking - - Model NspProfile has a new parameter diagnostic_settings_version - - Model Probe has a new parameter probe_threshold - - Model RoutingConfiguration has a new parameter inbound_route_map - - Model RoutingConfiguration has a new parameter outbound_route_map - - Model VirtualHub has a new parameter route_maps - - Model VirtualNetworkGateway has a new parameter allow_remote_vnet_traffic - - Model VirtualNetworkGateway has a new parameter allow_virtual_wan_traffic - - Model VirtualNetworkGateway has a new parameter virtual_network_gateway_policy_groups - - Model VirtualNetworkGatewayConnection has a new parameter enable_private_link_fast_path - - Model VirtualNetworkGatewayConnectionListEntity has a new parameter enable_private_link_fast_path - - Model VnetRoute has a new parameter static_routes_config - - Model VpnClientConfiguration has a new parameter vng_client_connection_configurations - -### Breaking Changes - - - Model DdosCustomPolicy no longer has parameter protocol_custom_settings - - Model DdosCustomPolicy no longer has parameter public_ip_addresses - - Model DdosSettings no longer has parameter ddos_custom_policy - - Model DdosSettings no longer has parameter protected_ip - - Model DdosSettings no longer has parameter protection_coverage - - Operation NetworkManagementClientOperationsMixin.list_active_connectivity_configurations has a new parameter top - - Operation NetworkManagementClientOperationsMixin.list_active_security_admin_rules has a new parameter top - - Operation NetworkManagementClientOperationsMixin.list_network_manager_effective_connectivity_configurations has a new parameter top - - Operation NetworkManagementClientOperationsMixin.list_network_manager_effective_security_admin_rules has a new parameter top - - Operation NetworkManagerDeploymentStatusOperations.list has a new parameter top - - Removed operation NetworkSecurityPerimetersOperations.check_members - - Removed operation NetworkSecurityPerimetersOperations.query - - Removed operation group NspAssociationsProxyOperations - -## 21.0.1 (2022-08-17) - -### Bugs Fixed - - - Add `__version__` to `__init__.py` for package - -## 21.0.0 (2022-08-05) - -**Features** - - - Added operation AdminRuleCollectionsOperations.begin_delete - - Added operation AdminRulesOperations.begin_delete - - Added operation AzureFirewallsOperations.begin_list_learned_prefixes - - Added operation ConnectivityConfigurationsOperations.begin_delete - - Added operation NetworkGroupsOperations.begin_delete - - Added operation NetworkManagementClientOperationsMixin.express_route_provider_port - - Added operation NetworkManagementClientOperationsMixin.list_active_connectivity_configurations - - Added operation NetworkManagementClientOperationsMixin.list_active_security_admin_rules - - Added operation NetworkManagementClientOperationsMixin.list_network_manager_effective_connectivity_configurations - - Added operation NetworkManagementClientOperationsMixin.list_network_manager_effective_security_admin_rules - - Added operation NetworkManagerCommitsOperations.begin_post - - Added operation NetworkManagersOperations.begin_delete - - Added operation NetworkManagersOperations.patch - - Added operation NetworkSecurityPerimetersOperations.check_members - - Added operation NetworkSecurityPerimetersOperations.query - - Added operation SecurityAdminConfigurationsOperations.begin_delete - - Added operation group ExpressRouteProviderPortsLocationOperations - - Added operation group ManagementGroupNetworkManagerConnectionsOperations - - Added operation group NspAccessRulesReconcileOperations - - Added operation group NspAssociationsProxyOperations - - Added operation group ScopeConnectionsOperations - - Added operation group StaticMembersOperations - - Added operation group SubscriptionNetworkManagerConnectionsOperations - - Model ApplicationGatewayRoutingRule has a new parameter priority - - Model CustomIpPrefix has a new parameter no_internet_advertise - - Model FirewallPolicy has a new parameter explicit_proxy - - Model FirewallPolicySNAT has a new parameter auto_learn_private_ranges - - Model NetworkManagerPropertiesNetworkManagerScopes has a new parameter cross_tenant_scopes - - Model NetworkSecurityGroup has a new parameter flush_connection - - Model NetworkSecurityPerimeter has a new parameter perimeter_guid - - Model PacketCapture has a new parameter scope - - Model PacketCapture has a new parameter target_type - - Model PacketCaptureParameters has a new parameter scope - - Model PacketCaptureParameters has a new parameter target_type - - Model PacketCaptureResult has a new parameter scope - - Model PacketCaptureResult has a new parameter target_type - - Model PacketCaptureResultProperties has a new parameter scope - - Model PacketCaptureResultProperties has a new parameter target_type - - Model VirtualHub has a new parameter virtual_router_auto_scale_configuration - -**Breaking changes** - - - Model ActiveBaseSecurityAdminRule no longer has parameter configuration_display_name - - Model ActiveBaseSecurityAdminRule no longer has parameter rule_collection_display_name - - Model ActiveConnectivityConfiguration no longer has parameter display_name - - Model ActiveDefaultSecurityAdminRule no longer has parameter configuration_display_name - - Model ActiveDefaultSecurityAdminRule no longer has parameter display_name - - Model ActiveDefaultSecurityAdminRule no longer has parameter rule_collection_display_name - - Model ActiveSecurityAdminRule no longer has parameter configuration_display_name - - Model ActiveSecurityAdminRule no longer has parameter display_name - - Model ActiveSecurityAdminRule no longer has parameter rule_collection_display_name - - Model AdminRule no longer has parameter display_name - - Model ConfigurationGroup no longer has parameter conditional_membership - - Model ConfigurationGroup no longer has parameter display_name - - Model ConfigurationGroup no longer has parameter group_members - - Model ConfigurationGroup no longer has parameter member_type - - Model ConnectivityConfiguration no longer has parameter display_name - - Model DefaultAdminRule no longer has parameter display_name - - Model EffectiveBaseSecurityAdminRule no longer has parameter configuration_display_name - - Model EffectiveBaseSecurityAdminRule no longer has parameter rule_collection_display_name - - Model EffectiveConnectivityConfiguration no longer has parameter display_name - - Model EffectiveDefaultSecurityAdminRule no longer has parameter configuration_display_name - - Model EffectiveDefaultSecurityAdminRule no longer has parameter display_name - - Model EffectiveDefaultSecurityAdminRule no longer has parameter rule_collection_display_name - - Model EffectiveSecurityAdminRule no longer has parameter configuration_display_name - - Model EffectiveSecurityAdminRule no longer has parameter display_name - - Model EffectiveSecurityAdminRule no longer has parameter rule_collection_display_name - - Model FirewallPolicy no longer has parameter explicit_proxy_settings - - Model NetworkGroup no longer has parameter conditional_membership - - Model NetworkGroup no longer has parameter display_name - - Model NetworkGroup no longer has parameter group_members - - Model NetworkGroup no longer has parameter member_type - - Model NetworkManager no longer has parameter display_name - - Model NetworkSecurityPerimeter no longer has parameter description - - Model NetworkSecurityPerimeter no longer has parameter display_name - - Model NetworkSecurityPerimeter no longer has parameter etag - - Model NspProfile no longer has parameter enabled_log_categories - - Parameter commit_type of model NetworkManagerCommit is now required - - Parameter group_connectivity of model ConnectivityGroupItem is now required - - Parameter network_group_id of model ConnectivityGroupItem is now required - - Parameter network_group_id of model NetworkManagerSecurityGroupItem is now required - - Parameter target_locations of model NetworkManagerCommit is now required - - Removed operation AdminRuleCollectionsOperations.delete - - Removed operation AdminRulesOperations.delete - - Removed operation ConnectivityConfigurationsOperations.delete - - Removed operation NetworkGroupsOperations.delete - - Removed operation NetworkManagerCommitsOperations.post - - Removed operation NetworkManagersOperations.delete - - Removed operation NetworkManagersOperations.patch_tags - - Removed operation SecurityAdminConfigurationsOperations.delete - -## 20.0.0 (2022-05-10) - -### Other Changes - - - Removed changelog entries prior to version 20.0.0 to reduce file size. See https://pypi.org/project/azure-mgmt-network/20.0.0/ for the older history. \ No newline at end of file +> Changelog entries prior to 30.2.0 were removed to reduce file size. See https://pypi.org/project/azure-mgmt-network/30.2.0/ for the older history. diff --git a/sdk/network/azure-mgmt-network/_metadata.json b/sdk/network/azure-mgmt-network/_metadata.json index 598614d49242..06c962f4b007 100644 --- a/sdk/network/azure-mgmt-network/_metadata.json +++ b/sdk/network/azure-mgmt-network/_metadata.json @@ -1,11 +1,11 @@ { "apiVersions": { "Microsoft.Compute": "2018-10-01", - "Microsoft.Network": "2025-07-01" + "Microsoft.Network": "2025-09-01" }, - "commit": "f26746d404d4f24f3a85820aec9d78a10a708a39", + "commit": "bd92126f09e7e3caa74f10fa1c944d1e451813ac", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/network/resource-manager/Microsoft.Network/Network", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.33.0" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-network/api.md b/sdk/network/azure-mgmt-network/api.md index 762dc0cb8351..f9b3825392e7 100644 --- a/sdk/network/azure-mgmt-network/api.md +++ b/sdk/network/azure-mgmt-network/api.md @@ -2,6 +2,7 @@ namespace azure.mgmt.network class azure.mgmt.network.NetworkManagementClient(_NetworkManagementClientOperationsMixin): implements ContextManager + address_prefix_sets: AddressPrefixSetsOperations admin_rule_collections: AdminRuleCollectionsOperations admin_rules: AdminRulesOperations application_gateway_private_endpoint_connections: ApplicationGatewayPrivateEndpointConnectionsOperations @@ -37,6 +38,7 @@ namespace azure.mgmt.network express_route_cross_connection_peerings: ExpressRouteCrossConnectionPeeringsOperations express_route_cross_connections: ExpressRouteCrossConnectionsOperations express_route_gateways: ExpressRouteGatewaysOperations + express_route_lags: ExpressRouteLagsOperations express_route_links: ExpressRouteLinksOperations express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations express_route_ports: ExpressRoutePortsOperations @@ -49,8 +51,10 @@ namespace azure.mgmt.network firewall_policy_idps_signatures: FirewallPolicyIdpsSignaturesOperations firewall_policy_idps_signatures_filter_values: FirewallPolicyIdpsSignaturesFilterValuesOperations firewall_policy_idps_signatures_overrides: FirewallPolicyIdpsSignaturesOverridesOperations + firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations firewall_policy_rule_collection_group_drafts: FirewallPolicyRuleCollectionGroupDraftsOperations firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations + first_party_service_tags: FirstPartyServiceTagsOperations flow_logs: FlowLogsOperations hub_route_tables: HubRouteTablesOperations hub_virtual_network_connections: HubVirtualNetworkConnectionsOperations @@ -192,7 +196,7 @@ namespace azure.mgmt.network self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -225,7 +229,7 @@ namespace azure.mgmt.network self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: JSON, + bsl_token_request: BastionShareableLinkTokenListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -258,7 +262,7 @@ namespace azure.mgmt.network self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: JSON, + vpn_client_params: VirtualWanVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -276,7 +280,7 @@ namespace azure.mgmt.network ) -> LROPoller[VpnProfileResponse]: ... @distributed_trace - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'bastion_host_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'bastion_host_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) def begin_get_active_sessions( self, resource_group_name: str, @@ -300,7 +304,7 @@ namespace azure.mgmt.network self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -318,7 +322,7 @@ namespace azure.mgmt.network ) -> LROPoller[ItemPaged[BastionShareableLink]]: ... @distributed_trace - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'location', 'domain_name_label', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'location', 'domain_name_label', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) def check_dns_name_availability( self, location: str, @@ -345,7 +349,7 @@ namespace azure.mgmt.network self, resource_group_name: str, bastion_host_name: str, - session_ids: JSON, + session_ids: SessionIds, *, content_type: str = "application/json", **kwargs: Any @@ -363,7 +367,7 @@ namespace azure.mgmt.network ) -> ItemPaged[BastionSessionState]: ... @distributed_trace - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'providerport', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'providerport', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) def express_route_provider_port( self, providerport: str, @@ -386,7 +390,7 @@ namespace azure.mgmt.network self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -420,7 +424,7 @@ namespace azure.mgmt.network self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: ActiveConfigurationParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -456,7 +460,7 @@ namespace azure.mgmt.network self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: ActiveConfigurationParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -492,7 +496,7 @@ namespace azure.mgmt.network self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: QueryRequestOptions, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -528,7 +532,7 @@ namespace azure.mgmt.network self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: QueryRequestOptions, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -556,7 +560,7 @@ namespace azure.mgmt.network ) -> HttpResponse: ... @distributed_trace - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_wan_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_wan_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) def supported_security_providers( self, resource_group_name: str, @@ -568,6 +572,7 @@ namespace azure.mgmt.network namespace azure.mgmt.network.aio class azure.mgmt.network.aio.NetworkManagementClient(_NetworkManagementClientOperationsMixin): implements AsyncContextManager + address_prefix_sets: AddressPrefixSetsOperations admin_rule_collections: AdminRuleCollectionsOperations admin_rules: AdminRulesOperations application_gateway_private_endpoint_connections: ApplicationGatewayPrivateEndpointConnectionsOperations @@ -603,6 +608,7 @@ namespace azure.mgmt.network.aio express_route_cross_connection_peerings: ExpressRouteCrossConnectionPeeringsOperations express_route_cross_connections: ExpressRouteCrossConnectionsOperations express_route_gateways: ExpressRouteGatewaysOperations + express_route_lags: ExpressRouteLagsOperations express_route_links: ExpressRouteLinksOperations express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations express_route_ports: ExpressRoutePortsOperations @@ -615,8 +621,10 @@ namespace azure.mgmt.network.aio firewall_policy_idps_signatures: FirewallPolicyIdpsSignaturesOperations firewall_policy_idps_signatures_filter_values: FirewallPolicyIdpsSignaturesFilterValuesOperations firewall_policy_idps_signatures_overrides: FirewallPolicyIdpsSignaturesOverridesOperations + firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations firewall_policy_rule_collection_group_drafts: FirewallPolicyRuleCollectionGroupDraftsOperations firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations + first_party_service_tags: FirstPartyServiceTagsOperations flow_logs: FlowLogsOperations hub_route_tables: HubRouteTablesOperations hub_virtual_network_connections: HubVirtualNetworkConnectionsOperations @@ -758,7 +766,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -791,7 +799,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: JSON, + bsl_token_request: BastionShareableLinkTokenListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -824,7 +832,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: JSON, + vpn_client_params: VirtualWanVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -842,7 +850,7 @@ namespace azure.mgmt.network.aio ) -> AsyncLROPoller[VpnProfileResponse]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'bastion_host_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'bastion_host_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) async def begin_get_active_sessions( self, resource_group_name: str, @@ -866,7 +874,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -884,7 +892,7 @@ namespace azure.mgmt.network.aio ) -> AsyncLROPoller[AsyncItemPaged[BastionShareableLink]]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'location', 'domain_name_label', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'location', 'domain_name_label', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) async def check_dns_name_availability( self, location: str, @@ -911,7 +919,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, bastion_host_name: str, - session_ids: JSON, + session_ids: SessionIds, *, content_type: str = "application/json", **kwargs: Any @@ -929,7 +937,7 @@ namespace azure.mgmt.network.aio ) -> AsyncItemPaged[BastionSessionState]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'providerport', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'providerport', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) async def express_route_provider_port( self, providerport: str, @@ -952,7 +960,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -986,7 +994,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: ActiveConfigurationParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -1022,7 +1030,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: ActiveConfigurationParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -1058,7 +1066,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: QueryRequestOptions, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -1094,7 +1102,7 @@ namespace azure.mgmt.network.aio self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: QueryRequestOptions, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -1122,7 +1130,7 @@ namespace azure.mgmt.network.aio ) -> Awaitable[AsyncHttpResponse]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_wan_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(method_added_on='2025-05-01', params_added_on={'2025-05-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_wan_name', 'accept']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) async def supported_security_providers( self, resource_group_name: str, @@ -1133,6 +1141,77 @@ namespace azure.mgmt.network.aio namespace azure.mgmt.network.aio.operations + class azure.mgmt.network.aio.operations.AddressPrefixSetsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AddressPrefixSet]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AddressPrefixSet]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[AddressPrefixSet]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> AddressPrefixSet: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + application_security_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[AddressPrefixSet]: ... + + class azure.mgmt.network.aio.operations.AdminRuleCollectionsOperations: def __init__( @@ -1173,7 +1252,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: AdminRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -1258,7 +1337,7 @@ namespace azure.mgmt.network.aio.operations configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: JSON, + admin_rule: BaseAdminRule, *, content_type: str = "application/json", **kwargs: Any @@ -1338,7 +1417,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: JSON, + parameters: ApplicationGatewayPrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -1458,7 +1537,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, application_gateway_name: str, - probe_request: JSON, + probe_request: ApplicationGatewayOnDemandProbe, *, content_type: str = "application/json", expand: Optional[str] = ..., @@ -1493,7 +1572,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: ApplicationGateway, *, content_type: str = "application/json", **kwargs: Any @@ -1593,7 +1672,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -1635,7 +1714,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: ApplicationSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -1694,7 +1773,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -1846,7 +1925,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: AzureFirewall, *, content_type: str = "application/json", create_afc_control_plane: Optional[bool] = ..., @@ -1897,7 +1976,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -1930,7 +2009,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -1963,7 +2042,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2023,7 +2102,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: BastionHost, *, content_type: str = "application/json", **kwargs: Any @@ -2064,7 +2143,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2138,7 +2217,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, commit_name: str, - resource: JSON, + resource: Commit, *, content_type: str = "application/json", **kwargs: Any @@ -2212,7 +2291,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, - vpn_server_configuration_policy_group_parameters: JSON, + vpn_server_configuration_policy_group_parameters: VpnServerConfigurationPolicyGroup, *, content_type: str = "application/json", **kwargs: Any @@ -2284,7 +2363,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: ConnectionMonitor, *, content_type: str = "application/json", migrate: Optional[str] = ..., @@ -2357,7 +2436,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2402,7 +2481,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, - resource: JSON, + resource: ConnectionPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -2484,7 +2563,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - connectivity_configuration: JSON, + connectivity_configuration: ConnectivityConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -2547,7 +2626,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: CustomIpPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -2608,7 +2687,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2650,7 +2729,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: DdosCustomPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -2684,7 +2763,7 @@ namespace azure.mgmt.network.aio.operations ) -> DdosCustomPolicy: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def list( self, resource_group_name: str, @@ -2692,7 +2771,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncItemPaged[DdosCustomPolicy]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def list_all(self, **kwargs: Any) -> AsyncItemPaged[DdosCustomPolicy]: ... @overload @@ -2711,7 +2790,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2753,7 +2832,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: DdosProtectionPlan, *, content_type: str = "application/json", **kwargs: Any @@ -2812,7 +2891,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -2880,7 +2959,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, dscp_configuration_name: str, - parameters: JSON, + parameters: DscpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -2950,7 +3029,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: ExpressRouteCircuitAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -3023,7 +3102,7 @@ namespace azure.mgmt.network.aio.operations circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: JSON, + express_route_circuit_connection_parameters: ExpressRouteCircuitConnection, *, content_type: str = "application/json", **kwargs: Any @@ -3098,7 +3177,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: ExpressRouteCircuitPeering, *, content_type: str = "application/json", **kwargs: Any @@ -3167,7 +3246,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: ExpressRouteCircuit, *, content_type: str = "application/json", **kwargs: Any @@ -3193,7 +3272,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'failover_test_type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'failover_test_type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_circuit_link_failover_all_tests_details( self, resource_group_name: str, @@ -3205,7 +3284,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[List[ExpressRouteLinkFailoverAllTestsDetails]]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_circuit_link_failover_single_test_details( self, resource_group_name: str, @@ -3248,7 +3327,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[ExpressRouteCircuitsRoutesTableSummaryListResult]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_start_circuit_link_failover_test( self, resource_group_name: str, @@ -3275,7 +3354,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, circuit_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteLinkFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -3343,7 +3422,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -3387,7 +3466,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: JSON, + put_express_route_connection_parameters: ExpressRouteConnection, *, content_type: str = "application/json", **kwargs: Any @@ -3458,7 +3537,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: ExpressRouteCrossConnectionPeering, *, content_type: str = "application/json", **kwargs: Any @@ -3527,7 +3606,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, cross_connection_name: str, - parameters: JSON, + parameters: ExpressRouteCrossConnection, *, content_type: str = "application/json", **kwargs: Any @@ -3613,7 +3692,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: JSON, + cross_connection_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -3655,7 +3734,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_gateway_name: str, - put_express_route_gateway_parameters: JSON, + put_express_route_gateway_parameters: ExpressRouteGateway, *, content_type: str = "application/json", **kwargs: Any @@ -3681,7 +3760,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_failover_all_tests_details( self, resource_group_name: str, @@ -3693,7 +3772,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[List[ExpressRouteFailoverTestDetails]]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_failover_single_test_details( self, resource_group_name: str, @@ -3705,7 +3784,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[List[ExpressRouteFailoverSingleTestDetails]]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_resiliency_information( self, resource_group_name: str, @@ -3716,7 +3795,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[GatewayResiliencyInformation]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_get_routes_information( self, resource_group_name: str, @@ -3727,7 +3806,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[GatewayRouteSetsInformation]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) async def begin_start_site_failover_test( self, resource_group_name: str, @@ -3753,7 +3832,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_gateway_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -3786,7 +3865,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_gateway_name: str, - express_route_gateway_parameters: JSON, + express_route_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -3822,6 +3901,176 @@ namespace azure.mgmt.network.aio.operations async def list_by_subscription(self, **kwargs: Any) -> ExpressRouteGatewayList: ... + class azure.mgmt.network.aio.operations.ExpressRouteLagsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: ExpressRouteLag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ExpressRouteLag]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: ExpressRouteLag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ExpressRouteLag]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ExpressRouteLag]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> ExpressRouteLag: ... + + @distributed_trace_async + async def links_get( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + **kwargs: Any + ) -> ExpressRouteLagLink: ... + + @distributed_trace + def links_list( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ExpressRouteLagLink]: ... + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged[ExpressRouteLag]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ExpressRouteLag]: ... + + @distributed_trace_async + async def members_get( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + member_name: str, + **kwargs: Any + ) -> ExpressRouteLagMember: ... + + @distributed_trace + def members_list( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ExpressRouteLagMember]: ... + + @overload + async def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: ExpressRouteLagUpdateTagsOrIdentityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + @overload + async def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: ExpressRouteLagUpdateTagsOrIdentityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + @overload + async def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + class azure.mgmt.network.aio.operations.ExpressRouteLinksOperations: def __init__( @@ -3874,7 +4123,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: ExpressRoutePortAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -3962,7 +4211,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: ExpressRoutePort, *, content_type: str = "application/json", **kwargs: Any @@ -4003,7 +4252,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_port_name: str, - request: JSON, + request: GenerateExpressRoutePortsLOARequest, *, content_type: str = "application/json", **kwargs: Any @@ -4054,7 +4303,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -4116,6 +4365,7 @@ namespace azure.mgmt.network.aio.operations firewall_policy_name: str, parameters: FirewallPolicy, *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[FirewallPolicy]: ... @@ -4125,8 +4375,9 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: FirewallPolicy, *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[FirewallPolicy]: ... @@ -4138,6 +4389,7 @@ namespace azure.mgmt.network.aio.operations firewall_policy_name: str, parameters: IO[bytes], *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[FirewallPolicy]: ... @@ -4186,7 +4438,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -4245,7 +4497,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: FirewallPolicyDraft, *, content_type: str = "application/json", **kwargs: Any @@ -4303,7 +4555,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignatureOverridesFilterValuesQuery, *, content_type: str = "application/json", **kwargs: Any @@ -4345,7 +4597,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: IDPSQueryObject, *, content_type: str = "application/json", **kwargs: Any @@ -4403,7 +4655,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -4436,7 +4688,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -4454,6 +4706,77 @@ namespace azure.mgmt.network.aio.operations ) -> SignaturesOverrides: ... + class azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + **kwargs: Any + ) -> FirewallPolicyKubeSelectorGroup: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + firewall_policy_name: str, + **kwargs: Any + ) -> AsyncItemPaged[FirewallPolicyKubeSelectorGroup]: ... + + class azure.mgmt.network.aio.operations.FirewallPolicyRuleCollectionGroupDraftsOperations: def __init__( @@ -4480,7 +4803,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: FirewallPolicyRuleCollectionGroupDraft, *, content_type: str = "application/json", **kwargs: Any @@ -4543,7 +4866,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: FirewallPolicyRuleCollectionGroup, *, content_type: str = "application/json", **kwargs: Any @@ -4588,6 +4911,107 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncItemPaged[FirewallPolicyRuleCollectionGroup]: ... + class azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + first_party_service_tag_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @overload + async def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @overload + async def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[FirstPartyServiceTag]: ... + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + first_party_service_tag_name: str, + **kwargs: Any + ) -> FirstPartyServiceTag: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[FirstPartyServiceTag]: ... + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged[FirstPartyServiceTag]: ... + + class azure.mgmt.network.aio.operations.FlowLogsOperations: def __init__( @@ -4614,7 +5038,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: FlowLog, *, content_type: str = "application/json", **kwargs: Any @@ -4676,7 +5100,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -4721,7 +5145,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, route_table_name: str, - route_table_parameters: JSON, + route_table_parameters: HubRouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -4792,7 +5216,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: JSON, + hub_virtual_network_connection_parameters: HubVirtualNetworkConnection, *, content_type: str = "application/json", **kwargs: Any @@ -4863,7 +5287,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, - inbound_nat_rule_parameters: JSON, + inbound_nat_rule_parameters: InboundNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -4936,7 +5360,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: JSON, + parameters: InboundSecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -4996,7 +5420,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: InterconnectGroup, *, content_type: str = "application/json", **kwargs: Any @@ -5055,7 +5479,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -5097,7 +5521,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: IpAllocation, *, content_type: str = "application/json", **kwargs: Any @@ -5158,7 +5582,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -5200,7 +5624,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: IpGroup, *, content_type: str = "application/json", **kwargs: Any @@ -5261,7 +5685,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -5307,7 +5731,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, pool_name: str, - body: JSON, + body: IpamPool, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -5402,7 +5826,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, pool_name: str, - body: Optional[JSON] = None, + body: Optional[IpamPoolUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -5451,7 +5875,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: JSON, + parameters: BackendAddressPool, *, content_type: str = "application/json", **kwargs: Any @@ -5650,7 +6074,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: LoadBalancer, *, content_type: str = "application/json", **kwargs: Any @@ -5693,7 +6117,7 @@ namespace azure.mgmt.network.aio.operations group_name: str, load_balancer_name: str, backend_pool_name: str, - parameters: JSON, + parameters: QueryInboundNatRulePortMappingRequest, *, content_type: str = "application/json", **kwargs: Any @@ -5725,7 +6149,7 @@ namespace azure.mgmt.network.aio.operations async def begin_swap_public_ip_addresses( self, location: str, - parameters: JSON, + parameters: LoadBalancerVipSwapRequest, *, content_type: str = "application/json", **kwargs: Any @@ -5742,7 +6166,7 @@ namespace azure.mgmt.network.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(params_added_on={'2025-07-01': ['detail_level']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(params_added_on={'2025-07-01': ['detail_level']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) async def get( self, resource_group_name: str, @@ -5779,7 +6203,7 @@ namespace azure.mgmt.network.aio.operations self, group_name: str, load_balancer_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[MigrateLoadBalancerToIpBasedRequest] = None, *, content_type: str = "application/json", **kwargs: Any @@ -5812,7 +6236,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -5854,7 +6278,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: LocalNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -5910,7 +6334,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -5952,7 +6376,7 @@ namespace azure.mgmt.network.aio.operations self, management_group_id: str, network_manager_connection_name: str, - parameters: JSON, + parameters: NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -6020,7 +6444,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: NatGateway, *, content_type: str = "application/json", **kwargs: Any @@ -6081,7 +6505,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -6125,7 +6549,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: VpnGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -6209,7 +6633,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, network_group_name: str, - parameters: JSON, + parameters: NetworkGroup, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -6321,7 +6745,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_interface_name: str, tap_configuration_name: str, - tap_configuration_parameters: JSON, + tap_configuration_parameters: NetworkInterfaceTapConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -6390,7 +6814,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: NetworkInterface, *, content_type: str = "application/json", **kwargs: Any @@ -6550,7 +6974,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -6592,7 +7016,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManagerCommit, *, content_type: str = "application/json", **kwargs: Any @@ -6635,7 +7059,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManagerDeploymentStatusParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -6692,7 +7116,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - routing_configuration: JSON, + routing_configuration: NetworkManagerRoutingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -6765,7 +7189,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManager, *, content_type: str = "application/json", **kwargs: Any @@ -6825,7 +7249,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: PatchObject, *, content_type: str = "application/json", **kwargs: Any @@ -6875,7 +7299,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: NetworkProfile, *, content_type: str = "application/json", **kwargs: Any @@ -6928,7 +7352,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -6970,7 +7394,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: NetworkSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -7031,7 +7455,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -7077,7 +7501,7 @@ namespace azure.mgmt.network.aio.operations network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: JSON, + parameters: NspAccessRule, *, content_type: str = "application/json", **kwargs: Any @@ -7182,7 +7606,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: JSON, + parameters: NspAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -7313,7 +7737,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: JSON, + parameters: NspLink, *, content_type: str = "application/json", **kwargs: Any @@ -7378,7 +7802,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: JSON, + parameters: NspLoggingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -7466,7 +7890,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: JSON, + parameters: NspProfile, *, content_type: str = "application/json", **kwargs: Any @@ -7564,7 +7988,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: NetworkSecurityPerimeter, *, content_type: str = "application/json", **kwargs: Any @@ -7624,7 +8048,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: UpdateTagsRequest, *, content_type: str = "application/json", **kwargs: Any @@ -7668,7 +8092,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, - network_virtual_appliance_connection_parameters: JSON, + network_virtual_appliance_connection_parameters: NetworkVirtualApplianceConnection, *, content_type: str = "application/json", **kwargs: Any @@ -7721,6 +8145,48 @@ namespace azure.mgmt.network.aio.operations **kwargs ) -> None: ... + @distributed_trace_async + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_virtual_appliance_name']}, api_versions_list=['2025-09-01']) + async def begin_abort_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @overload async def begin_create_or_update( self, @@ -7737,7 +8203,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: NetworkVirtualAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -7762,6 +8228,39 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[None]: ... + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @overload async def begin_get_boot_diagnostic_logs( self, @@ -7778,7 +8277,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_virtual_appliance_name: str, - request: JSON, + request: NetworkVirtualApplianceBootDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any @@ -7795,6 +8294,39 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[NetworkVirtualApplianceInstanceId]: ... + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @overload async def begin_reimage( self, @@ -7811,7 +8343,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_virtual_appliance_instance_ids: Optional[NetworkVirtualApplianceInstanceIds] = None, *, content_type: str = "application/json", **kwargs: Any @@ -7844,7 +8376,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_virtual_appliance_instance_ids: Optional[NetworkVirtualApplianceInstanceIds] = None, *, content_type: str = "application/json", **kwargs: Any @@ -7897,7 +8429,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -7939,7 +8471,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: ConnectivityParameters, *, content_type: str = "application/json", **kwargs: Any @@ -7956,6 +8488,62 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[ConnectivityInformation]: ... + @overload + async def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ConnectionAnalyzer]: ... + + @overload + async def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ConnectionAnalyzer]: ... + + @overload + async def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[ConnectionAnalyzer]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name']}, api_versions_list=['2025-09-01']) + async def begin_connection_analyzers_delete( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @distributed_trace_async + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name', 'accept']}, api_versions_list=['2025-09-01']) + async def begin_connection_analyzers_query( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> AsyncLROPoller[ConnectionAnalyzerQueryStatusResult]: ... + @distributed_trace_async async def begin_delete( self, @@ -7980,7 +8568,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: AzureReachabilityReportParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8013,7 +8601,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: FlowLogStatusParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8046,7 +8634,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NetworkConfigurationDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8079,7 +8667,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NextHopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8112,7 +8700,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8145,7 +8733,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: QueryTroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8178,7 +8766,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: SecurityGroupViewParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8211,7 +8799,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: AvailableProvidersListParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8244,7 +8832,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: FlowLogInformation, *, content_type: str = "application/json", **kwargs: Any @@ -8277,7 +8865,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: VerificationIPFlowParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8294,6 +8882,61 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[VerificationIPFlowResult]: ... + @distributed_trace_async + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name', 'accept']}, api_versions_list=['2025-09-01']) + async def connection_analyzers_get( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'accept']}, api_versions_list=['2025-09-01']) + def connection_analyzers_list( + self, + resource_group_name: str, + network_watcher_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ConnectionAnalyzer]: ... + + @overload + async def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @overload + async def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @overload + async def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + @overload async def create_or_update( self, @@ -8310,7 +8953,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NetworkWatcher, *, content_type: str = "application/json", **kwargs: Any @@ -8351,7 +8994,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TopologyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8394,7 +9037,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -8448,7 +9091,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: P2SVpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -8489,7 +9132,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, p2_s_vpn_gateway_name: str, - request: JSON, + request: P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -8522,7 +9165,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - parameters: JSON, + parameters: P2SVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -8563,7 +9206,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - request: JSON, + request: P2SVpnConnectionHealthRequest, *, content_type: str = "application/json", **kwargs: Any @@ -8604,7 +9247,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -8666,7 +9309,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: JSON, + parameters: PacketCapture, *, content_type: str = "application/json", **kwargs: Any @@ -8783,7 +9426,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: JSON, + parameters: PrivateDnsZoneGroup, *, content_type: str = "application/json", **kwargs: Any @@ -8852,7 +9495,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, private_endpoint_name: str, - parameters: JSON, + parameters: PrivateEndpoint, *, content_type: str = "application/json", **kwargs: Any @@ -8920,7 +9563,7 @@ namespace azure.mgmt.network.aio.operations async def begin_check_private_link_service_visibility( self, location: str, - parameters: JSON, + parameters: CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any @@ -8952,7 +9595,7 @@ namespace azure.mgmt.network.aio.operations self, location: str, resource_group_name: str, - parameters: JSON, + parameters: CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any @@ -8985,7 +9628,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, service_name: str, - parameters: JSON, + parameters: PrivateLinkService, *, content_type: str = "application/json", **kwargs: Any @@ -9091,7 +9734,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, service_name: str, pe_connection_name: str, - parameters: JSON, + parameters: PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -9134,7 +9777,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: PublicIPAddress, *, content_type: str = "application/json", **kwargs: Any @@ -9183,7 +9826,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: DisassociateCloudServicePublicIpRequest, *, content_type: str = "application/json", **kwargs: Any @@ -9216,7 +9859,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: ReserveCloudServicePublicIpAddressRequest, *, content_type: str = "application/json", **kwargs: Any @@ -9335,7 +9978,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -9377,7 +10020,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: PublicIPPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -9438,7 +10081,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -9484,7 +10127,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, workspace_name: str, reachability_analysis_intent_name: str, - body: JSON, + body: ReachabilityAnalysisIntent, *, content_type: str = "application/json", **kwargs: Any @@ -9577,7 +10220,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, workspace_name: str, reachability_analysis_run_name: str, - body: JSON, + body: ReachabilityAnalysisRun, *, content_type: str = "application/json", **kwargs: Any @@ -9666,7 +10309,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: JSON, + route_filter_rule_parameters: RouteFilterRule, *, content_type: str = "application/json", **kwargs: Any @@ -9735,7 +10378,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, route_filter_name: str, - route_filter_parameters: JSON, + route_filter_parameters: RouteFilter, *, content_type: str = "application/json", **kwargs: Any @@ -9796,7 +10439,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, route_filter_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -9840,7 +10483,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, route_map_name: str, - route_map_parameters: JSON, + route_map_parameters: RouteMap, *, content_type: str = "application/json", **kwargs: Any @@ -9909,7 +10552,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: RouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -9970,7 +10613,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -10014,7 +10657,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, route_table_name: str, route_name: str, - route_parameters: JSON, + route_parameters: Route, *, content_type: str = "application/json", **kwargs: Any @@ -10085,7 +10728,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: JSON, + routing_intent_parameters: RoutingIntent, *, content_type: str = "application/json", **kwargs: Any @@ -10170,7 +10813,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: RoutingRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -10255,7 +10898,7 @@ namespace azure.mgmt.network.aio.operations configuration_name: str, rule_collection_name: str, rule_name: str, - routing_rule: JSON, + routing_rule: RoutingRule, *, content_type: str = "application/json", **kwargs: Any @@ -10326,7 +10969,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, scope_connection_name: str, - parameters: JSON, + parameters: ScopeConnection, *, content_type: str = "application/json", **kwargs: Any @@ -10411,7 +11054,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: JSON, + security_admin_configuration: SecurityAdminConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -10474,7 +11117,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: SecurityPartnerProvider, *, content_type: str = "application/json", **kwargs: Any @@ -10533,7 +11176,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -10577,7 +11220,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_security_group_name: str, security_rule_name: str, - security_rule_parameters: JSON, + security_rule_parameters: SecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -10659,7 +11302,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - security_user_configuration: JSON, + security_user_configuration: SecurityUserConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -10738,7 +11381,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - security_user_rule_collection: JSON, + security_user_rule_collection: SecurityUserRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -10823,7 +11466,7 @@ namespace azure.mgmt.network.aio.operations configuration_name: str, rule_collection_name: str, rule_name: str, - security_user_rule: JSON, + security_user_rule: SecurityUserRule, *, content_type: str = "application/json", **kwargs: Any @@ -10910,7 +11553,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: ServiceEndpointPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -10971,7 +11614,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -11015,7 +11658,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: JSON, + service_endpoint_policy_definitions: ServiceEndpointPolicyDefinition, *, content_type: str = "application/json", **kwargs: Any @@ -11084,7 +11727,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: ServiceGateway, *, content_type: str = "application/json", **kwargs: Any @@ -11109,63 +11752,64 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[None]: ... - @overload - async def begin_update_address_locations( + @distributed_trace_async + async def get( self, resource_group_name: str, service_gateway_name: str, - parameters: ServiceGatewayUpdateAddressLocationsRequest, - *, - content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> ServiceGateway: ... - @overload - async def begin_update_address_locations( + @distributed_trace + def get_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> AsyncItemPaged[ServiceGatewayAddressLocationResponse]: ... - @overload - async def begin_update_address_locations( + @distributed_trace + def get_services( self, resource_group_name: str, service_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> AsyncItemPaged[ServiceGatewayService]: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncItemPaged[ServiceGateway]: ... + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged[ServiceGateway]: ... @overload - async def begin_update_services( + async def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: ServiceGatewayUpdateServicesRequest, + parameters: ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload - async def begin_update_services( + async def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload - async def begin_update_services( + async def update_address_locations( self, resource_group_name: str, service_gateway_name: str, @@ -11173,41 +11817,40 @@ namespace azure.mgmt.network.aio.operations *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace_async - async def get( + @overload + async def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: ServiceGatewayUpdateServicesRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> ServiceGateway: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace - def get_address_locations( + @overload + async def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: ServiceGatewayUpdateServicesRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncItemPaged[ServiceGatewayAddressLocationResponse]: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace - def get_services( + @overload + async def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncItemPaged[ServiceGatewayService]: ... - - @distributed_trace - def list( - self, - resource_group_name: str, - **kwargs: Any - ) -> AsyncItemPaged[ServiceGateway]: ... - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged[ServiceGateway]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload async def update_tags( @@ -11225,7 +11868,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -11316,7 +11959,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, pool_name: str, static_cidr_name: str, - body: Optional[JSON] = None, + body: Optional[StaticCidr] = None, *, content_type: str = "application/json", **kwargs: Any @@ -11389,7 +12032,7 @@ namespace azure.mgmt.network.aio.operations network_manager_name: str, network_group_name: str, static_member_name: str, - parameters: JSON, + parameters: StaticMember, *, content_type: str = "application/json", **kwargs: Any @@ -11493,7 +12136,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - subnet_parameters: JSON, + subnet_parameters: Subnet, *, content_type: str = "application/json", **kwargs: Any @@ -11538,7 +12181,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - prepare_network_policies_request_parameters: JSON, + prepare_network_policies_request_parameters: PrepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -11574,7 +12217,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - unprepare_network_policies_request_parameters: JSON, + unprepare_network_policies_request_parameters: UnprepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -11634,7 +12277,7 @@ namespace azure.mgmt.network.aio.operations async def create_or_update( self, network_manager_connection_name: str, - parameters: JSON, + parameters: NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -11730,7 +12373,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, workspace_name: str, - body: JSON, + body: VerifierWorkspace, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -11795,7 +12438,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_manager_name: str, workspace_name: str, - body: Optional[JSON] = None, + body: Optional[VerifierWorkspaceUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -11842,7 +12485,7 @@ namespace azure.mgmt.network.aio.operations self, group_name: str, resource_name: str, - parameters: JSON, + parameters: SwapResource, *, content_type: str = "application/json", **kwargs: Any @@ -11902,7 +12545,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, network_virtual_appliance_name: str, site_name: str, - parameters: JSON, + parameters: VirtualApplianceSite, *, content_type: str = "application/json", **kwargs: Any @@ -11992,7 +12635,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: JSON, + parameters: BgpConnection, *, content_type: str = "application/json", **kwargs: Any @@ -12090,7 +12733,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: JSON, + parameters: HubIpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -12161,7 +12804,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: JSON, + virtual_hub_route_table_v2_parameters: VirtualHubRouteTableV2, *, content_type: str = "application/json", **kwargs: Any @@ -12230,7 +12873,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: VirtualHub, *, content_type: str = "application/json", **kwargs: Any @@ -12271,7 +12914,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_hub_name: str, - effective_routes_parameters: Optional[JSON] = None, + effective_routes_parameters: Optional[EffectiveRoutesParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -12304,7 +12947,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_hub_name: str, - get_inbound_routes_parameters: JSON, + get_inbound_routes_parameters: GetInboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -12337,7 +12980,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_hub_name: str, - get_outbound_routes_parameters: JSON, + get_outbound_routes_parameters: GetOutboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -12388,7 +13031,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -12430,7 +13073,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: VirtualNetworkAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -12489,7 +13132,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -12531,7 +13174,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VirtualNetworkGatewayConnection, *, content_type: str = "application/json", **kwargs: Any @@ -12588,7 +13231,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: ConnectionResetSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -12621,7 +13264,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: ConnectionSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -12654,7 +13297,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -12687,7 +13330,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -12720,7 +13363,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -12787,7 +13430,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: VirtualNetworkGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -12856,7 +13499,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VirtualNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -12897,7 +13540,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - request: JSON, + request: P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -12930,7 +13573,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -12963,7 +13606,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13000,6 +13643,15 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[BgpPeerStatusListResult]: ... + @distributed_trace_async + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_network_gateway_name', 'accept']}, api_versions_list=['2025-09-01']) + async def begin_get_effective_routes( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + **kwargs: Any + ) -> AsyncLROPoller[GatewayEffectiveRouteListResult]: ... + @distributed_trace_async async def begin_get_failover_all_test_details( self, @@ -13114,7 +13766,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - migration_params: JSON, + migration_params: VirtualNetworkGatewayMigrationParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13165,7 +13817,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - vpnclient_ipsec_params: JSON, + vpnclient_ipsec_params: VpnClientIPsecParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13208,7 +13860,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -13241,7 +13893,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13274,7 +13926,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13307,7 +13959,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -13379,7 +14031,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VpnDeviceScriptParameters, *, content_type: str = "application/json", **kwargs: Any @@ -13424,7 +14076,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, - virtual_network_peering_parameters: JSON, + virtual_network_peering_parameters: VirtualNetworkPeering, *, content_type: str = "application/json", sync_remote_address_space: Optional[Union[str, SyncRemoteAddressSpace]] = ..., @@ -13495,7 +14147,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, tap_name: str, - parameters: JSON, + parameters: VirtualNetworkTap, *, content_type: str = "application/json", **kwargs: Any @@ -13554,7 +14206,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, tap_name: str, - tap_parameters: JSON, + tap_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -13596,7 +14248,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: VirtualNetwork, *, content_type: str = "application/json", **kwargs: Any @@ -13632,6 +14284,39 @@ namespace azure.mgmt.network.aio.operations **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged[PublicIpDdosProtectionStatusResult]]: ... + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: ... + @distributed_trace_async async def check_ip_address_availability( self, @@ -13686,7 +14371,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -13730,7 +14415,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, virtual_router_name: str, peering_name: str, - parameters: JSON, + parameters: VirtualRouterPeering, *, content_type: str = "application/json", **kwargs: Any @@ -13799,7 +14484,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_router_name: str, - parameters: JSON, + parameters: VirtualRouter, *, content_type: str = "application/json", **kwargs: Any @@ -13869,7 +14554,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: VirtualWAN, *, content_type: str = "application/json", **kwargs: Any @@ -13928,7 +14613,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -13972,7 +14657,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: JSON, + vpn_connection_parameters: VpnConnection, *, content_type: str = "application/json", **kwargs: Any @@ -14017,7 +14702,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnConnectionPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -14053,7 +14738,7 @@ namespace azure.mgmt.network.aio.operations resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnConnectionPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -14113,7 +14798,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: VpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -14164,7 +14849,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnGatewayPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -14197,7 +14882,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnGatewayPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -14230,7 +14915,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -14314,7 +14999,7 @@ namespace azure.mgmt.network.aio.operations gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: JSON, + connection_shared_key_parameters: ConnectionSharedKeyResult, *, content_type: str = "application/json", **kwargs: Any @@ -14414,7 +15099,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: VpnServerConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -14481,7 +15166,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -14568,7 +15253,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, virtual_wan_name: str, - request: JSON, + request: GetVpnSitesConfigurationRequest, *, content_type: str = "application/json", **kwargs: Any @@ -14610,7 +15295,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: VpnSite, *, content_type: str = "application/json", **kwargs: Any @@ -14669,7 +15354,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -14719,7 +15404,7 @@ namespace azure.mgmt.network.aio.operations self, resource_group_name: str, policy_name: str, - parameters: JSON, + parameters: WebApplicationFirewallPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -15032,6 +15717,40 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.AddressPrefixSet(ProxyResource): + etag: str + id: str + name: str + properties: Optional[AddressPrefixSetPropertiesFormat] + type: str + + @overload + def __init__( + self, + *, + id: Optional[str] = ..., + properties: Optional[AddressPrefixSetPropertiesFormat] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.AddressPrefixSetPropertiesFormat(_Model): + address_prefixes: list[str] + provisioning_state: Optional[Union[str, ProvisioningState]] + + @overload + def __init__( + self, + *, + address_prefixes: list[str] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.AddressPrefixType(str, Enum, metaclass=CaseInsensitiveEnumMeta): IP_PREFIX = "IPPrefix" NETWORK_GROUP = "NetworkGroup" @@ -16056,6 +16775,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.ApplicationGatewayGlobalConfiguration(_Model): + disable_default_server_header_in_response: Optional[bool] enable_request_buffering: Optional[bool] enable_response_buffering: Optional[bool] @@ -16063,6 +16783,7 @@ namespace azure.mgmt.network.models def __init__( self, *, + disable_default_server_header_in_response: Optional[bool] = ..., enable_request_buffering: Optional[bool] = ..., enable_response_buffering: Optional[bool] = ... ) -> None: ... @@ -17619,6 +18340,7 @@ namespace azure.mgmt.network.models rule_type: Literal[FirewallPolicyRuleType.APPLICATION_RULE] source_addresses: Optional[list[str]] source_ip_groups: Optional[list[str]] + source_kube_selector_groups: Optional[list[str]] target_fqdns: Optional[list[str]] target_urls: Optional[list[str]] terminate_tls: Optional[bool] @@ -17636,6 +18358,7 @@ namespace azure.mgmt.network.models protocols: Optional[list[FirewallPolicyRuleApplicationProtocol]] = ..., source_addresses: Optional[list[str]] = ..., source_ip_groups: Optional[list[str]] = ..., + source_kube_selector_groups: Optional[list[str]] = ..., target_fqdns: Optional[list[str]] = ..., target_urls: Optional[list[str]] = ..., terminate_tls: Optional[bool] = ..., @@ -19372,6 +20095,116 @@ namespace azure.mgmt.network.models STANDARD = "Standard" + class azure.mgmt.network.models.ConnectionAnalyzer(_Model): + etag: Optional[str] + id: Optional[str] + location: str + name: Optional[str] + properties: ConnectionAnalyzerProperties + system_data: Optional[SystemData] + tags: Optional[dict[str, str]] + type: Optional[str] + + @overload + def __init__( + self, + *, + location: str, + properties: ConnectionAnalyzerProperties, + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ConnectionAnalyzerEndpoint(_Model): + address: Optional[str] + port: Optional[int] + resource_id: Optional[str] + type: Union[str, ConnectionAnalyzerEndpointType] + + @overload + def __init__( + self, + *, + address: Optional[str] = ..., + port: Optional[int] = ..., + resource_id: Optional[str] = ..., + type: Union[str, ConnectionAnalyzerEndpointType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ConnectionAnalyzerEndpointType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + APPLICATION_GATEWAY = "ApplicationGateway" + BASTION_HOST = "BastionHost" + EXTERNAL_ADDRESS = "ExternalAddress" + VM = "VM" + VMSS = "VMSS" + + + class azure.mgmt.network.models.ConnectionAnalyzerProperties(_Model): + destination: ConnectionAnalyzerEndpoint + diagnostic_operations: list[Union[str, DiagnosticOperation]] + diagnostic_operations_settings: Optional[DiagnosticOperationsSettings] + expiry_in_days: Optional[int] + output_settings: Optional[OutputSettings] + protocol_settings: Optional[ProtocolSettings] + provisioning_state: Optional[Union[str, ProvisioningState]] + request_time: Optional[datetime] + source: ConnectionAnalyzerEndpoint + status: Optional[Union[str, ConnectionAnalyzerStatus]] + + @overload + def __init__( + self, + *, + destination: ConnectionAnalyzerEndpoint, + diagnostic_operations: list[Union[str, DiagnosticOperation]], + diagnostic_operations_settings: Optional[DiagnosticOperationsSettings] = ..., + expiry_in_days: Optional[int] = ..., + output_settings: Optional[OutputSettings] = ..., + protocol_settings: Optional[ProtocolSettings] = ..., + source: ConnectionAnalyzerEndpoint + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ConnectionAnalyzerQueryStatusResult(_Model): + connection_analyzer_status: Optional[Union[str, ConnectionAnalyzerStatus]] + diagnostic_operation_results: Optional[list[DiagnosticOperationResult]] + error: Optional[str] + expiry_in_utc: Optional[datetime] + id: Optional[str] + output_storage_path: Optional[str] + + @overload + def __init__( + self, + *, + connection_analyzer_status: Optional[Union[str, ConnectionAnalyzerStatus]] = ..., + diagnostic_operation_results: Optional[list[DiagnosticOperationResult]] = ..., + error: Optional[str] = ..., + expiry_in_utc: Optional[datetime] = ..., + output_storage_path: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ConnectionAnalyzerStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + FAILED = "Failed" + NOT_STARTED = "NotStarted" + RUNNING = "Running" + SUCCEEDED = "Succeeded" + + class azure.mgmt.network.models.ConnectionAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): CERTIFICATE = "Certificate" PSK = "PSK" @@ -19901,6 +20734,22 @@ namespace azure.mgmt.network.models UNKNOWN = "Unknown" + class azure.mgmt.network.models.ConnectivityCheckSettings(_Model): + generate_path: Optional[bool] + preferred_ip_version: Optional[Union[str, PreferredIPVersion]] + + @overload + def __init__( + self, + *, + generate_path: Optional[bool] = ..., + preferred_ip_version: Optional[Union[str, PreferredIPVersion]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.ConnectivityConfiguration(ChildResource): etag: str id: str @@ -20711,6 +21560,48 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.DiagnosticOperation(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CONNECTIVITY_CHECK = "ConnectivityCheck" + EXPRESS_ROUTE_DIAGNOSTIC = "ExpressRouteDiagnostic" + NEXT_HOP = "NextHop" + NSG = "NSG" + PORT_SCAN = "PortScan" + + + class azure.mgmt.network.models.DiagnosticOperationResult(_Model): + diagnostic_operation: Union[str, DiagnosticOperation] + error: Optional[str] + result: Optional[str] + + @overload + def __init__( + self, + *, + diagnostic_operation: Union[str, DiagnosticOperation], + error: Optional[str] = ..., + result: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.DiagnosticOperationsSettings(_Model): + connectivity_check_settings: Optional[ConnectivityCheckSettings] + express_route_diagnostics_settings: Optional[ExpressRouteDiagnosticsSettings] + + @overload + def __init__( + self, + *, + connectivity_check_settings: Optional[ConnectivityCheckSettings] = ..., + express_route_diagnostics_settings: Optional[ExpressRouteDiagnosticsSettings] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.Dimension(_Model): display_name: Optional[str] internal_name: Optional[str] @@ -21174,6 +22065,11 @@ namespace azure.mgmt.network.models UDP = "Udp" + class azure.mgmt.network.models.EnableOnlyIpv6PeeringState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DISABLED = "Disabled" + ENABLED = "Enabled" + + class azure.mgmt.network.models.EndpointServiceResult(SubResource): id: str name: Optional[str] @@ -21667,6 +22563,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.ExpressRouteCircuitPropertiesFormat(_Model): + activation_key: Optional[str] allow_classic_operations: Optional[bool] authorization_key: Optional[str] authorization_status: Optional[str] @@ -21677,8 +22574,10 @@ namespace azure.mgmt.network.models express_route_port: Optional[SubResource] gateway_manager_etag: Optional[str] global_reach_enabled: Optional[bool] + partner_account_id: Optional[str] peerings: Optional[list[ExpressRouteCircuitPeering]] provisioning_state: Optional[Union[str, ProvisioningState]] + resiliency_level: Optional[Union[str, ResiliencyLevel]] service_key: Optional[str] service_provider_notes: Optional[str] service_provider_properties: Optional[ExpressRouteCircuitServiceProviderProperties] @@ -21689,6 +22588,7 @@ namespace azure.mgmt.network.models def __init__( self, *, + activation_key: Optional[str] = ..., allow_classic_operations: Optional[bool] = ..., authorization_key: Optional[str] = ..., authorizations: Optional[list[ExpressRouteCircuitAuthorization]] = ..., @@ -21698,6 +22598,7 @@ namespace azure.mgmt.network.models express_route_port: Optional[SubResource] = ..., gateway_manager_etag: Optional[str] = ..., global_reach_enabled: Optional[bool] = ..., + partner_account_id: Optional[str] = ..., peerings: Optional[list[ExpressRouteCircuitPeering]] = ..., service_key: Optional[str] = ..., service_provider_notes: Optional[str] = ..., @@ -21811,6 +22712,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.ExpressRouteCircuitSkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): BASIC = "Basic" LOCAL = "Local" + MULTI_CLOUD = "MultiCloud" PREMIUM = "Premium" STANDARD = "Standard" @@ -22110,6 +23012,22 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.ExpressRouteDiagnosticsSettings(_Model): + bandwidth: Optional[float] + er_circuit_resource_id: Optional[str] + + @overload + def __init__( + self, + *, + bandwidth: Optional[float] = ..., + er_circuit_resource_id: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.ExpressRouteFailoverBgpStatusAddressFamily(str, Enum, metaclass=CaseInsensitiveEnumMeta): I_PV4 = "IPv4" I_PV6 = "IPv6" @@ -22346,6 +23264,172 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.ExpressRouteLag(Resource): + etag: Optional[str] + id: str + identity: Optional[ManagedServiceIdentity] + location: str + name: str + properties: Optional[ExpressRouteLagPropertiesFormat] + tags: dict[str, str] + type: str + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + location: Optional[str] = ..., + properties: Optional[ExpressRouteLagPropertiesFormat] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagBillingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + METERED_DATA = "MeteredData" + UNLIMITED_DATA = "UnlimitedData" + + + class azure.mgmt.network.models.ExpressRouteLagEncapsulation(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DOT1_Q = "Dot1Q" + QIN_Q = "QinQ" + + + class azure.mgmt.network.models.ExpressRouteLagLacpTimer(str, Enum, metaclass=CaseInsensitiveEnumMeta): + FAST = "Fast" + SLOW = "Slow" + + + class azure.mgmt.network.models.ExpressRouteLagLink(SubResource): + etag: Optional[str] + id: str + name: str + properties: Optional[ExpressRouteLagLinkPropertiesFormat] + type: str + + @overload + def __init__( + self, + *, + properties: Optional[ExpressRouteLagLinkPropertiesFormat] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagLinkPropertiesFormat(_Model): + admin_state: Optional[Union[str, ExpressRouteLinkAdminState]] + interface_name: Optional[str] + mac_sec_config: Optional[ExpressRouteLinkMacSecConfig] + members: Optional[list[ExpressRouteLagMember]] + provisioning_state: Optional[Union[str, ProvisioningState]] + router_name: Optional[str] + + @overload + def __init__( + self, + *, + admin_state: Optional[Union[str, ExpressRouteLinkAdminState]] = ..., + mac_sec_config: Optional[ExpressRouteLinkMacSecConfig] = ..., + members: Optional[list[ExpressRouteLagMember]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagMember(SubResource): + etag: Optional[str] + id: str + name: str + properties: Optional[ExpressRouteLagMemberPropertiesFormat] + type: str + + @overload + def __init__( + self, + *, + properties: Optional[ExpressRouteLagMemberPropertiesFormat] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagMemberPropertiesFormat(_Model): + admin_state: Optional[Union[str, ExpressRouteLinkAdminState]] + colo_location: Optional[str] + connector_type: Optional[Union[str, ExpressRouteLinkConnectorType]] + interface_name: Optional[str] + patch_panel_id: Optional[str] + provisioning_state: Optional[Union[str, ProvisioningState]] + rack_id: Optional[str] + + @overload + def __init__( + self, + *, + admin_state: Optional[Union[str, ExpressRouteLinkAdminState]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagPropertiesFormat(_Model): + allocation_date: Optional[str] + bandwidth_in_gbps: Optional[int] + billing_type: Optional[Union[str, ExpressRouteLagBillingType]] + encapsulation: Optional[Union[str, ExpressRouteLagEncapsulation]] + ether_type: Optional[str] + lacp_timer: Optional[Union[str, ExpressRouteLagLacpTimer]] + links: Optional[list[ExpressRouteLagLink]] + minimum_active_ports_required: Optional[int] + mtu: Optional[str] + number_of_ports: Optional[int] + peering_location: Optional[str] + provisioned_bandwidth_in_gbps: Optional[float] + provisioning_state: Optional[Union[str, ProvisioningState]] + resource_guid: Optional[str] + + @overload + def __init__( + self, + *, + bandwidth_in_gbps: Optional[int] = ..., + billing_type: Optional[Union[str, ExpressRouteLagBillingType]] = ..., + encapsulation: Optional[Union[str, ExpressRouteLagEncapsulation]] = ..., + lacp_timer: Optional[Union[str, ExpressRouteLagLacpTimer]] = ..., + links: Optional[list[ExpressRouteLagLink]] = ..., + minimum_active_ports_required: Optional[int] = ..., + number_of_ports: Optional[int] = ..., + peering_location: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest(_Model): + identity: Optional[ManagedServiceIdentity] + tags: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + identity: Optional[ManagedServiceIdentity] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.ExpressRouteLink(SubResource): etag: Optional[str] id: str @@ -23318,6 +24402,43 @@ namespace azure.mgmt.network.models OFF = "Off" + class azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup(SubResourceModel): + etag: Optional[str] + id: str + name: str + properties: Optional[FirewallPolicyKubeSelectorGroupProperties] + type: str + + @overload + def __init__( + self, + *, + id: Optional[str] = ..., + name: Optional[str] = ..., + properties: Optional[FirewallPolicyKubeSelectorGroupProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.FirewallPolicyKubeSelectorGroupProperties(_Model): + namespace_selector: Optional[KubeLabelSelector] + pod_selector: Optional[KubeLabelSelector] + provisioning_state: Optional[Union[str, ProvisioningState]] + + @overload + def __init__( + self, + *, + namespace_selector: Optional[KubeLabelSelector] = ..., + pod_selector: Optional[KubeLabelSelector] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.FirewallPolicyLogAnalyticsResources(_Model): default_workspace_id: Optional[SubResource] workspaces: Optional[list[FirewallPolicyLogAnalyticsWorkspace]] @@ -23390,6 +24511,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.FirewallPolicyPropertiesFormat(_Model): + afc_managed: Optional[bool] base_policy: Optional[SubResource] child_policies: Optional[list[SubResource]] dns_settings: Optional[DnsSettings] @@ -23397,6 +24519,7 @@ namespace azure.mgmt.network.models firewalls: Optional[list[SubResource]] insights: Optional[FirewallPolicyInsights] intrusion_detection: Optional[FirewallPolicyIntrusionDetection] + kube_selector_groups: Optional[list[SubResource]] provisioning_state: Optional[Union[str, ProvisioningState]] rule_collection_groups: Optional[list[SubResource]] size: Optional[str] @@ -23673,6 +24796,45 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.FirstPartyServiceTag(Resource): + etag: Optional[str] + id: str + location: str + name: str + properties: Optional[FirstPartyServiceTagPropertiesFormat] + tags: dict[str, str] + type: str + + @overload + def __init__( + self, + *, + location: Optional[str] = ..., + properties: Optional[FirstPartyServiceTagPropertiesFormat] = ..., + tags: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.FirstPartyServiceTagPropertiesFormat(_Model): + failed_reason: Optional[str] + provisioning_state: Optional[Union[str, ProvisioningState]] + resource_guid: Optional[str] + value: str + + @overload + def __init__( + self, + *, + value: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.FlowLog(Resource): etag: Optional[str] id: str @@ -23854,6 +25016,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.FrontendIPConfigurationPropertiesFormat(_Model): ddos_settings: Optional[DdosFrontendIpConfigurationSettings] + enable_connection_tracking: Optional[bool] gateway_load_balancer: Optional[SubResource] inbound_nat_pools: Optional[list[SubResource]] inbound_nat_rules: Optional[list[SubResource]] @@ -23872,6 +25035,7 @@ namespace azure.mgmt.network.models self, *, ddos_settings: Optional[DdosFrontendIpConfigurationSettings] = ..., + enable_connection_tracking: Optional[bool] = ..., gateway_load_balancer: Optional[SubResource] = ..., private_ip_address: Optional[str] = ..., private_ip_address_version: Optional[Union[str, IPVersion]] = ..., @@ -23901,6 +25065,33 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.GatewayEffectiveRoute(_Model): + address_prefixes: Optional[list[str]] + local_address: Optional[str] + next_hop_ip_address: Optional[str] + next_hop_type: Optional[Union[str, GatewayEffectiveRouteNextHopType]] + + + class azure.mgmt.network.models.GatewayEffectiveRouteListResult(_Model): + value: Optional[list[GatewayEffectiveRoute]] + + @overload + def __init__( + self, + *, + value: Optional[list[GatewayEffectiveRoute]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.GatewayEffectiveRouteNextHopType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + TUNNEL = "Tunnel" + UNKNOWN = "Unknown" + VIRTUAL_NETWORK = "VirtualNetwork" + + class azure.mgmt.network.models.GatewayLoadBalancerTunnelInterface(_Model): identifier: Optional[int] port: Optional[int] @@ -24047,6 +25238,36 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest(_Model): + customer_name: str + members: Optional[list[str]] + + @overload + def __init__( + self, + *, + customer_name: str, + members: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult(_Model): + encoded_content: Optional[str] + + @overload + def __init__( + self, + *, + encoded_content: Optional[str] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest(_Model): customer_name: str @@ -24478,6 +25699,7 @@ namespace azure.mgmt.network.models allow_remote_vnet_to_use_hub_vnet_gateways: Optional[bool] connection_policy: Optional[SubResource] enable_internet_security: Optional[bool] + enable_only_ipv6_peering: Optional[Union[str, EnableOnlyIpv6PeeringState]] provisioning_state: Optional[Union[str, ProvisioningState]] remote_virtual_network: Optional[SubResource] routing_configuration: Optional[RoutingConfiguration] @@ -24490,6 +25712,7 @@ namespace azure.mgmt.network.models allow_remote_vnet_to_use_hub_vnet_gateways: Optional[bool] = ..., connection_policy: Optional[SubResource] = ..., enable_internet_security: Optional[bool] = ..., + enable_only_ipv6_peering: Optional[Union[str, EnableOnlyIpv6PeeringState]] = ..., remote_virtual_network: Optional[SubResource] = ..., routing_configuration: Optional[RoutingConfiguration] = ... ) -> None: ... @@ -25142,6 +26365,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.IpTag(_Model): + first_party_service_tag_id: Optional[str] ip_tag_type: Optional[str] tag: Optional[str] @@ -25149,6 +26373,7 @@ namespace azure.mgmt.network.models def __init__( self, *, + first_party_service_tag_id: Optional[str] = ..., ip_tag_type: Optional[str] = ..., tag: Optional[str] = ... ) -> None: ... @@ -25391,6 +26616,47 @@ namespace azure.mgmt.network.models USER_DEFINED_ROUTE = "UserDefinedRoute" + class azure.mgmt.network.models.KubeLabelSelector(_Model): + match_expressions: Optional[list[LabelSelectorExpression]] + match_labels: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + match_expressions: Optional[list[LabelSelectorExpression]] = ..., + match_labels: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.LabelSelectorExpression(_Model): + key: Optional[str] + operator: Optional[Union[str, LabelSelectorOperator]] + values_property: Optional[list[str]] + + @overload + def __init__( + self, + *, + key: Optional[str] = ..., + operator: Optional[Union[str, LabelSelectorOperator]] = ..., + values_property: Optional[list[str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.LabelSelectorOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): + DOES_NOT_EXIST = "DoesNotExist" + EXISTS = "Exists" + IN = "In" + NOT_IN = "NotIn" + + class azure.mgmt.network.models.LoadBalancer(Resource): etag: Optional[str] extended_location: Optional[ExtendedLocation] @@ -25522,6 +26788,10 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.LoadBalancerMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + ADVANCED = "Advanced" + + class azure.mgmt.network.models.LoadBalancerOutboundRuleProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): ALL = "All" TCP = "Tcp" @@ -25534,6 +26804,7 @@ namespace azure.mgmt.network.models inbound_nat_pools: Optional[list[InboundNatPool]] inbound_nat_rules: Optional[list[InboundNatRule]] load_balancing_rules: Optional[list[LoadBalancingRule]] + mode: Optional[Union[str, LoadBalancerMode]] outbound_rules: Optional[list[OutboundRule]] probes: Optional[list[Probe]] provisioning_state: Optional[Union[str, ProvisioningState]] @@ -25549,6 +26820,7 @@ namespace azure.mgmt.network.models inbound_nat_pools: Optional[list[InboundNatPool]] = ..., inbound_nat_rules: Optional[list[InboundNatRule]] = ..., load_balancing_rules: Optional[list[LoadBalancingRule]] = ..., + mode: Optional[Union[str, LoadBalancerMode]] = ..., outbound_rules: Optional[list[OutboundRule]] = ..., probes: Optional[list[Probe]] = ..., scope: Optional[Union[str, LoadBalancerScope]] = ... @@ -25582,6 +26854,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.LoadBalancerSkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta): BASIC = "Basic" GATEWAY = "Gateway" + SERVICE = "Service" STANDARD = "Standard" @@ -26030,6 +27303,55 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.MigrationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + MIGRATE_TO_NEW_ILB_ARCHITECTURE = "MigrateToNewILBArchitecture" + MIGRATE_TO_NEW_OS_VERSION = "MigrateToNewOSVersion" + + + class azure.mgmt.network.models.MoveIpConfigurationItem(_Model): + source_ip_configuration: MoveIpConfigurationResourceReference + target_ip_configuration: MoveIpConfigurationResourceReference + + @overload + def __init__( + self, + *, + source_ip_configuration: MoveIpConfigurationResourceReference, + target_ip_configuration: MoveIpConfigurationResourceReference + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.MoveIpConfigurationResourceReference(_Model): + id: str + + @overload + def __init__( + self, + *, + id: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.MoveIpConfigurationsRequest(_Model): + move_ip_configuration_items: list[MoveIpConfigurationItem] + + @overload + def __init__( + self, + *, + move_ip_configuration_items: list[MoveIpConfigurationItem] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.Nat64State(str, Enum, metaclass=CaseInsensitiveEnumMeta): DISABLED = "Disabled" ENABLED = "Enabled" @@ -26940,6 +28262,7 @@ namespace azure.mgmt.network.models rule_type: Literal[FirewallPolicyRuleType.NETWORK_RULE] source_addresses: Optional[list[str]] source_ip_groups: Optional[list[str]] + source_kube_selector_groups: Optional[list[str]] @overload def __init__( @@ -26953,7 +28276,8 @@ namespace azure.mgmt.network.models ip_protocols: Optional[list[Union[str, FirewallPolicyRuleNetworkProtocol]]] = ..., name: Optional[str] = ..., source_addresses: Optional[list[str]] = ..., - source_ip_groups: Optional[list[str]] = ... + source_ip_groups: Optional[list[str]] = ..., + source_kube_selector_groups: Optional[list[str]] = ... ) -> None: ... @overload @@ -27138,6 +28462,34 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationProperties(_Model): + migration_type: Union[str, MigrationType] + + @overload + def __init__( + self, + *, + migration_type: Union[str, MigrationType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest(_Model): + properties: Optional[NetworkVirtualApplianceCommitMigrationProperties] + + @overload + def __init__( + self, + *, + properties: Optional[NetworkVirtualApplianceCommitMigrationProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.NetworkVirtualApplianceConnection(SubResource): id: str name: Optional[str] @@ -27189,6 +28541,34 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationProperties(_Model): + migration_type: Union[str, MigrationType] + + @overload + def __init__( + self, + *, + migration_type: Union[str, MigrationType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest(_Model): + properties: Optional[NetworkVirtualApplianceExecuteMigrationProperties] + + @overload + def __init__( + self, + *, + properties: Optional[NetworkVirtualApplianceExecuteMigrationProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.NetworkVirtualApplianceInstanceId(_Model): instance_id: Optional[int] @@ -27217,9 +28597,59 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.NetworkVirtualApplianceMigrationStatus(_Model): + migration_phase: Optional[str] + migration_phase_status: Optional[str] + migration_type: Optional[Union[str, MigrationType]] + + @overload + def __init__( + self, + *, + migration_phase: Optional[str] = ..., + migration_phase_status: Optional[str] = ..., + migration_type: Optional[Union[str, MigrationType]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationProperties(_Model): + market_place_version: Optional[str] + migration_type: Union[str, MigrationType] + + @overload + def __init__( + self, + *, + market_place_version: Optional[str] = ..., + migration_type: Union[str, MigrationType] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest(_Model): + properties: Optional[NetworkVirtualAppliancePrepareMigrationProperties] + + @overload + def __init__( + self, + *, + properties: Optional[NetworkVirtualAppliancePrepareMigrationProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.NetworkVirtualAppliancePropertiesFormat(_Model): additional_nics: Optional[list[VirtualApplianceAdditionalNicProperties]] + address_family: Optional[list[Union[str, IPVersion]]] address_prefix: Optional[str] + address_prefix_v6: Optional[str] boot_strap_configuration_blobs: Optional[list[str]] cloud_init_configuration: Optional[str] cloud_init_configuration_blobs: Optional[list[str]] @@ -27227,11 +28657,13 @@ namespace azure.mgmt.network.models deployment_type: Optional[str] inbound_security_rules: Optional[list[SubResource]] internet_ingress_public_ips: Optional[list[InternetIngressPublicIpsProperties]] + migration_status: Optional[NetworkVirtualApplianceMigrationStatus] network_profile: Optional[NetworkVirtualAppliancePropertiesFormatNetworkProfile] nva_interface_configurations: Optional[list[NvaInterfaceConfigurationsProperties]] nva_sku: Optional[VirtualApplianceSkuProperties] partner_managed_resource: Optional[PartnerManagedResourceProperties] private_ip_address: Optional[str] + private_ip_address_v6: Optional[str] provisioning_state: Optional[Union[str, ProvisioningState]] ssh_public_key: Optional[str] virtual_appliance_asn: Optional[int] @@ -27245,6 +28677,7 @@ namespace azure.mgmt.network.models self, *, additional_nics: Optional[list[VirtualApplianceAdditionalNicProperties]] = ..., + address_family: Optional[list[Union[str, IPVersion]]] = ..., boot_strap_configuration_blobs: Optional[list[str]] = ..., cloud_init_configuration: Optional[str] = ..., cloud_init_configuration_blobs: Optional[list[str]] = ..., @@ -28025,6 +29458,20 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.OutputSettings(_Model): + storage_account_settings: Optional[StorageAccountSettings] + + @overload + def __init__( + self, + *, + storage_account_settings: Optional[StorageAccountSettings] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.OutputType(str, Enum, metaclass=CaseInsensitiveEnumMeta): WORKSPACE = "Workspace" @@ -29334,6 +30781,22 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.ProtocolSettings(_Model): + http_configuration: Optional[HTTPConfiguration] + protocol: Optional[Union[str, Protocol]] + + @overload + def __init__( + self, + *, + http_configuration: Optional[HTTPConfiguration] = ..., + protocol: Optional[Union[str, Protocol]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.ProtocolType(str, Enum, metaclass=CaseInsensitiveEnumMeta): AH = "Ah" ALL = "All" @@ -29476,6 +30939,7 @@ namespace azure.mgmt.network.models public_ip_prefix: Optional[SubResource] resource_guid: Optional[str] service_public_ip_address: Optional[PublicIPAddress] + upgraded_to_v2: Optional[bool] @overload def __init__( @@ -29575,6 +31039,7 @@ namespace azure.mgmt.network.models public_ip_address_version: Optional[Union[str, IPVersion]] public_ip_addresses: Optional[list[ReferencedPublicIpAddress]] resource_guid: Optional[str] + upgraded_to_v2: Optional[bool] @overload def __init__( @@ -29944,6 +31409,12 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.ResiliencyLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + HIGH = "High" + MAXIMUM = "Maximum" + STANDARD = "Standard" + + class azure.mgmt.network.models.ResiliencyModel(str, Enum, metaclass=CaseInsensitiveEnumMeta): MULTI_HOMED = "MultiHomed" SINGLE_HOMED = "SingleHomed" @@ -31464,6 +32935,10 @@ namespace azure.mgmt.network.models ) -> None: ... + class azure.mgmt.network.models.ServiceGatewayActionOkResponseBody(_Model): + status: Optional[str] + + class azure.mgmt.network.models.ServiceGatewayAddress(_Model): address: Optional[str] services: Optional[list[str]] @@ -31652,6 +33127,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.ServiceProviderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): DEPROVISIONING = "Deprovisioning" + DE_PROVISIONED = "DeProvisioned" NOT_PROVISIONED = "NotProvisioned" PROVISIONED = "Provisioned" PROVISIONING = "Provisioning" @@ -32006,6 +33482,22 @@ namespace azure.mgmt.network.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.network.models.StorageAccountSettings(_Model): + path: Optional[str] + storage_account_id: str + + @overload + def __init__( + self, + *, + path: Optional[str] = ..., + storage_account_id: str + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.network.models.SubResource(_Model): id: Optional[str] @@ -32945,7 +34437,9 @@ namespace azure.mgmt.network.models name: Optional[str] nic_type: Optional[Union[str, NicTypeInResponse]] private_ip_address: Optional[str] + private_ip_address_v6: Optional[str] public_ip_address: Optional[str] + public_ip_address_v6: Optional[str] class azure.mgmt.network.models.VirtualApplianceSite(SubResourceModel): @@ -33095,6 +34589,7 @@ namespace azure.mgmt.network.models class azure.mgmt.network.models.VirtualHubProperties(_Model): address_prefix: Optional[str] + address_prefix_v6: Optional[str] allow_branch_to_branch_traffic: Optional[bool] azure_firewall: Optional[SubResource] bgp_connections: Optional[list[SubResource]] @@ -33114,6 +34609,7 @@ namespace azure.mgmt.network.models virtual_router_asn: Optional[int] virtual_router_auto_scale_configuration: Optional[VirtualRouterAutoScaleConfiguration] virtual_router_ips: Optional[list[str]] + virtual_router_ips_v6: Optional[list[str]] virtual_wan: Optional[SubResource] vpn_gateway: Optional[SubResource] @@ -33122,6 +34618,7 @@ namespace azure.mgmt.network.models self, *, address_prefix: Optional[str] = ..., + address_prefix_v6: Optional[str] = ..., allow_branch_to_branch_traffic: Optional[bool] = ..., azure_firewall: Optional[SubResource] = ..., express_route_gateway: Optional[SubResource] = ..., @@ -33136,6 +34633,7 @@ namespace azure.mgmt.network.models virtual_router_asn: Optional[int] = ..., virtual_router_auto_scale_configuration: Optional[VirtualRouterAutoScaleConfiguration] = ..., virtual_router_ips: Optional[list[str]] = ..., + virtual_router_ips_v6: Optional[list[str]] = ..., virtual_wan: Optional[SubResource] = ..., vpn_gateway: Optional[SubResource] = ... ) -> None: ... @@ -35813,6 +37311,77 @@ namespace azure.mgmt.network.models namespace azure.mgmt.network.operations + class azure.mgmt.network.operations.AddressPrefixSetsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AddressPrefixSet]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AddressPrefixSet]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[AddressPrefixSet]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> AddressPrefixSet: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + application_security_group_name: str, + **kwargs: Any + ) -> ItemPaged[AddressPrefixSet]: ... + + class azure.mgmt.network.operations.AdminRuleCollectionsOperations: def __init__( @@ -35853,7 +37422,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: AdminRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -35938,7 +37507,7 @@ namespace azure.mgmt.network.operations configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: JSON, + admin_rule: BaseAdminRule, *, content_type: str = "application/json", **kwargs: Any @@ -36018,7 +37587,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: JSON, + parameters: ApplicationGatewayPrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -36138,7 +37707,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, application_gateway_name: str, - probe_request: JSON, + probe_request: ApplicationGatewayOnDemandProbe, *, content_type: str = "application/json", expand: Optional[str] = ..., @@ -36173,7 +37742,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: ApplicationGateway, *, content_type: str = "application/json", **kwargs: Any @@ -36273,7 +37842,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -36315,7 +37884,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: ApplicationSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -36374,7 +37943,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -36526,7 +38095,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: AzureFirewall, *, content_type: str = "application/json", create_afc_control_plane: Optional[bool] = ..., @@ -36577,7 +38146,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -36610,7 +38179,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -36643,7 +38212,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -36703,7 +38272,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: BastionHost, *, content_type: str = "application/json", **kwargs: Any @@ -36744,7 +38313,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -36818,7 +38387,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, commit_name: str, - resource: JSON, + resource: Commit, *, content_type: str = "application/json", **kwargs: Any @@ -36892,7 +38461,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, - vpn_server_configuration_policy_group_parameters: JSON, + vpn_server_configuration_policy_group_parameters: VpnServerConfigurationPolicyGroup, *, content_type: str = "application/json", **kwargs: Any @@ -36964,7 +38533,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: ConnectionMonitor, *, content_type: str = "application/json", migrate: Optional[str] = ..., @@ -37037,7 +38606,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -37082,7 +38651,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, - resource: JSON, + resource: ConnectionPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -37164,7 +38733,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - connectivity_configuration: JSON, + connectivity_configuration: ConnectivityConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -37227,7 +38796,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: CustomIpPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -37288,7 +38857,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -37330,7 +38899,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: DdosCustomPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -37364,7 +38933,7 @@ namespace azure.mgmt.network.operations ) -> DdosCustomPolicy: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def list( self, resource_group_name: str, @@ -37372,7 +38941,7 @@ namespace azure.mgmt.network.operations ) -> ItemPaged[DdosCustomPolicy]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def list_all(self, **kwargs: Any) -> ItemPaged[DdosCustomPolicy]: ... @overload @@ -37391,7 +38960,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -37433,7 +39002,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: DdosProtectionPlan, *, content_type: str = "application/json", **kwargs: Any @@ -37492,7 +39061,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -37560,7 +39129,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, dscp_configuration_name: str, - parameters: JSON, + parameters: DscpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -37630,7 +39199,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: ExpressRouteCircuitAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -37703,7 +39272,7 @@ namespace azure.mgmt.network.operations circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: JSON, + express_route_circuit_connection_parameters: ExpressRouteCircuitConnection, *, content_type: str = "application/json", **kwargs: Any @@ -37778,7 +39347,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: ExpressRouteCircuitPeering, *, content_type: str = "application/json", **kwargs: Any @@ -37847,7 +39416,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: ExpressRouteCircuit, *, content_type: str = "application/json", **kwargs: Any @@ -37873,7 +39442,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'failover_test_type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'failover_test_type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_circuit_link_failover_all_tests_details( self, resource_group_name: str, @@ -37885,7 +39454,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[List[ExpressRouteLinkFailoverAllTestsDetails]]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_circuit_link_failover_single_test_details( self, resource_group_name: str, @@ -37928,7 +39497,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[ExpressRouteCircuitsRoutesTableSummaryListResult]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'circuit_name', 'link_type', 'circuit_test_category', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_start_circuit_link_failover_test( self, resource_group_name: str, @@ -37955,7 +39524,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, circuit_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteLinkFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -38023,7 +39592,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -38067,7 +39636,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: JSON, + put_express_route_connection_parameters: ExpressRouteConnection, *, content_type: str = "application/json", **kwargs: Any @@ -38138,7 +39707,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: ExpressRouteCrossConnectionPeering, *, content_type: str = "application/json", **kwargs: Any @@ -38207,7 +39776,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, cross_connection_name: str, - parameters: JSON, + parameters: ExpressRouteCrossConnection, *, content_type: str = "application/json", **kwargs: Any @@ -38293,7 +39862,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: JSON, + cross_connection_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -38335,7 +39904,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_gateway_name: str, - put_express_route_gateway_parameters: JSON, + put_express_route_gateway_parameters: ExpressRouteGateway, *, content_type: str = "application/json", **kwargs: Any @@ -38361,7 +39930,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'type', 'fetch_latest', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_failover_all_tests_details( self, resource_group_name: str, @@ -38373,7 +39942,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[List[ExpressRouteFailoverTestDetails]]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'failover_test_id', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_failover_single_test_details( self, resource_group_name: str, @@ -38385,7 +39954,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[List[ExpressRouteFailoverSingleTestDetails]]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_resiliency_information( self, resource_group_name: str, @@ -38396,7 +39965,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[GatewayResiliencyInformation]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'attempt_refresh', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_get_routes_information( self, resource_group_name: str, @@ -38407,7 +39976,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[GatewayRouteSetsInformation]: ... @distributed_trace - @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'accept']}, api_versions_list=['2025-07-01']) + @api_version_validation(method_added_on='2025-07-01', params_added_on={'2025-07-01': ['api_version', 'subscription_id', 'resource_group_name', 'express_route_gateway_name', 'peering_location', 'accept']}, api_versions_list=['2025-07-01', '2025-09-01']) def begin_start_site_failover_test( self, resource_group_name: str, @@ -38433,7 +40002,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_gateway_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -38466,7 +40035,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_gateway_name: str, - express_route_gateway_parameters: JSON, + express_route_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -38502,6 +40071,176 @@ namespace azure.mgmt.network.operations def list_by_subscription(self, **kwargs: Any) -> ExpressRouteGatewayList: ... + class azure.mgmt.network.operations.ExpressRouteLagsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: ExpressRouteLag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ExpressRouteLag]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: ExpressRouteLag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ExpressRouteLag]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + express_route_lag_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ExpressRouteLag]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> GenerateExpressRouteLagsLOAResult: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> ExpressRouteLag: ... + + @distributed_trace + def links_get( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + **kwargs: Any + ) -> ExpressRouteLagLink: ... + + @distributed_trace + def links_list( + self, + resource_group_name: str, + express_route_lag_name: str, + **kwargs: Any + ) -> ItemPaged[ExpressRouteLagLink]: ... + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged[ExpressRouteLag]: ... + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[ExpressRouteLag]: ... + + @distributed_trace + def members_get( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + member_name: str, + **kwargs: Any + ) -> ExpressRouteLagMember: ... + + @distributed_trace + def members_list( + self, + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + **kwargs: Any + ) -> ItemPaged[ExpressRouteLagMember]: ... + + @overload + def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: ExpressRouteLagUpdateTagsOrIdentityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + @overload + def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: ExpressRouteLagUpdateTagsOrIdentityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + @overload + def update( + self, + resource_group_name: str, + express_route_lag_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ExpressRouteLag: ... + + class azure.mgmt.network.operations.ExpressRouteLinksOperations: def __init__( @@ -38554,7 +40293,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: ExpressRoutePortAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -38642,7 +40381,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: ExpressRoutePort, *, content_type: str = "application/json", **kwargs: Any @@ -38683,7 +40422,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_port_name: str, - request: JSON, + request: GenerateExpressRoutePortsLOARequest, *, content_type: str = "application/json", **kwargs: Any @@ -38734,7 +40473,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -38796,6 +40535,7 @@ namespace azure.mgmt.network.operations firewall_policy_name: str, parameters: FirewallPolicy, *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> LROPoller[FirewallPolicy]: ... @@ -38805,8 +40545,9 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: FirewallPolicy, *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> LROPoller[FirewallPolicy]: ... @@ -38818,6 +40559,7 @@ namespace azure.mgmt.network.operations firewall_policy_name: str, parameters: IO[bytes], *, + afc_managed_sync: Optional[bool] = ..., content_type: str = "application/json", **kwargs: Any ) -> LROPoller[FirewallPolicy]: ... @@ -38866,7 +40608,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -38925,7 +40667,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: FirewallPolicyDraft, *, content_type: str = "application/json", **kwargs: Any @@ -38983,7 +40725,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignatureOverridesFilterValuesQuery, *, content_type: str = "application/json", **kwargs: Any @@ -39025,7 +40767,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: IDPSQueryObject, *, content_type: str = "application/json", **kwargs: Any @@ -39083,7 +40825,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -39116,7 +40858,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -39134,6 +40876,77 @@ namespace azure.mgmt.network.operations ) -> SignaturesOverrides: ... + class azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirewallPolicyKubeSelectorGroup]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + **kwargs: Any + ) -> FirewallPolicyKubeSelectorGroup: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + firewall_policy_name: str, + **kwargs: Any + ) -> ItemPaged[FirewallPolicyKubeSelectorGroup]: ... + + class azure.mgmt.network.operations.FirewallPolicyRuleCollectionGroupDraftsOperations: def __init__( @@ -39160,7 +40973,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: FirewallPolicyRuleCollectionGroupDraft, *, content_type: str = "application/json", **kwargs: Any @@ -39223,7 +41036,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: FirewallPolicyRuleCollectionGroup, *, content_type: str = "application/json", **kwargs: Any @@ -39268,6 +41081,107 @@ namespace azure.mgmt.network.operations ) -> ItemPaged[FirewallPolicyRuleCollectionGroup]: ... + class azure.mgmt.network.operations.FirstPartyServiceTagsOperations: + + def __init__( + self, + *args, + **kwargs + ) -> None: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + first_party_service_tag_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[FirstPartyServiceTag]: ... + + @distributed_trace + def get( + self, + resource_group_name: str, + first_party_service_tag_name: str, + **kwargs: Any + ) -> FirstPartyServiceTag: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[FirstPartyServiceTag]: ... + + @distributed_trace + def list_all(self, **kwargs: Any) -> ItemPaged[FirstPartyServiceTag]: ... + + class azure.mgmt.network.operations.FlowLogsOperations: def __init__( @@ -39294,7 +41208,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: FlowLog, *, content_type: str = "application/json", **kwargs: Any @@ -39356,7 +41270,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -39401,7 +41315,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, route_table_name: str, - route_table_parameters: JSON, + route_table_parameters: HubRouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -39472,7 +41386,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: JSON, + hub_virtual_network_connection_parameters: HubVirtualNetworkConnection, *, content_type: str = "application/json", **kwargs: Any @@ -39543,7 +41457,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, - inbound_nat_rule_parameters: JSON, + inbound_nat_rule_parameters: InboundNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -39616,7 +41530,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: JSON, + parameters: InboundSecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -39676,7 +41590,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: InterconnectGroup, *, content_type: str = "application/json", **kwargs: Any @@ -39735,7 +41649,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -39777,7 +41691,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: IpAllocation, *, content_type: str = "application/json", **kwargs: Any @@ -39838,7 +41752,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -39880,7 +41794,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: IpGroup, *, content_type: str = "application/json", **kwargs: Any @@ -39941,7 +41855,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -39987,7 +41901,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, pool_name: str, - body: JSON, + body: IpamPool, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -40082,7 +41996,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, pool_name: str, - body: Optional[JSON] = None, + body: Optional[IpamPoolUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -40131,7 +42045,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: JSON, + parameters: BackendAddressPool, *, content_type: str = "application/json", **kwargs: Any @@ -40330,7 +42244,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: LoadBalancer, *, content_type: str = "application/json", **kwargs: Any @@ -40373,7 +42287,7 @@ namespace azure.mgmt.network.operations group_name: str, load_balancer_name: str, backend_pool_name: str, - parameters: JSON, + parameters: QueryInboundNatRulePortMappingRequest, *, content_type: str = "application/json", **kwargs: Any @@ -40405,7 +42319,7 @@ namespace azure.mgmt.network.operations def begin_swap_public_ip_addresses( self, location: str, - parameters: JSON, + parameters: LoadBalancerVipSwapRequest, *, content_type: str = "application/json", **kwargs: Any @@ -40422,7 +42336,7 @@ namespace azure.mgmt.network.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(params_added_on={'2025-07-01': ['detail_level']}, api_versions_list=['2025-05-01', '2025-07-01']) + @api_version_validation(params_added_on={'2025-07-01': ['detail_level']}, api_versions_list=['2025-05-01', '2025-07-01', '2025-09-01']) def get( self, resource_group_name: str, @@ -40459,7 +42373,7 @@ namespace azure.mgmt.network.operations self, group_name: str, load_balancer_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[MigrateLoadBalancerToIpBasedRequest] = None, *, content_type: str = "application/json", **kwargs: Any @@ -40492,7 +42406,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -40534,7 +42448,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: LocalNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -40590,7 +42504,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -40632,7 +42546,7 @@ namespace azure.mgmt.network.operations self, management_group_id: str, network_manager_connection_name: str, - parameters: JSON, + parameters: NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -40700,7 +42614,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: NatGateway, *, content_type: str = "application/json", **kwargs: Any @@ -40761,7 +42675,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -40805,7 +42719,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: VpnGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -40889,7 +42803,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, network_group_name: str, - parameters: JSON, + parameters: NetworkGroup, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -41001,7 +42915,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_interface_name: str, tap_configuration_name: str, - tap_configuration_parameters: JSON, + tap_configuration_parameters: NetworkInterfaceTapConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -41070,7 +42984,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: NetworkInterface, *, content_type: str = "application/json", **kwargs: Any @@ -41230,7 +43144,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -41272,7 +43186,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManagerCommit, *, content_type: str = "application/json", **kwargs: Any @@ -41315,7 +43229,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManagerDeploymentStatusParameter, *, content_type: str = "application/json", top: Optional[int] = ..., @@ -41372,7 +43286,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - routing_configuration: JSON, + routing_configuration: NetworkManagerRoutingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -41445,7 +43359,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: NetworkManager, *, content_type: str = "application/json", **kwargs: Any @@ -41505,7 +43419,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: PatchObject, *, content_type: str = "application/json", **kwargs: Any @@ -41555,7 +43469,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: NetworkProfile, *, content_type: str = "application/json", **kwargs: Any @@ -41608,7 +43522,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -41650,7 +43564,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: NetworkSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -41711,7 +43625,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -41757,7 +43671,7 @@ namespace azure.mgmt.network.operations network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: JSON, + parameters: NspAccessRule, *, content_type: str = "application/json", **kwargs: Any @@ -41862,7 +43776,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: JSON, + parameters: NspAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -41993,7 +43907,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: JSON, + parameters: NspLink, *, content_type: str = "application/json", **kwargs: Any @@ -42058,7 +43972,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: JSON, + parameters: NspLoggingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -42146,7 +44060,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: JSON, + parameters: NspProfile, *, content_type: str = "application/json", **kwargs: Any @@ -42244,7 +44158,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: NetworkSecurityPerimeter, *, content_type: str = "application/json", **kwargs: Any @@ -42304,7 +44218,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: UpdateTagsRequest, *, content_type: str = "application/json", **kwargs: Any @@ -42348,7 +44262,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, - network_virtual_appliance_connection_parameters: JSON, + network_virtual_appliance_connection_parameters: NetworkVirtualApplianceConnection, *, content_type: str = "application/json", **kwargs: Any @@ -42401,6 +44315,48 @@ namespace azure.mgmt.network.operations **kwargs ) -> None: ... + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_virtual_appliance_name']}, api_versions_list=['2025-09-01']) + def begin_abort_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @overload def begin_create_or_update( self, @@ -42417,7 +44373,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: NetworkVirtualAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -42442,6 +44398,39 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[None]: ... + @overload + def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @overload def begin_get_boot_diagnostic_logs( self, @@ -42458,7 +44447,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_virtual_appliance_name: str, - request: JSON, + request: NetworkVirtualApplianceBootDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42475,6 +44464,39 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[NetworkVirtualApplianceInstanceId]: ... + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @overload def begin_reimage( self, @@ -42491,7 +44513,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_virtual_appliance_instance_ids: Optional[NetworkVirtualApplianceInstanceIds] = None, *, content_type: str = "application/json", **kwargs: Any @@ -42524,7 +44546,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_virtual_appliance_instance_ids: Optional[NetworkVirtualApplianceInstanceIds] = None, *, content_type: str = "application/json", **kwargs: Any @@ -42577,7 +44599,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -42619,7 +44641,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: ConnectivityParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42636,6 +44658,62 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[ConnectivityInformation]: ... + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ConnectionAnalyzer]: ... + + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ConnectionAnalyzer]: ... + + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[ConnectionAnalyzer]: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name']}, api_versions_list=['2025-09-01']) + def begin_connection_analyzers_delete( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> LROPoller[None]: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name', 'accept']}, api_versions_list=['2025-09-01']) + def begin_connection_analyzers_query( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> LROPoller[ConnectionAnalyzerQueryStatusResult]: ... + @distributed_trace def begin_delete( self, @@ -42660,7 +44738,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: AzureReachabilityReportParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42693,7 +44771,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: FlowLogStatusParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42726,7 +44804,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NetworkConfigurationDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42759,7 +44837,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NextHopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42792,7 +44870,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42825,7 +44903,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: QueryTroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42858,7 +44936,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: SecurityGroupViewParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42891,7 +44969,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: AvailableProvidersListParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42924,7 +45002,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: FlowLogInformation, *, content_type: str = "application/json", **kwargs: Any @@ -42957,7 +45035,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: VerificationIPFlowParameters, *, content_type: str = "application/json", **kwargs: Any @@ -42974,6 +45052,61 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[VerificationIPFlowResult]: ... + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'connection_analyzer_name', 'accept']}, api_versions_list=['2025-09-01']) + def connection_analyzers_get( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'network_watcher_name', 'accept']}, api_versions_list=['2025-09-01']) + def connection_analyzers_list( + self, + resource_group_name: str, + network_watcher_name: str, + **kwargs: Any + ) -> ItemPaged[ConnectionAnalyzer]: ... + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> ConnectionAnalyzer: ... + @overload def create_or_update( self, @@ -42990,7 +45123,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: NetworkWatcher, *, content_type: str = "application/json", **kwargs: Any @@ -43031,7 +45164,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TopologyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -43074,7 +45207,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -43128,7 +45261,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: P2SVpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -43169,7 +45302,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, p2_s_vpn_gateway_name: str, - request: JSON, + request: P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -43202,7 +45335,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - parameters: JSON, + parameters: P2SVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -43243,7 +45376,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - request: JSON, + request: P2SVpnConnectionHealthRequest, *, content_type: str = "application/json", **kwargs: Any @@ -43284,7 +45417,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -43346,7 +45479,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: JSON, + parameters: PacketCapture, *, content_type: str = "application/json", **kwargs: Any @@ -43463,7 +45596,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: JSON, + parameters: PrivateDnsZoneGroup, *, content_type: str = "application/json", **kwargs: Any @@ -43532,7 +45665,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, private_endpoint_name: str, - parameters: JSON, + parameters: PrivateEndpoint, *, content_type: str = "application/json", **kwargs: Any @@ -43600,7 +45733,7 @@ namespace azure.mgmt.network.operations def begin_check_private_link_service_visibility( self, location: str, - parameters: JSON, + parameters: CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any @@ -43632,7 +45765,7 @@ namespace azure.mgmt.network.operations self, location: str, resource_group_name: str, - parameters: JSON, + parameters: CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any @@ -43665,7 +45798,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, service_name: str, - parameters: JSON, + parameters: PrivateLinkService, *, content_type: str = "application/json", **kwargs: Any @@ -43771,7 +45904,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, service_name: str, pe_connection_name: str, - parameters: JSON, + parameters: PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -43814,7 +45947,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: PublicIPAddress, *, content_type: str = "application/json", **kwargs: Any @@ -43863,7 +45996,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: DisassociateCloudServicePublicIpRequest, *, content_type: str = "application/json", **kwargs: Any @@ -43896,7 +46029,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: ReserveCloudServicePublicIpAddressRequest, *, content_type: str = "application/json", **kwargs: Any @@ -44015,7 +46148,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -44057,7 +46190,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: PublicIPPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -44118,7 +46251,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -44164,7 +46297,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, workspace_name: str, reachability_analysis_intent_name: str, - body: JSON, + body: ReachabilityAnalysisIntent, *, content_type: str = "application/json", **kwargs: Any @@ -44257,7 +46390,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, workspace_name: str, reachability_analysis_run_name: str, - body: JSON, + body: ReachabilityAnalysisRun, *, content_type: str = "application/json", **kwargs: Any @@ -44346,7 +46479,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: JSON, + route_filter_rule_parameters: RouteFilterRule, *, content_type: str = "application/json", **kwargs: Any @@ -44415,7 +46548,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, route_filter_name: str, - route_filter_parameters: JSON, + route_filter_parameters: RouteFilter, *, content_type: str = "application/json", **kwargs: Any @@ -44476,7 +46609,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, route_filter_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -44520,7 +46653,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, route_map_name: str, - route_map_parameters: JSON, + route_map_parameters: RouteMap, *, content_type: str = "application/json", **kwargs: Any @@ -44589,7 +46722,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: RouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -44650,7 +46783,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -44694,7 +46827,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, route_table_name: str, route_name: str, - route_parameters: JSON, + route_parameters: Route, *, content_type: str = "application/json", **kwargs: Any @@ -44765,7 +46898,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: JSON, + routing_intent_parameters: RoutingIntent, *, content_type: str = "application/json", **kwargs: Any @@ -44850,7 +46983,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: RoutingRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -44935,7 +47068,7 @@ namespace azure.mgmt.network.operations configuration_name: str, rule_collection_name: str, rule_name: str, - routing_rule: JSON, + routing_rule: RoutingRule, *, content_type: str = "application/json", **kwargs: Any @@ -45006,7 +47139,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, scope_connection_name: str, - parameters: JSON, + parameters: ScopeConnection, *, content_type: str = "application/json", **kwargs: Any @@ -45091,7 +47224,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: JSON, + security_admin_configuration: SecurityAdminConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -45154,7 +47287,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: SecurityPartnerProvider, *, content_type: str = "application/json", **kwargs: Any @@ -45213,7 +47346,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -45257,7 +47390,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_security_group_name: str, security_rule_name: str, - security_rule_parameters: JSON, + security_rule_parameters: SecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -45339,7 +47472,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, configuration_name: str, - security_user_configuration: JSON, + security_user_configuration: SecurityUserConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -45418,7 +47551,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, configuration_name: str, rule_collection_name: str, - security_user_rule_collection: JSON, + security_user_rule_collection: SecurityUserRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -45503,7 +47636,7 @@ namespace azure.mgmt.network.operations configuration_name: str, rule_collection_name: str, rule_name: str, - security_user_rule: JSON, + security_user_rule: SecurityUserRule, *, content_type: str = "application/json", **kwargs: Any @@ -45590,7 +47723,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: ServiceEndpointPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -45651,7 +47784,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -45695,7 +47828,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: JSON, + service_endpoint_policy_definitions: ServiceEndpointPolicyDefinition, *, content_type: str = "application/json", **kwargs: Any @@ -45764,7 +47897,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: ServiceGateway, *, content_type: str = "application/json", **kwargs: Any @@ -45789,63 +47922,64 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[None]: ... - @overload - def begin_update_address_locations( + @distributed_trace + def get( self, resource_group_name: str, service_gateway_name: str, - parameters: ServiceGatewayUpdateAddressLocationsRequest, - *, - content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ServiceGateway: ... - @overload - def begin_update_address_locations( + @distributed_trace + def get_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ItemPaged[ServiceGatewayAddressLocationResponse]: ... - @overload - def begin_update_address_locations( + @distributed_trace + def get_services( self, resource_group_name: str, service_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ItemPaged[ServiceGatewayService]: ... + + @distributed_trace + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> ItemPaged[ServiceGateway]: ... + + @distributed_trace + def list_all(self, **kwargs: Any) -> ItemPaged[ServiceGateway]: ... @overload - def begin_update_services( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: ServiceGatewayUpdateServicesRequest, + parameters: ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload - def begin_update_services( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload - def begin_update_services( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, @@ -45853,41 +47987,40 @@ namespace azure.mgmt.network.operations *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace - def get( + @overload + def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: ServiceGatewayUpdateServicesRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> ServiceGateway: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace - def get_address_locations( + @overload + def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: ServiceGatewayUpdateServicesRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> ItemPaged[ServiceGatewayAddressLocationResponse]: ... + ) -> ServiceGatewayActionOkResponseBody: ... - @distributed_trace - def get_services( + @overload + def update_services( self, resource_group_name: str, service_gateway_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", **kwargs: Any - ) -> ItemPaged[ServiceGatewayService]: ... - - @distributed_trace - def list( - self, - resource_group_name: str, - **kwargs: Any - ) -> ItemPaged[ServiceGateway]: ... - - @distributed_trace - def list_all(self, **kwargs: Any) -> ItemPaged[ServiceGateway]: ... + ) -> ServiceGatewayActionOkResponseBody: ... @overload def update_tags( @@ -45905,7 +48038,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -45996,7 +48129,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, pool_name: str, static_cidr_name: str, - body: Optional[JSON] = None, + body: Optional[StaticCidr] = None, *, content_type: str = "application/json", **kwargs: Any @@ -46069,7 +48202,7 @@ namespace azure.mgmt.network.operations network_manager_name: str, network_group_name: str, static_member_name: str, - parameters: JSON, + parameters: StaticMember, *, content_type: str = "application/json", **kwargs: Any @@ -46173,7 +48306,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - subnet_parameters: JSON, + subnet_parameters: Subnet, *, content_type: str = "application/json", **kwargs: Any @@ -46218,7 +48351,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - prepare_network_policies_request_parameters: JSON, + prepare_network_policies_request_parameters: PrepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -46254,7 +48387,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_network_name: str, subnet_name: str, - unprepare_network_policies_request_parameters: JSON, + unprepare_network_policies_request_parameters: UnprepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -46314,7 +48447,7 @@ namespace azure.mgmt.network.operations def create_or_update( self, network_manager_connection_name: str, - parameters: JSON, + parameters: NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -46410,7 +48543,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, workspace_name: str, - body: JSON, + body: VerifierWorkspace, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -46475,7 +48608,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_manager_name: str, workspace_name: str, - body: Optional[JSON] = None, + body: Optional[VerifierWorkspaceUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = ..., @@ -46522,7 +48655,7 @@ namespace azure.mgmt.network.operations self, group_name: str, resource_name: str, - parameters: JSON, + parameters: SwapResource, *, content_type: str = "application/json", **kwargs: Any @@ -46582,7 +48715,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, network_virtual_appliance_name: str, site_name: str, - parameters: JSON, + parameters: VirtualApplianceSite, *, content_type: str = "application/json", **kwargs: Any @@ -46672,7 +48805,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: JSON, + parameters: BgpConnection, *, content_type: str = "application/json", **kwargs: Any @@ -46770,7 +48903,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: JSON, + parameters: HubIpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -46841,7 +48974,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: JSON, + virtual_hub_route_table_v2_parameters: VirtualHubRouteTableV2, *, content_type: str = "application/json", **kwargs: Any @@ -46910,7 +49043,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: VirtualHub, *, content_type: str = "application/json", **kwargs: Any @@ -46951,7 +49084,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_hub_name: str, - effective_routes_parameters: Optional[JSON] = None, + effective_routes_parameters: Optional[EffectiveRoutesParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -46984,7 +49117,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_hub_name: str, - get_inbound_routes_parameters: JSON, + get_inbound_routes_parameters: GetInboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47017,7 +49150,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_hub_name: str, - get_outbound_routes_parameters: JSON, + get_outbound_routes_parameters: GetOutboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47068,7 +49201,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -47110,7 +49243,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: VirtualNetworkAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -47169,7 +49302,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -47211,7 +49344,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VirtualNetworkGatewayConnection, *, content_type: str = "application/json", **kwargs: Any @@ -47268,7 +49401,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: ConnectionResetSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -47301,7 +49434,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: ConnectionSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -47334,7 +49467,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -47367,7 +49500,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47400,7 +49533,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -47467,7 +49600,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: VirtualNetworkGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -47536,7 +49669,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VirtualNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -47577,7 +49710,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - request: JSON, + request: P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -47610,7 +49743,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47643,7 +49776,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47680,6 +49813,15 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[BgpPeerStatusListResult]: ... + @distributed_trace + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'resource_group_name', 'virtual_network_gateway_name', 'accept']}, api_versions_list=['2025-09-01']) + def begin_get_effective_routes( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + **kwargs: Any + ) -> LROPoller[GatewayEffectiveRouteListResult]: ... + @distributed_trace def begin_get_failover_all_test_details( self, @@ -47794,7 +49936,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - migration_params: JSON, + migration_params: VirtualNetworkGatewayMigrationParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47845,7 +49987,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - vpnclient_ipsec_params: JSON, + vpnclient_ipsec_params: VpnClientIPsecParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47888,7 +50030,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -47921,7 +50063,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - stop_parameters: JSON, + stop_parameters: ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47954,7 +50096,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -47987,7 +50129,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48059,7 +50201,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: VpnDeviceScriptParameters, *, content_type: str = "application/json", **kwargs: Any @@ -48104,7 +50246,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, - virtual_network_peering_parameters: JSON, + virtual_network_peering_parameters: VirtualNetworkPeering, *, content_type: str = "application/json", sync_remote_address_space: Optional[Union[str, SyncRemoteAddressSpace]] = ..., @@ -48175,7 +50317,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, tap_name: str, - parameters: JSON, + parameters: VirtualNetworkTap, *, content_type: str = "application/json", **kwargs: Any @@ -48234,7 +50376,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, tap_name: str, - tap_parameters: JSON, + tap_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48276,7 +50418,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: VirtualNetwork, *, content_type: str = "application/json", **kwargs: Any @@ -48312,6 +50454,39 @@ namespace azure.mgmt.network.operations **kwargs: Any ) -> LROPoller[ItemPaged[PublicIpDdosProtectionStatusResult]]: ... + @overload + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + + @overload + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: ... + @distributed_trace def check_ip_address_availability( self, @@ -48366,7 +50541,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48410,7 +50585,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, virtual_router_name: str, peering_name: str, - parameters: JSON, + parameters: VirtualRouterPeering, *, content_type: str = "application/json", **kwargs: Any @@ -48479,7 +50654,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_router_name: str, - parameters: JSON, + parameters: VirtualRouter, *, content_type: str = "application/json", **kwargs: Any @@ -48549,7 +50724,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: VirtualWAN, *, content_type: str = "application/json", **kwargs: Any @@ -48608,7 +50783,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48652,7 +50827,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: JSON, + vpn_connection_parameters: VpnConnection, *, content_type: str = "application/json", **kwargs: Any @@ -48697,7 +50872,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnConnectionPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -48733,7 +50908,7 @@ namespace azure.mgmt.network.operations resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnConnectionPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -48793,7 +50968,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: VpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -48844,7 +51019,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnGatewayPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -48877,7 +51052,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[VpnGatewayPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -48910,7 +51085,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48994,7 +51169,7 @@ namespace azure.mgmt.network.operations gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: JSON, + connection_shared_key_parameters: ConnectionSharedKeyResult, *, content_type: str = "application/json", **kwargs: Any @@ -49094,7 +51269,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: VpnServerConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -49161,7 +51336,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -49248,7 +51423,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, virtual_wan_name: str, - request: JSON, + request: GetVpnSitesConfigurationRequest, *, content_type: str = "application/json", **kwargs: Any @@ -49290,7 +51465,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: VpnSite, *, content_type: str = "application/json", **kwargs: Any @@ -49349,7 +51524,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -49399,7 +51574,7 @@ namespace azure.mgmt.network.operations self, resource_group_name: str, policy_name: str, - parameters: JSON, + parameters: WebApplicationFirewallPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -49456,4 +51631,8600 @@ namespace azure.mgmt.network.operations def list_by_subscription(self, **kwargs: Any) -> ItemPaged[AzureWebCategory]: ... +namespace azure.mgmt.network.types + + class azure.mgmt.network.types.AadAuthenticationParameters(TypedDict, total=False): + key "aadAudience": str + key "aadIssuer": str + key "aadTenant": str + aadAudience: str + aadIssuer: str + aadTenant: str + + + class azure.mgmt.network.types.Action(TypedDict, total=False): + key "type": Union[str, RouteMapActionType] + parameters: list[Parameter] + type: Union[str, RouteMapActionType] + + + class azure.mgmt.network.types.ActiveConfigurationParameter(TypedDict, total=False): + key "skipToken": str + regions: list[str] + skipToken: str + + + class azure.mgmt.network.types.AddressPrefixItem(TypedDict, total=False): + key "addressPrefix": str + key "addressPrefixType": Union[str, AddressPrefixType] + addressPrefix: str + addressPrefixType: Union[str, AddressPrefixType] + + + class azure.mgmt.network.types.AddressPrefixSet(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AddressPrefixSetPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: AddressPrefixSetPropertiesFormat + type: str + + + class azure.mgmt.network.types.AddressPrefixSetPropertiesFormat(TypedDict, total=False): + key "addressPrefixes": Required[list[str]] + key "provisioningState": Union[str, ProvisioningState] + addressPrefixes: list[str] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.AddressSpace(TypedDict, total=False): + addressPrefixes: list[str] + ipamPoolPrefixAllocations: list[IpamPoolPrefixAllocation] + + + class azure.mgmt.network.types.AdminPropertiesFormat(TypedDict, total=False): + key "access": Required[Union[str, SecurityConfigurationRuleAccess]] + key "description": str + key "direction": Required[Union[str, SecurityConfigurationRuleDirection]] + key "priority": Required[int] + key "protocol": Required[Union[str, SecurityConfigurationRuleProtocol]] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + access: Union[str, SecurityConfigurationRuleAccess] + description: str + destinationPortRanges: list[str] + destinations: list[AddressPrefixItem] + direction: Union[str, SecurityConfigurationRuleDirection] + priority: int + protocol: Union[str, SecurityConfigurationRuleProtocol] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + sourcePortRanges: list[str] + sources: list[AddressPrefixItem] + + + class azure.mgmt.network.types.AdminRule(TypedDict, total=False): + key "etag": str + key "id": str + key "kind": Required[Literal[AdminRuleKind.CUSTOM]] + key "name": str + key "properties": ForwardRef('AdminPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + kind: Literal[AdminRuleKind.CUSTOM] + name: str + properties: AdminPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.AdminRuleCollection(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AdminRuleCollectionPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: AdminRuleCollectionPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.AdminRuleCollectionPropertiesFormat(TypedDict, total=False): + key "appliesToGroups": Required[list[NetworkManagerSecurityGroupItem]] + key "description": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + appliesToGroups: list[NetworkManagerSecurityGroupItem] + description: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.AdminRuleKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): + CUSTOM = "Custom" + DEFAULT = "Default" + + + class azure.mgmt.network.types.AdvertisedPublicPrefixProperties(TypedDict, total=False): + key "prefix": str + key "signature": str + key "validationId": str + key "validationState": Union[str, AdvertisedPublicPrefixPropertiesValidationState] + prefix: str + signature: str + validationId: str + validationState: Union[str, AdvertisedPublicPrefixPropertiesValidationState] + + + class azure.mgmt.network.types.AfcConfiguration(TypedDict, total=False): + key "serviceEndpoint": str + serviceEndpoint: str + + + class azure.mgmt.network.types.ApplicationGateway(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayPropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: ApplicationGatewayPropertiesFormat + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.ApplicationGatewayAuthenticationCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayAuthenticationCertificatePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayAuthenticationCertificatePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayAuthenticationCertificatePropertiesFormat(TypedDict, total=False): + key "data": str + key "provisioningState": Union[str, ProvisioningState] + data: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayAutoscaleConfiguration(TypedDict, total=False): + key "maxCapacity": int + key "minCapacity": Required[int] + maxCapacity: int + minCapacity: int + + + class azure.mgmt.network.types.ApplicationGatewayBackendAddress(TypedDict, total=False): + key "fqdn": str + key "ipAddress": str + fqdn: str + ipAddress: str + + + class azure.mgmt.network.types.ApplicationGatewayBackendAddressPool(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayBackendAddressPoolPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayBackendAddressPoolPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayBackendAddressPoolPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + backendAddresses: list[ApplicationGatewayBackendAddress] + backendIPConfigurations: list[NetworkInterfaceIPConfiguration] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayBackendHttpSettings(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayBackendHttpSettingsPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayBackendHttpSettingsPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayBackendHttpSettingsPropertiesFormat(TypedDict, total=False): + key "affinityCookieName": str + key "connectionDraining": ForwardRef('ApplicationGatewayConnectionDraining', module='types') + key "cookieBasedAffinity": Union[str, ApplicationGatewayCookieBasedAffinity] + key "dedicatedBackendConnection": bool + key "hostName": str + key "path": str + key "pickHostNameFromBackendAddress": bool + key "port": int + key "probe": ForwardRef('SubResource', module='types') + key "probeEnabled": bool + key "protocol": Union[str, ApplicationGatewayProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "requestTimeout": int + key "sniName": str + key "validateCertChainAndExpiry": bool + key "validateSNI": bool + affinityCookieName: str + authenticationCertificates: list[SubResource] + connectionDraining: ApplicationGatewayConnectionDraining + cookieBasedAffinity: Union[str, ApplicationGatewayCookieBasedAffinity] + dedicatedBackendConnection: bool + hostName: str + path: str + pickHostNameFromBackendAddress: bool + port: int + probe: SubResource + probeEnabled: bool + protocol: Union[str, ApplicationGatewayProtocol] + provisioningState: Union[str, ProvisioningState] + requestTimeout: int + sniName: str + trustedRootCertificates: list[SubResource] + validateCertChainAndExpiry: bool + validateSNI: bool + + + class azure.mgmt.network.types.ApplicationGatewayBackendSettings(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayBackendSettingsPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayBackendSettingsPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayBackendSettingsPropertiesFormat(TypedDict, total=False): + key "enableL4ClientIpPreservation": bool + key "hostName": str + key "pickHostNameFromBackendAddress": bool + key "port": int + key "probe": ForwardRef('SubResource', module='types') + key "protocol": Union[str, ApplicationGatewayProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "timeout": int + enableL4ClientIpPreservation: bool + hostName: str + pickHostNameFromBackendAddress: bool + port: int + probe: SubResource + protocol: Union[str, ApplicationGatewayProtocol] + provisioningState: Union[str, ProvisioningState] + timeout: int + trustedRootCertificates: list[SubResource] + + + class azure.mgmt.network.types.ApplicationGatewayClientAuthConfiguration(TypedDict, total=False): + key "verifyClientAuthMode": Union[str, ApplicationGatewayClientAuthVerificationModes] + key "verifyClientCertIssuerDN": bool + key "verifyClientRevocation": Union[str, ApplicationGatewayClientRevocationOptions] + verifyClientAuthMode: Union[str, ApplicationGatewayClientAuthVerificationModes] + verifyClientCertIssuerDN: bool + verifyClientRevocation: Union[str, ApplicationGatewayClientRevocationOptions] + + + class azure.mgmt.network.types.ApplicationGatewayConnectionDraining(TypedDict, total=False): + key "drainTimeoutInSec": Required[int] + key "enabled": Required[bool] + drainTimeoutInSec: int + enabled: bool + + + class azure.mgmt.network.types.ApplicationGatewayCustomError(TypedDict, total=False): + key "customErrorPageUrl": str + key "statusCode": Union[str, ApplicationGatewayCustomErrorStatusCode] + customErrorPageUrl: str + statusCode: Union[str, ApplicationGatewayCustomErrorStatusCode] + + + class azure.mgmt.network.types.ApplicationGatewayEntraJWTValidationConfig(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayEntraJWTValidationConfigPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: ApplicationGatewayEntraJWTValidationConfigPropertiesFormat + + + class azure.mgmt.network.types.ApplicationGatewayEntraJWTValidationConfigPropertiesFormat(TypedDict, total=False): + key "clientId": str + key "provisioningState": Union[str, ProvisioningState] + key "tenantId": str + key "unAuthorizedRequestAction": Union[str, ApplicationGatewayUnAuthorizedRequestAction] + audiences: list[str] + clientId: str + provisioningState: Union[str, ProvisioningState] + tenantId: str + unAuthorizedRequestAction: Union[str, ApplicationGatewayUnAuthorizedRequestAction] + + + class azure.mgmt.network.types.ApplicationGatewayFirewallDisabledRuleGroup(TypedDict, total=False): + key "ruleGroupName": Required[str] + ruleGroupName: str + rules: list[int] + + + class azure.mgmt.network.types.ApplicationGatewayFirewallExclusion(TypedDict, total=False): + key "matchVariable": Required[str] + key "selector": Required[str] + key "selectorMatchOperator": Required[str] + matchVariable: str + selector: str + selectorMatchOperator: str + + + class azure.mgmt.network.types.ApplicationGatewayForContainersReferenceDefinition(TypedDict, total=False): + key "id": Required[str] + id: str + + + class azure.mgmt.network.types.ApplicationGatewayFrontendIPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayFrontendIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayFrontendIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayFrontendIPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "privateLinkConfiguration": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('SubResource', module='types') + key "subnet": ForwardRef('SubResource', module='types') + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + privateLinkConfiguration: SubResource + provisioningState: Union[str, ProvisioningState] + publicIPAddress: SubResource + subnet: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayFrontendPort(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayFrontendPortPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayFrontendPortPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayFrontendPortPropertiesFormat(TypedDict, total=False): + key "port": int + key "provisioningState": Union[str, ProvisioningState] + port: int + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayGlobalConfiguration(TypedDict, total=False): + key "disableDefaultServerHeaderInResponse": bool + key "enableRequestBuffering": bool + key "enableResponseBuffering": bool + disableDefaultServerHeaderInResponse: bool + enableRequestBuffering: bool + enableResponseBuffering: bool + + + class azure.mgmt.network.types.ApplicationGatewayHeaderConfiguration(TypedDict, total=False): + key "headerName": str + key "headerValue": str + key "headerValueMatcher": ForwardRef('HeaderValueMatcher', module='types') + headerName: str + headerValue: str + headerValueMatcher: HeaderValueMatcher + + + class azure.mgmt.network.types.ApplicationGatewayHttpListener(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayHttpListenerPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayHttpListenerPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayHttpListenerPropertiesFormat(TypedDict, total=False): + key "firewallPolicy": ForwardRef('SubResource', module='types') + key "frontendIPConfiguration": ForwardRef('SubResource', module='types') + key "frontendPort": ForwardRef('SubResource', module='types') + key "hostName": str + key "protocol": Union[str, ApplicationGatewayProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "requireServerNameIndication": bool + key "sslCertificate": ForwardRef('SubResource', module='types') + key "sslProfile": ForwardRef('SubResource', module='types') + customErrorConfigurations: list[ApplicationGatewayCustomError] + firewallPolicy: SubResource + frontendIPConfiguration: SubResource + frontendPort: SubResource + hostName: str + hostNames: list[str] + protocol: Union[str, ApplicationGatewayProtocol] + provisioningState: Union[str, ProvisioningState] + requireServerNameIndication: bool + sslCertificate: SubResource + sslProfile: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayIPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayIPConfigurationPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "subnet": ForwardRef('SubResource', module='types') + provisioningState: Union[str, ProvisioningState] + subnet: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayListener(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayListenerPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayListenerPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayListenerPropertiesFormat(TypedDict, total=False): + key "frontendIPConfiguration": ForwardRef('SubResource', module='types') + key "frontendPort": ForwardRef('SubResource', module='types') + key "protocol": Union[str, ApplicationGatewayProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "sslCertificate": ForwardRef('SubResource', module='types') + key "sslProfile": ForwardRef('SubResource', module='types') + frontendIPConfiguration: SubResource + frontendPort: SubResource + hostNames: list[str] + protocol: Union[str, ApplicationGatewayProtocol] + provisioningState: Union[str, ProvisioningState] + sslCertificate: SubResource + sslProfile: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayLoadDistributionPolicy(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayLoadDistributionPolicyPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayLoadDistributionPolicyPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayLoadDistributionPolicyPropertiesFormat(TypedDict, total=False): + key "loadDistributionAlgorithm": Union[str, ApplicationGatewayLoadDistributionAlgorithm] + key "provisioningState": Union[str, ProvisioningState] + loadDistributionAlgorithm: Union[str, ApplicationGatewayLoadDistributionAlgorithm] + loadDistributionTargets: list[ApplicationGatewayLoadDistributionTarget] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayLoadDistributionTarget(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayLoadDistributionTargetPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayLoadDistributionTargetPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayLoadDistributionTargetPropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "weightPerServer": int + backendAddressPool: SubResource + weightPerServer: int + + + class azure.mgmt.network.types.ApplicationGatewayManagedHsm(TypedDict, total=False): + key "keyId": str + key "publicCertData": str + keyId: str + publicCertData: str + + + class azure.mgmt.network.types.ApplicationGatewayOnDemandProbe(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendHttpSettings": ForwardRef('SubResource', module='types') + key "enableProbeProxyProtocolHeader": bool + key "host": str + key "match": ForwardRef('ApplicationGatewayProbeHealthResponseMatch', module='types') + key "path": str + key "pickHostNameFromBackendHttpSettings": bool + key "protocol": Union[str, ApplicationGatewayProtocol] + key "timeout": int + backendAddressPool: SubResource + backendHttpSettings: SubResource + enableProbeProxyProtocolHeader: bool + host: str + match: ApplicationGatewayProbeHealthResponseMatch + path: str + pickHostNameFromBackendHttpSettings: bool + protocol: Union[str, ApplicationGatewayProtocol] + timeout: int + + + class azure.mgmt.network.types.ApplicationGatewayPathRule(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayPathRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayPathRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayPathRulePropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendHttpSettings": ForwardRef('SubResource', module='types') + key "firewallPolicy": ForwardRef('SubResource', module='types') + key "loadDistributionPolicy": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "redirectConfiguration": ForwardRef('SubResource', module='types') + key "rewriteRuleSet": ForwardRef('SubResource', module='types') + backendAddressPool: SubResource + backendHttpSettings: SubResource + firewallPolicy: SubResource + loadDistributionPolicy: SubResource + paths: list[str] + provisioningState: Union[str, ProvisioningState] + redirectConfiguration: SubResource + rewriteRuleSet: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayPrivateEndpointConnectionProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayPrivateEndpointConnectionProperties + type: str + + + class azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnectionProperties(TypedDict, total=False): + key "linkIdentifier": str + key "privateEndpoint": ForwardRef('PrivateEndpoint', module='types') + key "privateLinkServiceConnectionState": ForwardRef('PrivateLinkServiceConnectionState', module='types') + key "provisioningState": Union[str, ProvisioningState] + linkIdentifier: str + privateEndpoint: PrivateEndpoint + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayPrivateLinkConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayPrivateLinkConfigurationProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayPrivateLinkConfigurationProperties + type: str + + + class azure.mgmt.network.types.ApplicationGatewayPrivateLinkConfigurationProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + ipConfigurations: list[ApplicationGatewayPrivateLinkIpConfiguration] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayPrivateLinkIpConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayPrivateLinkIpConfigurationProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayPrivateLinkIpConfigurationProperties + type: str + + + class azure.mgmt.network.types.ApplicationGatewayPrivateLinkIpConfigurationProperties(TypedDict, total=False): + key "primary": bool + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "subnet": ForwardRef('SubResource', module='types') + primary: bool + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + subnet: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayProbe(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayProbePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayProbePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayProbeHealthResponseMatch(TypedDict, total=False): + key "body": str + body: str + statusCodes: list[str] + + + class azure.mgmt.network.types.ApplicationGatewayProbePropertiesFormat(TypedDict, total=False): + key "enableProbeProxyProtocolHeader": bool + key "host": str + key "interval": int + key "match": ForwardRef('ApplicationGatewayProbeHealthResponseMatch', module='types') + key "minServers": int + key "path": str + key "pickHostNameFromBackendHttpSettings": bool + key "pickHostNameFromBackendSettings": bool + key "port": int + key "protocol": Union[str, ApplicationGatewayProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "timeout": int + key "unhealthyThreshold": int + enableProbeProxyProtocolHeader: bool + host: str + interval: int + match: ApplicationGatewayProbeHealthResponseMatch + minServers: int + path: str + pickHostNameFromBackendHttpSettings: bool + pickHostNameFromBackendSettings: bool + port: int + protocol: Union[str, ApplicationGatewayProtocol] + provisioningState: Union[str, ProvisioningState] + timeout: int + unhealthyThreshold: int + + + class azure.mgmt.network.types.ApplicationGatewayPropertiesFormat(TypedDict, total=False): + key "autoscaleConfiguration": ForwardRef('ApplicationGatewayAutoscaleConfiguration', module='types') + key "defaultPredefinedSslPolicy": Union[str, ApplicationGatewaySslPolicyName] + key "enableFips": bool + key "enableHttp2": bool + key "firewallPolicy": ForwardRef('SubResource', module='types') + key "forceFirewallPolicyAssociation": bool + key "globalConfiguration": ForwardRef('ApplicationGatewayGlobalConfiguration', module='types') + key "operationalState": Union[str, ApplicationGatewayOperationalState] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "sku": ForwardRef('ApplicationGatewaySku', module='types') + key "sslPolicy": ForwardRef('ApplicationGatewaySslPolicy', module='types') + key "webApplicationFirewallConfiguration": ForwardRef('ApplicationGatewayWebApplicationFirewallConfiguration', module='types') + authenticationCertificates: list[ApplicationGatewayAuthenticationCertificate] + autoscaleConfiguration: ApplicationGatewayAutoscaleConfiguration + backendAddressPools: list[ApplicationGatewayBackendAddressPool] + backendHttpSettingsCollection: list[ApplicationGatewayBackendHttpSettings] + backendSettingsCollection: list[ApplicationGatewayBackendSettings] + customErrorConfigurations: list[ApplicationGatewayCustomError] + defaultPredefinedSslPolicy: Union[str, ApplicationGatewaySslPolicyName] + enableFips: bool + enableHttp2: bool + entraJWTValidationConfigs: list[ApplicationGatewayEntraJWTValidationConfig] + firewallPolicy: SubResource + forceFirewallPolicyAssociation: bool + frontendIPConfigurations: list[ApplicationGatewayFrontendIPConfiguration] + frontendPorts: list[ApplicationGatewayFrontendPort] + gatewayIPConfigurations: list[ApplicationGatewayIPConfiguration] + globalConfiguration: ApplicationGatewayGlobalConfiguration + httpListeners: list[ApplicationGatewayHttpListener] + listeners: list[ApplicationGatewayListener] + loadDistributionPolicies: list[ApplicationGatewayLoadDistributionPolicy] + operationalState: Union[str, ApplicationGatewayOperationalState] + privateEndpointConnections: list[ApplicationGatewayPrivateEndpointConnection] + privateLinkConfigurations: list[ApplicationGatewayPrivateLinkConfiguration] + probes: list[ApplicationGatewayProbe] + provisioningState: Union[str, ProvisioningState] + redirectConfigurations: list[ApplicationGatewayRedirectConfiguration] + requestRoutingRules: list[ApplicationGatewayRequestRoutingRule] + resourceGuid: str + rewriteRuleSets: list[ApplicationGatewayRewriteRuleSet] + routingRules: list[ApplicationGatewayRoutingRule] + sku: ApplicationGatewaySku + sslCertificates: list[ApplicationGatewaySslCertificate] + sslPolicy: ApplicationGatewaySslPolicy + sslProfiles: list[ApplicationGatewaySslProfile] + trustedClientCertificates: list[ApplicationGatewayTrustedClientCertificate] + trustedRootCertificates: list[ApplicationGatewayTrustedRootCertificate] + urlPathMaps: list[ApplicationGatewayUrlPathMap] + webApplicationFirewallConfiguration: ApplicationGatewayWebApplicationFirewallConfiguration + + + class azure.mgmt.network.types.ApplicationGatewayRedirectConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayRedirectConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayRedirectConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayRedirectConfigurationPropertiesFormat(TypedDict, total=False): + key "includePath": bool + key "includeQueryString": bool + key "redirectType": Union[str, ApplicationGatewayRedirectType] + key "targetListener": ForwardRef('SubResource', module='types') + key "targetUrl": str + includePath: bool + includeQueryString: bool + pathRules: list[SubResource] + redirectType: Union[str, ApplicationGatewayRedirectType] + requestRoutingRules: list[SubResource] + targetListener: SubResource + targetUrl: str + urlPathMaps: list[SubResource] + + + class azure.mgmt.network.types.ApplicationGatewayRequestRoutingRule(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayRequestRoutingRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayRequestRoutingRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayRequestRoutingRulePropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendHttpSettings": ForwardRef('SubResource', module='types') + key "entraJWTValidationConfig": ForwardRef('SubResource', module='types') + key "httpListener": ForwardRef('SubResource', module='types') + key "loadDistributionPolicy": ForwardRef('SubResource', module='types') + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + key "redirectConfiguration": ForwardRef('SubResource', module='types') + key "rewriteRuleSet": ForwardRef('SubResource', module='types') + key "ruleType": Union[str, ApplicationGatewayRequestRoutingRuleType] + key "urlPathMap": ForwardRef('SubResource', module='types') + backendAddressPool: SubResource + backendHttpSettings: SubResource + entraJWTValidationConfig: SubResource + httpListener: SubResource + loadDistributionPolicy: SubResource + priority: int + provisioningState: Union[str, ProvisioningState] + redirectConfiguration: SubResource + rewriteRuleSet: SubResource + ruleType: Union[str, ApplicationGatewayRequestRoutingRuleType] + urlPathMap: SubResource + + + class azure.mgmt.network.types.ApplicationGatewayRewriteRule(TypedDict, total=False): + key "actionSet": ForwardRef('ApplicationGatewayRewriteRuleActionSet', module='types') + key "name": str + key "ruleSequence": int + actionSet: ApplicationGatewayRewriteRuleActionSet + conditions: list[ApplicationGatewayRewriteRuleCondition] + name: str + ruleSequence: int + + + class azure.mgmt.network.types.ApplicationGatewayRewriteRuleActionSet(TypedDict, total=False): + key "urlConfiguration": ForwardRef('ApplicationGatewayUrlConfiguration', module='types') + requestHeaderConfigurations: list[ApplicationGatewayHeaderConfiguration] + responseHeaderConfigurations: list[ApplicationGatewayHeaderConfiguration] + urlConfiguration: ApplicationGatewayUrlConfiguration + + + class azure.mgmt.network.types.ApplicationGatewayRewriteRuleCondition(TypedDict, total=False): + key "ignoreCase": bool + key "negate": bool + key "pattern": str + key "variable": str + ignoreCase: bool + negate: bool + pattern: str + variable: str + + + class azure.mgmt.network.types.ApplicationGatewayRewriteRuleSet(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayRewriteRuleSetPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: ApplicationGatewayRewriteRuleSetPropertiesFormat + + + class azure.mgmt.network.types.ApplicationGatewayRewriteRuleSetPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] + rewriteRules: list[ApplicationGatewayRewriteRule] + + + class azure.mgmt.network.types.ApplicationGatewayRoutingRule(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayRoutingRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayRoutingRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayRoutingRulePropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendSettings": ForwardRef('SubResource', module='types') + key "listener": ForwardRef('SubResource', module='types') + key "priority": Required[int] + key "provisioningState": Union[str, ProvisioningState] + key "ruleType": Union[str, ApplicationGatewayRequestRoutingRuleType] + backendAddressPool: SubResource + backendSettings: SubResource + listener: SubResource + priority: int + provisioningState: Union[str, ProvisioningState] + ruleType: Union[str, ApplicationGatewayRequestRoutingRuleType] + + + class azure.mgmt.network.types.ApplicationGatewaySku(TypedDict, total=False): + key "capacity": int + key "family": Union[str, ApplicationGatewaySkuFamily] + key "name": Union[str, ApplicationGatewaySkuName] + key "tier": Union[str, ApplicationGatewayTier] + capacity: int + family: Union[str, ApplicationGatewaySkuFamily] + name: Union[str, ApplicationGatewaySkuName] + tier: Union[str, ApplicationGatewayTier] + + + class azure.mgmt.network.types.ApplicationGatewaySslCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewaySslCertificatePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewaySslCertificatePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewaySslCertificatePropertiesFormat(TypedDict, total=False): + key "data": str + key "hsm": ForwardRef('ApplicationGatewayManagedHsm', module='types') + key "keyVaultSecretId": str + key "password": str + key "provisioningState": Union[str, ProvisioningState] + key "publicCertData": str + data: str + hsm: ApplicationGatewayManagedHsm + keyVaultSecretId: str + password: str + provisioningState: Union[str, ProvisioningState] + publicCertData: str + + + class azure.mgmt.network.types.ApplicationGatewaySslPolicy(TypedDict, total=False): + key "minProtocolVersion": Union[str, ApplicationGatewaySslProtocol] + key "policyName": Union[str, ApplicationGatewaySslPolicyName] + key "policyType": Union[str, ApplicationGatewaySslPolicyType] + cipherSuites: list[Union[str, ApplicationGatewaySslCipherSuite]] + disabledSslProtocols: list[Union[str, ApplicationGatewaySslProtocol]] + minProtocolVersion: Union[str, ApplicationGatewaySslProtocol] + policyName: Union[str, ApplicationGatewaySslPolicyName] + policyType: Union[str, ApplicationGatewaySslPolicyType] + + + class azure.mgmt.network.types.ApplicationGatewaySslProfile(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewaySslProfilePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewaySslProfilePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewaySslProfilePropertiesFormat(TypedDict, total=False): + key "clientAuthConfiguration": ForwardRef('ApplicationGatewayClientAuthConfiguration', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "sslPolicy": ForwardRef('ApplicationGatewaySslPolicy', module='types') + clientAuthConfiguration: ApplicationGatewayClientAuthConfiguration + provisioningState: Union[str, ProvisioningState] + sslPolicy: ApplicationGatewaySslPolicy + trustedClientCertificates: list[SubResource] + + + class azure.mgmt.network.types.ApplicationGatewayTrustedClientCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayTrustedClientCertificatePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayTrustedClientCertificatePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayTrustedClientCertificatePropertiesFormat(TypedDict, total=False): + key "clientCertIssuerDN": str + key "data": str + key "provisioningState": Union[str, ProvisioningState] + key "validatedCertData": str + clientCertIssuerDN: str + data: str + provisioningState: Union[str, ProvisioningState] + validatedCertData: str + + + class azure.mgmt.network.types.ApplicationGatewayTrustedRootCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayTrustedRootCertificatePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayTrustedRootCertificatePropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayTrustedRootCertificatePropertiesFormat(TypedDict, total=False): + key "data": str + key "keyVaultSecretId": str + key "provisioningState": Union[str, ProvisioningState] + data: str + keyVaultSecretId: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayUrlConfiguration(TypedDict, total=False): + key "modifiedPath": str + key "modifiedQueryString": str + key "reroute": bool + modifiedPath: str + modifiedQueryString: str + reroute: bool + + + class azure.mgmt.network.types.ApplicationGatewayUrlPathMap(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ApplicationGatewayUrlPathMapPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ApplicationGatewayUrlPathMapPropertiesFormat + type: str + + + class azure.mgmt.network.types.ApplicationGatewayUrlPathMapPropertiesFormat(TypedDict, total=False): + key "defaultBackendAddressPool": ForwardRef('SubResource', module='types') + key "defaultBackendHttpSettings": ForwardRef('SubResource', module='types') + key "defaultLoadDistributionPolicy": ForwardRef('SubResource', module='types') + key "defaultRedirectConfiguration": ForwardRef('SubResource', module='types') + key "defaultRewriteRuleSet": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + defaultBackendAddressPool: SubResource + defaultBackendHttpSettings: SubResource + defaultLoadDistributionPolicy: SubResource + defaultRedirectConfiguration: SubResource + defaultRewriteRuleSet: SubResource + pathRules: list[ApplicationGatewayPathRule] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ApplicationGatewayWebApplicationFirewallConfiguration(TypedDict, total=False): + key "enabled": Required[bool] + key "fileUploadLimitInMb": int + key "firewallMode": Required[Union[str, ApplicationGatewayFirewallMode]] + key "maxRequestBodySize": int + key "maxRequestBodySizeInKb": int + key "requestBodyCheck": bool + key "ruleSetType": Required[str] + key "ruleSetVersion": Required[str] + disabledRuleGroups: list[ApplicationGatewayFirewallDisabledRuleGroup] + enabled: bool + exclusions: list[ApplicationGatewayFirewallExclusion] + fileUploadLimitInMb: int + firewallMode: Union[str, ApplicationGatewayFirewallMode] + maxRequestBodySize: int + maxRequestBodySizeInKb: int + requestBodyCheck: bool + ruleSetType: str + ruleSetVersion: str + + + class azure.mgmt.network.types.ApplicationRule(TypedDict, total=False): + key "description": str + key "name": str + key "ruleType": Required[Literal[FirewallPolicyRuleType.APPLICATION_RULE]] + key "terminateTLS": bool + description: str + destinationAddresses: list[str] + fqdnTags: list[str] + httpHeadersToInsert: list[FirewallPolicyHttpHeaderToInsert] + name: str + protocols: list[FirewallPolicyRuleApplicationProtocol] + ruleType: Literal[FirewallPolicyRuleType.APPLICATION_RULE] + sourceAddresses: list[str] + sourceIpGroups: list[str] + sourceKubeSelectorGroups: list[str] + targetFqdns: list[str] + targetUrls: list[str] + terminateTLS: bool + webCategories: list[str] + + + class azure.mgmt.network.types.ApplicationSecurityGroup(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('ApplicationSecurityGroupPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ApplicationSecurityGroupPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ApplicationSecurityGroupPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.AuthorizationPropertiesFormat(TypedDict, total=False): + key "authorizationKey": str + key "authorizationUseStatus": Union[str, AuthorizationUseStatus] + key "connectionResourceUri": str + key "provisioningState": Union[str, ProvisioningState] + authorizationKey: str + authorizationUseStatus: Union[str, AuthorizationUseStatus] + connectionResourceUri: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.AvailableProvidersListParameters(TypedDict, total=False): + key "city": str + key "country": str + key "state": str + azureLocations: list[str] + city: str + country: str + state: str + + + class azure.mgmt.network.types.AzureFirewall(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('AzureFirewallPropertiesFormat', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: AzureFirewallPropertiesFormat + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.AzureFirewallApplicationRule(TypedDict, total=False): + key "description": str + key "name": str + description: str + fqdnTags: list[str] + name: str + protocols: list[AzureFirewallApplicationRuleProtocol] + sourceAddresses: list[str] + sourceIpGroups: list[str] + targetFqdns: list[str] + + + class azure.mgmt.network.types.AzureFirewallApplicationRuleCollection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AzureFirewallApplicationRuleCollectionPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: AzureFirewallApplicationRuleCollectionPropertiesFormat + + + class azure.mgmt.network.types.AzureFirewallApplicationRuleCollectionPropertiesFormat(TypedDict, total=False): + key "action": ForwardRef('AzureFirewallRCAction', module='types') + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + action: AzureFirewallRCAction + priority: int + provisioningState: Union[str, ProvisioningState] + rules: list[AzureFirewallApplicationRule] + + + class azure.mgmt.network.types.AzureFirewallApplicationRuleProtocol(TypedDict, total=False): + key "port": int + key "protocolType": Union[str, AzureFirewallApplicationRuleProtocolType] + port: int + protocolType: Union[str, AzureFirewallApplicationRuleProtocolType] + + + class azure.mgmt.network.types.AzureFirewallAutoscaleConfiguration(TypedDict, total=False): + key "maxCapacity": Optional[int] + key "minCapacity": Optional[int] + maxCapacity: int + minCapacity: int + + + class azure.mgmt.network.types.AzureFirewallIPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AzureFirewallIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: AzureFirewallIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.AzureFirewallIPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('SubResource', module='types') + key "subnet": ForwardRef('SubResource', module='types') + privateIPAddress: str + provisioningState: Union[str, ProvisioningState] + publicIPAddress: SubResource + subnet: SubResource + + + class azure.mgmt.network.types.AzureFirewallIpGroups(TypedDict, total=False): + key "changeNumber": str + key "id": str + changeNumber: str + id: str + + + class azure.mgmt.network.types.AzureFirewallNatRCAction(TypedDict, total=False): + key "type": Union[str, AzureFirewallNatRCActionType] + type: Union[str, AzureFirewallNatRCActionType] + + + class azure.mgmt.network.types.AzureFirewallNatRule(TypedDict, total=False): + key "description": str + key "name": str + key "translatedAddress": str + key "translatedFqdn": str + key "translatedPort": str + description: str + destinationAddresses: list[str] + destinationPorts: list[str] + name: str + protocols: list[Union[str, AzureFirewallNetworkRuleProtocol]] + sourceAddresses: list[str] + sourceIpGroups: list[str] + translatedAddress: str + translatedFqdn: str + translatedPort: str + + + class azure.mgmt.network.types.AzureFirewallNatRuleCollection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AzureFirewallNatRuleCollectionProperties', module='types') + etag: str + id: str + name: str + properties: AzureFirewallNatRuleCollectionProperties + + + class azure.mgmt.network.types.AzureFirewallNatRuleCollectionProperties(TypedDict, total=False): + key "action": ForwardRef('AzureFirewallNatRCAction', module='types') + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + action: AzureFirewallNatRCAction + priority: int + provisioningState: Union[str, ProvisioningState] + rules: list[AzureFirewallNatRule] + + + class azure.mgmt.network.types.AzureFirewallNetworkRule(TypedDict, total=False): + key "description": str + key "name": str + description: str + destinationAddresses: list[str] + destinationFqdns: list[str] + destinationIpGroups: list[str] + destinationPorts: list[str] + name: str + protocols: list[Union[str, AzureFirewallNetworkRuleProtocol]] + sourceAddresses: list[str] + sourceIpGroups: list[str] + + + class azure.mgmt.network.types.AzureFirewallNetworkRuleCollection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AzureFirewallNetworkRuleCollectionPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: AzureFirewallNetworkRuleCollectionPropertiesFormat + + + class azure.mgmt.network.types.AzureFirewallNetworkRuleCollectionPropertiesFormat(TypedDict, total=False): + key "action": ForwardRef('AzureFirewallRCAction', module='types') + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + action: AzureFirewallRCAction + priority: int + provisioningState: Union[str, ProvisioningState] + rules: list[AzureFirewallNetworkRule] + + + class azure.mgmt.network.types.AzureFirewallPacketCaptureFlags(TypedDict, total=False): + key "type": Union[str, AzureFirewallPacketCaptureFlagsType] + type: Union[str, AzureFirewallPacketCaptureFlagsType] + + + class azure.mgmt.network.types.AzureFirewallPacketCaptureRule(TypedDict, total=False): + destinationPorts: list[str] + destinations: list[str] + sources: list[str] + + + class azure.mgmt.network.types.AzureFirewallPropertiesFormat(TypedDict, total=False): + key "afcConfiguration": ForwardRef('AfcConfiguration', module='types') + key "autoscaleConfiguration": ForwardRef('AzureFirewallAutoscaleConfiguration', module='types') + key "firewallPolicy": ForwardRef('SubResource', module='types') + key "hubIPAddresses": ForwardRef('HubIPAddresses', module='types') + key "managementIpConfiguration": ForwardRef('AzureFirewallIPConfiguration', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "sku": ForwardRef('AzureFirewallSku', module='types') + key "threatIntelMode": Union[str, AzureFirewallThreatIntelMode] + key "virtualHub": ForwardRef('SubResource', module='types') + additionalProperties: dict[str, str] + afcConfiguration: AfcConfiguration + applicationRuleCollections: list[AzureFirewallApplicationRuleCollection] + autoscaleConfiguration: AzureFirewallAutoscaleConfiguration + firewallPolicy: SubResource + hubIPAddresses: HubIPAddresses + ipConfigurations: list[AzureFirewallIPConfiguration] + ipGroups: list[AzureFirewallIpGroups] + managementIpConfiguration: AzureFirewallIPConfiguration + natRuleCollections: list[AzureFirewallNatRuleCollection] + networkRuleCollections: list[AzureFirewallNetworkRuleCollection] + provisioningState: Union[str, ProvisioningState] + sku: AzureFirewallSku + threatIntelMode: Union[str, AzureFirewallThreatIntelMode] + virtualHub: SubResource + + + class azure.mgmt.network.types.AzureFirewallPublicIPAddress(TypedDict, total=False): + key "address": str + address: str + + + class azure.mgmt.network.types.AzureFirewallRCAction(TypedDict, total=False): + key "type": Union[str, AzureFirewallRCActionType] + type: Union[str, AzureFirewallRCActionType] + + + class azure.mgmt.network.types.AzureFirewallSku(TypedDict, total=False): + key "name": Union[str, AzureFirewallSkuName] + key "tier": Union[str, AzureFirewallSkuTier] + name: Union[str, AzureFirewallSkuName] + tier: Union[str, AzureFirewallSkuTier] + + + class azure.mgmt.network.types.AzureReachabilityReportLocation(TypedDict, total=False): + key "city": str + key "country": Required[str] + key "state": str + city: str + country: str + state: str + + + class azure.mgmt.network.types.AzureReachabilityReportParameters(TypedDict, total=False): + key "endTime": Required[str] + key "providerLocation": Required[AzureReachabilityReportLocation] + key "startTime": Required[str] + azureLocations: list[str] + endTime: str + providerLocation: AzureReachabilityReportLocation + providers: list[str] + startTime: str + + + class azure.mgmt.network.types.BackendAddressPool(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('BackendAddressPoolPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: BackendAddressPoolPropertiesFormat + type: str + + + class azure.mgmt.network.types.BackendAddressPoolPropertiesFormat(TypedDict, total=False): + key "drainPeriodInSeconds": int + key "location": str + key "outboundRule": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "syncMode": Union[str, SyncMode] + key "virtualNetwork": ForwardRef('SubResource', module='types') + backendIPConfigurations: list[NetworkInterfaceIPConfiguration] + drainPeriodInSeconds: int + inboundNatRules: list[SubResource] + loadBalancerBackendAddresses: list[LoadBalancerBackendAddress] + loadBalancingRules: list[SubResource] + location: str + outboundRule: SubResource + outboundRules: list[SubResource] + provisioningState: Union[str, ProvisioningState] + syncMode: Union[str, SyncMode] + tunnelInterfaces: list[GatewayLoadBalancerTunnelInterface] + virtualNetwork: SubResource + + + class azure.mgmt.network.types.BastionHost(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('BastionHostPropertiesFormat', module='types') + key "sku": ForwardRef('Sku', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: BastionHostPropertiesFormat + sku: Sku + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.BastionHostIPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('BastionHostIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: BastionHostIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.BastionHostIPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('SubResource', module='types') + key "subnet": Required[SubResource] + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + publicIPAddress: SubResource + subnet: SubResource + + + class azure.mgmt.network.types.BastionHostPropertiesFormat(TypedDict, total=False): + key "disableCopyPaste": bool + key "dnsName": str + key "enableFileCopy": bool + key "enableIpConnect": bool + key "enableKerberos": bool + key "enablePrivateOnlyBastion": bool + key "enableSessionRecording": bool + key "enableShareableLink": bool + key "enableTunneling": bool + key "networkAcls": ForwardRef('BastionHostPropertiesFormatNetworkAcls', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "scaleUnits": int + key "virtualNetwork": ForwardRef('SubResource', module='types') + disableCopyPaste: bool + dnsName: str + enableFileCopy: bool + enableIpConnect: bool + enableKerberos: bool + enablePrivateOnlyBastion: bool + enableSessionRecording: bool + enableShareableLink: bool + enableTunneling: bool + ipConfigurations: list[BastionHostIPConfiguration] + networkAcls: BastionHostPropertiesFormatNetworkAcls + provisioningState: Union[str, ProvisioningState] + scaleUnits: int + virtualNetwork: SubResource + + + class azure.mgmt.network.types.BastionHostPropertiesFormatNetworkAcls(TypedDict, total=False): + ipRules: list[IPRule] + + + class azure.mgmt.network.types.BastionShareableLink(TypedDict, total=False): + key "bsl": str + key "createdAt": str + key "message": str + key "vm": Required[VM] + bsl: str + createdAt: str + message: str + vm: VM + + + class azure.mgmt.network.types.BastionShareableLinkListRequest(TypedDict, total=False): + vms: list[BastionShareableLink] + + + class azure.mgmt.network.types.BastionShareableLinkTokenListRequest(TypedDict, total=False): + tokens: list[str] + + + class azure.mgmt.network.types.BgpConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('BgpConnectionProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: BgpConnectionProperties + type: str + + + class azure.mgmt.network.types.BgpConnectionProperties(TypedDict, total=False): + key "connectionState": Union[str, HubBgpConnectionStatus] + key "hubVirtualNetworkConnection": ForwardRef('SubResource', module='types') + key "peerAsn": int + key "peerIp": str + key "provisioningState": Union[str, ProvisioningState] + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + connectionState: Union[str, HubBgpConnectionStatus] + hubVirtualNetworkConnection: SubResource + peerAsn: int + peerIp: str + provisioningState: Union[str, ProvisioningState] + routingConfiguration: RoutingConfiguration + + + class azure.mgmt.network.types.BgpSettings(TypedDict, total=False): + key "asn": int + key "bgpPeeringAddress": str + key "peerWeight": int + asn: int + bgpPeeringAddress: str + bgpPeeringAddresses: list[IPConfigurationBgpPeeringAddress] + peerWeight: int + + + class azure.mgmt.network.types.BreakOutCategoryPolicies(TypedDict, total=False): + key "allow": bool + key "default": bool + key "optimize": bool + allow: bool + default: bool + optimize: bool + + + class azure.mgmt.network.types.CertificateAuthentication(TypedDict, total=False): + key "inboundAuthCertificateSubjectName": str + key "outboundAuthCertificate": str + inboundAuthCertificateChain: list[str] + inboundAuthCertificateSubjectName: str + outboundAuthCertificate: str + + + class azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest(TypedDict, total=False): + key "privateLinkServiceAlias": str + privateLinkServiceAlias: str + + + class azure.mgmt.network.types.ChildResource(TypedDict, total=False): + key "etag": str + key "id": str + key "name": str + key "type": str + etag: str + id: str + name: str + type: str + + + class azure.mgmt.network.types.Commit(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('CommitProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: CommitProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.CommitProperties(TypedDict, total=False): + key "commitType": Required[Union[str, ConfigurationType]] + key "description": str + key "forceUpdateTag": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "targetLocations": Required[list[str]] + activeLocations: list[str] + commitType: Union[str, ConfigurationType] + configurationIds: list[str] + description: str + forceUpdateTag: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + targetLocations: list[str] + + + class azure.mgmt.network.types.CommonProxyResource(CommonResource): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.network.types.CommonResource(TypedDict, total=False): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.network.types.CommonTrackedResource(CommonResource): + key "id": str + key "location": Required[str] + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ConnectionAnalyzer(TypedDict, total=False): + key "etag": str + key "id": str + key "location": Required[str] + key "name": str + key "properties": Required[ConnectionAnalyzerProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ConnectionAnalyzerProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ConnectionAnalyzerEndpoint(TypedDict, total=False): + key "address": str + key "port": int + key "resourceId": str + key "type": Required[Union[str, ConnectionAnalyzerEndpointType]] + address: str + port: int + resourceId: str + type: Union[str, ConnectionAnalyzerEndpointType] + + + class azure.mgmt.network.types.ConnectionAnalyzerProperties(TypedDict, total=False): + key "destination": Required[ConnectionAnalyzerEndpoint] + key "diagnosticOperations": Required[list[Union[str, DiagnosticOperation]]] + key "diagnosticOperationsSettings": ForwardRef('DiagnosticOperationsSettings', module='types') + key "expiryInDays": int + key "outputSettings": ForwardRef('OutputSettings', module='types') + key "protocolSettings": ForwardRef('ProtocolSettings', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "requestTime": str + key "source": Required[ConnectionAnalyzerEndpoint] + key "status": Union[str, ConnectionAnalyzerStatus] + destination: ConnectionAnalyzerEndpoint + diagnosticOperations: list[Union[str, DiagnosticOperation]] + diagnosticOperationsSettings: DiagnosticOperationsSettings + expiryInDays: int + outputSettings: OutputSettings + protocolSettings: ProtocolSettings + provisioningState: Union[str, ProvisioningState] + requestTime: str + source: ConnectionAnalyzerEndpoint + status: Union[str, ConnectionAnalyzerStatus] + + + class azure.mgmt.network.types.ConnectionMonitor(TypedDict, total=False): + key "location": str + key "properties": Required[ConnectionMonitorParameters] + location: str + properties: ConnectionMonitorParameters + tags: dict[str, str] + + + class azure.mgmt.network.types.ConnectionMonitorDestination(TypedDict, total=False): + key "address": str + key "port": int + key "resourceId": str + address: str + port: int + resourceId: str + + + class azure.mgmt.network.types.ConnectionMonitorEndpoint(TypedDict, total=False): + key "address": str + key "coverageLevel": Union[str, CoverageLevel] + key "filter": ForwardRef('ConnectionMonitorEndpointFilter', module='types') + key "locationDetails": ForwardRef('ConnectionMonitorEndpointLocationDetails', module='types') + key "name": Required[str] + key "resourceId": str + key "scope": ForwardRef('ConnectionMonitorEndpointScope', module='types') + key "subscriptionId": str + key "type": Union[str, EndpointType] + address: str + coverageLevel: Union[str, CoverageLevel] + filter: ConnectionMonitorEndpointFilter + locationDetails: ConnectionMonitorEndpointLocationDetails + name: str + resourceId: str + scope: ConnectionMonitorEndpointScope + subscriptionId: str + type: Union[str, EndpointType] + + + class azure.mgmt.network.types.ConnectionMonitorEndpointFilter(TypedDict, total=False): + key "type": Union[str, ConnectionMonitorEndpointFilterType] + items: list[ConnectionMonitorEndpointFilterItem] + type: Union[str, ConnectionMonitorEndpointFilterType] + + + class azure.mgmt.network.types.ConnectionMonitorEndpointFilterItem(TypedDict, total=False): + key "address": str + key "type": Union[str, ConnectionMonitorEndpointFilterItemType] + address: str + type: Union[str, ConnectionMonitorEndpointFilterItemType] + + + class azure.mgmt.network.types.ConnectionMonitorEndpointLocationDetails(TypedDict, total=False): + key "region": str + region: str + + + class azure.mgmt.network.types.ConnectionMonitorEndpointScope(TypedDict, total=False): + exclude: list[ConnectionMonitorEndpointScopeItem] + include: list[ConnectionMonitorEndpointScopeItem] + + + class azure.mgmt.network.types.ConnectionMonitorEndpointScopeItem(TypedDict, total=False): + key "address": str + address: str + + + class azure.mgmt.network.types.ConnectionMonitorHttpConfiguration(TypedDict, total=False): + key "method": Union[str, HTTPConfigurationMethod] + key "path": str + key "port": int + key "preferHTTPS": bool + method: Union[str, HTTPConfigurationMethod] + path: str + port: int + preferHTTPS: bool + requestHeaders: list[HTTPHeader] + validStatusCodeRanges: list[str] + + + class azure.mgmt.network.types.ConnectionMonitorIcmpConfiguration(TypedDict, total=False): + key "disableTraceRoute": bool + disableTraceRoute: bool + + + class azure.mgmt.network.types.ConnectionMonitorOutput(TypedDict, total=False): + key "type": Union[str, OutputType] + key "workspaceSettings": ForwardRef('ConnectionMonitorWorkspaceSettings', module='types') + type: Union[str, OutputType] + workspaceSettings: ConnectionMonitorWorkspaceSettings + + + class azure.mgmt.network.types.ConnectionMonitorParameters(TypedDict, total=False): + key "autoStart": bool + key "destination": ForwardRef('ConnectionMonitorDestination', module='types') + key "monitoringIntervalInSeconds": int + key "notes": str + key "source": ForwardRef('ConnectionMonitorSource', module='types') + autoStart: bool + destination: ConnectionMonitorDestination + endpoints: list[ConnectionMonitorEndpoint] + monitoringIntervalInSeconds: int + notes: str + outputs: list[ConnectionMonitorOutput] + source: ConnectionMonitorSource + testConfigurations: list[ConnectionMonitorTestConfiguration] + testGroups: list[ConnectionMonitorTestGroup] + + + class azure.mgmt.network.types.ConnectionMonitorSource(TypedDict, total=False): + key "port": int + key "resourceId": Required[str] + port: int + resourceId: str + + + class azure.mgmt.network.types.ConnectionMonitorSuccessThreshold(TypedDict, total=False): + key "checksFailedPercent": int + key "roundTripTimeMs": float + checksFailedPercent: int + roundTripTimeMs: float + + + class azure.mgmt.network.types.ConnectionMonitorTcpConfiguration(TypedDict, total=False): + key "destinationPortBehavior": Union[str, DestinationPortBehavior] + key "disableTraceRoute": bool + key "port": int + destinationPortBehavior: Union[str, DestinationPortBehavior] + disableTraceRoute: bool + port: int + + + class azure.mgmt.network.types.ConnectionMonitorTestConfiguration(TypedDict, total=False): + key "httpConfiguration": ForwardRef('ConnectionMonitorHttpConfiguration', module='types') + key "icmpConfiguration": ForwardRef('ConnectionMonitorIcmpConfiguration', module='types') + key "name": Required[str] + key "preferredIPVersion": Union[str, PreferredIPVersion] + key "protocol": Required[Union[str, ConnectionMonitorTestConfigurationProtocol]] + key "successThreshold": ForwardRef('ConnectionMonitorSuccessThreshold', module='types') + key "tcpConfiguration": ForwardRef('ConnectionMonitorTcpConfiguration', module='types') + key "testFrequencySec": int + httpConfiguration: ConnectionMonitorHttpConfiguration + icmpConfiguration: ConnectionMonitorIcmpConfiguration + name: str + preferredIPVersion: Union[str, PreferredIPVersion] + protocol: Union[str, ConnectionMonitorTestConfigurationProtocol] + successThreshold: ConnectionMonitorSuccessThreshold + tcpConfiguration: ConnectionMonitorTcpConfiguration + testFrequencySec: int + + + class azure.mgmt.network.types.ConnectionMonitorTestGroup(TypedDict, total=False): + key "destinations": Required[list[str]] + key "disable": bool + key "name": Required[str] + key "sources": Required[list[str]] + key "testConfigurations": Required[list[str]] + destinations: list[str] + disable: bool + name: str + sources: list[str] + testConfigurations: list[str] + + + class azure.mgmt.network.types.ConnectionMonitorWorkspaceSettings(TypedDict, total=False): + key "workspaceResourceId": str + workspaceResourceId: str + + + class azure.mgmt.network.types.ConnectionPolicy(ProxyResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ConnectionPolicyProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: ConnectionPolicyProperties + type: str + + + class azure.mgmt.network.types.ConnectionPolicyProperties(TypedDict, total=False): + key "enableInternetSecurity": bool + key "provisioningState": Union[str, ProvisioningState] + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + associatedConnections: list[str] + enableInternetSecurity: bool + provisioningState: Union[str, ProvisioningState] + routingConfiguration: RoutingConfiguration + + + class azure.mgmt.network.types.ConnectionResetSharedKey(TypedDict, total=False): + key "keyLength": Required[int] + keyLength: int + + + class azure.mgmt.network.types.ConnectionSharedKey(SubResource): + key "id": str + key "value": Required[str] + id: str + value: str + + + class azure.mgmt.network.types.ConnectionSharedKeyResult(SubResourceModel): + key "id": str + key "name": str + key "properties": ForwardRef('SharedKeyProperties', module='types') + key "type": str + id: str + name: str + properties: SharedKeyProperties + type: str + + + class azure.mgmt.network.types.ConnectivityCheckSettings(TypedDict, total=False): + key "generatePath": bool + key "preferredIPVersion": Union[str, PreferredIPVersion] + generatePath: bool + preferredIPVersion: Union[str, PreferredIPVersion] + + + class azure.mgmt.network.types.ConnectivityConfiguration(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ConnectivityConfigurationProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: ConnectivityConfigurationProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.ConnectivityConfigurationProperties(TypedDict, total=False): + key "appliesToGroups": Required[list[ConnectivityGroupItem]] + key "connectivityCapabilities": ForwardRef('ConnectivityConfigurationPropertiesConnectivityCapabilities', module='types') + key "connectivityTopology": Required[Union[str, ConnectivityTopology]] + key "deleteExistingPeering": Union[str, DeleteExistingPeering] + key "description": str + key "isGlobal": Union[str, IsGlobal] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + appliesToGroups: list[ConnectivityGroupItem] + connectivityCapabilities: ConnectivityConfigurationPropertiesConnectivityCapabilities + connectivityTopology: Union[str, ConnectivityTopology] + deleteExistingPeering: Union[str, DeleteExistingPeering] + description: str + hubs: list[Hub] + isGlobal: Union[str, IsGlobal] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.ConnectivityConfigurationPropertiesConnectivityCapabilities(TypedDict, total=False): + key "connectedGroupAddressOverlap": Required[Union[str, ConnectedGroupAddressOverlap]] + key "connectedGroupPrivateEndpointsScale": Required[Union[str, ConnectedGroupPrivateEndpointsScale]] + key "peeringEnforcement": Required[Union[str, PeeringEnforcement]] + connectedGroupAddressOverlap: Union[str, ConnectedGroupAddressOverlap] + connectedGroupPrivateEndpointsScale: Union[str, ConnectedGroupPrivateEndpointsScale] + peeringEnforcement: Union[str, PeeringEnforcement] + + + class azure.mgmt.network.types.ConnectivityDestination(TypedDict, total=False): + key "address": str + key "port": int + key "resourceId": str + address: str + port: int + resourceId: str + + + class azure.mgmt.network.types.ConnectivityGroupItem(TypedDict, total=False): + key "groupConnectivity": Required[Union[str, GroupConnectivity]] + key "isGlobal": Union[str, IsGlobal] + key "networkGroupId": Required[str] + key "useHubGateway": Union[str, UseHubGateway] + groupConnectivity: Union[str, GroupConnectivity] + isGlobal: Union[str, IsGlobal] + networkGroupId: str + useHubGateway: Union[str, UseHubGateway] + + + class azure.mgmt.network.types.ConnectivityParameters(TypedDict, total=False): + key "destination": Required[ConnectivityDestination] + key "preferredIPVersion": Union[str, IPVersion] + key "protocol": Union[str, Protocol] + key "protocolConfiguration": ForwardRef('ProtocolConfiguration', module='types') + key "source": Required[ConnectivitySource] + destination: ConnectivityDestination + preferredIPVersion: Union[str, IPVersion] + protocol: Union[str, Protocol] + protocolConfiguration: ProtocolConfiguration + source: ConnectivitySource + + + class azure.mgmt.network.types.ConnectivitySource(TypedDict, total=False): + key "port": int + key "resourceId": Required[str] + port: int + resourceId: str + + + class azure.mgmt.network.types.Container(SubResource): + key "id": str + id: str + + + class azure.mgmt.network.types.ContainerNetworkInterface(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ContainerNetworkInterfacePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ContainerNetworkInterfacePropertiesFormat + type: str + + + class azure.mgmt.network.types.ContainerNetworkInterfaceConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ContainerNetworkInterfaceConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ContainerNetworkInterfaceConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ContainerNetworkInterfaceConfigurationPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + containerNetworkInterfaces: list[SubResource] + ipConfigurations: list[IPConfigurationProfile] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ContainerNetworkInterfaceIpConfiguration(TypedDict, total=False): + key "etag": str + key "name": str + key "properties": ForwardRef('ContainerNetworkInterfaceIpConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + name: str + properties: ContainerNetworkInterfaceIpConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ContainerNetworkInterfaceIpConfigurationPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ContainerNetworkInterfacePropertiesFormat(TypedDict, total=False): + key "container": ForwardRef('Container', module='types') + key "containerNetworkInterfaceConfiguration": ForwardRef('ContainerNetworkInterfaceConfiguration', module='types') + key "provisioningState": Union[str, ProvisioningState] + container: Container + containerNetworkInterfaceConfiguration: ContainerNetworkInterfaceConfiguration + ipConfigurations: list[ContainerNetworkInterfaceIpConfiguration] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.Criterion(TypedDict, total=False): + key "matchCondition": Union[str, RouteMapMatchCondition] + asPath: list[str] + community: list[str] + matchCondition: Union[str, RouteMapMatchCondition] + routePrefix: list[str] + + + class azure.mgmt.network.types.CrossTenantScopes(TypedDict, total=False): + key "tenantId": str + managementGroups: list[str] + subscriptions: list[str] + tenantId: str + + + class azure.mgmt.network.types.CustomDnsConfigPropertiesFormat(TypedDict, total=False): + key "fqdn": str + fqdn: str + ipAddresses: list[str] + + + class azure.mgmt.network.types.CustomIpPrefix(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('CustomIpPrefixPropertiesFormat', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: CustomIpPrefixPropertiesFormat + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.CustomIpPrefixPropertiesFormat(TypedDict, total=False): + key "asn": str + key "authorizationMessage": str + key "cidr": str + key "commissionedState": Union[str, CommissionedState] + key "customIpPrefixParent": ForwardRef('SubResource', module='types') + key "expressRouteAdvertise": bool + key "failedReason": str + key "geo": Union[str, Geo] + key "noInternetAdvertise": bool + key "prefixType": Union[str, CustomIpPrefixType] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "signedMessage": str + asn: str + authorizationMessage: str + childCustomIpPrefixes: list[SubResource] + cidr: str + commissionedState: Union[str, CommissionedState] + customIpPrefixParent: SubResource + expressRouteAdvertise: bool + failedReason: str + geo: Union[str, Geo] + noInternetAdvertise: bool + prefixType: Union[str, CustomIpPrefixType] + provisioningState: Union[str, ProvisioningState] + publicIpPrefixes: list[SubResource] + resourceGuid: str + signedMessage: str + + + class azure.mgmt.network.types.DdosCustomPolicy(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('DdosCustomPolicyPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: DdosCustomPolicyPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.DdosCustomPolicyPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + detectionRules: list[DdosDetectionRule] + frontEndIpConfiguration: list[SubResource] + provisioningState: Union[str, ProvisioningState] + publicIPAddresses: list[SubResource] + resourceGuid: str + + + class azure.mgmt.network.types.DdosDetectionRule(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('DdosDetectionRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: DdosDetectionRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.DdosDetectionRulePropertiesFormat(TypedDict, total=False): + key "detectionMode": Union[str, DdosDetectionMode] + key "provisioningState": Union[str, ProvisioningState] + key "trafficDetectionRule": ForwardRef('TrafficDetectionRule', module='types') + detectionMode: Union[str, DdosDetectionMode] + provisioningState: Union[str, ProvisioningState] + trafficDetectionRule: TrafficDetectionRule + + + class azure.mgmt.network.types.DdosFrontendIpConfigurationSettings(TypedDict, total=False): + key "ddosCustomPolicy": ForwardRef('SubResource', module='types') + ddosCustomPolicy: SubResource + + + class azure.mgmt.network.types.DdosProtectionPlan(TrackedResourceWithOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('DdosProtectionPlanPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: DdosProtectionPlanPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.DdosProtectionPlanPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + provisioningState: Union[str, ProvisioningState] + publicIPAddresses: list[SubResource] + resourceGuid: str + virtualNetworks: list[SubResource] + + + class azure.mgmt.network.types.DdosSettings(TypedDict, total=False): + key "ddosCustomPolicy": ForwardRef('SubResource', module='types') + key "ddosProtectionPlan": ForwardRef('SubResource', module='types') + key "protectionMode": Union[str, DdosSettingsProtectionMode] + ddosCustomPolicy: SubResource + ddosProtectionPlan: SubResource + protectionMode: Union[str, DdosSettingsProtectionMode] + + + class azure.mgmt.network.types.DefaultAdminPropertiesFormat(TypedDict, total=False): + key "access": Union[str, SecurityConfigurationRuleAccess] + key "description": str + key "direction": Union[str, SecurityConfigurationRuleDirection] + key "flag": str + key "priority": int + key "protocol": Union[str, SecurityConfigurationRuleProtocol] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + access: Union[str, SecurityConfigurationRuleAccess] + description: str + destinationPortRanges: list[str] + destinations: list[AddressPrefixItem] + direction: Union[str, SecurityConfigurationRuleDirection] + flag: str + priority: int + protocol: Union[str, SecurityConfigurationRuleProtocol] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + sourcePortRanges: list[str] + sources: list[AddressPrefixItem] + + + class azure.mgmt.network.types.DefaultAdminRule(TypedDict, total=False): + key "etag": str + key "id": str + key "kind": Required[Literal[AdminRuleKind.DEFAULT]] + key "name": str + key "properties": ForwardRef('DefaultAdminPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + kind: Literal[AdminRuleKind.DEFAULT] + name: str + properties: DefaultAdminPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.Delegation(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ServiceDelegationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ServiceDelegationPropertiesFormat + type: str + + + class azure.mgmt.network.types.DelegationProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "serviceName": str + provisioningState: Union[str, ProvisioningState] + serviceName: str + + + class azure.mgmt.network.types.DeviceProperties(TypedDict, total=False): + key "deviceModel": str + key "deviceVendor": str + key "linkSpeedInMbps": int + deviceModel: str + deviceVendor: str + linkSpeedInMbps: int + + + class azure.mgmt.network.types.DhcpOptions(TypedDict, total=False): + dnsServers: list[str] + + + class azure.mgmt.network.types.DiagnosticOperationsSettings(TypedDict, total=False): + key "connectivityCheckSettings": ForwardRef('ConnectivityCheckSettings', module='types') + key "expressRouteDiagnosticsSettings": ForwardRef('ExpressRouteDiagnosticsSettings', module='types') + connectivityCheckSettings: ConnectivityCheckSettings + expressRouteDiagnosticsSettings: ExpressRouteDiagnosticsSettings + + + class azure.mgmt.network.types.DisassociateCloudServicePublicIpRequest(TypedDict, total=False): + key "publicIpArmId": Required[str] + publicIpArmId: str + + + class azure.mgmt.network.types.DnsSettings(TypedDict, total=False): + key "enableProxy": bool + key "requireProxyForNetworkRules": Optional[bool] + enableProxy: bool + requireProxyForNetworkRules: bool + servers: list[str] + + + class azure.mgmt.network.types.DscpConfiguration(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('DscpConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: DscpConfigurationPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.DscpConfigurationPropertiesFormat(TypedDict, total=False): + key "protocol": Union[str, ProtocolType] + key "provisioningState": Union[str, ProvisioningState] + key "qosCollectionId": str + key "resourceGuid": str + associatedNetworkInterfaces: list[NetworkInterface] + destinationIpRanges: list[QosIpRange] + destinationPortRanges: list[QosPortRange] + markings: list[int] + protocol: Union[str, ProtocolType] + provisioningState: Union[str, ProvisioningState] + qosCollectionId: str + qosDefinitionCollection: list[QosDefinition] + resourceGuid: str + sourceIpRanges: list[QosIpRange] + sourcePortRanges: list[QosPortRange] + + + class azure.mgmt.network.types.EffectiveRoutesParameters(TypedDict, total=False): + key "resourceId": str + key "virtualWanResourceType": str + resourceId: str + virtualWanResourceType: str + + + class azure.mgmt.network.types.ExceptionEntry(TypedDict, total=False): + key "matchVariable": Required[Union[str, ExceptionEntryMatchVariable]] + key "selector": str + key "selectorMatchOperator": Union[str, ExceptionEntrySelectorMatchOperator] + key "valueMatchOperator": Required[Union[str, ExceptionEntryValueMatchOperator]] + exceptionManagedRuleSets: list[ExclusionManagedRuleSet] + matchVariable: Union[str, ExceptionEntryMatchVariable] + selector: str + selectorMatchOperator: Union[str, ExceptionEntrySelectorMatchOperator] + valueMatchOperator: Union[str, ExceptionEntryValueMatchOperator] + values: list[str] + + + class azure.mgmt.network.types.ExclusionManagedRule(TypedDict, total=False): + key "ruleId": Required[str] + ruleId: str + + + class azure.mgmt.network.types.ExclusionManagedRuleGroup(TypedDict, total=False): + key "ruleGroupName": Required[str] + ruleGroupName: str + rules: list[ExclusionManagedRule] + + + class azure.mgmt.network.types.ExclusionManagedRuleSet(TypedDict, total=False): + key "ruleSetType": Required[str] + key "ruleSetVersion": Required[str] + ruleGroups: list[ExclusionManagedRuleGroup] + ruleSetType: str + ruleSetVersion: str + + + class azure.mgmt.network.types.ExplicitProxy(TypedDict, total=False): + key "enableExplicitProxy": Optional[bool] + key "enablePacFile": Optional[bool] + key "httpPort": int + key "httpsPort": int + key "pacFile": str + key "pacFilePort": int + enableExplicitProxy: bool + enablePacFile: bool + httpPort: int + httpsPort: int + pacFile: str + pacFilePort: int + + + class azure.mgmt.network.types.ExpressRouteCircuit(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('ExpressRouteCircuitPropertiesFormat', module='types') + key "sku": ForwardRef('ExpressRouteCircuitSku', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ExpressRouteCircuitPropertiesFormat + sku: ExpressRouteCircuitSku + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ExpressRouteCircuitAuthorization(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('AuthorizationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: AuthorizationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRouteCircuitConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ExpressRouteCircuitConnectionPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ExpressRouteCircuitConnectionPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRouteCircuitConnectionPropertiesFormat(TypedDict, total=False): + key "addressPrefix": str + key "authorizationKey": str + key "circuitConnectionStatus": Union[str, CircuitConnectionStatus] + key "expressRouteCircuitPeering": ForwardRef('SubResource', module='types') + key "ipv6CircuitConnectionConfig": ForwardRef('Ipv6CircuitConnectionConfig', module='types') + key "peerExpressRouteCircuitPeering": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + addressPrefix: str + authorizationKey: str + circuitConnectionStatus: Union[str, CircuitConnectionStatus] + expressRouteCircuitPeering: SubResource + ipv6CircuitConnectionConfig: Ipv6CircuitConnectionConfig + peerExpressRouteCircuitPeering: SubResource + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ExpressRouteCircuitPeering(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ExpressRouteCircuitPeeringPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ExpressRouteCircuitPeeringPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRouteCircuitPeeringConfig(TypedDict, total=False): + key "advertisedPublicPrefixesState": Union[str, ExpressRouteCircuitPeeringAdvertisedPublicPrefixState] + key "customerASN": int + key "legacyMode": int + key "routingRegistryName": str + advertisedCommunities: list[str] + advertisedPublicPrefixInfo: list[AdvertisedPublicPrefixProperties] + advertisedPublicPrefixes: list[str] + advertisedPublicPrefixesState: Union[str, ExpressRouteCircuitPeeringAdvertisedPublicPrefixState] + customerASN: int + legacyMode: int + routingRegistryName: str + + + class azure.mgmt.network.types.ExpressRouteCircuitPeeringId(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.ExpressRouteCircuitPeeringPropertiesFormat(TypedDict, total=False): + key "azureASN": int + key "expressRouteConnection": ForwardRef('ExpressRouteConnectionId', module='types') + key "gatewayManagerEtag": str + key "ipv6PeeringConfig": ForwardRef('Ipv6ExpressRouteCircuitPeeringConfig', module='types') + key "lastModifiedBy": str + key "microsoftPeeringConfig": ForwardRef('ExpressRouteCircuitPeeringConfig', module='types') + key "peerASN": int + key "peeringType": Union[str, ExpressRoutePeeringType] + key "primaryAzurePort": str + key "primaryPeerAddressPrefix": str + key "provisioningState": Union[str, ProvisioningState] + key "routeFilter": ForwardRef('SubResource', module='types') + key "secondaryAzurePort": str + key "secondaryPeerAddressPrefix": str + key "sharedKey": str + key "state": Union[str, ExpressRoutePeeringState] + key "stats": ForwardRef('ExpressRouteCircuitStats', module='types') + key "vlanId": int + azureASN: int + connections: list[ExpressRouteCircuitConnection] + expressRouteConnection: ExpressRouteConnectionId + gatewayManagerEtag: str + ipv6PeeringConfig: Ipv6ExpressRouteCircuitPeeringConfig + lastModifiedBy: str + microsoftPeeringConfig: ExpressRouteCircuitPeeringConfig + peerASN: int + peeredConnections: list[PeerExpressRouteCircuitConnection] + peeringType: Union[str, ExpressRoutePeeringType] + primaryAzurePort: str + primaryPeerAddressPrefix: str + provisioningState: Union[str, ProvisioningState] + routeFilter: SubResource + secondaryAzurePort: str + secondaryPeerAddressPrefix: str + sharedKey: str + state: Union[str, ExpressRoutePeeringState] + stats: ExpressRouteCircuitStats + vlanId: int + + + class azure.mgmt.network.types.ExpressRouteCircuitPropertiesFormat(TypedDict, total=False): + key "activationKey": str + key "allowClassicOperations": bool + key "authorizationKey": str + key "authorizationStatus": str + key "bandwidthInGbps": float + key "circuitProvisioningState": str + key "enableDirectPortRateLimit": bool + key "expressRoutePort": ForwardRef('SubResource', module='types') + key "gatewayManagerEtag": str + key "globalReachEnabled": bool + key "partnerAccountId": str + key "provisioningState": Union[str, ProvisioningState] + key "resiliencyLevel": Union[str, ResiliencyLevel] + key "serviceKey": str + key "serviceProviderNotes": str + key "serviceProviderProperties": ForwardRef('ExpressRouteCircuitServiceProviderProperties', module='types') + key "serviceProviderProvisioningState": Union[str, ServiceProviderProvisioningState] + key "stag": int + activationKey: str + allowClassicOperations: bool + authorizationKey: str + authorizationStatus: str + authorizations: list[ExpressRouteCircuitAuthorization] + bandwidthInGbps: float + circuitProvisioningState: str + enableDirectPortRateLimit: bool + expressRoutePort: SubResource + gatewayManagerEtag: str + globalReachEnabled: bool + partnerAccountId: str + peerings: list[ExpressRouteCircuitPeering] + provisioningState: Union[str, ProvisioningState] + resiliencyLevel: Union[str, ResiliencyLevel] + serviceKey: str + serviceProviderNotes: str + serviceProviderProperties: ExpressRouteCircuitServiceProviderProperties + serviceProviderProvisioningState: Union[str, ServiceProviderProvisioningState] + stag: int + + + class azure.mgmt.network.types.ExpressRouteCircuitReference(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.ExpressRouteCircuitServiceProviderProperties(TypedDict, total=False): + key "bandwidthInMbps": int + key "peeringLocation": str + key "serviceProviderName": str + bandwidthInMbps: int + peeringLocation: str + serviceProviderName: str + + + class azure.mgmt.network.types.ExpressRouteCircuitSku(TypedDict, total=False): + key "family": Union[str, ExpressRouteCircuitSkuFamily] + key "name": str + key "tier": Union[str, ExpressRouteCircuitSkuTier] + family: Union[str, ExpressRouteCircuitSkuFamily] + name: str + tier: Union[str, ExpressRouteCircuitSkuTier] + + + class azure.mgmt.network.types.ExpressRouteCircuitStats(TypedDict, total=False): + key "primarybytesIn": int + key "primarybytesOut": int + key "secondarybytesIn": int + key "secondarybytesOut": int + primarybytesIn: int + primarybytesOut: int + secondarybytesIn: int + secondarybytesOut: int + + + class azure.mgmt.network.types.ExpressRouteConnection(SubResource): + key "id": str + key "name": Required[str] + key "properties": ForwardRef('ExpressRouteConnectionProperties', module='types') + id: str + name: str + properties: ExpressRouteConnectionProperties + + + class azure.mgmt.network.types.ExpressRouteConnectionId(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.ExpressRouteConnectionProperties(TypedDict, total=False): + key "authorizationKey": str + key "enableInternetSecurity": bool + key "enablePrivateLinkFastPath": bool + key "expressRouteCircuitPeering": Required[ExpressRouteCircuitPeeringId] + key "expressRouteGatewayBypass": bool + key "provisioningState": Union[str, ProvisioningState] + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + key "routingWeight": int + authorizationKey: str + enableInternetSecurity: bool + enablePrivateLinkFastPath: bool + expressRouteCircuitPeering: ExpressRouteCircuitPeeringId + expressRouteGatewayBypass: bool + provisioningState: Union[str, ProvisioningState] + routingConfiguration: RoutingConfiguration + routingWeight: int + + + class azure.mgmt.network.types.ExpressRouteCrossConnection(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('ExpressRouteCrossConnectionProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ExpressRouteCrossConnectionProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ExpressRouteCrossConnectionPeering(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ExpressRouteCrossConnectionPeeringProperties', module='types') + etag: str + id: str + name: str + properties: ExpressRouteCrossConnectionPeeringProperties + + + class azure.mgmt.network.types.ExpressRouteCrossConnectionPeeringProperties(TypedDict, total=False): + key "azureASN": int + key "gatewayManagerEtag": str + key "ipv6PeeringConfig": ForwardRef('Ipv6ExpressRouteCircuitPeeringConfig', module='types') + key "lastModifiedBy": str + key "microsoftPeeringConfig": ForwardRef('ExpressRouteCircuitPeeringConfig', module='types') + key "peerASN": int + key "peeringType": Union[str, ExpressRoutePeeringType] + key "primaryAzurePort": str + key "primaryPeerAddressPrefix": str + key "provisioningState": Union[str, ProvisioningState] + key "secondaryAzurePort": str + key "secondaryPeerAddressPrefix": str + key "sharedKey": str + key "state": Union[str, ExpressRoutePeeringState] + key "vlanId": int + azureASN: int + gatewayManagerEtag: str + ipv6PeeringConfig: Ipv6ExpressRouteCircuitPeeringConfig + lastModifiedBy: str + microsoftPeeringConfig: ExpressRouteCircuitPeeringConfig + peerASN: int + peeringType: Union[str, ExpressRoutePeeringType] + primaryAzurePort: str + primaryPeerAddressPrefix: str + provisioningState: Union[str, ProvisioningState] + secondaryAzurePort: str + secondaryPeerAddressPrefix: str + sharedKey: str + state: Union[str, ExpressRoutePeeringState] + vlanId: int + + + class azure.mgmt.network.types.ExpressRouteCrossConnectionProperties(TypedDict, total=False): + key "bandwidthInMbps": int + key "expressRouteCircuit": ForwardRef('ExpressRouteCircuitReference', module='types') + key "peeringLocation": str + key "primaryAzurePort": str + key "provisioningState": Union[str, ProvisioningState] + key "sTag": int + key "secondaryAzurePort": str + key "serviceProviderNotes": str + key "serviceProviderProvisioningState": Union[str, ServiceProviderProvisioningState] + bandwidthInMbps: int + expressRouteCircuit: ExpressRouteCircuitReference + peeringLocation: str + peerings: list[ExpressRouteCrossConnectionPeering] + primaryAzurePort: str + provisioningState: Union[str, ProvisioningState] + sTag: int + secondaryAzurePort: str + serviceProviderNotes: str + serviceProviderProvisioningState: Union[str, ServiceProviderProvisioningState] + + + class azure.mgmt.network.types.ExpressRouteDiagnosticsSettings(TypedDict, total=False): + key "bandwidth": float + key "erCircuitResourceId": str + bandwidth: float + erCircuitResourceId: str + + + class azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters(TypedDict, total=False): + key "peeringLocation": str + key "wasSimulationSuccessful": bool + details: list[FailoverConnectionDetails] + peeringLocation: str + wasSimulationSuccessful: bool + + + class azure.mgmt.network.types.ExpressRouteGateway(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('ExpressRouteGatewayProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ExpressRouteGatewayProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ExpressRouteGatewayProperties(TypedDict, total=False): + key "allowNonVirtualWanTraffic": bool + key "autoScaleConfiguration": ForwardRef('ExpressRouteGatewayPropertiesAutoScaleConfiguration', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "virtualHub": Required[VirtualHubId] + allowNonVirtualWanTraffic: bool + autoScaleConfiguration: ExpressRouteGatewayPropertiesAutoScaleConfiguration + expressRouteConnections: list[ExpressRouteConnection] + provisioningState: Union[str, ProvisioningState] + virtualHub: VirtualHubId + + + class azure.mgmt.network.types.ExpressRouteGatewayPropertiesAutoScaleConfiguration(TypedDict, total=False): + key "bounds": ForwardRef('ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds', module='types') + bounds: ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + + + class azure.mgmt.network.types.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds(TypedDict, total=False): + key "max": int + key "min": int + max: int + min: int + + + class azure.mgmt.network.types.ExpressRouteLag(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('ExpressRouteLagPropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: ExpressRouteLagPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ExpressRouteLagLink(SubResource): + key "etag": str + key "id": Required[str] + key "name": Required[str] + key "properties": ForwardRef('ExpressRouteLagLinkPropertiesFormat', module='types') + key "type": Required[str] + etag: str + id: str + name: str + properties: ExpressRouteLagLinkPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRouteLagLinkPropertiesFormat(TypedDict, total=False): + key "adminState": Union[str, ExpressRouteLinkAdminState] + key "interfaceName": str + key "macSecConfig": ForwardRef('ExpressRouteLinkMacSecConfig', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "routerName": str + adminState: Union[str, ExpressRouteLinkAdminState] + interfaceName: str + macSecConfig: ExpressRouteLinkMacSecConfig + members: list[ExpressRouteLagMember] + provisioningState: Union[str, ProvisioningState] + routerName: str + + + class azure.mgmt.network.types.ExpressRouteLagMember(SubResource): + key "etag": str + key "id": Required[str] + key "name": Required[str] + key "properties": ForwardRef('ExpressRouteLagMemberPropertiesFormat', module='types') + key "type": Required[str] + etag: str + id: str + name: str + properties: ExpressRouteLagMemberPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRouteLagMemberPropertiesFormat(TypedDict, total=False): + key "adminState": Union[str, ExpressRouteLinkAdminState] + key "coloLocation": str + key "connectorType": Union[str, ExpressRouteLinkConnectorType] + key "interfaceName": str + key "patchPanelId": str + key "provisioningState": Union[str, ProvisioningState] + key "rackId": str + adminState: Union[str, ExpressRouteLinkAdminState] + coloLocation: str + connectorType: Union[str, ExpressRouteLinkConnectorType] + interfaceName: str + patchPanelId: str + provisioningState: Union[str, ProvisioningState] + rackId: str + + + class azure.mgmt.network.types.ExpressRouteLagPropertiesFormat(TypedDict, total=False): + key "allocationDate": str + key "bandwidthInGbps": int + key "billingType": Union[str, ExpressRouteLagBillingType] + key "encapsulation": Union[str, ExpressRouteLagEncapsulation] + key "etherType": str + key "lacpTimer": Union[str, ExpressRouteLagLacpTimer] + key "minimumActivePortsRequired": int + key "mtu": str + key "numberOfPorts": int + key "peeringLocation": str + key "provisionedBandwidthInGbps": float + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + allocationDate: str + bandwidthInGbps: int + billingType: Union[str, ExpressRouteLagBillingType] + encapsulation: Union[str, ExpressRouteLagEncapsulation] + etherType: str + lacpTimer: Union[str, ExpressRouteLagLacpTimer] + links: list[ExpressRouteLagLink] + minimumActivePortsRequired: int + mtu: str + numberOfPorts: int + peeringLocation: str + provisionedBandwidthInGbps: float + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.ExpressRouteLagUpdateTagsOrIdentityRequest(TypedDict, total=False): + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + identity: ManagedServiceIdentity + tags: dict[str, str] + + + class azure.mgmt.network.types.ExpressRouteLink(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ExpressRouteLinkPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: ExpressRouteLinkPropertiesFormat + + + class azure.mgmt.network.types.ExpressRouteLinkFailoverStopApiParameters(TypedDict, total=False): + key "circuitTestCategory": str + key "isVerified": bool + key "linkType": str + key "wasSimulationSuccessful": bool + circuitTestCategory: str + isVerified: bool + linkType: str + wasSimulationSuccessful: bool + + + class azure.mgmt.network.types.ExpressRouteLinkMacSecConfig(TypedDict, total=False): + key "cakSecretIdentifier": str + key "cipher": Union[str, ExpressRouteLinkMacSecCipher] + key "cknSecretIdentifier": str + key "sciState": Union[str, ExpressRouteLinkMacSecSciState] + cakSecretIdentifier: str + cipher: Union[str, ExpressRouteLinkMacSecCipher] + cknSecretIdentifier: str + sciState: Union[str, ExpressRouteLinkMacSecSciState] + + + class azure.mgmt.network.types.ExpressRouteLinkPropertiesFormat(TypedDict, total=False): + key "adminState": Union[str, ExpressRouteLinkAdminState] + key "coloLocation": str + key "connectorType": Union[str, ExpressRouteLinkConnectorType] + key "interfaceName": str + key "macSecConfig": ForwardRef('ExpressRouteLinkMacSecConfig', module='types') + key "patchPanelId": str + key "provisioningState": Union[str, ProvisioningState] + key "rackId": str + key "routerName": str + adminState: Union[str, ExpressRouteLinkAdminState] + coloLocation: str + connectorType: Union[str, ExpressRouteLinkConnectorType] + interfaceName: str + macSecConfig: ExpressRouteLinkMacSecConfig + patchPanelId: str + provisioningState: Union[str, ProvisioningState] + rackId: str + routerName: str + + + class azure.mgmt.network.types.ExpressRoutePort(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('ExpressRoutePortPropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: ExpressRoutePortPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ExpressRoutePortAuthorization(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ExpressRoutePortAuthorizationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ExpressRoutePortAuthorizationPropertiesFormat + type: str + + + class azure.mgmt.network.types.ExpressRoutePortAuthorizationPropertiesFormat(TypedDict, total=False): + key "authorizationKey": str + key "authorizationUseStatus": Union[str, ExpressRoutePortAuthorizationUseStatus] + key "circuitResourceUri": str + key "provisioningState": Union[str, ProvisioningState] + authorizationKey: str + authorizationUseStatus: Union[str, ExpressRoutePortAuthorizationUseStatus] + circuitResourceUri: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ExpressRoutePortPropertiesFormat(TypedDict, total=False): + key "allocationDate": str + key "bandwidthInGbps": int + key "billingType": Union[str, ExpressRoutePortsBillingType] + key "encapsulation": Union[str, ExpressRoutePortsEncapsulation] + key "etherType": str + key "mtu": str + key "peeringLocation": str + key "provisionedBandwidthInGbps": float + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + allocationDate: str + bandwidthInGbps: int + billingType: Union[str, ExpressRoutePortsBillingType] + circuits: list[SubResource] + encapsulation: Union[str, ExpressRoutePortsEncapsulation] + etherType: str + links: list[ExpressRouteLink] + mtu: str + peeringLocation: str + provisionedBandwidthInGbps: float + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.ExtendedLocation(TypedDict, total=False): + key "name": str + key "type": Union[str, ExtendedLocationTypes] + name: str + type: Union[str, ExtendedLocationTypes] + + + class azure.mgmt.network.types.FailoverConnectionDetails(TypedDict, total=False): + key "failoverConnectionName": str + key "failoverLocation": str + key "isVerified": bool + failoverConnectionName: str + failoverLocation: str + isVerified: bool + + + class azure.mgmt.network.types.FilterItems(TypedDict, total=False): + key "field": str + field: str + values: list[str] + + + class azure.mgmt.network.types.FirewallPacketCaptureParameters(TypedDict, total=False): + key "durationInSeconds": int + key "fileName": str + key "numberOfPacketsToCapture": int + key "operation": Union[str, AzureFirewallPacketCaptureOperationType] + key "protocol": Union[str, AzureFirewallNetworkRuleProtocol] + key "sasUrl": str + durationInSeconds: int + fileName: str + filters: list[AzureFirewallPacketCaptureRule] + flags: list[AzureFirewallPacketCaptureFlags] + numberOfPacketsToCapture: int + operation: Union[str, AzureFirewallPacketCaptureOperationType] + protocol: Union[str, AzureFirewallNetworkRuleProtocol] + sasUrl: str + + + class azure.mgmt.network.types.FirewallPolicy(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('FirewallPolicyPropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: FirewallPolicyPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.FirewallPolicyCertificateAuthority(TypedDict, total=False): + key "keyVaultSecretId": str + key "name": str + keyVaultSecretId: str + name: str + + + class azure.mgmt.network.types.FirewallPolicyDraft(Resource): + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('FirewallPolicyDraftProperties', module='types') + key "type": str + id: str + location: str + name: str + properties: FirewallPolicyDraftProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.FirewallPolicyDraftProperties(TypedDict, total=False): + key "basePolicy": ForwardRef('SubResource', module='types') + key "dnsSettings": ForwardRef('DnsSettings', module='types') + key "explicitProxy": ForwardRef('ExplicitProxy', module='types') + key "insights": ForwardRef('FirewallPolicyInsights', module='types') + key "intrusionDetection": ForwardRef('FirewallPolicyIntrusionDetection', module='types') + key "snat": ForwardRef('FirewallPolicySNAT', module='types') + key "sql": ForwardRef('FirewallPolicySQL', module='types') + key "threatIntelMode": Union[str, AzureFirewallThreatIntelMode] + key "threatIntelWhitelist": ForwardRef('FirewallPolicyThreatIntelWhitelist', module='types') + basePolicy: SubResource + dnsSettings: DnsSettings + explicitProxy: ExplicitProxy + insights: FirewallPolicyInsights + intrusionDetection: FirewallPolicyIntrusionDetection + snat: FirewallPolicySNAT + sql: FirewallPolicySQL + threatIntelMode: Union[str, AzureFirewallThreatIntelMode] + threatIntelWhitelist: FirewallPolicyThreatIntelWhitelist + + + class azure.mgmt.network.types.FirewallPolicyFilterRuleCollection(TypedDict, total=False): + key "action": ForwardRef('FirewallPolicyFilterRuleCollectionAction', module='types') + key "name": str + key "priority": int + key "ruleCollectionType": Required[Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION]] + action: FirewallPolicyFilterRuleCollectionAction + name: str + priority: int + ruleCollectionType: Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION] + rules: list[FirewallPolicyRule] + + + class azure.mgmt.network.types.FirewallPolicyFilterRuleCollectionAction(TypedDict, total=False): + key "type": Union[str, FirewallPolicyFilterRuleCollectionActionType] + type: Union[str, FirewallPolicyFilterRuleCollectionActionType] + + + class azure.mgmt.network.types.FirewallPolicyHttpHeaderToInsert(TypedDict, total=False): + key "headerName": str + key "headerValue": str + headerName: str + headerValue: str + + + class azure.mgmt.network.types.FirewallPolicyInsights(TypedDict, total=False): + key "isEnabled": bool + key "logAnalyticsResources": ForwardRef('FirewallPolicyLogAnalyticsResources', module='types') + key "retentionDays": int + isEnabled: bool + logAnalyticsResources: FirewallPolicyLogAnalyticsResources + retentionDays: int + + + class azure.mgmt.network.types.FirewallPolicyIntrusionDetection(TypedDict, total=False): + key "configuration": ForwardRef('FirewallPolicyIntrusionDetectionConfiguration', module='types') + key "mode": Union[str, FirewallPolicyIntrusionDetectionStateType] + key "profile": Union[str, FirewallPolicyIntrusionDetectionProfileType] + configuration: FirewallPolicyIntrusionDetectionConfiguration + mode: Union[str, FirewallPolicyIntrusionDetectionStateType] + profile: Union[str, FirewallPolicyIntrusionDetectionProfileType] + + + class azure.mgmt.network.types.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications(TypedDict, total=False): + key "description": str + key "name": str + key "protocol": Union[str, FirewallPolicyIntrusionDetectionProtocol] + description: str + destinationAddresses: list[str] + destinationIpGroups: list[str] + destinationPorts: list[str] + name: str + protocol: Union[str, FirewallPolicyIntrusionDetectionProtocol] + sourceAddresses: list[str] + sourceIpGroups: list[str] + + + class azure.mgmt.network.types.FirewallPolicyIntrusionDetectionConfiguration(TypedDict, total=False): + bypassTrafficSettings: list[FirewallPolicyIntrusionDetectionBypassTrafficSpecifications] + privateRanges: list[str] + signatureOverrides: list[FirewallPolicyIntrusionDetectionSignatureSpecification] + + + class azure.mgmt.network.types.FirewallPolicyIntrusionDetectionSignatureSpecification(TypedDict, total=False): + key "id": str + key "mode": Union[str, FirewallPolicyIntrusionDetectionStateType] + id: str + mode: Union[str, FirewallPolicyIntrusionDetectionStateType] + + + class azure.mgmt.network.types.FirewallPolicyKubeSelectorGroup(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('FirewallPolicyKubeSelectorGroupProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: FirewallPolicyKubeSelectorGroupProperties + type: str + + + class azure.mgmt.network.types.FirewallPolicyKubeSelectorGroupProperties(TypedDict, total=False): + key "namespaceSelector": ForwardRef('KubeLabelSelector', module='types') + key "podSelector": ForwardRef('KubeLabelSelector', module='types') + key "provisioningState": Union[str, ProvisioningState] + namespaceSelector: KubeLabelSelector + podSelector: KubeLabelSelector + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.FirewallPolicyLogAnalyticsResources(TypedDict, total=False): + key "defaultWorkspaceId": ForwardRef('SubResource', module='types') + defaultWorkspaceId: SubResource + workspaces: list[FirewallPolicyLogAnalyticsWorkspace] + + + class azure.mgmt.network.types.FirewallPolicyLogAnalyticsWorkspace(TypedDict, total=False): + key "region": str + key "workspaceId": ForwardRef('SubResource', module='types') + region: str + workspaceId: SubResource + + + class azure.mgmt.network.types.FirewallPolicyNatRuleCollection(TypedDict, total=False): + key "action": ForwardRef('FirewallPolicyNatRuleCollectionAction', module='types') + key "name": str + key "priority": int + key "ruleCollectionType": Required[Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_NAT_RULE_COLLECTION]] + action: FirewallPolicyNatRuleCollectionAction + name: str + priority: int + ruleCollectionType: Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_NAT_RULE_COLLECTION] + rules: list[FirewallPolicyRule] + + + class azure.mgmt.network.types.FirewallPolicyNatRuleCollectionAction(TypedDict, total=False): + key "type": Union[str, FirewallPolicyNatRuleCollectionActionType] + type: Union[str, FirewallPolicyNatRuleCollectionActionType] + + + class azure.mgmt.network.types.FirewallPolicyPropertiesFormat(TypedDict, total=False): + key "afcManaged": bool + key "basePolicy": ForwardRef('SubResource', module='types') + key "dnsSettings": ForwardRef('DnsSettings', module='types') + key "explicitProxy": ForwardRef('ExplicitProxy', module='types') + key "insights": ForwardRef('FirewallPolicyInsights', module='types') + key "intrusionDetection": ForwardRef('FirewallPolicyIntrusionDetection', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "size": str + key "sku": ForwardRef('FirewallPolicySku', module='types') + key "snat": ForwardRef('FirewallPolicySNAT', module='types') + key "sql": ForwardRef('FirewallPolicySQL', module='types') + key "threatIntelMode": Union[str, AzureFirewallThreatIntelMode] + key "threatIntelWhitelist": ForwardRef('FirewallPolicyThreatIntelWhitelist', module='types') + key "transportSecurity": ForwardRef('FirewallPolicyTransportSecurity', module='types') + afcManaged: bool + basePolicy: SubResource + childPolicies: list[SubResource] + dnsSettings: DnsSettings + explicitProxy: ExplicitProxy + firewalls: list[SubResource] + insights: FirewallPolicyInsights + intrusionDetection: FirewallPolicyIntrusionDetection + kubeSelectorGroups: list[SubResource] + provisioningState: Union[str, ProvisioningState] + ruleCollectionGroups: list[SubResource] + size: str + sku: FirewallPolicySku + snat: FirewallPolicySNAT + sql: FirewallPolicySQL + threatIntelMode: Union[str, AzureFirewallThreatIntelMode] + threatIntelWhitelist: FirewallPolicyThreatIntelWhitelist + transportSecurity: FirewallPolicyTransportSecurity + + + class azure.mgmt.network.types.FirewallPolicyRuleApplicationProtocol(TypedDict, total=False): + key "port": int + key "protocolType": Union[str, FirewallPolicyRuleApplicationProtocolType] + port: int + protocolType: Union[str, FirewallPolicyRuleApplicationProtocolType] + + + class azure.mgmt.network.types.FirewallPolicyRuleCollectionGroup(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('FirewallPolicyRuleCollectionGroupProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: FirewallPolicyRuleCollectionGroupProperties + type: str + + + class azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraft(SubResourceModel): + key "id": str + key "name": str + key "properties": ForwardRef('FirewallPolicyRuleCollectionGroupDraftProperties', module='types') + key "type": str + id: str + name: str + properties: FirewallPolicyRuleCollectionGroupDraftProperties + type: str + + + class azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraftProperties(TypedDict, total=False): + key "priority": int + key "size": str + priority: int + ruleCollections: list[FirewallPolicyRuleCollection] + size: str + + + class azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupProperties(TypedDict, total=False): + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + key "size": str + priority: int + provisioningState: Union[str, ProvisioningState] + ruleCollections: list[FirewallPolicyRuleCollection] + size: str + + + class azure.mgmt.network.types.FirewallPolicyRuleCollectionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + FIREWALL_POLICY_FILTER_RULE_COLLECTION = "FirewallPolicyFilterRuleCollection" + FIREWALL_POLICY_NAT_RULE_COLLECTION = "FirewallPolicyNatRuleCollection" + + + class azure.mgmt.network.types.FirewallPolicyRuleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + APPLICATION_RULE = "ApplicationRule" + NAT_RULE = "NatRule" + NETWORK_RULE = "NetworkRule" + + + class azure.mgmt.network.types.FirewallPolicySNAT(TypedDict, total=False): + key "autoLearnPrivateRanges": Union[str, AutoLearnPrivateRangesMode] + autoLearnPrivateRanges: Union[str, AutoLearnPrivateRangesMode] + privateRanges: list[str] + + + class azure.mgmt.network.types.FirewallPolicySQL(TypedDict, total=False): + key "allowSqlRedirect": bool + allowSqlRedirect: bool + + + class azure.mgmt.network.types.FirewallPolicySku(TypedDict, total=False): + key "tier": Union[str, FirewallPolicySkuTier] + tier: Union[str, FirewallPolicySkuTier] + + + class azure.mgmt.network.types.FirewallPolicyThreatIntelWhitelist(TypedDict, total=False): + fqdns: list[str] + ipAddresses: list[str] + + + class azure.mgmt.network.types.FirewallPolicyTransportSecurity(TypedDict, total=False): + key "certificateAuthority": ForwardRef('FirewallPolicyCertificateAuthority', module='types') + certificateAuthority: FirewallPolicyCertificateAuthority + + + class azure.mgmt.network.types.FirstPartyServiceTag(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('FirstPartyServiceTagPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: FirstPartyServiceTagPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.FirstPartyServiceTagPropertiesFormat(TypedDict, total=False): + key "failedReason": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "value": Required[str] + failedReason: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + value: str + + + class azure.mgmt.network.types.FlowLog(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('FlowLogPropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: FlowLogPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.FlowLogFormatParameters(TypedDict, total=False): + key "type": Union[str, FlowLogFormatType] + key "version": int + type: Union[str, FlowLogFormatType] + version: int + + + class azure.mgmt.network.types.FlowLogInformation(TypedDict, total=False): + key "flowAnalyticsConfiguration": ForwardRef('TrafficAnalyticsProperties', module='types') + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "properties": Required[FlowLogProperties] + key "targetResourceId": Required[str] + flowAnalyticsConfiguration: TrafficAnalyticsProperties + identity: ManagedServiceIdentity + properties: FlowLogProperties + targetResourceId: str + + + class azure.mgmt.network.types.FlowLogProperties(TypedDict, total=False): + key "enabled": Required[bool] + key "enabledFilteringCriteria": str + key "format": ForwardRef('FlowLogFormatParameters', module='types') + key "recordTypes": str + key "retentionPolicy": ForwardRef('RetentionPolicyParameters', module='types') + key "storageId": Required[str] + enabled: bool + enabledFilteringCriteria: str + format: FlowLogFormatParameters + recordTypes: str + retentionPolicy: RetentionPolicyParameters + storageId: str + + + class azure.mgmt.network.types.FlowLogPropertiesFormat(TypedDict, total=False): + key "enabled": bool + key "enabledFilteringCriteria": str + key "flowAnalyticsConfiguration": ForwardRef('TrafficAnalyticsProperties', module='types') + key "format": ForwardRef('FlowLogFormatParameters', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "recordTypes": str + key "retentionPolicy": ForwardRef('RetentionPolicyParameters', module='types') + key "storageId": Required[str] + key "targetResourceGuid": str + key "targetResourceId": Required[str] + enabled: bool + enabledFilteringCriteria: str + flowAnalyticsConfiguration: TrafficAnalyticsProperties + format: FlowLogFormatParameters + provisioningState: Union[str, ProvisioningState] + recordTypes: str + retentionPolicy: RetentionPolicyParameters + storageId: str + targetResourceGuid: str + targetResourceId: str + + + class azure.mgmt.network.types.FlowLogStatusParameters(TypedDict, total=False): + key "targetResourceId": Required[str] + targetResourceId: str + + + class azure.mgmt.network.types.FrontendIPConfiguration(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('FrontendIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: FrontendIPConfigurationPropertiesFormat + type: str + zones: list[str] + + + class azure.mgmt.network.types.FrontendIPConfigurationPropertiesFormat(TypedDict, total=False): + key "ddosSettings": ForwardRef('DdosFrontendIpConfigurationSettings', module='types') + key "enableConnectionTracking": bool + key "gatewayLoadBalancer": ForwardRef('SubResource', module='types') + key "privateIPAddress": str + key "privateIPAddressVersion": Union[str, IPVersion] + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "publicIPPrefix": ForwardRef('SubResource', module='types') + key "subnet": ForwardRef('Subnet', module='types') + ddosSettings: DdosFrontendIpConfigurationSettings + enableConnectionTracking: bool + gatewayLoadBalancer: SubResource + inboundNatPools: list[SubResource] + inboundNatRules: list[SubResource] + loadBalancingRules: list[SubResource] + outboundRules: list[SubResource] + privateIPAddress: str + privateIPAddressVersion: Union[str, IPVersion] + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + publicIPAddress: PublicIPAddress + publicIPPrefix: SubResource + subnet: Subnet + + + class azure.mgmt.network.types.GatewayCustomBgpIpAddressIpConfiguration(TypedDict, total=False): + key "customBgpIpAddress": Required[str] + key "ipConfigurationId": Required[str] + customBgpIpAddress: str + ipConfigurationId: str + + + class azure.mgmt.network.types.GatewayLoadBalancerTunnelInterface(TypedDict, total=False): + key "identifier": int + key "port": int + key "protocol": Union[str, GatewayLoadBalancerTunnelProtocol] + key "type": Union[str, GatewayLoadBalancerTunnelInterfaceType] + identifier: int + port: int + protocol: Union[str, GatewayLoadBalancerTunnelProtocol] + type: Union[str, GatewayLoadBalancerTunnelInterfaceType] + + + class azure.mgmt.network.types.GenerateExpressRouteLagsLOARequest(TypedDict, total=False): + key "customerName": Required[str] + customerName: str + members: list[str] + + + class azure.mgmt.network.types.GenerateExpressRoutePortsLOARequest(TypedDict, total=False): + key "customerName": Required[str] + customerName: str + + + class azure.mgmt.network.types.GetInboundRoutesParameters(TypedDict, total=False): + key "connectionType": str + key "resourceUri": str + connectionType: str + resourceUri: str + + + class azure.mgmt.network.types.GetOutboundRoutesParameters(TypedDict, total=False): + key "connectionType": str + key "resourceUri": str + connectionType: str + resourceUri: str + + + class azure.mgmt.network.types.GetVpnSitesConfigurationRequest(TypedDict, total=False): + key "outputBlobSasUrl": Required[str] + outputBlobSasUrl: str + vpnSites: list[str] + + + class azure.mgmt.network.types.GroupByUserSession(TypedDict, total=False): + key "groupByVariables": Required[list[GroupByVariable]] + groupByVariables: list[GroupByVariable] + + + class azure.mgmt.network.types.GroupByVariable(TypedDict, total=False): + key "variableName": Required[Union[str, ApplicationGatewayFirewallUserSessionVariable]] + variableName: Union[str, ApplicationGatewayFirewallUserSessionVariable] + + + class azure.mgmt.network.types.HTTPConfiguration(TypedDict, total=False): + key "method": Union[str, HTTPMethod] + headers: list[HTTPHeader] + method: Union[str, HTTPMethod] + validStatusCodes: list[int] + + + class azure.mgmt.network.types.HTTPHeader(TypedDict, total=False): + key "name": str + key "value": str + name: str + value: str + + + class azure.mgmt.network.types.HeaderValueMatcher(TypedDict, total=False): + key "ignoreCase": bool + key "negate": bool + key "pattern": str + ignoreCase: bool + negate: bool + pattern: str + + + class azure.mgmt.network.types.Hub(TypedDict, total=False): + key "resourceId": str + key "resourceType": str + resourceId: str + resourceType: str + + + class azure.mgmt.network.types.HubIPAddresses(TypedDict, total=False): + key "privateIPAddress": str + key "publicIPs": ForwardRef('HubPublicIPAddresses', module='types') + privateIPAddress: str + publicIPs: HubPublicIPAddresses + + + class azure.mgmt.network.types.HubIPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "subnet": ForwardRef('Subnet', module='types') + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + publicIPAddress: PublicIPAddress + subnet: Subnet + + + class azure.mgmt.network.types.HubIpConfiguration(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('HubIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: HubIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.HubPublicIPAddresses(TypedDict, total=False): + key "count": int + addresses: list[AzureFirewallPublicIPAddress] + count: int + + + class azure.mgmt.network.types.HubRoute(TypedDict, total=False): + key "destinationType": Required[str] + key "destinations": Required[list[str]] + key "name": Required[str] + key "nextHop": Required[str] + key "nextHopType": Required[str] + destinationType: str + destinations: list[str] + name: str + nextHop: str + nextHopType: str + + + class azure.mgmt.network.types.HubRouteTable(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('HubRouteTableProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: HubRouteTableProperties + type: str + + + class azure.mgmt.network.types.HubRouteTableProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + associatedConnections: list[str] + labels: list[str] + propagatingConnections: list[str] + provisioningState: Union[str, ProvisioningState] + routes: list[HubRoute] + + + class azure.mgmt.network.types.HubVirtualNetworkConnection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('HubVirtualNetworkConnectionProperties', module='types') + etag: str + id: str + name: str + properties: HubVirtualNetworkConnectionProperties + + + class azure.mgmt.network.types.HubVirtualNetworkConnectionProperties(TypedDict, total=False): + key "allowHubToRemoteVnetTransit": bool + key "allowRemoteVnetToUseHubVnetGateways": bool + key "connectionPolicy": ForwardRef('SubResource', module='types') + key "enableInternetSecurity": bool + key "enableOnlyIpv6Peering": Union[str, EnableOnlyIpv6PeeringState] + key "provisioningState": Union[str, ProvisioningState] + key "remoteVirtualNetwork": ForwardRef('SubResource', module='types') + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + allowHubToRemoteVnetTransit: bool + allowRemoteVnetToUseHubVnetGateways: bool + connectionPolicy: SubResource + enableInternetSecurity: bool + enableOnlyIpv6Peering: Union[str, EnableOnlyIpv6PeeringState] + provisioningState: Union[str, ProvisioningState] + remoteVirtualNetwork: SubResource + routingConfiguration: RoutingConfiguration + + + class azure.mgmt.network.types.IDPSQueryObject(TypedDict, total=False): + key "orderBy": ForwardRef('OrderBy', module='types') + key "resultsPerPage": int + key "search": str + key "skip": int + filters: list[FilterItems] + orderBy: OrderBy + resultsPerPage: int + search: str + skip: int + + + class azure.mgmt.network.types.IPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('IPConfigurationPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: IPConfigurationPropertiesFormat + + + class azure.mgmt.network.types.IPConfigurationBgpPeeringAddress(TypedDict, total=False): + key "ipconfigurationId": str + customBgpIpAddresses: list[str] + defaultBgpIpAddresses: list[str] + ipconfigurationId: str + tunnelIpAddresses: list[str] + + + class azure.mgmt.network.types.IPConfigurationProfile(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('IPConfigurationProfilePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: IPConfigurationProfilePropertiesFormat + type: str + + + class azure.mgmt.network.types.IPConfigurationProfilePropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "subnet": ForwardRef('Subnet', module='types') + provisioningState: Union[str, ProvisioningState] + subnet: Subnet + + + class azure.mgmt.network.types.IPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "subnet": ForwardRef('Subnet', module='types') + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + publicIPAddress: PublicIPAddress + subnet: Subnet + + + class azure.mgmt.network.types.IPRule(TypedDict, total=False): + key "addressPrefix": str + addressPrefix: str + + + class azure.mgmt.network.types.IPTraffic(TypedDict, total=False): + key "destinationIps": Required[list[str]] + key "destinationPorts": Required[list[str]] + key "protocols": Required[list[Union[str, NetworkProtocol]]] + key "sourceIps": Required[list[str]] + key "sourcePorts": Required[list[str]] + destinationIps: list[str] + destinationPorts: list[str] + protocols: list[Union[str, NetworkProtocol]] + sourceIps: list[str] + sourcePorts: list[str] + + + class azure.mgmt.network.types.InboundNatPool(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('InboundNatPoolPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: InboundNatPoolPropertiesFormat + type: str + + + class azure.mgmt.network.types.InboundNatPoolPropertiesFormat(TypedDict, total=False): + key "backendPort": Required[int] + key "enableFloatingIP": bool + key "enableTcpReset": bool + key "frontendIPConfiguration": ForwardRef('SubResource', module='types') + key "frontendPortRangeEnd": Required[int] + key "frontendPortRangeStart": Required[int] + key "idleTimeoutInMinutes": int + key "protocol": Required[Union[str, TransportProtocol]] + key "provisioningState": Union[str, ProvisioningState] + backendPort: int + enableFloatingIP: bool + enableTcpReset: bool + frontendIPConfiguration: SubResource + frontendPortRangeEnd: int + frontendPortRangeStart: int + idleTimeoutInMinutes: int + protocol: Union[str, TransportProtocol] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.InboundNatRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('InboundNatRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: InboundNatRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.InboundNatRulePropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendIPConfiguration": ForwardRef('NetworkInterfaceIPConfiguration', module='types') + key "backendPort": int + key "enableFloatingIP": bool + key "enableTcpReset": bool + key "frontendIPConfiguration": ForwardRef('SubResource', module='types') + key "frontendPort": int + key "frontendPortRangeEnd": int + key "frontendPortRangeStart": int + key "idleTimeoutInMinutes": int + key "protocol": Union[str, TransportProtocol] + key "provisioningState": Union[str, ProvisioningState] + backendAddressPool: SubResource + backendIPConfiguration: NetworkInterfaceIPConfiguration + backendPort: int + enableFloatingIP: bool + enableTcpReset: bool + frontendIPConfiguration: SubResource + frontendPort: int + frontendPortRangeEnd: int + frontendPortRangeStart: int + idleTimeoutInMinutes: int + protocol: Union[str, TransportProtocol] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.InboundSecurityRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('InboundSecurityRuleProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: InboundSecurityRuleProperties + type: str + + + class azure.mgmt.network.types.InboundSecurityRuleProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "ruleType": Union[str, InboundSecurityRuleType] + provisioningState: Union[str, ProvisioningState] + ruleType: Union[str, InboundSecurityRuleType] + rules: list[InboundSecurityRules] + + + class azure.mgmt.network.types.InboundSecurityRules(TypedDict, total=False): + key "destinationPortRange": int + key "name": str + key "protocol": Union[str, InboundSecurityRulesProtocol] + key "sourceAddressPrefix": str + appliesOn: list[str] + destinationPortRange: int + destinationPortRanges: list[str] + name: str + protocol: Union[str, InboundSecurityRulesProtocol] + sourceAddressPrefix: str + + + class azure.mgmt.network.types.IntentContent(TypedDict, total=False): + key "description": str + key "destinationResourceId": Required[str] + key "ipTraffic": Required[IPTraffic] + key "sourceResourceId": Required[str] + description: str + destinationResourceId: str + ipTraffic: IPTraffic + sourceResourceId: str + + + class azure.mgmt.network.types.InterconnectGroup(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('InterconnectGroupPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: InterconnectGroupPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.InterconnectGroupPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "scope": Union[str, InterconnectGroupScope] + key "subgroupProfile": Required[SubgroupProfile] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + scope: Union[str, InterconnectGroupScope] + subgroupProfile: SubgroupProfile + subgroups: list[Subgroup] + + + class azure.mgmt.network.types.InternetIngressPublicIpsProperties(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.IpAllocation(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('IpAllocationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: IpAllocationPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.IpAllocationPropertiesFormat(TypedDict, total=False): + key "ipamAllocationId": str + key "prefix": str + key "prefixLength": Optional[int] + key "prefixType": Union[str, IPVersion] + key "subnet": ForwardRef('SubResource', module='types') + key "type": Union[str, IpAllocationType] + key "virtualNetwork": ForwardRef('SubResource', module='types') + allocationTags: dict[str, str] + ipamAllocationId: str + prefix: str + prefixLength: int + prefixType: Union[str, IPVersion] + subnet: SubResource + type: Union[str, IpAllocationType] + virtualNetwork: SubResource + + + class azure.mgmt.network.types.IpGroup(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('IpGroupPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: IpGroupPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.IpGroupPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + firewallPolicies: list[SubResource] + firewalls: list[SubResource] + ipAddresses: list[str] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.IpTag(TypedDict, total=False): + key "firstPartyServiceTagId": str + key "ipTagType": str + key "tag": str + firstPartyServiceTagId: str + ipTagType: str + tag: str + + + class azure.mgmt.network.types.IpamPool(CommonTrackedResource): + key "etag": str + key "id": str + key "location": Required[str] + key "name": str + key "properties": Required[IpamPoolProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: IpamPoolProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.IpamPoolPrefixAllocation(TypedDict, total=False): + key "numberOfIpAddresses": str + key "pool": ForwardRef('IpamPoolPrefixAllocationPool', module='types') + allocatedAddressPrefixes: list[str] + numberOfIpAddresses: str + pool: IpamPoolPrefixAllocationPool + + + class azure.mgmt.network.types.IpamPoolPrefixAllocationPool(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.IpamPoolProperties(TypedDict, total=False): + key "addressPrefixes": Required[list[str]] + key "description": str + key "displayName": str + key "parentPoolName": str + key "provisioningState": Union[str, ProvisioningState] + addressPrefixes: list[str] + description: str + displayName: str + ipAddressType: list[Union[str, IpType]] + parentPoolName: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.IpamPoolUpdate(TypedDict, total=False): + key "properties": ForwardRef('IpamPoolUpdateProperties', module='types') + properties: IpamPoolUpdateProperties + tags: dict[str, str] + + + class azure.mgmt.network.types.IpamPoolUpdateProperties(TypedDict, total=False): + key "description": str + key "displayName": str + description: str + displayName: str + + + class azure.mgmt.network.types.IpsecPolicy(TypedDict, total=False): + key "dhGroup": Required[Union[str, DhGroup]] + key "ikeEncryption": Required[Union[str, IkeEncryption]] + key "ikeIntegrity": Required[Union[str, IkeIntegrity]] + key "ipsecEncryption": Required[Union[str, IpsecEncryption]] + key "ipsecIntegrity": Required[Union[str, IpsecIntegrity]] + key "pfsGroup": Required[Union[str, PfsGroup]] + key "saDataSizeKilobytes": Required[int] + key "saLifeTimeSeconds": Required[int] + dhGroup: Union[str, DhGroup] + ikeEncryption: Union[str, IkeEncryption] + ikeIntegrity: Union[str, IkeIntegrity] + ipsecEncryption: Union[str, IpsecEncryption] + ipsecIntegrity: Union[str, IpsecIntegrity] + pfsGroup: Union[str, PfsGroup] + saDataSizeKilobytes: int + saLifeTimeSeconds: int + + + class azure.mgmt.network.types.Ipv6CircuitConnectionConfig(TypedDict, total=False): + key "addressPrefix": str + key "circuitConnectionStatus": Union[str, CircuitConnectionStatus] + addressPrefix: str + circuitConnectionStatus: Union[str, CircuitConnectionStatus] + + + class azure.mgmt.network.types.Ipv6ExpressRouteCircuitPeeringConfig(TypedDict, total=False): + key "microsoftPeeringConfig": ForwardRef('ExpressRouteCircuitPeeringConfig', module='types') + key "primaryPeerAddressPrefix": str + key "routeFilter": ForwardRef('SubResource', module='types') + key "secondaryPeerAddressPrefix": str + key "state": Union[str, ExpressRouteCircuitPeeringState] + microsoftPeeringConfig: ExpressRouteCircuitPeeringConfig + primaryPeerAddressPrefix: str + routeFilter: SubResource + secondaryPeerAddressPrefix: str + state: Union[str, ExpressRouteCircuitPeeringState] + + + class azure.mgmt.network.types.KubeLabelSelector(TypedDict, total=False): + matchExpressions: list[LabelSelectorExpression] + matchLabels: dict[str, str] + + + class azure.mgmt.network.types.LabelSelectorExpression(TypedDict, total=False): + key "key": str + key "operator": Union[str, LabelSelectorOperator] + key: str + operator: Union[str, LabelSelectorOperator] + values: list[str] + + + class azure.mgmt.network.types.LoadBalancer(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('LoadBalancerPropertiesFormat', module='types') + key "sku": ForwardRef('LoadBalancerSku', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: LoadBalancerPropertiesFormat + sku: LoadBalancerSku + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.LoadBalancerBackendAddress(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('LoadBalancerBackendAddressPropertiesFormat', module='types') + name: str + properties: LoadBalancerBackendAddressPropertiesFormat + + + class azure.mgmt.network.types.LoadBalancerBackendAddressPropertiesFormat(TypedDict, total=False): + key "adminState": Union[str, LoadBalancerBackendAddressAdminState] + key "ipAddress": str + key "loadBalancerFrontendIPConfiguration": ForwardRef('SubResource', module='types') + key "networkInterfaceIPConfiguration": ForwardRef('SubResource', module='types') + key "subnet": ForwardRef('SubResource', module='types') + key "virtualNetwork": ForwardRef('SubResource', module='types') + adminState: Union[str, LoadBalancerBackendAddressAdminState] + inboundNatRulesPortMapping: list[NatRulePortMapping] + ipAddress: str + loadBalancerFrontendIPConfiguration: SubResource + networkInterfaceIPConfiguration: SubResource + subnet: SubResource + virtualNetwork: SubResource + + + class azure.mgmt.network.types.LoadBalancerPropertiesFormat(TypedDict, total=False): + key "mode": Union[str, LoadBalancerMode] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "scope": Union[str, LoadBalancerScope] + backendAddressPools: list[BackendAddressPool] + frontendIPConfigurations: list[FrontendIPConfiguration] + inboundNatPools: list[InboundNatPool] + inboundNatRules: list[InboundNatRule] + loadBalancingRules: list[LoadBalancingRule] + mode: Union[str, LoadBalancerMode] + outboundRules: list[OutboundRule] + probes: list[Probe] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + scope: Union[str, LoadBalancerScope] + + + class azure.mgmt.network.types.LoadBalancerSku(TypedDict, total=False): + key "name": Union[str, LoadBalancerSkuName] + key "tier": Union[str, LoadBalancerSkuTier] + name: Union[str, LoadBalancerSkuName] + tier: Union[str, LoadBalancerSkuTier] + + + class azure.mgmt.network.types.LoadBalancerVipSwapRequest(TypedDict, total=False): + frontendIPConfigurations: list[LoadBalancerVipSwapRequestFrontendIPConfiguration] + + + class azure.mgmt.network.types.LoadBalancerVipSwapRequestFrontendIPConfiguration(TypedDict, total=False): + key "id": str + key "properties": ForwardRef('LoadBalancerVipSwapRequestFrontendIPConfigurationProperties', module='types') + id: str + properties: LoadBalancerVipSwapRequestFrontendIPConfigurationProperties + + + class azure.mgmt.network.types.LoadBalancerVipSwapRequestFrontendIPConfigurationProperties(TypedDict, total=False): + key "publicIPAddress": ForwardRef('SubResource', module='types') + publicIPAddress: SubResource + + + class azure.mgmt.network.types.LoadBalancingRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('LoadBalancingRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: LoadBalancingRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.LoadBalancingRulePropertiesFormat(TypedDict, total=False): + key "backendAddressPool": ForwardRef('SubResource', module='types') + key "backendPort": int + key "disableOutboundSnat": bool + key "enableConnectionTracking": bool + key "enableFloatingIP": bool + key "enableTcpReset": bool + key "frontendIPConfiguration": ForwardRef('SubResource', module='types') + key "frontendPort": Required[int] + key "idleTimeoutInMinutes": int + key "loadDistribution": Union[str, LoadDistribution] + key "probe": ForwardRef('SubResource', module='types') + key "protocol": Required[Union[str, TransportProtocol]] + key "provisioningState": Union[str, ProvisioningState] + backendAddressPool: SubResource + backendAddressPools: list[SubResource] + backendPort: int + disableOutboundSnat: bool + enableConnectionTracking: bool + enableFloatingIP: bool + enableTcpReset: bool + frontendIPConfiguration: SubResource + frontendPort: int + idleTimeoutInMinutes: int + loadDistribution: Union[str, LoadDistribution] + probe: SubResource + protocol: Union[str, TransportProtocol] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.LocalNetworkGateway(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": Required[LocalNetworkGatewayPropertiesFormat] + key "type": str + etag: str + id: str + location: str + name: str + properties: LocalNetworkGatewayPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.LocalNetworkGatewayPropertiesFormat(TypedDict, total=False): + key "bgpSettings": ForwardRef('BgpSettings', module='types') + key "fqdn": str + key "gatewayIpAddress": str + key "localNetworkAddressSpace": ForwardRef('AddressSpace', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + bgpSettings: BgpSettings + fqdn: str + gatewayIpAddress: str + localNetworkAddressSpace: AddressSpace + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.ManagedRuleGroupOverride(TypedDict, total=False): + key "ruleGroupName": Required[str] + ruleGroupName: str + rules: list[ManagedRuleOverride] + + + class azure.mgmt.network.types.ManagedRuleOverride(TypedDict, total=False): + key "action": Union[str, ActionType] + key "ruleId": Required[str] + key "sensitivity": Union[str, SensitivityType] + key "state": Union[str, ManagedRuleEnabledState] + action: Union[str, ActionType] + ruleId: str + sensitivity: Union[str, SensitivityType] + state: Union[str, ManagedRuleEnabledState] + + + class azure.mgmt.network.types.ManagedRuleSet(TypedDict, total=False): + key "ruleSetType": Required[str] + key "ruleSetVersion": Required[str] + computedDisabledRules: list[ManagedRuleSetRuleGroup] + ruleGroupOverrides: list[ManagedRuleGroupOverride] + ruleSetType: str + ruleSetVersion: str + + + class azure.mgmt.network.types.ManagedRuleSetRuleGroup(TypedDict, total=False): + key "ruleGroupName": Required[str] + ruleGroupName: str + rules: list[str] + + + class azure.mgmt.network.types.ManagedRulesDefinition(TypedDict, total=False): + key "managedRuleSets": Required[list[ManagedRuleSet]] + exceptions: list[ExceptionEntry] + exclusions: list[OwaspCrsExclusionEntry] + managedRuleSets: list[ManagedRuleSet] + + + class azure.mgmt.network.types.ManagedServiceIdentity(TypedDict, total=False): + key "principalId": str + key "tenantId": str + key "type": Union[str, ResourceIdentityType] + principalId: str + tenantId: str + type: Union[str, ResourceIdentityType] + userAssignedIdentities: dict[str, ManagedServiceIdentityUserAssignedIdentities] + + + class azure.mgmt.network.types.ManagedServiceIdentityUserAssignedIdentities(TypedDict, total=False): + key "clientId": str + key "principalId": str + clientId: str + principalId: str + + + class azure.mgmt.network.types.MatchCondition(TypedDict, total=False): + key "matchValues": Required[list[str]] + key "matchVariables": Required[list[MatchVariable]] + key "negationConditon": bool + key "operator": Required[Union[str, WebApplicationFirewallOperator]] + matchValues: list[str] + matchVariables: list[MatchVariable] + negationConditon: bool + operator: Union[str, WebApplicationFirewallOperator] + transforms: list[Union[str, WebApplicationFirewallTransform]] + + + class azure.mgmt.network.types.MatchVariable(TypedDict, total=False): + key "selector": str + key "variableName": Required[Union[str, WebApplicationFirewallMatchVariable]] + selector: str + variableName: Union[str, WebApplicationFirewallMatchVariable] + + + class azure.mgmt.network.types.MigrateLoadBalancerToIpBasedRequest(TypedDict, total=False): + pools: list[str] + + + class azure.mgmt.network.types.MoveIpConfigurationItem(TypedDict, total=False): + key "sourceIpConfiguration": Required[MoveIpConfigurationResourceReference] + key "targetIpConfiguration": Required[MoveIpConfigurationResourceReference] + sourceIpConfiguration: MoveIpConfigurationResourceReference + targetIpConfiguration: MoveIpConfigurationResourceReference + + + class azure.mgmt.network.types.MoveIpConfigurationResourceReference(TypedDict, total=False): + key "id": Required[str] + id: str + + + class azure.mgmt.network.types.MoveIpConfigurationsRequest(TypedDict, total=False): + key "moveIpConfigurationItems": Required[list[MoveIpConfigurationItem]] + moveIpConfigurationItems: list[MoveIpConfigurationItem] + + + class azure.mgmt.network.types.NatGateway(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NatGatewayPropertiesFormat', module='types') + key "sku": ForwardRef('NatGatewaySku', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: NatGatewayPropertiesFormat + sku: NatGatewaySku + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.NatGatewayPropertiesFormat(TypedDict, total=False): + key "idleTimeoutInMinutes": int + key "nat64": Union[str, Nat64State] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "serviceGateway": ForwardRef('SubResource', module='types') + key "sourceVirtualNetwork": ForwardRef('SubResource', module='types') + idleTimeoutInMinutes: int + nat64: Union[str, Nat64State] + provisioningState: Union[str, ProvisioningState] + publicIpAddresses: list[SubResource] + publicIpAddressesV6: list[SubResource] + publicIpPrefixes: list[SubResource] + publicIpPrefixesV6: list[SubResource] + resourceGuid: str + serviceGateway: SubResource + sourceVirtualNetwork: SubResource + subnets: list[SubResource] + + + class azure.mgmt.network.types.NatGatewaySku(TypedDict, total=False): + key "name": Union[str, NatGatewaySkuName] + name: Union[str, NatGatewaySkuName] + + + class azure.mgmt.network.types.NatRule(TypedDict, total=False): + key "description": str + key "name": str + key "ruleType": Required[Literal[FirewallPolicyRuleType.NAT_RULE]] + key "translatedAddress": str + key "translatedFqdn": str + key "translatedPort": str + description: str + destinationAddresses: list[str] + destinationPorts: list[str] + ipProtocols: list[Union[str, FirewallPolicyRuleNetworkProtocol]] + name: str + ruleType: Literal[FirewallPolicyRuleType.NAT_RULE] + sourceAddresses: list[str] + sourceIpGroups: list[str] + translatedAddress: str + translatedFqdn: str + translatedPort: str + + + class azure.mgmt.network.types.NatRulePortMapping(TypedDict, total=False): + key "backendPort": int + key "frontendPort": int + key "inboundNatRuleName": str + backendPort: int + frontendPort: int + inboundNatRuleName: str + + + class azure.mgmt.network.types.NetworkConfigurationDiagnosticParameters(TypedDict, total=False): + key "profiles": Required[list[NetworkConfigurationDiagnosticProfile]] + key "targetResourceId": Required[str] + key "verbosityLevel": Union[str, VerbosityLevel] + profiles: list[NetworkConfigurationDiagnosticProfile] + targetResourceId: str + verbosityLevel: Union[str, VerbosityLevel] + + + class azure.mgmt.network.types.NetworkConfigurationDiagnosticProfile(TypedDict, total=False): + key "destination": Required[str] + key "destinationPort": Required[str] + key "direction": Required[Union[str, Direction]] + key "protocol": Required[str] + key "source": Required[str] + destination: str + destinationPort: str + direction: Union[str, Direction] + protocol: str + source: str + + + class azure.mgmt.network.types.NetworkGroup(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('NetworkGroupProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: NetworkGroupProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NetworkGroupProperties(TypedDict, total=False): + key "description": str + key "memberType": Union[str, GroupMemberType] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + description: str + memberType: Union[str, GroupMemberType] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.NetworkIntentPolicy(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "type": str + etag: str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkIntentPolicyConfiguration(TypedDict, total=False): + key "networkIntentPolicyName": str + key "sourceNetworkIntentPolicy": ForwardRef('NetworkIntentPolicy', module='types') + networkIntentPolicyName: str + sourceNetworkIntentPolicy: NetworkIntentPolicy + + + class azure.mgmt.network.types.NetworkInterface(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NetworkInterfacePropertiesFormat', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: NetworkInterfacePropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkInterfaceDnsSettings(TypedDict, total=False): + key "internalDnsNameLabel": str + key "internalDomainNameSuffix": str + key "internalFqdn": str + appliedDnsServers: list[str] + dnsServers: list[str] + internalDnsNameLabel: str + internalDomainNameSuffix: str + internalFqdn: str + + + class azure.mgmt.network.types.NetworkInterfaceIPConfiguration(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('NetworkInterfaceIPConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: NetworkInterfaceIPConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties(TypedDict, total=False): + key "groupId": str + key "requiredMemberName": str + fqdns: list[str] + groupId: str + requiredMemberName: str + + + class azure.mgmt.network.types.NetworkInterfaceIPConfigurationPropertiesFormat(TypedDict, total=False): + key "gatewayLoadBalancer": ForwardRef('SubResource', module='types') + key "primary": bool + key "privateIPAddress": str + key "privateIPAddressPrefixLength": Optional[int] + key "privateIPAddressVersion": Union[str, IPVersion] + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "privateLinkConnectionProperties": ForwardRef('NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "subnet": ForwardRef('Subnet', module='types') + applicationGatewayBackendAddressPools: list[ApplicationGatewayBackendAddressPool] + applicationSecurityGroups: list[ApplicationSecurityGroup] + gatewayLoadBalancer: SubResource + loadBalancerBackendAddressPools: list[BackendAddressPool] + loadBalancerInboundNatRules: list[InboundNatRule] + primary: bool + privateIPAddress: str + privateIPAddressPrefixLength: int + privateIPAddressVersion: Union[str, IPVersion] + privateIPAllocationMethod: Union[str, IPAllocationMethod] + privateLinkConnectionProperties: NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties + provisioningState: Union[str, ProvisioningState] + publicIPAddress: PublicIPAddress + subnet: Subnet + virtualNetworkTaps: list[VirtualNetworkTap] + + + class azure.mgmt.network.types.NetworkInterfacePropertiesFormat(TypedDict, total=False): + key "auxiliaryMode": Union[str, NetworkInterfaceAuxiliaryMode] + key "auxiliarySku": Union[str, NetworkInterfaceAuxiliarySku] + key "defaultOutboundConnectivityEnabled": bool + key "disableTcpStateTracking": bool + key "dnsSettings": ForwardRef('NetworkInterfaceDnsSettings', module='types') + key "dscpConfiguration": ForwardRef('SubResource', module='types') + key "enableAcceleratedNetworking": bool + key "enableIPForwarding": bool + key "macAddress": str + key "migrationPhase": Union[str, NetworkInterfaceMigrationPhase] + key "networkSecurityGroup": ForwardRef('NetworkSecurityGroup', module='types') + key "nicType": Union[str, NetworkInterfaceNicType] + key "primary": bool + key "privateEndpoint": ForwardRef('PrivateEndpoint', module='types') + key "privateLinkService": ForwardRef('PrivateLinkService', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "virtualMachine": ForwardRef('SubResource', module='types') + key "vnetEncryptionSupported": bool + key "workloadType": str + auxiliaryMode: Union[str, NetworkInterfaceAuxiliaryMode] + auxiliarySku: Union[str, NetworkInterfaceAuxiliarySku] + defaultOutboundConnectivityEnabled: bool + disableTcpStateTracking: bool + dnsSettings: NetworkInterfaceDnsSettings + dscpConfiguration: SubResource + enableAcceleratedNetworking: bool + enableIPForwarding: bool + hostedWorkloads: list[str] + ipConfigurations: list[NetworkInterfaceIPConfiguration] + macAddress: str + migrationPhase: Union[str, NetworkInterfaceMigrationPhase] + networkSecurityGroup: NetworkSecurityGroup + nicType: Union[str, NetworkInterfaceNicType] + primary: bool + privateEndpoint: PrivateEndpoint + privateLinkService: PrivateLinkService + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + tapConfigurations: list[NetworkInterfaceTapConfiguration] + virtualMachine: SubResource + vnetEncryptionSupported: bool + workloadType: str + + + class azure.mgmt.network.types.NetworkInterfaceTapConfiguration(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('NetworkInterfaceTapConfigurationPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: NetworkInterfaceTapConfigurationPropertiesFormat + type: str + + + class azure.mgmt.network.types.NetworkInterfaceTapConfigurationPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "virtualNetworkTap": ForwardRef('VirtualNetworkTap', module='types') + provisioningState: Union[str, ProvisioningState] + virtualNetworkTap: VirtualNetworkTap + + + class azure.mgmt.network.types.NetworkManager(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NetworkManagerProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: NetworkManagerProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkManagerCommit(TypedDict, total=False): + key "commitId": str + key "commitType": Required[Union[str, ConfigurationType]] + key "targetLocations": Required[list[str]] + commitId: str + commitType: Union[str, ConfigurationType] + configurationIds: list[str] + targetLocations: list[str] + + + class azure.mgmt.network.types.NetworkManagerConnection(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('NetworkManagerConnectionProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: NetworkManagerConnectionProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NetworkManagerConnectionProperties(TypedDict, total=False): + key "connectionState": Union[str, ScopeConnectionState] + key "description": str + key "networkManagerId": str + connectionState: Union[str, ScopeConnectionState] + description: str + networkManagerId: str + + + class azure.mgmt.network.types.NetworkManagerDeploymentStatusParameter(TypedDict, total=False): + key "skipToken": str + deploymentTypes: list[Union[str, ConfigurationType]] + regions: list[str] + skipToken: str + + + class azure.mgmt.network.types.NetworkManagerProperties(TypedDict, total=False): + key "description": str + key "networkManagerScopes": Required[NetworkManagerPropertiesNetworkManagerScopes] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + description: str + networkManagerScopeAccesses: list[Union[str, ConfigurationType]] + networkManagerScopes: NetworkManagerPropertiesNetworkManagerScopes + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.NetworkManagerPropertiesNetworkManagerScopes(TypedDict, total=False): + crossTenantScopes: list[CrossTenantScopes] + managementGroups: list[str] + subscriptions: list[str] + + + class azure.mgmt.network.types.NetworkManagerRoutingConfiguration(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('NetworkManagerRoutingConfigurationPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: NetworkManagerRoutingConfigurationPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NetworkManagerRoutingConfigurationPropertiesFormat(TypedDict, total=False): + key "description": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "routeTableUsageMode": Union[str, RouteTableUsageMode] + description: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + routeTableUsageMode: Union[str, RouteTableUsageMode] + + + class azure.mgmt.network.types.NetworkManagerRoutingGroupItem(TypedDict, total=False): + key "networkGroupId": Required[str] + networkGroupId: str + + + class azure.mgmt.network.types.NetworkManagerSecurityGroupItem(TypedDict, total=False): + key "networkGroupId": Required[str] + networkGroupId: str + + + class azure.mgmt.network.types.NetworkProfile(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NetworkProfilePropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: NetworkProfilePropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkProfilePropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + containerNetworkInterfaceConfigurations: list[ContainerNetworkInterfaceConfiguration] + containerNetworkInterfaces: list[ContainerNetworkInterface] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.NetworkRule(TypedDict, total=False): + key "description": str + key "name": str + key "ruleType": Required[Literal[FirewallPolicyRuleType.NETWORK_RULE]] + description: str + destinationAddresses: list[str] + destinationFqdns: list[str] + destinationIpGroups: list[str] + destinationPorts: list[str] + ipProtocols: list[Union[str, FirewallPolicyRuleNetworkProtocol]] + name: str + ruleType: Literal[FirewallPolicyRuleType.NETWORK_RULE] + sourceAddresses: list[str] + sourceIpGroups: list[str] + sourceKubeSelectorGroups: list[str] + + + class azure.mgmt.network.types.NetworkSecurityGroup(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NetworkSecurityGroupPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: NetworkSecurityGroupPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkSecurityGroupPropertiesFormat(TypedDict, total=False): + key "flushConnection": bool + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + defaultSecurityRules: list[SecurityRule] + flowLogs: list[FlowLog] + flushConnection: bool + networkInterfaces: list[NetworkInterface] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + securityRules: list[SecurityRule] + subnets: list[Subnet] + + + class azure.mgmt.network.types.NetworkSecurityPerimeter(SecurityPerimeterTrackedResource): + key "id": str + key "location": Required[str] + key "name": str + key "properties": ForwardRef('NetworkSecurityPerimeterProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + properties: NetworkSecurityPerimeterProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkSecurityPerimeterProperties(TypedDict, total=False): + key "perimeterGuid": str + key "provisioningState": Union[str, NspProvisioningState] + perimeterGuid: str + provisioningState: Union[str, NspProvisioningState] + + + class azure.mgmt.network.types.NetworkVirtualAppliance(Resource): + key "etag": str + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": ForwardRef('NetworkVirtualAppliancePropertiesFormat', module='types') + key "type": str + etag: str + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: NetworkVirtualAppliancePropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkVirtualApplianceBootDiagnosticParameters(TypedDict, total=False): + key "consoleScreenshotStorageSasUrl": str + key "instanceId": int + key "serialConsoleStorageSasUrl": str + consoleScreenshotStorageSasUrl: str + instanceId: int + serialConsoleStorageSasUrl: str + + + class azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationProperties(TypedDict, total=False): + key "migrationType": Required[Union[str, MigrationType]] + migrationType: Union[str, MigrationType] + + + class azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationRequest(TypedDict, total=False): + key "properties": ForwardRef('NetworkVirtualApplianceCommitMigrationProperties', module='types') + properties: NetworkVirtualApplianceCommitMigrationProperties + + + class azure.mgmt.network.types.NetworkVirtualApplianceConnection(SubResource): + key "id": str + key "name": str + key "properties": ForwardRef('NetworkVirtualApplianceConnectionProperties', module='types') + id: str + name: str + properties: NetworkVirtualApplianceConnectionProperties + + + class azure.mgmt.network.types.NetworkVirtualApplianceConnectionProperties(TypedDict, total=False): + key "asn": int + key "enableInternetSecurity": bool + key "name": str + key "provisioningState": Union[str, ProvisioningState] + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + key "tunnelIdentifier": int + asn: int + bgpPeerAddress: list[str] + enableInternetSecurity: bool + name: str + provisioningState: Union[str, ProvisioningState] + routingConfiguration: RoutingConfiguration + tunnelIdentifier: int + + + class azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationProperties(TypedDict, total=False): + key "migrationType": Required[Union[str, MigrationType]] + migrationType: Union[str, MigrationType] + + + class azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationRequest(TypedDict, total=False): + key "properties": ForwardRef('NetworkVirtualApplianceExecuteMigrationProperties', module='types') + properties: NetworkVirtualApplianceExecuteMigrationProperties + + + class azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds(TypedDict, total=False): + instanceIds: list[str] + + + class azure.mgmt.network.types.NetworkVirtualApplianceMigrationStatus(TypedDict, total=False): + key "migrationPhase": str + key "migrationPhaseStatus": str + key "migrationType": Union[str, MigrationType] + migrationPhase: str + migrationPhaseStatus: str + migrationType: Union[str, MigrationType] + + + class azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationProperties(TypedDict, total=False): + key "marketPlaceVersion": str + key "migrationType": Required[Union[str, MigrationType]] + marketPlaceVersion: str + migrationType: Union[str, MigrationType] + + + class azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationRequest(TypedDict, total=False): + key "properties": ForwardRef('NetworkVirtualAppliancePrepareMigrationProperties', module='types') + properties: NetworkVirtualAppliancePrepareMigrationProperties + + + class azure.mgmt.network.types.NetworkVirtualAppliancePropertiesFormat(TypedDict, total=False): + key "addressPrefix": str + key "addressPrefixV6": str + key "cloudInitConfiguration": str + key "delegation": ForwardRef('DelegationProperties', module='types') + key "deploymentType": str + key "migrationStatus": ForwardRef('NetworkVirtualApplianceMigrationStatus', module='types') + key "networkProfile": ForwardRef('NetworkVirtualAppliancePropertiesFormatNetworkProfile', module='types') + key "nvaSku": ForwardRef('VirtualApplianceSkuProperties', module='types') + key "partnerManagedResource": ForwardRef('PartnerManagedResourceProperties', module='types') + key "privateIpAddress": str + key "privateIpAddressV6": str + key "provisioningState": Union[str, ProvisioningState] + key "sshPublicKey": str + key "virtualApplianceAsn": int + key "virtualHub": ForwardRef('SubResource', module='types') + additionalNics: list[VirtualApplianceAdditionalNicProperties] + addressFamily: list[Union[str, IPVersion]] + addressPrefix: str + addressPrefixV6: str + bootStrapConfigurationBlobs: list[str] + cloudInitConfiguration: str + cloudInitConfigurationBlobs: list[str] + delegation: DelegationProperties + deploymentType: str + inboundSecurityRules: list[SubResource] + internetIngressPublicIps: list[InternetIngressPublicIpsProperties] + migrationStatus: NetworkVirtualApplianceMigrationStatus + networkProfile: NetworkVirtualAppliancePropertiesFormatNetworkProfile + nvaInterfaceConfigurations: list[NvaInterfaceConfigurationsProperties] + nvaSku: VirtualApplianceSkuProperties + partnerManagedResource: PartnerManagedResourceProperties + privateIpAddress: str + privateIpAddressV6: str + provisioningState: Union[str, ProvisioningState] + sshPublicKey: str + virtualApplianceAsn: int + virtualApplianceConnections: list[SubResource] + virtualApplianceNics: list[VirtualApplianceNicProperties] + virtualApplianceSites: list[SubResource] + virtualHub: SubResource + + + class azure.mgmt.network.types.NetworkVirtualAppliancePropertiesFormatNetworkProfile(TypedDict, total=False): + networkInterfaceConfigurations: list[VirtualApplianceNetworkInterfaceConfiguration] + + + class azure.mgmt.network.types.NetworkWatcher(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('NetworkWatcherPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: NetworkWatcherPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.NetworkWatcherPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.NextHopParameters(TypedDict, total=False): + key "destinationIPAddress": Required[str] + key "sourceIPAddress": Required[str] + key "targetNicResourceId": str + key "targetResourceId": Required[str] + destinationIPAddress: str + sourceIPAddress: str + targetNicResourceId: str + targetResourceId: str + + + class azure.mgmt.network.types.NspAccessRule(SecurityPerimeterProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('NspAccessRuleProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: NspAccessRuleProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NspAccessRuleProperties(TypedDict, total=False): + key "direction": Union[str, AccessRuleDirection] + key "provisioningState": Union[str, NspProvisioningState] + addressPrefixes: list[str] + direction: Union[str, AccessRuleDirection] + emailAddresses: list[str] + fullyQualifiedDomainNames: list[str] + networkSecurityPerimeters: list[PerimeterBasedAccessRule] + phoneNumbers: list[str] + provisioningState: Union[str, NspProvisioningState] + serviceTags: list[str] + subscriptions: list[SubscriptionId] + + + class azure.mgmt.network.types.NspAssociation(SecurityPerimeterProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('NspAssociationProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: NspAssociationProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NspAssociationProperties(TypedDict, total=False): + key "accessMode": Union[str, AssociationAccessMode] + key "hasProvisioningIssues": str + key "privateLinkResource": ForwardRef('SubResource', module='types') + key "profile": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, NspProvisioningState] + accessMode: Union[str, AssociationAccessMode] + hasProvisioningIssues: str + privateLinkResource: SubResource + profile: SubResource + provisioningState: Union[str, NspProvisioningState] + + + class azure.mgmt.network.types.NspLink(SecurityPerimeterProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('NspLinkProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: NspLinkProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NspLinkProperties(TypedDict, total=False): + key "autoApprovedRemotePerimeterResourceId": str + key "description": str + key "provisioningState": Union[str, NspLinkProvisioningState] + key "remotePerimeterGuid": str + key "remotePerimeterLocation": str + key "status": Union[str, NspLinkStatus] + autoApprovedRemotePerimeterResourceId: str + description: str + localInboundProfiles: list[str] + localOutboundProfiles: list[str] + provisioningState: Union[str, NspLinkProvisioningState] + remoteInboundProfiles: list[str] + remoteOutboundProfiles: list[str] + remotePerimeterGuid: str + remotePerimeterLocation: str + status: Union[str, NspLinkStatus] + + + class azure.mgmt.network.types.NspLoggingConfiguration(SecurityPerimeterProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('NspLoggingConfigurationProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: NspLoggingConfigurationProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NspLoggingConfigurationProperties(TypedDict, total=False): + key "version": str + enabledLogCategories: list[str] + version: str + + + class azure.mgmt.network.types.NspProfile(SecurityPerimeterProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('NspProfileProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: NspProfileProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.NspProfileProperties(TypedDict, total=False): + key "accessRulesVersion": str + key "diagnosticSettingsVersion": str + accessRulesVersion: str + diagnosticSettingsVersion: str + + + class azure.mgmt.network.types.NvaInVnetSubnetReferenceProperties(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.NvaInterfaceConfigurationsProperties(TypedDict, total=False): + key "name": str + key "subnet": ForwardRef('NvaInVnetSubnetReferenceProperties', module='types') + name: str + subnet: NvaInVnetSubnetReferenceProperties + type: list[Union[str, NvaNicType]] + + + class azure.mgmt.network.types.O365BreakOutCategoryPolicies(TypedDict, total=False): + key "allow": bool + key "default": bool + key "optimize": bool + allow: bool + default: bool + optimize: bool + + + class azure.mgmt.network.types.O365PolicyProperties(TypedDict, total=False): + key "breakOutCategories": ForwardRef('O365BreakOutCategoryPolicies', module='types') + breakOutCategories: O365BreakOutCategoryPolicies + + + class azure.mgmt.network.types.Office365PolicyProperties(TypedDict, total=False): + key "breakOutCategories": ForwardRef('BreakOutCategoryPolicies', module='types') + breakOutCategories: BreakOutCategoryPolicies + + + class azure.mgmt.network.types.OrderBy(TypedDict, total=False): + key "field": str + key "order": Union[str, FirewallPolicyIDPSQuerySortOrder] + field: str + order: Union[str, FirewallPolicyIDPSQuerySortOrder] + + + class azure.mgmt.network.types.OutboundRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('OutboundRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: OutboundRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.OutboundRulePropertiesFormat(TypedDict, total=False): + key "allocatedOutboundPorts": int + key "backendAddressPool": Required[SubResource] + key "enableTcpReset": bool + key "frontendIPConfigurations": Required[list[SubResource]] + key "idleTimeoutInMinutes": int + key "protocol": Required[Union[str, LoadBalancerOutboundRuleProtocol]] + key "provisioningState": Union[str, ProvisioningState] + allocatedOutboundPorts: int + backendAddressPool: SubResource + enableTcpReset: bool + frontendIPConfigurations: list[SubResource] + idleTimeoutInMinutes: int + protocol: Union[str, LoadBalancerOutboundRuleProtocol] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.OutputSettings(TypedDict, total=False): + key "storageAccountSettings": ForwardRef('StorageAccountSettings', module='types') + storageAccountSettings: StorageAccountSettings + + + class azure.mgmt.network.types.OwaspCrsExclusionEntry(TypedDict, total=False): + key "matchVariable": Required[Union[str, OwaspCrsExclusionEntryMatchVariable]] + key "selector": Required[str] + key "selectorMatchOperator": Required[Union[str, OwaspCrsExclusionEntrySelectorMatchOperator]] + exclusionManagedRuleSets: list[ExclusionManagedRuleSet] + matchVariable: Union[str, OwaspCrsExclusionEntryMatchVariable] + selector: str + selectorMatchOperator: Union[str, OwaspCrsExclusionEntrySelectorMatchOperator] + + + class azure.mgmt.network.types.P2SConnectionConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('P2SConnectionConfigurationProperties', module='types') + etag: str + id: str + name: str + properties: P2SConnectionConfigurationProperties + + + class azure.mgmt.network.types.P2SConnectionConfigurationProperties(TypedDict, total=False): + key "enableInternetSecurity": bool + key "provisioningState": Union[str, ProvisioningState] + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + key "vpnClientAddressPool": ForwardRef('AddressSpace', module='types') + configurationPolicyGroupAssociations: list[SubResource] + enableInternetSecurity: bool + previousConfigurationPolicyGroupAssociations: list[VpnServerConfigurationPolicyGroup] + provisioningState: Union[str, ProvisioningState] + routingConfiguration: RoutingConfiguration + vpnClientAddressPool: AddressSpace + + + class azure.mgmt.network.types.P2SVpnConnectionHealthRequest(TypedDict, total=False): + key "outputBlobSasUrl": str + outputBlobSasUrl: str + vpnUserNamesFilter: list[str] + + + class azure.mgmt.network.types.P2SVpnConnectionRequest(TypedDict, total=False): + vpnConnectionIds: list[str] + + + class azure.mgmt.network.types.P2SVpnGateway(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('P2SVpnGatewayProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: P2SVpnGatewayProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.P2SVpnGatewayProperties(TypedDict, total=False): + key "isRoutingPreferenceInternet": bool + key "provisioningState": Union[str, ProvisioningState] + key "virtualHub": ForwardRef('SubResource', module='types') + key "vpnClientConnectionHealth": ForwardRef('VpnClientConnectionHealth', module='types') + key "vpnGatewayScaleUnit": int + key "vpnServerConfiguration": ForwardRef('SubResource', module='types') + customDnsServers: list[str] + isRoutingPreferenceInternet: bool + p2SConnectionConfigurations: list[P2SConnectionConfiguration] + provisioningState: Union[str, ProvisioningState] + virtualHub: SubResource + vpnClientConnectionHealth: VpnClientConnectionHealth + vpnGatewayScaleUnit: int + vpnServerConfiguration: SubResource + + + class azure.mgmt.network.types.P2SVpnProfileParameters(TypedDict, total=False): + key "authenticationMethod": Union[str, AuthenticationMethod] + authenticationMethod: Union[str, AuthenticationMethod] + + + class azure.mgmt.network.types.PacketCapture(TypedDict, total=False): + key "properties": Required[PacketCaptureParameters] + properties: PacketCaptureParameters + + + class azure.mgmt.network.types.PacketCaptureFilter(TypedDict, total=False): + key "localIPAddress": str + key "localPort": str + key "protocol": Union[str, PcProtocol] + key "remoteIPAddress": str + key "remotePort": str + localIPAddress: str + localPort: str + protocol: Union[str, PcProtocol] + remoteIPAddress: str + remotePort: str + + + class azure.mgmt.network.types.PacketCaptureMachineScope(TypedDict, total=False): + exclude: list[str] + include: list[str] + + + class azure.mgmt.network.types.PacketCaptureParameters(TypedDict, total=False): + key "bytesToCapturePerPacket": int + key "captureSettings": ForwardRef('PacketCaptureSettings', module='types') + key "continuousCapture": bool + key "scope": ForwardRef('PacketCaptureMachineScope', module='types') + key "storageLocation": Required[PacketCaptureStorageLocation] + key "target": Required[str] + key "targetType": Union[str, PacketCaptureTargetType] + key "timeLimitInSeconds": int + key "totalBytesPerSession": int + bytesToCapturePerPacket: int + captureSettings: PacketCaptureSettings + continuousCapture: bool + filters: list[PacketCaptureFilter] + scope: PacketCaptureMachineScope + storageLocation: PacketCaptureStorageLocation + target: str + targetType: Union[str, PacketCaptureTargetType] + timeLimitInSeconds: int + totalBytesPerSession: int + + + class azure.mgmt.network.types.PacketCaptureSettings(TypedDict, total=False): + key "fileCount": int + key "fileSizeInBytes": int + key "sessionTimeLimitInSeconds": int + fileCount: int + fileSizeInBytes: int + sessionTimeLimitInSeconds: int + + + class azure.mgmt.network.types.PacketCaptureStorageLocation(TypedDict, total=False): + key "filePath": str + key "localPath": str + key "storageId": str + key "storagePath": str + filePath: str + localPath: str + storageId: str + storagePath: str + + + class azure.mgmt.network.types.Parameter(TypedDict, total=False): + asPath: list[str] + community: list[str] + routePrefix: list[str] + + + class azure.mgmt.network.types.PartnerManagedResourceProperties(TypedDict, total=False): + key "id": str + key "internalLoadBalancerId": str + key "standardLoadBalancerId": str + id: str + internalLoadBalancerId: str + standardLoadBalancerId: str + + + class azure.mgmt.network.types.PatchObject(TypedDict, total=False): + tags: dict[str, str] + + + class azure.mgmt.network.types.PeerExpressRouteCircuitConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('PeerExpressRouteCircuitConnectionPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: PeerExpressRouteCircuitConnectionPropertiesFormat + type: str + + + class azure.mgmt.network.types.PeerExpressRouteCircuitConnectionPropertiesFormat(TypedDict, total=False): + key "addressPrefix": str + key "authResourceGuid": str + key "circuitConnectionStatus": Union[str, CircuitConnectionStatus] + key "connectionName": str + key "expressRouteCircuitPeering": ForwardRef('SubResource', module='types') + key "peerExpressRouteCircuitPeering": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + addressPrefix: str + authResourceGuid: str + circuitConnectionStatus: Union[str, CircuitConnectionStatus] + connectionName: str + expressRouteCircuitPeering: SubResource + peerExpressRouteCircuitPeering: SubResource + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.PerimeterBasedAccessRule(TypedDict, total=False): + key "id": str + key "location": str + key "perimeterGuid": str + id: str + location: str + perimeterGuid: str + + + class azure.mgmt.network.types.PolicySettings(TypedDict, total=False): + key "captchaExpirationInMins": int + key "customBlockResponseBody": str + key "customBlockResponseStatusCode": int + key "fileUploadEnforcement": bool + key "fileUploadLimitInMb": int + key "jsChallengeCookieExpirationInMins": int + key "logScrubbing": ForwardRef('PolicySettingsLogScrubbing', module='types') + key "maxRequestBodySizeInKb": int + key "mode": Union[str, WebApplicationFirewallMode] + key "requestBodyCheck": bool + key "requestBodyEnforcement": bool + key "requestBodyInspectLimitInKB": int + key "state": Union[str, WebApplicationFirewallEnabledState] + captchaExpirationInMins: int + customBlockResponseBody: str + customBlockResponseStatusCode: int + fileUploadEnforcement: bool + fileUploadLimitInMb: int + jsChallengeCookieExpirationInMins: int + logScrubbing: PolicySettingsLogScrubbing + maxRequestBodySizeInKb: int + mode: Union[str, WebApplicationFirewallMode] + requestBodyCheck: bool + requestBodyEnforcement: bool + requestBodyInspectLimitInKB: int + state: Union[str, WebApplicationFirewallEnabledState] + + + class azure.mgmt.network.types.PolicySettingsLogScrubbing(TypedDict, total=False): + key "state": Union[str, WebApplicationFirewallScrubbingState] + scrubbingRules: list[WebApplicationFirewallScrubbingRules] + state: Union[str, WebApplicationFirewallScrubbingState] + + + class azure.mgmt.network.types.PrepareNetworkPoliciesRequest(TypedDict, total=False): + key "serviceName": str + networkIntentPolicyConfigurations: list[NetworkIntentPolicyConfiguration] + serviceName: str + + + class azure.mgmt.network.types.PrivateDnsZoneConfig(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('PrivateDnsZonePropertiesFormat', module='types') + name: str + properties: PrivateDnsZonePropertiesFormat + + + class azure.mgmt.network.types.PrivateDnsZoneGroup(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('PrivateDnsZoneGroupPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: PrivateDnsZoneGroupPropertiesFormat + + + class azure.mgmt.network.types.PrivateDnsZoneGroupPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + privateDnsZoneConfigs: list[PrivateDnsZoneConfig] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.PrivateDnsZonePropertiesFormat(TypedDict, total=False): + key "privateDnsZoneId": str + privateDnsZoneId: str + recordSets: list[RecordSet] + + + class azure.mgmt.network.types.PrivateEndpoint(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('PrivateEndpointProperties', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: PrivateEndpointProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.PrivateEndpointConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('PrivateEndpointConnectionProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: PrivateEndpointConnectionProperties + type: str + + + class azure.mgmt.network.types.PrivateEndpointConnectionProperties(TypedDict, total=False): + key "linkIdentifier": str + key "privateEndpoint": ForwardRef('PrivateEndpoint', module='types') + key "privateEndpointLocation": str + key "privateLinkServiceConnectionState": ForwardRef('PrivateLinkServiceConnectionState', module='types') + key "provisioningState": Union[str, ProvisioningState] + linkIdentifier: str + privateEndpoint: PrivateEndpoint + privateEndpointLocation: str + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.PrivateEndpointIPConfiguration(TypedDict, total=False): + key "etag": str + key "name": str + key "properties": ForwardRef('PrivateEndpointIPConfigurationProperties', module='types') + key "type": str + etag: str + name: str + properties: PrivateEndpointIPConfigurationProperties + type: str + + + class azure.mgmt.network.types.PrivateEndpointIPConfigurationProperties(TypedDict, total=False): + key "groupId": str + key "memberName": str + key "privateIPAddress": str + groupId: str + memberName: str + privateIPAddress: str + + + class azure.mgmt.network.types.PrivateEndpointProperties(TypedDict, total=False): + key "billingSku": Union[str, PrivateEndpointBillingSku] + key "customNetworkInterfaceName": str + key "ipVersionType": Union[str, PrivateEndpointIPVersionType] + key "provisioningState": Union[str, ProvisioningState] + key "subnet": ForwardRef('Subnet', module='types') + applicationSecurityGroups: list[ApplicationSecurityGroup] + billingSku: Union[str, PrivateEndpointBillingSku] + customDnsConfigs: list[CustomDnsConfigPropertiesFormat] + customNetworkInterfaceName: str + ipConfigurations: list[PrivateEndpointIPConfiguration] + ipVersionType: Union[str, PrivateEndpointIPVersionType] + manualPrivateLinkServiceConnections: list[PrivateLinkServiceConnection] + networkInterfaces: list[NetworkInterface] + privateLinkServiceConnections: list[PrivateLinkServiceConnection] + provisioningState: Union[str, ProvisioningState] + subnet: Subnet + + + class azure.mgmt.network.types.PrivateLinkService(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('PrivateLinkServiceProperties', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: PrivateLinkServiceProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.PrivateLinkServiceConnection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('PrivateLinkServiceConnectionProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: PrivateLinkServiceConnectionProperties + type: str + + + class azure.mgmt.network.types.PrivateLinkServiceConnectionProperties(TypedDict, total=False): + key "privateLinkServiceConnectionState": ForwardRef('PrivateLinkServiceConnectionState', module='types') + key "privateLinkServiceId": str + key "provisioningState": Union[str, ProvisioningState] + key "requestMessage": str + groupIds: list[str] + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + privateLinkServiceId: str + provisioningState: Union[str, ProvisioningState] + requestMessage: str + + + class azure.mgmt.network.types.PrivateLinkServiceConnectionState(TypedDict, total=False): + key "actionsRequired": str + key "description": str + key "status": str + actionsRequired: str + description: str + status: str + + + class azure.mgmt.network.types.PrivateLinkServiceIpConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('PrivateLinkServiceIpConfigurationProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: PrivateLinkServiceIpConfigurationProperties + type: str + + + class azure.mgmt.network.types.PrivateLinkServiceIpConfigurationProperties(TypedDict, total=False): + key "primary": bool + key "privateIPAddress": str + key "privateIPAddressVersion": Union[str, IPVersion] + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "subnet": ForwardRef('Subnet', module='types') + primary: bool + privateIPAddress: str + privateIPAddressVersion: Union[str, IPVersion] + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + subnet: Subnet + + + class azure.mgmt.network.types.PrivateLinkServiceProperties(TypedDict, total=False): + key "accessMode": Union[str, AccessMode] + key "alias": str + key "autoApproval": ForwardRef('PrivateLinkServicePropertiesAutoApproval', module='types') + key "destinationIPAddress": str + key "enableProxyProtocol": bool + key "provisioningState": Union[str, ProvisioningState] + key "visibility": ForwardRef('PrivateLinkServicePropertiesVisibility', module='types') + accessMode: Union[str, AccessMode] + alias: str + autoApproval: PrivateLinkServicePropertiesAutoApproval + destinationIPAddress: str + enableProxyProtocol: bool + fqdns: list[str] + ipConfigurations: list[PrivateLinkServiceIpConfiguration] + loadBalancerFrontendIpConfigurations: list[FrontendIPConfiguration] + networkInterfaces: list[NetworkInterface] + privateEndpointConnections: list[PrivateEndpointConnection] + provisioningState: Union[str, ProvisioningState] + visibility: PrivateLinkServicePropertiesVisibility + + + class azure.mgmt.network.types.PrivateLinkServicePropertiesAutoApproval(ResourceSet): + subscriptions: list[str] + + + class azure.mgmt.network.types.PrivateLinkServicePropertiesVisibility(ResourceSet): + subscriptions: list[str] + + + class azure.mgmt.network.types.Probe(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ProbePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ProbePropertiesFormat + type: str + + + class azure.mgmt.network.types.ProbePropertiesFormat(TypedDict, total=False): + key "intervalInSeconds": int + key "noHealthyBackendsBehavior": Union[str, ProbeNoHealthyBackendsBehavior] + key "numberOfProbes": int + key "port": Required[int] + key "probeThreshold": int + key "protocol": Required[Union[str, ProbeProtocol]] + key "provisioningState": Union[str, ProvisioningState] + key "requestPath": str + intervalInSeconds: int + loadBalancingRules: list[SubResource] + noHealthyBackendsBehavior: Union[str, ProbeNoHealthyBackendsBehavior] + numberOfProbes: int + port: int + probeThreshold: int + protocol: Union[str, ProbeProtocol] + provisioningState: Union[str, ProvisioningState] + requestPath: str + + + class azure.mgmt.network.types.PropagatedRouteTable(TypedDict, total=False): + ids: list[SubResource] + labels: list[str] + + + class azure.mgmt.network.types.ProtocolConfiguration(TypedDict, total=False): + key "HTTPConfiguration": ForwardRef('HTTPConfiguration', module='types') + HTTPConfiguration: HTTPConfiguration + + + class azure.mgmt.network.types.ProtocolSettings(TypedDict, total=False): + key "httpConfiguration": ForwardRef('HTTPConfiguration', module='types') + key "protocol": Union[str, Protocol] + httpConfiguration: HTTPConfiguration + protocol: Union[str, Protocol] + + + class azure.mgmt.network.types.ProxyResource(TypedDict, total=False): + key "etag": str + key "id": str + key "name": str + key "type": str + etag: str + id: str + name: str + type: str + + + class azure.mgmt.network.types.ProxyResourceWithReadOnlyID(TypedDict, total=False): + key "id": str + key "name": str + key "type": str + id: str + name: str + type: str + + + class azure.mgmt.network.types.PublicIPAddress(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('PublicIPAddressPropertiesFormat', module='types') + key "sku": ForwardRef('PublicIPAddressSku', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: PublicIPAddressPropertiesFormat + sku: PublicIPAddressSku + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.PublicIPAddressDnsSettings(TypedDict, total=False): + key "domainNameLabel": str + key "domainNameLabelScope": Union[str, PublicIpAddressDnsSettingsDomainNameLabelScope] + key "fqdn": str + key "reverseFqdn": str + domainNameLabel: str + domainNameLabelScope: Union[str, PublicIpAddressDnsSettingsDomainNameLabelScope] + fqdn: str + reverseFqdn: str + + + class azure.mgmt.network.types.PublicIPAddressPropertiesFormat(TypedDict, total=False): + key "ddosSettings": ForwardRef('DdosSettings', module='types') + key "deleteOption": Union[str, DeleteOptions] + key "dnsSettings": ForwardRef('PublicIPAddressDnsSettings', module='types') + key "idleTimeoutInMinutes": int + key "ipAddress": str + key "ipConfiguration": ForwardRef('IPConfiguration', module='types') + key "linkedPublicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "migrationPhase": Union[str, PublicIPAddressMigrationPhase] + key "natGateway": ForwardRef('NatGateway', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddressVersion": Union[str, IPVersion] + key "publicIPAllocationMethod": Union[str, IPAllocationMethod] + key "publicIPPrefix": ForwardRef('SubResource', module='types') + key "resourceGuid": str + key "servicePublicIPAddress": ForwardRef('PublicIPAddress', module='types') + key "upgradedToV2": bool + ddosSettings: DdosSettings + deleteOption: Union[str, DeleteOptions] + dnsSettings: PublicIPAddressDnsSettings + idleTimeoutInMinutes: int + ipAddress: str + ipConfiguration: IPConfiguration + ipTags: list[IpTag] + linkedPublicIPAddress: PublicIPAddress + migrationPhase: Union[str, PublicIPAddressMigrationPhase] + natGateway: NatGateway + provisioningState: Union[str, ProvisioningState] + publicIPAddressVersion: Union[str, IPVersion] + publicIPAllocationMethod: Union[str, IPAllocationMethod] + publicIPPrefix: SubResource + resourceGuid: str + servicePublicIPAddress: PublicIPAddress + upgradedToV2: bool + + + class azure.mgmt.network.types.PublicIPAddressSku(TypedDict, total=False): + key "name": Union[str, PublicIPAddressSkuName] + key "tier": Union[str, PublicIPAddressSkuTier] + name: Union[str, PublicIPAddressSkuName] + tier: Union[str, PublicIPAddressSkuTier] + + + class azure.mgmt.network.types.PublicIPPrefix(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('PublicIPPrefixPropertiesFormat', module='types') + key "sku": ForwardRef('PublicIPPrefixSku', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: PublicIPPrefixPropertiesFormat + sku: PublicIPPrefixSku + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.PublicIPPrefixPropertiesFormat(TypedDict, total=False): + key "customIPPrefix": ForwardRef('SubResource', module='types') + key "ipPrefix": str + key "loadBalancerFrontendIpConfiguration": ForwardRef('SubResource', module='types') + key "natGateway": ForwardRef('NatGateway', module='types') + key "prefixLength": int + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddressVersion": Union[str, IPVersion] + key "resourceGuid": str + key "upgradedToV2": bool + customIPPrefix: SubResource + ipPrefix: str + ipTags: list[IpTag] + loadBalancerFrontendIpConfiguration: SubResource + natGateway: NatGateway + prefixLength: int + provisioningState: Union[str, ProvisioningState] + publicIPAddressVersion: Union[str, IPVersion] + publicIPAddresses: list[ReferencedPublicIpAddress] + resourceGuid: str + upgradedToV2: bool + + + class azure.mgmt.network.types.PublicIPPrefixSku(TypedDict, total=False): + key "name": Union[str, PublicIPPrefixSkuName] + key "tier": Union[str, PublicIPPrefixSkuTier] + name: Union[str, PublicIPPrefixSkuName] + tier: Union[str, PublicIPPrefixSkuTier] + + + class azure.mgmt.network.types.QosDefinition(TypedDict, total=False): + key "protocol": Union[str, ProtocolType] + destinationIpRanges: list[QosIpRange] + destinationPortRanges: list[QosPortRange] + markings: list[int] + protocol: Union[str, ProtocolType] + sourceIpRanges: list[QosIpRange] + sourcePortRanges: list[QosPortRange] + + + class azure.mgmt.network.types.QosIpRange(TypedDict, total=False): + key "endIP": str + key "startIP": str + endIP: str + startIP: str + + + class azure.mgmt.network.types.QosPortRange(TypedDict, total=False): + key "end": int + key "start": int + end: int + start: int + + + class azure.mgmt.network.types.QueryInboundNatRulePortMappingRequest(TypedDict, total=False): + key "ipAddress": str + key "ipConfiguration": ForwardRef('SubResource', module='types') + ipAddress: str + ipConfiguration: SubResource + + + class azure.mgmt.network.types.QueryRequestOptions(TypedDict, total=False): + key "skipToken": str + skipToken: str + + + class azure.mgmt.network.types.QueryTroubleshootingParameters(TypedDict, total=False): + key "targetResourceId": Required[str] + targetResourceId: str + + + class azure.mgmt.network.types.RadiusServer(TypedDict, total=False): + key "radiusServerAddress": Required[str] + key "radiusServerScore": int + key "radiusServerSecret": str + radiusServerAddress: str + radiusServerScore: int + radiusServerSecret: str + + + class azure.mgmt.network.types.ReachabilityAnalysisIntent(CommonProxyResource): + key "id": str + key "name": str + key "properties": Required[ReachabilityAnalysisIntentProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ReachabilityAnalysisIntentProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.ReachabilityAnalysisIntentProperties(TypedDict, total=False): + key "description": str + key "destinationResourceId": Required[str] + key "ipTraffic": Required[IPTraffic] + key "provisioningState": Union[str, ProvisioningState] + key "sourceResourceId": Required[str] + description: str + destinationResourceId: str + ipTraffic: IPTraffic + provisioningState: Union[str, ProvisioningState] + sourceResourceId: str + + + class azure.mgmt.network.types.ReachabilityAnalysisRun(CommonProxyResource): + key "id": str + key "name": str + key "properties": Required[ReachabilityAnalysisRunProperties] + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: ReachabilityAnalysisRunProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.ReachabilityAnalysisRunProperties(TypedDict, total=False): + key "analysisResult": str + key "description": str + key "errorMessage": str + key "intentContent": ForwardRef('IntentContent', module='types') + key "intentId": Required[str] + key "provisioningState": Union[str, ProvisioningState] + analysisResult: str + description: str + errorMessage: str + intentContent: IntentContent + intentId: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ReadOnlySubResourceModel(TypedDict, total=False): + key "id": str + key "name": str + key "type": str + id: str + name: str + type: str + + + class azure.mgmt.network.types.RecordSet(TypedDict, total=False): + key "fqdn": str + key "provisioningState": Union[str, ProvisioningState] + key "recordSetName": str + key "recordType": str + key "ttl": int + fqdn: str + ipAddresses: list[str] + provisioningState: Union[str, ProvisioningState] + recordSetName: str + recordType: str + ttl: int + + + class azure.mgmt.network.types.ReferencedPublicIpAddress(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.ReserveCloudServicePublicIpAddressRequest(TypedDict, total=False): + key "isRollback": Required[Union[str, IsRollback]] + isRollback: Union[str, IsRollback] + + + class azure.mgmt.network.types.Resource(TypedDict, total=False): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ResourceNavigationLink(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ResourceNavigationLinkFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ResourceNavigationLinkFormat + type: str + + + class azure.mgmt.network.types.ResourceNavigationLinkFormat(TypedDict, total=False): + key "link": str + key "linkedResourceType": str + key "provisioningState": Union[str, ProvisioningState] + link: str + linkedResourceType: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ResourceSet(TypedDict, total=False): + subscriptions: list[str] + + + class azure.mgmt.network.types.RetentionPolicyParameters(TypedDict, total=False): + key "days": int + key "enabled": bool + days: int + enabled: bool + + + class azure.mgmt.network.types.Route(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RoutePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: RoutePropertiesFormat + type: str + + + class azure.mgmt.network.types.RouteFilter(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('RouteFilterPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: RouteFilterPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.RouteFilterPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + ipv6Peerings: list[ExpressRouteCircuitPeering] + peerings: list[ExpressRouteCircuitPeering] + provisioningState: Union[str, ProvisioningState] + rules: list[RouteFilterRule] + + + class azure.mgmt.network.types.RouteFilterRule(SubResource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('RouteFilterRulePropertiesFormat', module='types') + etag: str + id: str + location: str + name: str + properties: RouteFilterRulePropertiesFormat + + + class azure.mgmt.network.types.RouteFilterRulePropertiesFormat(TypedDict, total=False): + key "access": Required[Union[str, Access]] + key "communities": Required[list[str]] + key "provisioningState": Union[str, ProvisioningState] + key "routeFilterRuleType": Required[Union[str, RouteFilterRuleType]] + access: Union[str, Access] + communities: list[str] + provisioningState: Union[str, ProvisioningState] + routeFilterRuleType: Union[str, RouteFilterRuleType] + + + class azure.mgmt.network.types.RouteMap(ReadOnlySubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RouteMapProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: RouteMapProperties + type: str + + + class azure.mgmt.network.types.RouteMapProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + associatedInboundConnections: list[str] + associatedOutboundConnections: list[str] + provisioningState: Union[str, ProvisioningState] + rules: list[RouteMapRule] + + + class azure.mgmt.network.types.RouteMapRule(TypedDict, total=False): + key "name": str + key "nextStepIfMatched": Union[str, NextStep] + actions: list[Action] + matchCriteria: list[Criterion] + name: str + nextStepIfMatched: Union[str, NextStep] + + + class azure.mgmt.network.types.RouteNextHopEcmp(TypedDict, total=False): + key "nextHopIpAddresses": Required[list[str]] + nextHopIpAddresses: list[str] + + + class azure.mgmt.network.types.RoutePropertiesFormat(TypedDict, total=False): + key "addressPrefix": str + key "hasBgpOverride": bool + key "nextHop": ForwardRef('RouteNextHopEcmp', module='types') + key "nextHopIpAddress": str + key "nextHopType": Required[Union[str, RouteNextHopType]] + key "provisioningState": Union[str, ProvisioningState] + addressPrefix: str + hasBgpOverride: bool + nextHop: RouteNextHopEcmp + nextHopIpAddress: str + nextHopType: Union[str, RouteNextHopType] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.RouteTable(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('RouteTablePropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: RouteTablePropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.RouteTablePropertiesFormat(TypedDict, total=False): + key "disableBgpRoutePropagation": bool + key "disablePeeringRoute": Union[str, DisablePeeringRoute] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + disableBgpRoutePropagation: bool + disablePeeringRoute: Union[str, DisablePeeringRoute] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + routes: list[Route] + subnets: list[Subnet] + + + class azure.mgmt.network.types.RouteTargetAddressPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "subnet": ForwardRef('Subnet', module='types') + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + subnet: Subnet + + + class azure.mgmt.network.types.RoutingConfiguration(TypedDict, total=False): + key "associatedRouteTable": ForwardRef('SubResource', module='types') + key "inboundRouteMap": ForwardRef('SubResource', module='types') + key "outboundRouteMap": ForwardRef('SubResource', module='types') + key "propagatedRouteTables": ForwardRef('PropagatedRouteTable', module='types') + key "vnetRoutes": ForwardRef('VnetRoute', module='types') + associatedRouteTable: SubResource + inboundRouteMap: SubResource + outboundRouteMap: SubResource + propagatedRouteTables: PropagatedRouteTable + vnetRoutes: VnetRoute + + + class azure.mgmt.network.types.RoutingIntent(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RoutingIntentProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: RoutingIntentProperties + type: str + + + class azure.mgmt.network.types.RoutingIntentProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] + routingPolicies: list[RoutingPolicy] + + + class azure.mgmt.network.types.RoutingPolicy(TypedDict, total=False): + key "destinations": Required[list[str]] + key "name": Required[str] + key "nextHop": Required[str] + destinations: list[str] + name: str + nextHop: str + + + class azure.mgmt.network.types.RoutingRule(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RoutingRulePropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RoutingRulePropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.RoutingRuleCollection(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('RoutingRuleCollectionPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: RoutingRuleCollectionPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.RoutingRuleCollectionPropertiesFormat(TypedDict, total=False): + key "appliesTo": Required[list[NetworkManagerRoutingGroupItem]] + key "description": str + key "disableBgpRoutePropagation": Union[str, DisableBgpRoutePropagation] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + appliesTo: list[NetworkManagerRoutingGroupItem] + description: str + disableBgpRoutePropagation: Union[str, DisableBgpRoutePropagation] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.RoutingRuleNextHop(TypedDict, total=False): + key "nextHopAddress": str + key "nextHopType": Required[Union[str, RoutingRuleNextHopType]] + nextHopAddress: str + nextHopType: Union[str, RoutingRuleNextHopType] + + + class azure.mgmt.network.types.RoutingRulePropertiesFormat(TypedDict, total=False): + key "description": str + key "destination": Required[RoutingRuleRouteDestination] + key "nextHop": Required[RoutingRuleNextHop] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + description: str + destination: RoutingRuleRouteDestination + nextHop: RoutingRuleNextHop + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.RoutingRuleRouteDestination(TypedDict, total=False): + key "destinationAddress": Required[str] + key "type": Required[Union[str, RoutingRuleDestinationType]] + destinationAddress: str + type: Union[str, RoutingRuleDestinationType] + + + class azure.mgmt.network.types.ScopeConnection(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ScopeConnectionProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: ScopeConnectionProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.ScopeConnectionProperties(TypedDict, total=False): + key "connectionState": Union[str, ScopeConnectionState] + key "description": str + key "resourceId": str + key "tenantId": str + connectionState: Union[str, ScopeConnectionState] + description: str + resourceId: str + tenantId: str + + + class azure.mgmt.network.types.SecurityAdminConfiguration(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SecurityAdminConfigurationPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: SecurityAdminConfigurationPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityAdminConfigurationPropertiesFormat(TypedDict, total=False): + key "description": str + key "networkGroupAddressSpaceAggregationOption": Union[str, AddressSpaceAggregationOption] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + applyOnNetworkIntentPolicyBasedServices: list[Union[str, NetworkIntentPolicyBasedService]] + description: str + networkGroupAddressSpaceAggregationOption: Union[str, AddressSpaceAggregationOption] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.SecurityGroupViewParameters(TypedDict, total=False): + key "targetResourceId": Required[str] + targetResourceId: str + + + class azure.mgmt.network.types.SecurityPartnerProvider(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('SecurityPartnerProviderPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: SecurityPartnerProviderPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.SecurityPartnerProviderPropertiesFormat(TypedDict, total=False): + key "connectionStatus": Union[str, SecurityPartnerProviderConnectionStatus] + key "provisioningState": Union[str, ProvisioningState] + key "securityProviderName": Union[str, SecurityProviderName] + key "virtualHub": ForwardRef('SubResource', module='types') + connectionStatus: Union[str, SecurityPartnerProviderConnectionStatus] + provisioningState: Union[str, ProvisioningState] + securityProviderName: Union[str, SecurityProviderName] + virtualHub: SubResource + + + class azure.mgmt.network.types.SecurityPerimeterProxyResource(SecurityPerimeterResource): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityPerimeterResource(TypedDict, total=False): + key "id": str + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityPerimeterTrackedResource(SecurityPerimeterResource): + key "id": str + key "location": Required[str] + key "name": str + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + location: str + name: str + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.SecurityRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SecurityRulePropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: SecurityRulePropertiesFormat + type: str + + + class azure.mgmt.network.types.SecurityRulePropertiesFormat(TypedDict, total=False): + key "access": Required[Union[str, SecurityRuleAccess]] + key "description": str + key "destinationAddressPrefix": str + key "destinationPortRange": str + key "direction": Required[Union[str, SecurityRuleDirection]] + key "priority": Required[int] + key "protocol": Required[Union[str, SecurityRuleProtocol]] + key "provisioningState": Union[str, ProvisioningState] + key "sourceAddressPrefix": str + key "sourcePortRange": str + access: Union[str, SecurityRuleAccess] + description: str + destinationAddressPrefix: str + destinationAddressPrefixes: list[str] + destinationApplicationSecurityGroups: list[ApplicationSecurityGroup] + destinationPortRange: str + destinationPortRanges: list[str] + direction: Union[str, SecurityRuleDirection] + priority: int + protocol: Union[str, SecurityRuleProtocol] + provisioningState: Union[str, ProvisioningState] + sourceAddressPrefix: str + sourceAddressPrefixes: list[str] + sourceApplicationSecurityGroups: list[ApplicationSecurityGroup] + sourcePortRange: str + sourcePortRanges: list[str] + + + class azure.mgmt.network.types.SecurityUserConfiguration(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SecurityUserConfigurationPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: SecurityUserConfigurationPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityUserConfigurationPropertiesFormat(TypedDict, total=False): + key "description": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + description: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.SecurityUserGroupItem(TypedDict, total=False): + key "networkGroupId": Required[str] + networkGroupId: str + + + class azure.mgmt.network.types.SecurityUserRule(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SecurityUserRulePropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: SecurityUserRulePropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityUserRuleCollection(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SecurityUserRuleCollectionPropertiesFormat', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: SecurityUserRuleCollectionPropertiesFormat + systemData: SystemData + type: str + + + class azure.mgmt.network.types.SecurityUserRuleCollectionPropertiesFormat(TypedDict, total=False): + key "appliesToGroups": Required[list[SecurityUserGroupItem]] + key "description": str + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + appliesToGroups: list[SecurityUserGroupItem] + description: str + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.SecurityUserRulePropertiesFormat(TypedDict, total=False): + key "description": str + key "direction": Required[Union[str, SecurityConfigurationRuleDirection]] + key "protocol": Required[Union[str, SecurityConfigurationRuleProtocol]] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + description: str + destinationPortRanges: list[str] + destinations: list[AddressPrefixItem] + direction: Union[str, SecurityConfigurationRuleDirection] + protocol: Union[str, SecurityConfigurationRuleProtocol] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + sourcePortRanges: list[str] + sources: list[AddressPrefixItem] + + + class azure.mgmt.network.types.ServiceAssociationLink(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ServiceAssociationLinkPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ServiceAssociationLinkPropertiesFormat + type: str + + + class azure.mgmt.network.types.ServiceAssociationLinkPropertiesFormat(TypedDict, total=False): + key "allowDelete": bool + key "link": str + key "linkedResourceType": str + key "provisioningState": Union[str, ProvisioningState] + allowDelete: bool + link: str + linkedResourceType: str + locations: list[str] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.ServiceDelegationPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "serviceName": str + actions: list[str] + provisioningState: Union[str, ProvisioningState] + serviceName: str + + + class azure.mgmt.network.types.ServiceEndpointPolicy(Resource): + key "etag": str + key "id": str + key "kind": str + key "location": str + key "name": str + key "properties": ForwardRef('ServiceEndpointPolicyPropertiesFormat', module='types') + key "type": str + etag: str + id: str + kind: str + location: str + name: str + properties: ServiceEndpointPolicyPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.ServiceEndpointPolicyDefinition(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('ServiceEndpointPolicyDefinitionPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: ServiceEndpointPolicyDefinitionPropertiesFormat + type: str + + + class azure.mgmt.network.types.ServiceEndpointPolicyDefinitionPropertiesFormat(TypedDict, total=False): + key "description": str + key "provisioningState": Union[str, ProvisioningState] + key "service": str + description: str + provisioningState: Union[str, ProvisioningState] + service: str + serviceResources: list[str] + + + class azure.mgmt.network.types.ServiceEndpointPolicyPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "serviceAlias": str + contextualServiceEndpointPolicies: list[str] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + serviceAlias: str + serviceEndpointPolicyDefinitions: list[ServiceEndpointPolicyDefinition] + subnets: list[Subnet] + + + class azure.mgmt.network.types.ServiceEndpointPropertiesFormat(TypedDict, total=False): + key "networkIdentifier": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "service": str + locations: list[str] + networkIdentifier: SubResource + provisioningState: Union[str, ProvisioningState] + service: str + + + class azure.mgmt.network.types.ServiceGateway(SecurityPerimeterTrackedResource): + key "etag": str + key "id": str + key "location": Required[str] + key "name": str + key "properties": ForwardRef('ServiceGatewayPropertiesFormat', module='types') + key "sku": ForwardRef('ServiceGatewaySku', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: ServiceGatewayPropertiesFormat + sku: ServiceGatewaySku + systemData: SystemData + tags: dict[str, str] + type: str + zones: list[str] + + + class azure.mgmt.network.types.ServiceGatewayAddress(TypedDict, total=False): + key "address": str + address: str + services: list[str] + + + class azure.mgmt.network.types.ServiceGatewayAddressLocation(TypedDict, total=False): + key "addressLocation": str + key "addressUpdateAction": Union[str, AddressUpdateAction] + addressLocation: str + addressUpdateAction: Union[str, AddressUpdateAction] + addresses: list[ServiceGatewayAddress] + + + class azure.mgmt.network.types.ServiceGatewayPropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "routeTargetAddress": ForwardRef('RouteTargetAddressPropertiesFormat', module='types') + key "routeTargetAddressV6": ForwardRef('RouteTargetAddressPropertiesFormat', module='types') + key "virtualNetwork": ForwardRef('VirtualNetwork', module='types') + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + routeTargetAddress: RouteTargetAddressPropertiesFormat + routeTargetAddressV6: RouteTargetAddressPropertiesFormat + virtualNetwork: VirtualNetwork + + + class azure.mgmt.network.types.ServiceGatewayService(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('ServiceGatewayServicePropertiesFormat', module='types') + name: str + properties: ServiceGatewayServicePropertiesFormat + + + class azure.mgmt.network.types.ServiceGatewayServicePropertiesFormat(TypedDict, total=False): + key "isDefault": bool + key "publicNatGatewayId": str + key "serviceType": Union[str, ServiceType] + isDefault: bool + loadBalancerBackendPools: list[BackendAddressPool] + publicNatGatewayId: str + serviceType: Union[str, ServiceType] + + + class azure.mgmt.network.types.ServiceGatewayServiceRequest(TypedDict, total=False): + key "isDelete": bool + key "service": ForwardRef('ServiceGatewayService', module='types') + isDelete: bool + service: ServiceGatewayService + + + class azure.mgmt.network.types.ServiceGatewaySku(TypedDict, total=False): + key "name": Union[str, ServiceGatewaySkuName] + key "tier": Union[str, ServiceGatewaySkuTier] + name: Union[str, ServiceGatewaySkuName] + tier: Union[str, ServiceGatewaySkuTier] + + + class azure.mgmt.network.types.ServiceGatewayUpdateAddressLocationsRequest(TypedDict, total=False): + key "action": Union[str, UpdateAction] + action: Union[str, UpdateAction] + addressLocations: list[ServiceGatewayAddressLocation] + + + class azure.mgmt.network.types.ServiceGatewayUpdateServicesRequest(TypedDict, total=False): + key "action": Union[str, ServiceUpdateAction] + action: Union[str, ServiceUpdateAction] + serviceRequests: list[ServiceGatewayServiceRequest] + + + class azure.mgmt.network.types.SessionIds(TypedDict, total=False): + sessionIds: list[str] + + + class azure.mgmt.network.types.SharedKeyProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "sharedKey": str + key "sharedKeyLength": int + provisioningState: Union[str, ProvisioningState] + sharedKey: str + sharedKeyLength: int + + + class azure.mgmt.network.types.SignatureOverridesFilterValuesQuery(TypedDict, total=False): + key "filterName": str + filterName: str + + + class azure.mgmt.network.types.SignaturesOverrides(WritableResource): + key "id": str + key "name": str + key "properties": ForwardRef('SignaturesOverridesProperties', module='types') + key "type": str + id: str + name: str + properties: SignaturesOverridesProperties + type: str + + + class azure.mgmt.network.types.SignaturesOverridesProperties(TypedDict, total=False): + signatures: dict[str, str] + + + class azure.mgmt.network.types.Sku(TypedDict, total=False): + key "name": Union[str, BastionHostSkuName] + name: Union[str, BastionHostSkuName] + + + class azure.mgmt.network.types.StaticCidr(CommonProxyResource): + key "id": str + key "name": str + key "properties": ForwardRef('StaticCidrProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + id: str + name: str + properties: StaticCidrProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.StaticCidrProperties(TypedDict, total=False): + key "description": str + key "numberOfIPAddressesToAllocate": str + key "provisioningState": Union[str, ProvisioningState] + key "totalNumberOfIPAddresses": str + addressPrefixes: list[str] + description: str + numberOfIPAddressesToAllocate: str + provisioningState: Union[str, ProvisioningState] + totalNumberOfIPAddresses: str + + + class azure.mgmt.network.types.StaticMember(ChildResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('StaticMemberProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + name: str + properties: StaticMemberProperties + systemData: SystemData + type: str + + + class azure.mgmt.network.types.StaticMemberProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "region": str + key "resourceId": str + provisioningState: Union[str, ProvisioningState] + region: str + resourceId: str + + + class azure.mgmt.network.types.StaticRoute(TypedDict, total=False): + key "name": str + key "nextHopIpAddress": str + addressPrefixes: list[str] + name: str + nextHopIpAddress: str + + + class azure.mgmt.network.types.StaticRoutesConfig(TypedDict, total=False): + key "propagateStaticRoutes": bool + key "vnetLocalRouteOverrideCriteria": Union[str, VnetLocalRouteOverrideCriteria] + propagateStaticRoutes: bool + vnetLocalRouteOverrideCriteria: Union[str, VnetLocalRouteOverrideCriteria] + + + class azure.mgmt.network.types.StorageAccountSettings(TypedDict, total=False): + key "path": str + key "storageAccountId": Required[str] + path: str + storageAccountId: str + + + class azure.mgmt.network.types.SubResource(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.SubResourceModel(SubResource): + key "id": str + key "name": str + key "type": str + id: str + name: str + type: str + + + class azure.mgmt.network.types.Subgroup(SubResourceModel): + key "id": str + key "name": str + key "properties": ForwardRef('SubgroupProperties', module='types') + key "type": str + id: str + name: str + properties: SubgroupProperties + type: str + + + class azure.mgmt.network.types.SubgroupProfile(TypedDict, total=False): + key "scope": Union[str, SubgroupProfileScope] + key "size": int + key "vmSize": Required[str] + scope: Union[str, SubgroupProfileScope] + size: int + vmSize: str + + + class azure.mgmt.network.types.SubgroupProperties(TypedDict, total=False): + key "interconnectBlock": ForwardRef('SubResource', module='types') + key "internalSubgroupId": str + key "provisioningState": Union[str, ProvisioningState] + interconnectBlock: SubResource + internalSubgroupId: str + provisioningState: Union[str, ProvisioningState] + virtualMachines: list[SubResource] + + + class azure.mgmt.network.types.Subnet(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('SubnetPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: SubnetPropertiesFormat + type: str + + + class azure.mgmt.network.types.SubnetPropertiesFormat(TypedDict, total=False): + key "addressPrefix": str + key "defaultOutboundAccess": bool + key "natGateway": ForwardRef('SubResource', module='types') + key "networkSecurityGroup": ForwardRef('NetworkSecurityGroup', module='types') + key "privateEndpointNetworkPolicies": Union[str, VirtualNetworkPrivateEndpointNetworkPolicies] + key "privateLinkServiceNetworkPolicies": Union[str, VirtualNetworkPrivateLinkServiceNetworkPolicies] + key "provisioningState": Union[str, ProvisioningState] + key "purpose": str + key "routeTable": ForwardRef('RouteTable', module='types') + key "serviceGateway": ForwardRef('SubResource', module='types') + key "sharingScope": Union[str, SharingScope] + addressPrefix: str + addressPrefixes: list[str] + applicationGatewayIPConfigurations: list[ApplicationGatewayIPConfiguration] + defaultOutboundAccess: bool + delegations: list[Delegation] + ipAllocations: list[SubResource] + ipConfigurationProfiles: list[IPConfigurationProfile] + ipConfigurations: list[IPConfiguration] + ipamPoolPrefixAllocations: list[IpamPoolPrefixAllocation] + natGateway: SubResource + networkSecurityGroup: NetworkSecurityGroup + privateEndpointNetworkPolicies: Union[str, VirtualNetworkPrivateEndpointNetworkPolicies] + privateEndpoints: list[PrivateEndpoint] + privateLinkServiceNetworkPolicies: Union[str, VirtualNetworkPrivateLinkServiceNetworkPolicies] + provisioningState: Union[str, ProvisioningState] + purpose: str + resourceNavigationLinks: list[ResourceNavigationLink] + routeTable: RouteTable + serviceAssociationLinks: list[ServiceAssociationLink] + serviceEndpointPolicies: list[ServiceEndpointPolicy] + serviceEndpoints: list[ServiceEndpointPropertiesFormat] + serviceGateway: SubResource + sharingScope: Union[str, SharingScope] + + + class azure.mgmt.network.types.SubscriptionId(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.SwapResource(ProxyResourceWithReadOnlyID): + key "id": str + key "name": str + key "properties": ForwardRef('SwapResourceProperties', module='types') + key "type": str + id: str + name: str + properties: SwapResourceProperties + type: str + + + class azure.mgmt.network.types.SwapResourceProperties(TypedDict, total=False): + key "slotType": Union[str, SlotType] + slotType: Union[str, SlotType] + + + class azure.mgmt.network.types.SystemData(TypedDict, total=False): + key "createdAt": str + key "createdBy": str + key "createdByType": Union[str, CreatedByType] + key "lastModifiedAt": str + key "lastModifiedBy": str + key "lastModifiedByType": Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] + + + class azure.mgmt.network.types.TagsObject(TypedDict, total=False): + tags: dict[str, str] + + + class azure.mgmt.network.types.TopologyParameters(TypedDict, total=False): + key "targetResourceGroupName": str + key "targetSubnet": ForwardRef('SubResource', module='types') + key "targetVirtualNetwork": ForwardRef('SubResource', module='types') + targetResourceGroupName: str + targetSubnet: SubResource + targetVirtualNetwork: SubResource + + + class azure.mgmt.network.types.TrackedResourceWithOptionalLocation(TypedDict, total=False): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.TrackedResourceWithSettableIdOptionalLocation(TypedDict, total=False): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.TrackedResourceWithSettableName(TypedDict, total=False): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.TrafficAnalyticsConfigurationProperties(TypedDict, total=False): + key "enabled": bool + key "trafficAnalyticsInterval": int + key "workspaceId": str + key "workspaceRegion": str + key "workspaceResourceId": str + enabled: bool + trafficAnalyticsInterval: int + workspaceId: str + workspaceRegion: str + workspaceResourceId: str + + + class azure.mgmt.network.types.TrafficAnalyticsProperties(TypedDict, total=False): + key "networkWatcherFlowAnalyticsConfiguration": ForwardRef('TrafficAnalyticsConfigurationProperties', module='types') + networkWatcherFlowAnalyticsConfiguration: TrafficAnalyticsConfigurationProperties + + + class azure.mgmt.network.types.TrafficDetectionRule(TypedDict, total=False): + key "packetsPerSecond": int + key "trafficType": Union[str, DdosTrafficType] + packetsPerSecond: int + trafficType: Union[str, DdosTrafficType] + + + class azure.mgmt.network.types.TrafficSelectorPolicy(TypedDict, total=False): + key "localAddressRanges": Required[list[str]] + key "remoteAddressRanges": Required[list[str]] + localAddressRanges: list[str] + remoteAddressRanges: list[str] + + + class azure.mgmt.network.types.TroubleshootingParameters(TypedDict, total=False): + key "properties": Required[TroubleshootingProperties] + key "targetResourceId": Required[str] + properties: TroubleshootingProperties + targetResourceId: str + + + class azure.mgmt.network.types.TroubleshootingProperties(TypedDict, total=False): + key "storageId": Required[str] + key "storagePath": Required[str] + storageId: str + storagePath: str + + + class azure.mgmt.network.types.TunnelConnectionHealth(TypedDict, total=False): + key "connectionStatus": Union[str, VirtualNetworkGatewayConnectionStatus] + key "egressBytesTransferred": int + key "ingressBytesTransferred": int + key "lastConnectionEstablishedUtcTime": str + key "tunnel": str + connectionStatus: Union[str, VirtualNetworkGatewayConnectionStatus] + egressBytesTransferred: int + ingressBytesTransferred: int + lastConnectionEstablishedUtcTime: str + tunnel: str + + + class azure.mgmt.network.types.UnprepareNetworkPoliciesRequest(TypedDict, total=False): + key "serviceName": str + serviceName: str + + + class azure.mgmt.network.types.UpdateTagsRequest(TypedDict, total=False): + key "id": str + id: str + tags: dict[str, str] + + + class azure.mgmt.network.types.VM(Resource): + key "id": str + key "location": str + key "name": str + key "type": str + id: str + location: str + name: str + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VerificationIPFlowParameters(TypedDict, total=False): + key "direction": Required[Union[str, Direction]] + key "localIPAddress": Required[str] + key "localPort": Required[str] + key "protocol": Required[Union[str, IpFlowProtocol]] + key "remoteIPAddress": Required[str] + key "remotePort": Required[str] + key "targetNicResourceId": str + key "targetResourceId": Required[str] + direction: Union[str, Direction] + localIPAddress: str + localPort: str + protocol: Union[str, IpFlowProtocol] + remoteIPAddress: str + remotePort: str + targetNicResourceId: str + targetResourceId: str + + + class azure.mgmt.network.types.VerifierWorkspace(CommonTrackedResource): + key "etag": str + key "id": str + key "location": Required[str] + key "name": str + key "properties": ForwardRef('VerifierWorkspaceProperties', module='types') + key "systemData": ForwardRef('SystemData', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VerifierWorkspaceProperties + systemData: SystemData + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VerifierWorkspaceProperties(TypedDict, total=False): + key "description": str + key "provisioningState": Union[str, ProvisioningState] + description: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VerifierWorkspaceUpdate(TypedDict, total=False): + key "properties": ForwardRef('VerifierWorkspaceUpdateProperties', module='types') + properties: VerifierWorkspaceUpdateProperties + tags: dict[str, str] + + + class azure.mgmt.network.types.VerifierWorkspaceUpdateProperties(TypedDict, total=False): + key "description": str + description: str + + + class azure.mgmt.network.types.VirtualApplianceAdditionalNicProperties(TypedDict, total=False): + key "hasPublicIp": bool + key "name": str + hasPublicIp: bool + name: str + + + class azure.mgmt.network.types.VirtualApplianceIPConfiguration(TypedDict, total=False): + key "name": str + key "properties": ForwardRef('VirtualApplianceIPConfigurationProperties', module='types') + name: str + properties: VirtualApplianceIPConfigurationProperties + + + class azure.mgmt.network.types.VirtualApplianceIPConfigurationProperties(TypedDict, total=False): + key "primary": bool + primary: bool + + + class azure.mgmt.network.types.VirtualApplianceNetworkInterfaceConfiguration(TypedDict, total=False): + key "properties": ForwardRef('VirtualApplianceNetworkInterfaceConfigurationProperties', module='types') + key "type": Union[str, NicTypeInRequest] + properties: VirtualApplianceNetworkInterfaceConfigurationProperties + type: Union[str, NicTypeInRequest] + + + class azure.mgmt.network.types.VirtualApplianceNetworkInterfaceConfigurationProperties(TypedDict, total=False): + ipConfigurations: list[VirtualApplianceIPConfiguration] + + + class azure.mgmt.network.types.VirtualApplianceNicProperties(TypedDict, total=False): + key "instanceName": str + key "name": str + key "nicType": Union[str, NicTypeInResponse] + key "privateIpAddress": str + key "privateIpAddressV6": str + key "publicIpAddress": str + key "publicIpAddressV6": str + instanceName: str + name: str + nicType: Union[str, NicTypeInResponse] + privateIpAddress: str + privateIpAddressV6: str + publicIpAddress: str + publicIpAddressV6: str + + + class azure.mgmt.network.types.VirtualApplianceSite(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualApplianceSiteProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VirtualApplianceSiteProperties + type: str + + + class azure.mgmt.network.types.VirtualApplianceSiteProperties(TypedDict, total=False): + key "addressPrefix": str + key "o365Policy": ForwardRef('Office365PolicyProperties', module='types') + key "provisioningState": Union[str, ProvisioningState] + addressPrefix: str + o365Policy: Office365PolicyProperties + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VirtualApplianceSkuProperties(TypedDict, total=False): + key "bundledScaleUnit": str + key "marketPlaceVersion": str + key "vendor": str + bundledScaleUnit: str + marketPlaceVersion: str + vendor: str + + + class azure.mgmt.network.types.VirtualHub(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "kind": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualHubProperties', module='types') + key "type": str + etag: str + id: str + kind: str + location: str + name: str + properties: VirtualHubProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualHubId(TypedDict, total=False): + key "id": str + id: str + + + class azure.mgmt.network.types.VirtualHubProperties(TypedDict, total=False): + key "addressPrefix": str + key "addressPrefixV6": str + key "allowBranchToBranchTraffic": bool + key "azureFirewall": ForwardRef('SubResource', module='types') + key "expressRouteGateway": ForwardRef('SubResource', module='types') + key "hubRoutingPreference": Union[str, HubRoutingPreference] + key "p2SVpnGateway": ForwardRef('SubResource', module='types') + key "preferredRoutingGateway": Union[str, PreferredRoutingGateway] + key "provisioningState": Union[str, ProvisioningState] + key "routeTable": ForwardRef('VirtualHubRouteTable', module='types') + key "routingState": Union[str, RoutingState] + key "securityPartnerProvider": ForwardRef('SubResource', module='types') + key "securityProviderName": str + key "sku": str + key "virtualRouterAsn": int + key "virtualRouterAutoScaleConfiguration": ForwardRef('VirtualRouterAutoScaleConfiguration', module='types') + key "virtualWan": ForwardRef('SubResource', module='types') + key "vpnGateway": ForwardRef('SubResource', module='types') + addressPrefix: str + addressPrefixV6: str + allowBranchToBranchTraffic: bool + azureFirewall: SubResource + bgpConnections: list[SubResource] + expressRouteGateway: SubResource + hubRoutingPreference: Union[str, HubRoutingPreference] + ipConfigurations: list[SubResource] + p2SVpnGateway: SubResource + preferredRoutingGateway: Union[str, PreferredRoutingGateway] + provisioningState: Union[str, ProvisioningState] + routeMaps: list[SubResource] + routeTable: VirtualHubRouteTable + routingState: Union[str, RoutingState] + securityPartnerProvider: SubResource + securityProviderName: str + sku: str + virtualHubRouteTableV2s: list[VirtualHubRouteTableV2] + virtualRouterAsn: int + virtualRouterAutoScaleConfiguration: VirtualRouterAutoScaleConfiguration + virtualRouterIps: list[str] + virtualRouterIpsV6: list[str] + virtualWan: SubResource + vpnGateway: SubResource + + + class azure.mgmt.network.types.VirtualHubRoute(TypedDict, total=False): + key "nextHopIpAddress": str + addressPrefixes: list[str] + nextHopIpAddress: str + + + class azure.mgmt.network.types.VirtualHubRouteTable(TypedDict, total=False): + routes: list[VirtualHubRoute] + + + class azure.mgmt.network.types.VirtualHubRouteTableV2(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualHubRouteTableV2Properties', module='types') + etag: str + id: str + name: str + properties: VirtualHubRouteTableV2Properties + + + class azure.mgmt.network.types.VirtualHubRouteTableV2Properties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + attachedConnections: list[str] + provisioningState: Union[str, ProvisioningState] + routes: list[VirtualHubRouteV2] + + + class azure.mgmt.network.types.VirtualHubRouteV2(TypedDict, total=False): + key "destinationType": str + key "nextHopType": str + destinationType: str + destinations: list[str] + nextHopType: str + nextHops: list[str] + + + class azure.mgmt.network.types.VirtualNetwork(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualNetworkPropertiesFormat', module='types') + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + location: str + name: str + properties: VirtualNetworkPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualNetworkAppliance(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualNetworkAppliancePropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VirtualNetworkAppliancePropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualNetworkApplianceIpConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualNetworkApplianceIpConfigurationProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VirtualNetworkApplianceIpConfigurationProperties + type: str + + + class azure.mgmt.network.types.VirtualNetworkApplianceIpConfigurationProperties(TypedDict, total=False): + key "primary": bool + key "privateIPAddress": str + key "privateIPAddressVersion": Union[str, IPVersion] + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + primary: bool + privateIPAddress: str + privateIPAddressVersion: Union[str, IPVersion] + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VirtualNetworkAppliancePropertiesFormat(TypedDict, total=False): + key "bandwidthInGbps": float + key "privateIPAddressVersion": Union[str, VirtualNetworkApplianceIpVersionType] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "subnet": ForwardRef('Subnet', module='types') + bandwidthInGbps: float + ipConfigurations: list[VirtualNetworkApplianceIpConfiguration] + privateIPAddressVersion: Union[str, VirtualNetworkApplianceIpVersionType] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + subnet: Subnet + + + class azure.mgmt.network.types.VirtualNetworkBgpCommunities(TypedDict, total=False): + key "regionalCommunity": str + key "virtualNetworkCommunity": Required[str] + regionalCommunity: str + virtualNetworkCommunity: str + + + class azure.mgmt.network.types.VirtualNetworkEncryption(TypedDict, total=False): + key "enabled": Required[bool] + key "enforcement": Union[str, VirtualNetworkEncryptionEnforcement] + enabled: bool + enforcement: Union[str, VirtualNetworkEncryptionEnforcement] + + + class azure.mgmt.network.types.VirtualNetworkGateway(Resource): + key "etag": str + key "extendedLocation": ForwardRef('ExtendedLocation', module='types') + key "id": str + key "identity": ForwardRef('ManagedServiceIdentity', module='types') + key "location": str + key "name": str + key "properties": Required[VirtualNetworkGatewayPropertiesFormat] + key "type": str + etag: str + extendedLocation: ExtendedLocation + id: str + identity: ManagedServiceIdentity + location: str + name: str + properties: VirtualNetworkGatewayPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayAutoScaleBounds(TypedDict, total=False): + key "max": int + key "min": int + max: int + min: int + + + class azure.mgmt.network.types.VirtualNetworkGatewayAutoScaleConfiguration(TypedDict, total=False): + key "bounds": ForwardRef('VirtualNetworkGatewayAutoScaleBounds', module='types') + bounds: VirtualNetworkGatewayAutoScaleBounds + + + class azure.mgmt.network.types.VirtualNetworkGatewayConnection(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": Required[VirtualNetworkGatewayConnectionPropertiesFormat] + key "type": str + etag: str + id: str + location: str + name: str + properties: VirtualNetworkGatewayConnectionPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayConnectionPropertiesFormat(TypedDict, total=False): + key "authenticationType": Union[str, ConnectionAuthenticationType] + key "authorizationKey": str + key "certificateAuthentication": ForwardRef('CertificateAuthentication', module='types') + key "connectionMode": Union[str, VirtualNetworkGatewayConnectionMode] + key "connectionProtocol": Union[str, VirtualNetworkGatewayConnectionProtocol] + key "connectionStatus": Union[str, VirtualNetworkGatewayConnectionStatus] + key "connectionType": Required[Union[str, VirtualNetworkGatewayConnectionType]] + key "dpdTimeoutSeconds": int + key "egressBytesTransferred": int + key "enableBgp": bool + key "enablePrivateLinkFastPath": bool + key "expressRouteGatewayBypass": bool + key "ingressBytesTransferred": int + key "localNetworkGateway2": ForwardRef('LocalNetworkGateway', module='types') + key "peer": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + key "routingWeight": int + key "sharedKey": str + key "useLocalAzureIpAddress": bool + key "usePolicyBasedTrafficSelectors": bool + key "virtualNetworkGateway1": Required[VirtualNetworkGateway] + key "virtualNetworkGateway2": ForwardRef('VirtualNetworkGateway', module='types') + authenticationType: Union[str, ConnectionAuthenticationType] + authorizationKey: str + certificateAuthentication: CertificateAuthentication + connectionMode: Union[str, VirtualNetworkGatewayConnectionMode] + connectionProtocol: Union[str, VirtualNetworkGatewayConnectionProtocol] + connectionStatus: Union[str, VirtualNetworkGatewayConnectionStatus] + connectionType: Union[str, VirtualNetworkGatewayConnectionType] + dpdTimeoutSeconds: int + egressBytesTransferred: int + egressNatRules: list[SubResource] + enableBgp: bool + enablePrivateLinkFastPath: bool + expressRouteGatewayBypass: bool + gatewayCustomBgpIpAddresses: list[GatewayCustomBgpIpAddressIpConfiguration] + ingressBytesTransferred: int + ingressNatRules: list[SubResource] + ipsecPolicies: list[IpsecPolicy] + localNetworkGateway2: LocalNetworkGateway + peer: SubResource + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + routingConfiguration: RoutingConfiguration + routingWeight: int + sharedKey: str + trafficSelectorPolicies: list[TrafficSelectorPolicy] + tunnelConnectionStatus: list[TunnelConnectionHealth] + tunnelProperties: list[VirtualNetworkGatewayConnectionTunnelProperties] + useLocalAzureIpAddress: bool + usePolicyBasedTrafficSelectors: bool + virtualNetworkGateway1: VirtualNetworkGateway + virtualNetworkGateway2: VirtualNetworkGateway + + + class azure.mgmt.network.types.VirtualNetworkGatewayConnectionTunnelProperties(TypedDict, total=False): + key "bgpPeeringAddress": str + key "tunnelIpAddress": str + bgpPeeringAddress: str + tunnelIpAddress: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayIPConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualNetworkGatewayIPConfigurationPropertiesFormat', module='types') + etag: str + id: str + name: str + properties: VirtualNetworkGatewayIPConfigurationPropertiesFormat + + + class azure.mgmt.network.types.VirtualNetworkGatewayIPConfigurationPropertiesFormat(TypedDict, total=False): + key "privateIPAddress": str + key "privateIPAllocationMethod": Union[str, IPAllocationMethod] + key "provisioningState": Union[str, ProvisioningState] + key "publicIPAddress": ForwardRef('SubResource', module='types') + key "subnet": ForwardRef('SubResource', module='types') + privateIPAddress: str + privateIPAllocationMethod: Union[str, IPAllocationMethod] + provisioningState: Union[str, ProvisioningState] + publicIPAddress: SubResource + subnet: SubResource + + + class azure.mgmt.network.types.VirtualNetworkGatewayMigrationParameters(TypedDict, total=False): + key "migrationType": Required[Union[str, VirtualNetworkGatewayMigrationType]] + key "resourceUrl": str + migrationType: Union[str, VirtualNetworkGatewayMigrationType] + resourceUrl: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayMigrationStatus(TypedDict, total=False): + key "errorMessage": str + key "phase": Union[str, VirtualNetworkGatewayMigrationPhase] + key "state": Union[str, VirtualNetworkGatewayMigrationState] + errorMessage: str + phase: Union[str, VirtualNetworkGatewayMigrationPhase] + state: Union[str, VirtualNetworkGatewayMigrationState] + + + class azure.mgmt.network.types.VirtualNetworkGatewayNatRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualNetworkGatewayNatRuleProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VirtualNetworkGatewayNatRuleProperties + type: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayNatRuleProperties(TypedDict, total=False): + key "ipConfigurationId": str + key "mode": Union[str, VpnNatRuleMode] + key "provisioningState": Union[str, ProvisioningState] + key "type": Union[str, VpnNatRuleType] + externalMappings: list[VpnNatRuleMapping] + internalMappings: list[VpnNatRuleMapping] + ipConfigurationId: str + mode: Union[str, VpnNatRuleMode] + provisioningState: Union[str, ProvisioningState] + type: Union[str, VpnNatRuleType] + + + class azure.mgmt.network.types.VirtualNetworkGatewayPolicyGroup(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualNetworkGatewayPolicyGroupProperties', module='types') + etag: str + id: str + name: str + properties: VirtualNetworkGatewayPolicyGroupProperties + + + class azure.mgmt.network.types.VirtualNetworkGatewayPolicyGroupMember(TypedDict, total=False): + key "attributeType": Union[str, VpnPolicyMemberAttributeType] + key "attributeValue": str + key "name": str + attributeType: Union[str, VpnPolicyMemberAttributeType] + attributeValue: str + name: str + + + class azure.mgmt.network.types.VirtualNetworkGatewayPolicyGroupProperties(TypedDict, total=False): + key "isDefault": Required[bool] + key "policyMembers": Required[list[VirtualNetworkGatewayPolicyGroupMember]] + key "priority": Required[int] + key "provisioningState": Union[str, ProvisioningState] + isDefault: bool + policyMembers: list[VirtualNetworkGatewayPolicyGroupMember] + priority: int + provisioningState: Union[str, ProvisioningState] + vngClientConnectionConfigurations: list[SubResource] + + + class azure.mgmt.network.types.VirtualNetworkGatewayPropertiesFormat(TypedDict, total=False): + key "activeActive": bool + key "adminState": Union[str, AdminState] + key "allowRemoteVnetTraffic": bool + key "allowVirtualWanTraffic": bool + key "autoScaleConfiguration": ForwardRef('VirtualNetworkGatewayAutoScaleConfiguration', module='types') + key "bgpSettings": ForwardRef('BgpSettings', module='types') + key "customRoutes": ForwardRef('AddressSpace', module='types') + key "disableIPSecReplayProtection": bool + key "enableBgp": bool + key "enableBgpRouteTranslationForNat": bool + key "enableDnsForwarding": bool + key "enableHighBandwidthVpnGateway": bool + key "enablePrivateIpAddress": bool + key "gatewayDefaultSite": ForwardRef('SubResource', module='types') + key "gatewayType": Union[str, VirtualNetworkGatewayType] + key "inboundDnsForwardingEndpoint": str + key "provisioningState": Union[str, ProvisioningState] + key "resiliencyModel": Union[str, ResiliencyModel] + key "resourceGuid": str + key "sku": ForwardRef('VirtualNetworkGatewaySku', module='types') + key "vNetExtendedLocationResourceId": str + key "virtualNetworkGatewayMigrationStatus": ForwardRef('VirtualNetworkGatewayMigrationStatus', module='types') + key "vpnClientConfiguration": ForwardRef('VpnClientConfiguration', module='types') + key "vpnGatewayGeneration": Union[str, VpnGatewayGeneration] + key "vpnType": Union[str, VpnType] + activeActive: bool + adminState: Union[str, AdminState] + allowRemoteVnetTraffic: bool + allowVirtualWanTraffic: bool + autoScaleConfiguration: VirtualNetworkGatewayAutoScaleConfiguration + bgpSettings: BgpSettings + customRoutes: AddressSpace + disableIPSecReplayProtection: bool + enableBgp: bool + enableBgpRouteTranslationForNat: bool + enableDnsForwarding: bool + enableHighBandwidthVpnGateway: bool + enablePrivateIpAddress: bool + gatewayDefaultSite: SubResource + gatewayType: Union[str, VirtualNetworkGatewayType] + inboundDnsForwardingEndpoint: str + ipConfigurations: list[VirtualNetworkGatewayIPConfiguration] + natRules: list[VirtualNetworkGatewayNatRule] + provisioningState: Union[str, ProvisioningState] + resiliencyModel: Union[str, ResiliencyModel] + resourceGuid: str + sku: VirtualNetworkGatewaySku + vNetExtendedLocationResourceId: str + virtualNetworkGatewayMigrationStatus: VirtualNetworkGatewayMigrationStatus + virtualNetworkGatewayPolicyGroups: list[VirtualNetworkGatewayPolicyGroup] + vpnClientConfiguration: VpnClientConfiguration + vpnGatewayGeneration: Union[str, VpnGatewayGeneration] + vpnType: Union[str, VpnType] + + + class azure.mgmt.network.types.VirtualNetworkGatewaySku(TypedDict, total=False): + key "capacity": int + key "name": Union[str, VirtualNetworkGatewaySkuName] + key "tier": Union[str, VirtualNetworkGatewaySkuTier] + capacity: int + name: Union[str, VirtualNetworkGatewaySkuName] + tier: Union[str, VirtualNetworkGatewaySkuTier] + + + class azure.mgmt.network.types.VirtualNetworkPeering(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualNetworkPeeringPropertiesFormat', module='types') + key "type": str + etag: str + id: str + name: str + properties: VirtualNetworkPeeringPropertiesFormat + type: str + + + class azure.mgmt.network.types.VirtualNetworkPeeringPropertiesFormat(TypedDict, total=False): + key "allowForwardedTraffic": bool + key "allowGatewayTransit": bool + key "allowVirtualNetworkAccess": bool + key "doNotVerifyRemoteGateways": bool + key "enableOnlyIPv6Peering": bool + key "localAddressSpace": ForwardRef('AddressSpace', module='types') + key "localVirtualNetworkAddressSpace": ForwardRef('AddressSpace', module='types') + key "peerCompleteVnets": bool + key "peeringState": Union[str, VirtualNetworkPeeringState] + key "peeringSyncLevel": Union[str, VirtualNetworkPeeringLevel] + key "provisioningState": Union[str, ProvisioningState] + key "remoteAddressSpace": ForwardRef('AddressSpace', module='types') + key "remoteBgpCommunities": ForwardRef('VirtualNetworkBgpCommunities', module='types') + key "remoteVirtualNetwork": ForwardRef('SubResource', module='types') + key "remoteVirtualNetworkAddressSpace": ForwardRef('AddressSpace', module='types') + key "remoteVirtualNetworkEncryption": ForwardRef('VirtualNetworkEncryption', module='types') + key "resourceGuid": str + key "useRemoteGateways": bool + allowForwardedTraffic: bool + allowGatewayTransit: bool + allowVirtualNetworkAccess: bool + doNotVerifyRemoteGateways: bool + enableOnlyIPv6Peering: bool + localAddressSpace: AddressSpace + localSubnetNames: list[str] + localVirtualNetworkAddressSpace: AddressSpace + peerCompleteVnets: bool + peeringState: Union[str, VirtualNetworkPeeringState] + peeringSyncLevel: Union[str, VirtualNetworkPeeringLevel] + provisioningState: Union[str, ProvisioningState] + remoteAddressSpace: AddressSpace + remoteBgpCommunities: VirtualNetworkBgpCommunities + remoteSubnetNames: list[str] + remoteVirtualNetwork: SubResource + remoteVirtualNetworkAddressSpace: AddressSpace + remoteVirtualNetworkEncryption: VirtualNetworkEncryption + resourceGuid: str + useRemoteGateways: bool + + + class azure.mgmt.network.types.VirtualNetworkPropertiesFormat(TypedDict, total=False): + key "addressSpace": ForwardRef('AddressSpace', module='types') + key "bgpCommunities": ForwardRef('VirtualNetworkBgpCommunities', module='types') + key "ddosProtectionPlan": ForwardRef('SubResource', module='types') + key "defaultPublicNatGateway": ForwardRef('SubResource', module='types') + key "dhcpOptions": ForwardRef('DhcpOptions', module='types') + key "enableDdosProtection": bool + key "enableVmProtection": bool + key "encryption": ForwardRef('VirtualNetworkEncryption', module='types') + key "flowTimeoutInMinutes": int + key "privateEndpointVNetPolicies": Union[str, PrivateEndpointVNetPolicies] + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + key "summarizedGatewayPrefixes": ForwardRef('AddressSpace', module='types') + addressSpace: AddressSpace + bgpCommunities: VirtualNetworkBgpCommunities + ddosProtectionPlan: SubResource + defaultPublicNatGateway: SubResource + dhcpOptions: DhcpOptions + enableDdosProtection: bool + enableVmProtection: bool + encryption: VirtualNetworkEncryption + flowLogs: list[FlowLog] + flowTimeoutInMinutes: int + ipAllocations: list[SubResource] + privateEndpointVNetPolicies: Union[str, PrivateEndpointVNetPolicies] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + subnets: list[Subnet] + summarizedGatewayPrefixes: AddressSpace + virtualNetworkPeerings: list[VirtualNetworkPeering] + + + class azure.mgmt.network.types.VirtualNetworkTap(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualNetworkTapPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VirtualNetworkTapPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualNetworkTapPropertiesFormat(TypedDict, total=False): + key "destinationLoadBalancerFrontEndIPConfiguration": ForwardRef('FrontendIPConfiguration', module='types') + key "destinationNetworkInterfaceIPConfiguration": ForwardRef('NetworkInterfaceIPConfiguration', module='types') + key "destinationPort": int + key "provisioningState": Union[str, ProvisioningState] + key "resourceGuid": str + destinationLoadBalancerFrontEndIPConfiguration: FrontendIPConfiguration + destinationNetworkInterfaceIPConfiguration: NetworkInterfaceIPConfiguration + destinationPort: int + networkInterfaceTapConfigurations: list[NetworkInterfaceTapConfiguration] + provisioningState: Union[str, ProvisioningState] + resourceGuid: str + + + class azure.mgmt.network.types.VirtualRouter(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualRouterPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VirtualRouterPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualRouterAutoScaleConfiguration(TypedDict, total=False): + key "minCapacity": int + minCapacity: int + + + class azure.mgmt.network.types.VirtualRouterPeering(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VirtualRouterPeeringProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VirtualRouterPeeringProperties + type: str + + + class azure.mgmt.network.types.VirtualRouterPeeringProperties(TypedDict, total=False): + key "peerAsn": int + key "peerIp": str + key "provisioningState": Union[str, ProvisioningState] + peerAsn: int + peerIp: str + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VirtualRouterPropertiesFormat(TypedDict, total=False): + key "hostedGateway": ForwardRef('SubResource', module='types') + key "hostedSubnet": ForwardRef('SubResource', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "virtualRouterAsn": int + hostedGateway: SubResource + hostedSubnet: SubResource + peerings: list[SubResource] + provisioningState: Union[str, ProvisioningState] + virtualRouterAsn: int + virtualRouterIps: list[str] + + + class azure.mgmt.network.types.VirtualWAN(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VirtualWanProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VirtualWanProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VirtualWanProperties(TypedDict, total=False): + key "allowBranchToBranchTraffic": bool + key "allowVnetToVnetTraffic": bool + key "disableVpnEncryption": bool + key "office365LocalBreakoutCategory": Union[str, OfficeTrafficCategory] + key "provisioningState": Union[str, ProvisioningState] + key "type": str + allowBranchToBranchTraffic: bool + allowVnetToVnetTraffic: bool + disableVpnEncryption: bool + office365LocalBreakoutCategory: Union[str, OfficeTrafficCategory] + provisioningState: Union[str, ProvisioningState] + type: str + virtualHubs: list[SubResource] + vpnSites: list[SubResource] + + + class azure.mgmt.network.types.VirtualWanVpnProfileParameters(TypedDict, total=False): + key "authenticationMethod": Union[str, AuthenticationMethod] + key "vpnServerConfigurationResourceId": str + authenticationMethod: Union[str, AuthenticationMethod] + vpnServerConfigurationResourceId: str + + + class azure.mgmt.network.types.VnetRoute(TypedDict, total=False): + key "staticRoutesConfig": ForwardRef('StaticRoutesConfig', module='types') + bgpConnections: list[SubResource] + staticRoutes: list[StaticRoute] + staticRoutesConfig: StaticRoutesConfig + + + class azure.mgmt.network.types.VngClientConnectionConfiguration(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VngClientConnectionConfigurationProperties', module='types') + etag: str + id: str + name: str + properties: VngClientConnectionConfigurationProperties + + + class azure.mgmt.network.types.VngClientConnectionConfigurationProperties(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "virtualNetworkGatewayPolicyGroups": Required[list[SubResource]] + key "vpnClientAddressPool": Required[AddressSpace] + provisioningState: Union[str, ProvisioningState] + virtualNetworkGatewayPolicyGroups: list[SubResource] + vpnClientAddressPool: AddressSpace + + + class azure.mgmt.network.types.VpnClientConfiguration(TypedDict, total=False): + key "aadAudience": str + key "aadIssuer": str + key "aadTenant": str + key "radiusServerAddress": str + key "radiusServerSecret": str + key "vpnClientAddressPool": ForwardRef('AddressSpace', module='types') + aadAudience: str + aadIssuer: str + aadTenant: str + radiusServerAddress: str + radiusServerSecret: str + radiusServers: list[RadiusServer] + vngClientConnectionConfigurations: list[VngClientConnectionConfiguration] + vpnAuthenticationTypes: list[Union[str, VpnAuthenticationType]] + vpnClientAddressPool: AddressSpace + vpnClientIpsecPolicies: list[IpsecPolicy] + vpnClientProtocols: list[Union[str, VpnClientProtocol]] + vpnClientRevokedCertificates: list[VpnClientRevokedCertificate] + vpnClientRootCertificates: list[VpnClientRootCertificate] + + + class azure.mgmt.network.types.VpnClientConnectionHealth(TypedDict, total=False): + key "totalEgressBytesTransferred": int + key "totalIngressBytesTransferred": int + key "vpnClientConnectionsCount": int + allocatedIpAddresses: list[str] + totalEgressBytesTransferred: int + totalIngressBytesTransferred: int + vpnClientConnectionsCount: int + + + class azure.mgmt.network.types.VpnClientIPsecParameters(TypedDict, total=False): + key "dhGroup": Required[Union[str, DhGroup]] + key "ikeEncryption": Required[Union[str, IkeEncryption]] + key "ikeIntegrity": Required[Union[str, IkeIntegrity]] + key "ipsecEncryption": Required[Union[str, IpsecEncryption]] + key "ipsecIntegrity": Required[Union[str, IpsecIntegrity]] + key "pfsGroup": Required[Union[str, PfsGroup]] + key "saDataSizeKilobytes": Required[int] + key "saLifeTimeSeconds": Required[int] + dhGroup: Union[str, DhGroup] + ikeEncryption: Union[str, IkeEncryption] + ikeIntegrity: Union[str, IkeIntegrity] + ipsecEncryption: Union[str, IpsecEncryption] + ipsecIntegrity: Union[str, IpsecIntegrity] + pfsGroup: Union[str, PfsGroup] + saDataSizeKilobytes: int + saLifeTimeSeconds: int + + + class azure.mgmt.network.types.VpnClientParameters(TypedDict, total=False): + key "authenticationMethod": Union[str, AuthenticationMethod] + key "processorArchitecture": Union[str, ProcessorArchitecture] + key "radiusServerAuthCertificate": str + authenticationMethod: Union[str, AuthenticationMethod] + clientRootCertificates: list[str] + processorArchitecture: Union[str, ProcessorArchitecture] + radiusServerAuthCertificate: str + + + class azure.mgmt.network.types.VpnClientRevokedCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnClientRevokedCertificatePropertiesFormat', module='types') + etag: str + id: str + name: str + properties: VpnClientRevokedCertificatePropertiesFormat + + + class azure.mgmt.network.types.VpnClientRevokedCertificatePropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "thumbprint": str + provisioningState: Union[str, ProvisioningState] + thumbprint: str + + + class azure.mgmt.network.types.VpnClientRootCertificate(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": Required[VpnClientRootCertificatePropertiesFormat] + etag: str + id: str + name: str + properties: VpnClientRootCertificatePropertiesFormat + + + class azure.mgmt.network.types.VpnClientRootCertificatePropertiesFormat(TypedDict, total=False): + key "provisioningState": Union[str, ProvisioningState] + key "publicCertData": Required[str] + provisioningState: Union[str, ProvisioningState] + publicCertData: str + + + class azure.mgmt.network.types.VpnConnection(SubResource): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnConnectionProperties', module='types') + etag: str + id: str + name: str + properties: VpnConnectionProperties + + + class azure.mgmt.network.types.VpnConnectionPacketCaptureStartParameters(TypedDict, total=False): + key "filterData": str + filterData: str + linkConnectionNames: list[str] + + + class azure.mgmt.network.types.VpnConnectionPacketCaptureStopParameters(TypedDict, total=False): + key "sasUrl": str + linkConnectionNames: list[str] + sasUrl: str + + + class azure.mgmt.network.types.VpnConnectionProperties(TypedDict, total=False): + key "connectionBandwidth": int + key "connectionStatus": Union[str, VpnConnectionStatus] + key "dpdTimeoutSeconds": int + key "egressBytesTransferred": int + key "enableBgp": bool + key "enableInternetSecurity": bool + key "enableRateLimiting": bool + key "ingressBytesTransferred": int + key "provisioningState": Union[str, ProvisioningState] + key "remoteVpnSite": ForwardRef('SubResource', module='types') + key "routingConfiguration": ForwardRef('RoutingConfiguration', module='types') + key "routingWeight": int + key "sharedKey": str + key "useLocalAzureIpAddress": bool + key "usePolicyBasedTrafficSelectors": bool + key "vpnConnectionProtocolType": Union[str, VirtualNetworkGatewayConnectionProtocol] + connectionBandwidth: int + connectionStatus: Union[str, VpnConnectionStatus] + dpdTimeoutSeconds: int + egressBytesTransferred: int + enableBgp: bool + enableInternetSecurity: bool + enableRateLimiting: bool + ingressBytesTransferred: int + ipsecPolicies: list[IpsecPolicy] + provisioningState: Union[str, ProvisioningState] + remoteVpnSite: SubResource + routingConfiguration: RoutingConfiguration + routingWeight: int + sharedKey: str + trafficSelectorPolicies: list[TrafficSelectorPolicy] + useLocalAzureIpAddress: bool + usePolicyBasedTrafficSelectors: bool + vpnConnectionProtocolType: Union[str, VirtualNetworkGatewayConnectionProtocol] + vpnLinkConnections: list[VpnSiteLinkConnection] + + + class azure.mgmt.network.types.VpnDeviceScriptParameters(TypedDict, total=False): + key "deviceFamily": str + key "firmwareVersion": str + key "vendor": str + deviceFamily: str + firmwareVersion: str + vendor: str + + + class azure.mgmt.network.types.VpnGateway(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VpnGatewayProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VpnGatewayProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VpnGatewayIpConfiguration(TypedDict, total=False): + key "id": str + key "privateIpAddress": str + key "publicIpAddress": str + id: str + privateIpAddress: str + publicIpAddress: str + + + class azure.mgmt.network.types.VpnGatewayNatRule(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnGatewayNatRuleProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VpnGatewayNatRuleProperties + type: str + + + class azure.mgmt.network.types.VpnGatewayNatRuleProperties(TypedDict, total=False): + key "ipConfigurationId": str + key "mode": Union[str, VpnNatRuleMode] + key "provisioningState": Union[str, ProvisioningState] + key "type": Union[str, VpnNatRuleType] + egressVpnSiteLinkConnections: list[SubResource] + externalMappings: list[VpnNatRuleMapping] + ingressVpnSiteLinkConnections: list[SubResource] + internalMappings: list[VpnNatRuleMapping] + ipConfigurationId: str + mode: Union[str, VpnNatRuleMode] + provisioningState: Union[str, ProvisioningState] + type: Union[str, VpnNatRuleType] + + + class azure.mgmt.network.types.VpnGatewayPacketCaptureStartParameters(TypedDict, total=False): + key "filterData": str + filterData: str + + + class azure.mgmt.network.types.VpnGatewayPacketCaptureStopParameters(TypedDict, total=False): + key "sasUrl": str + sasUrl: str + + + class azure.mgmt.network.types.VpnGatewayProperties(TypedDict, total=False): + key "bgpSettings": ForwardRef('BgpSettings', module='types') + key "enableBgpRouteTranslationForNat": bool + key "isRoutingPreferenceInternet": bool + key "provisioningState": Union[str, ProvisioningState] + key "virtualHub": ForwardRef('SubResource', module='types') + key "vpnGatewayScaleUnit": int + bgpSettings: BgpSettings + connections: list[VpnConnection] + enableBgpRouteTranslationForNat: bool + ipConfigurations: list[VpnGatewayIpConfiguration] + isRoutingPreferenceInternet: bool + natRules: list[VpnGatewayNatRule] + provisioningState: Union[str, ProvisioningState] + virtualHub: SubResource + vpnGatewayScaleUnit: int + + + class azure.mgmt.network.types.VpnLinkBgpSettings(TypedDict, total=False): + key "asn": int + key "bgpPeeringAddress": str + asn: int + bgpPeeringAddress: str + + + class azure.mgmt.network.types.VpnLinkProviderProperties(TypedDict, total=False): + key "linkProviderName": str + key "linkSpeedInMbps": int + linkProviderName: str + linkSpeedInMbps: int + + + class azure.mgmt.network.types.VpnNatRuleMapping(TypedDict, total=False): + key "addressSpace": str + key "portRange": str + addressSpace: str + portRange: str + + + class azure.mgmt.network.types.VpnPacketCaptureStartParameters(TypedDict, total=False): + key "filterData": str + filterData: str + + + class azure.mgmt.network.types.VpnPacketCaptureStopParameters(TypedDict, total=False): + key "sasUrl": str + sasUrl: str + + + class azure.mgmt.network.types.VpnServerConfigRadiusClientRootCertificate(TypedDict, total=False): + key "name": str + key "thumbprint": str + name: str + thumbprint: str + + + class azure.mgmt.network.types.VpnServerConfigRadiusServerRootCertificate(TypedDict, total=False): + key "name": str + key "publicCertData": str + name: str + publicCertData: str + + + class azure.mgmt.network.types.VpnServerConfigVpnClientRevokedCertificate(TypedDict, total=False): + key "name": str + key "thumbprint": str + name: str + thumbprint: str + + + class azure.mgmt.network.types.VpnServerConfigVpnClientRootCertificate(TypedDict, total=False): + key "name": str + key "publicCertData": str + name: str + publicCertData: str + + + class azure.mgmt.network.types.VpnServerConfiguration(TrackedResourceWithSettableName): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VpnServerConfigurationProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VpnServerConfigurationProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VpnServerConfigurationPolicyGroup(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnServerConfigurationPolicyGroupProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VpnServerConfigurationPolicyGroupProperties + type: str + + + class azure.mgmt.network.types.VpnServerConfigurationPolicyGroupMember(TypedDict, total=False): + key "attributeType": Union[str, VpnPolicyMemberAttributeType] + key "attributeValue": str + key "name": str + attributeType: Union[str, VpnPolicyMemberAttributeType] + attributeValue: str + name: str + + + class azure.mgmt.network.types.VpnServerConfigurationPolicyGroupProperties(TypedDict, total=False): + key "isDefault": bool + key "priority": int + key "provisioningState": Union[str, ProvisioningState] + isDefault: bool + p2SConnectionConfigurations: list[SubResource] + policyMembers: list[VpnServerConfigurationPolicyGroupMember] + priority: int + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VpnServerConfigurationProperties(TypedDict, total=False): + key "aadAuthenticationParameters": ForwardRef('AadAuthenticationParameters', module='types') + key "etag": str + key "name": str + key "provisioningState": str + key "radiusServerAddress": str + key "radiusServerSecret": str + aadAuthenticationParameters: AadAuthenticationParameters + configurationPolicyGroups: list[VpnServerConfigurationPolicyGroup] + etag: str + name: str + p2SVpnGateways: list[P2SVpnGateway] + provisioningState: str + radiusClientRootCertificates: list[VpnServerConfigRadiusClientRootCertificate] + radiusServerAddress: str + radiusServerRootCertificates: list[VpnServerConfigRadiusServerRootCertificate] + radiusServerSecret: str + radiusServers: list[RadiusServer] + vpnAuthenticationTypes: list[Union[str, VpnAuthenticationType]] + vpnClientIpsecPolicies: list[IpsecPolicy] + vpnClientRevokedCertificates: list[VpnServerConfigVpnClientRevokedCertificate] + vpnClientRootCertificates: list[VpnServerConfigVpnClientRootCertificate] + vpnProtocols: list[Union[str, VpnGatewayTunnelingProtocol]] + + + class azure.mgmt.network.types.VpnSite(TrackedResourceWithSettableIdOptionalLocation): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('VpnSiteProperties', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: VpnSiteProperties + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.VpnSiteLink(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnSiteLinkProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VpnSiteLinkProperties + type: str + + + class azure.mgmt.network.types.VpnSiteLinkConnection(SubResourceModel): + key "etag": str + key "id": str + key "name": str + key "properties": ForwardRef('VpnSiteLinkConnectionProperties', module='types') + key "type": str + etag: str + id: str + name: str + properties: VpnSiteLinkConnectionProperties + type: str + + + class azure.mgmt.network.types.VpnSiteLinkConnectionProperties(TypedDict, total=False): + key "connectionBandwidth": int + key "connectionStatus": Union[str, VpnConnectionStatus] + key "dpdTimeoutSeconds": int + key "egressBytesTransferred": int + key "enableBgp": bool + key "enableRateLimiting": bool + key "ingressBytesTransferred": int + key "provisioningState": Union[str, ProvisioningState] + key "routingWeight": int + key "sharedKey": str + key "useLocalAzureIpAddress": bool + key "usePolicyBasedTrafficSelectors": bool + key "vpnConnectionProtocolType": Union[str, VirtualNetworkGatewayConnectionProtocol] + key "vpnLinkConnectionMode": Union[str, VpnLinkConnectionMode] + key "vpnSiteLink": ForwardRef('SubResource', module='types') + connectionBandwidth: int + connectionStatus: Union[str, VpnConnectionStatus] + dpdTimeoutSeconds: int + egressBytesTransferred: int + egressNatRules: list[SubResource] + enableBgp: bool + enableRateLimiting: bool + ingressBytesTransferred: int + ingressNatRules: list[SubResource] + ipsecPolicies: list[IpsecPolicy] + provisioningState: Union[str, ProvisioningState] + routingWeight: int + sharedKey: str + useLocalAzureIpAddress: bool + usePolicyBasedTrafficSelectors: bool + vpnConnectionProtocolType: Union[str, VirtualNetworkGatewayConnectionProtocol] + vpnGatewayCustomBgpAddresses: list[GatewayCustomBgpIpAddressIpConfiguration] + vpnLinkConnectionMode: Union[str, VpnLinkConnectionMode] + vpnSiteLink: SubResource + + + class azure.mgmt.network.types.VpnSiteLinkProperties(TypedDict, total=False): + key "bgpProperties": ForwardRef('VpnLinkBgpSettings', module='types') + key "fqdn": str + key "ipAddress": str + key "linkProperties": ForwardRef('VpnLinkProviderProperties', module='types') + key "provisioningState": Union[str, ProvisioningState] + bgpProperties: VpnLinkBgpSettings + fqdn: str + ipAddress: str + linkProperties: VpnLinkProviderProperties + provisioningState: Union[str, ProvisioningState] + + + class azure.mgmt.network.types.VpnSiteProperties(TypedDict, total=False): + key "addressSpace": ForwardRef('AddressSpace', module='types') + key "bgpProperties": ForwardRef('BgpSettings', module='types') + key "deviceProperties": ForwardRef('DeviceProperties', module='types') + key "ipAddress": str + key "isSecuritySite": bool + key "o365Policy": ForwardRef('O365PolicyProperties', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "siteKey": str + key "virtualWan": ForwardRef('SubResource', module='types') + addressSpace: AddressSpace + bgpProperties: BgpSettings + deviceProperties: DeviceProperties + ipAddress: str + isSecuritySite: bool + o365Policy: O365PolicyProperties + provisioningState: Union[str, ProvisioningState] + siteKey: str + virtualWan: SubResource + vpnSiteLinks: list[VpnSiteLink] + + + class azure.mgmt.network.types.WebApplicationFirewallCustomRule(TypedDict, total=False): + key "action": Required[Union[str, WebApplicationFirewallAction]] + key "etag": str + key "matchConditions": Required[list[MatchCondition]] + key "name": str + key "priority": Required[int] + key "rateLimitDuration": Union[str, ApplicationGatewayFirewallRateLimitDuration] + key "rateLimitThreshold": int + key "ruleType": Required[Union[str, WebApplicationFirewallRuleType]] + key "state": Union[str, WebApplicationFirewallState] + action: Union[str, WebApplicationFirewallAction] + etag: str + groupByUserSession: list[GroupByUserSession] + matchConditions: list[MatchCondition] + name: str + priority: int + rateLimitDuration: Union[str, ApplicationGatewayFirewallRateLimitDuration] + rateLimitThreshold: int + ruleType: Union[str, WebApplicationFirewallRuleType] + state: Union[str, WebApplicationFirewallState] + + + class azure.mgmt.network.types.WebApplicationFirewallPolicy(Resource): + key "etag": str + key "id": str + key "location": str + key "name": str + key "properties": ForwardRef('WebApplicationFirewallPolicyPropertiesFormat', module='types') + key "type": str + etag: str + id: str + location: str + name: str + properties: WebApplicationFirewallPolicyPropertiesFormat + tags: dict[str, str] + type: str + + + class azure.mgmt.network.types.WebApplicationFirewallPolicyPropertiesFormat(TypedDict, total=False): + key "managedRules": Required[ManagedRulesDefinition] + key "policySettings": ForwardRef('PolicySettings', module='types') + key "provisioningState": Union[str, ProvisioningState] + key "resourceState": Union[str, WebApplicationFirewallPolicyResourceState] + applicationGatewayForContainers: list[ApplicationGatewayForContainersReferenceDefinition] + applicationGateways: list[ApplicationGateway] + customRules: list[WebApplicationFirewallCustomRule] + httpListeners: list[SubResource] + managedRules: ManagedRulesDefinition + pathBasedRules: list[SubResource] + policySettings: PolicySettings + provisioningState: Union[str, ProvisioningState] + resourceState: Union[str, WebApplicationFirewallPolicyResourceState] + + + class azure.mgmt.network.types.WebApplicationFirewallScrubbingRules(TypedDict, total=False): + key "matchVariable": Required[Union[str, ScrubbingRuleEntryMatchVariable]] + key "selector": str + key "selectorMatchOperator": Required[Union[str, ScrubbingRuleEntryMatchOperator]] + key "state": Union[str, ScrubbingRuleEntryState] + matchVariable: Union[str, ScrubbingRuleEntryMatchVariable] + selector: str + selectorMatchOperator: Union[str, ScrubbingRuleEntryMatchOperator] + state: Union[str, ScrubbingRuleEntryState] + + + class azure.mgmt.network.types.WritableResource(TypedDict, total=False): + key "id": str + key "name": str + key "type": str + id: str + name: str + type: str + + ``` \ No newline at end of file diff --git a/sdk/network/azure-mgmt-network/api.metadata.yml b/sdk/network/azure-mgmt-network/api.metadata.yml index 99a8b25cab72..eecc81fe857d 100644 --- a/sdk/network/azure-mgmt-network/api.metadata.yml +++ b/sdk/network/azure-mgmt-network/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: fec7e082754b6f8af61000d977404d1853edc5b94adb921a10bfe4fd63f57f40 -parserVersion: 0.3.28 -pythonVersion: 3.13.13 +apiMdSha256: 2c6eb1e5367f42096179ad128a671fd5ea09d317309f669bf22eab902c3bfd26 +parserVersion: 0.3.31 +pythonVersion: 3.13.14 diff --git a/sdk/network/azure-mgmt-network/apiview-properties.json b/sdk/network/azure-mgmt-network/apiview-properties.json index 4ccba34e299e..5952f51893ac 100644 --- a/sdk/network/azure-mgmt-network/apiview-properties.json +++ b/sdk/network/azure-mgmt-network/apiview-properties.json @@ -12,6 +12,9 @@ "azure.mgmt.network.models.ActiveSecurityAdminRule": "Microsoft.Network.ActiveSecurityAdminRule", "azure.mgmt.network.models.ActiveSecurityAdminRulesListResult": "Microsoft.Network.ActiveSecurityAdminRulesListResult", "azure.mgmt.network.models.AddressPrefixItem": "Microsoft.Network.AddressPrefixItem", + "azure.mgmt.network.models.ProxyResource": "Microsoft.Network.ProxyResource", + "azure.mgmt.network.models.AddressPrefixSet": "Microsoft.Network.AddressPrefixSet", + "azure.mgmt.network.models.AddressPrefixSetPropertiesFormat": "Microsoft.Network.AddressPrefixSetPropertiesFormat", "azure.mgmt.network.models.AddressSpace": "Common.AddressSpace", "azure.mgmt.network.models.AdminPropertiesFormat": "Microsoft.Network.AdminPropertiesFormat", "azure.mgmt.network.models.ChildResource": "Microsoft.Network.ChildResource", @@ -163,7 +166,6 @@ "azure.mgmt.network.models.AzureReachabilityReportLatencyInfo": "Microsoft.Network.AzureReachabilityReportLatencyInfo", "azure.mgmt.network.models.AzureReachabilityReportLocation": "Microsoft.Network.AzureReachabilityReportLocation", "azure.mgmt.network.models.AzureReachabilityReportParameters": "Microsoft.Network.AzureReachabilityReportParameters", - "azure.mgmt.network.models.ProxyResource": "Microsoft.Network.ProxyResource", "azure.mgmt.network.models.AzureWebCategory": "Microsoft.Network.AzureWebCategory", "azure.mgmt.network.models.AzureWebCategoryPropertiesFormat": "Microsoft.Network.AzureWebCategoryPropertiesFormat", "azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings": "Microsoft.Network.BackendAddressInboundNatRulePortMappings", @@ -202,6 +204,10 @@ "azure.mgmt.network.models.CommonProxyResource": "Microsoft.Network.CommonProxyResource", "azure.mgmt.network.models.CommonTrackedResource": "Microsoft.Network.CommonTrackedResource", "azure.mgmt.network.models.ConfigurationGroup": "Microsoft.Network.ConfigurationGroup", + "azure.mgmt.network.models.ConnectionAnalyzer": "Microsoft.Network.ConnectionAnalyzer", + "azure.mgmt.network.models.ConnectionAnalyzerEndpoint": "Microsoft.Network.ConnectionAnalyzerEndpoint", + "azure.mgmt.network.models.ConnectionAnalyzerProperties": "Microsoft.Network.ConnectionAnalyzerProperties", + "azure.mgmt.network.models.ConnectionAnalyzerQueryStatusResult": "Microsoft.Network.ConnectionAnalyzerQueryStatusResult", "azure.mgmt.network.models.ConnectionMonitor": "Microsoft.Network.ConnectionMonitor", "azure.mgmt.network.models.ConnectionMonitorDestination": "Microsoft.Network.ConnectionMonitorDestination", "azure.mgmt.network.models.ConnectionMonitorEndpoint": "Microsoft.Network.ConnectionMonitorEndpoint", @@ -228,6 +234,7 @@ "azure.mgmt.network.models.ConnectionResetSharedKey": "Microsoft.Network.ConnectionResetSharedKey", "azure.mgmt.network.models.ConnectionSharedKey": "Microsoft.Network.ConnectionSharedKey", "azure.mgmt.network.models.ConnectionSharedKeyResult": "Microsoft.Network.ConnectionSharedKeyResult", + "azure.mgmt.network.models.ConnectivityCheckSettings": "Microsoft.Network.ConnectivityCheckSettings", "azure.mgmt.network.models.ConnectivityConfiguration": "Microsoft.Network.ConnectivityConfiguration", "azure.mgmt.network.models.ConnectivityConfigurationProperties": "Microsoft.Network.ConnectivityConfigurationProperties", "azure.mgmt.network.models.ConnectivityConfigurationPropertiesConnectivityCapabilities": "Microsoft.Network.ConnectivityConfigurationPropertiesConnectivityCapabilities", @@ -266,6 +273,8 @@ "azure.mgmt.network.models.DelegationProperties": "Microsoft.Network.DelegationProperties", "azure.mgmt.network.models.DeviceProperties": "Microsoft.Network.DeviceProperties", "azure.mgmt.network.models.DhcpOptions": "Common.DhcpOptions", + "azure.mgmt.network.models.DiagnosticOperationResult": "Microsoft.Network.DiagnosticOperationResult", + "azure.mgmt.network.models.DiagnosticOperationsSettings": "Microsoft.Network.DiagnosticOperationsSettings", "azure.mgmt.network.models.Dimension": "Microsoft.Network.Dimension", "azure.mgmt.network.models.DisassociateCloudServicePublicIpRequest": "Microsoft.Network.DisassociateCloudServicePublicIpRequest", "azure.mgmt.network.models.DnsNameAvailabilityResult": "Microsoft.Network.DnsNameAvailabilityResult", @@ -325,6 +334,7 @@ "azure.mgmt.network.models.ExpressRouteCrossConnectionProperties": "Microsoft.Network.ExpressRouteCrossConnectionProperties", "azure.mgmt.network.models.ExpressRouteCrossConnectionRoutesTableSummary": "Microsoft.Network.ExpressRouteCrossConnectionRoutesTableSummary", "azure.mgmt.network.models.ExpressRouteCrossConnectionsRoutesTableSummaryListResult": "Microsoft.Network.ExpressRouteCrossConnectionsRoutesTableSummaryListResult", + "azure.mgmt.network.models.ExpressRouteDiagnosticsSettings": "Microsoft.Network.ExpressRouteDiagnosticsSettings", "azure.mgmt.network.models.ExpressRouteFailoverCircuitResourceDetails": "Microsoft.Network.ExpressRouteFailoverCircuitResourceDetails", "azure.mgmt.network.models.ExpressRouteFailoverConnectionResourceDetails": "Microsoft.Network.ExpressRouteFailoverConnectionResourceDetails", "azure.mgmt.network.models.ExpressRouteFailoverRedundantRoute": "Microsoft.Network.ExpressRouteFailoverRedundantRoute", @@ -336,6 +346,13 @@ "azure.mgmt.network.models.ExpressRouteGatewayProperties": "Microsoft.Network.ExpressRouteGatewayProperties", "azure.mgmt.network.models.ExpressRouteGatewayPropertiesAutoScaleConfiguration": "Microsoft.Network.ExpressRouteGatewayPropertiesAutoScaleConfiguration", "azure.mgmt.network.models.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds": "Microsoft.Network.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds", + "azure.mgmt.network.models.ExpressRouteLag": "Microsoft.Network.ExpressRouteLag", + "azure.mgmt.network.models.ExpressRouteLagLink": "Microsoft.Network.ExpressRouteLagLink", + "azure.mgmt.network.models.ExpressRouteLagLinkPropertiesFormat": "Microsoft.Network.ExpressRouteLagLinkPropertiesFormat", + "azure.mgmt.network.models.ExpressRouteLagMember": "Microsoft.Network.ExpressRouteLagMember", + "azure.mgmt.network.models.ExpressRouteLagMemberPropertiesFormat": "Microsoft.Network.ExpressRouteLagMemberPropertiesFormat", + "azure.mgmt.network.models.ExpressRouteLagPropertiesFormat": "Microsoft.Network.ExpressRouteLagPropertiesFormat", + "azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest": "Microsoft.Network.ExpressRouteLagUpdateTagsOrIdentityRequest", "azure.mgmt.network.models.ExpressRouteLink": "Microsoft.Network.ExpressRouteLink", "azure.mgmt.network.models.ExpressRouteLinkFailoverAllTestsDetails": "Microsoft.Network.ExpressRouteLinkFailoverAllTestsDetails", "azure.mgmt.network.models.ExpressRouteLinkFailoverRoute": "Microsoft.Network.ExpressRouteLinkFailoverRoute", @@ -375,6 +392,8 @@ "azure.mgmt.network.models.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications": "Microsoft.Network.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications", "azure.mgmt.network.models.FirewallPolicyIntrusionDetectionConfiguration": "Microsoft.Network.FirewallPolicyIntrusionDetectionConfiguration", "azure.mgmt.network.models.FirewallPolicyIntrusionDetectionSignatureSpecification": "Microsoft.Network.FirewallPolicyIntrusionDetectionSignatureSpecification", + "azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup": "Microsoft.Network.FirewallPolicyKubeSelectorGroup", + "azure.mgmt.network.models.FirewallPolicyKubeSelectorGroupProperties": "Microsoft.Network.FirewallPolicyKubeSelectorGroupProperties", "azure.mgmt.network.models.FirewallPolicyLogAnalyticsResources": "Microsoft.Network.FirewallPolicyLogAnalyticsResources", "azure.mgmt.network.models.FirewallPolicyLogAnalyticsWorkspace": "Microsoft.Network.FirewallPolicyLogAnalyticsWorkspace", "azure.mgmt.network.models.FirewallPolicyNatRuleCollection": "Microsoft.Network.FirewallPolicyNatRuleCollection", @@ -390,6 +409,8 @@ "azure.mgmt.network.models.FirewallPolicySQL": "Microsoft.Network.FirewallPolicySQL", "azure.mgmt.network.models.FirewallPolicyThreatIntelWhitelist": "Microsoft.Network.FirewallPolicyThreatIntelWhitelist", "azure.mgmt.network.models.FirewallPolicyTransportSecurity": "Microsoft.Network.FirewallPolicyTransportSecurity", + "azure.mgmt.network.models.FirstPartyServiceTag": "Microsoft.Network.FirstPartyServiceTag", + "azure.mgmt.network.models.FirstPartyServiceTagPropertiesFormat": "Microsoft.Network.FirstPartyServiceTagPropertiesFormat", "azure.mgmt.network.models.FlowLog": "Common.FlowLog", "azure.mgmt.network.models.FlowLogFormatParameters": "Common.FlowLogFormatParameters", "azure.mgmt.network.models.FlowLogInformation": "Microsoft.Network.FlowLogInformation", @@ -399,6 +420,8 @@ "azure.mgmt.network.models.FrontendIPConfiguration": "Common.FrontendIPConfiguration", "azure.mgmt.network.models.FrontendIPConfigurationPropertiesFormat": "Common.FrontendIPConfigurationPropertiesFormat", "azure.mgmt.network.models.GatewayCustomBgpIpAddressIpConfiguration": "Microsoft.Network.GatewayCustomBgpIpAddressIpConfiguration", + "azure.mgmt.network.models.GatewayEffectiveRoute": "Microsoft.Network.GatewayEffectiveRoute", + "azure.mgmt.network.models.GatewayEffectiveRouteListResult": "Microsoft.Network.GatewayEffectiveRouteListResult", "azure.mgmt.network.models.GatewayLoadBalancerTunnelInterface": "Common.GatewayLoadBalancerTunnelInterface", "azure.mgmt.network.models.GatewayResiliencyInformation": "Microsoft.Network.GatewayResiliencyInformation", "azure.mgmt.network.models.GatewayResiliencyRecommendation": "Microsoft.Network.GatewayResiliencyRecommendation", @@ -406,6 +429,8 @@ "azure.mgmt.network.models.GatewayRouteListResult": "Microsoft.Network.GatewayRouteListResult", "azure.mgmt.network.models.GatewayRouteSet": "Microsoft.Network.GatewayRouteSet", "azure.mgmt.network.models.GatewayRouteSetsInformation": "Microsoft.Network.GatewayRouteSetsInformation", + "azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest": "Microsoft.Network.GenerateExpressRouteLagsLOARequest", + "azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult": "Microsoft.Network.GenerateExpressRouteLagsLOAResult", "azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest": "Microsoft.Network.GenerateExpressRoutePortsLOARequest", "azure.mgmt.network.models.GenerateExpressRoutePortsLOAResult": "Microsoft.Network.GenerateExpressRoutePortsLOAResult", "azure.mgmt.network.models.GetInboundRoutesParameters": "Microsoft.Network.GetInboundRoutesParameters", @@ -465,6 +490,8 @@ "azure.mgmt.network.models.IPTraffic": "Microsoft.Network.IPTraffic", "azure.mgmt.network.models.Ipv6CircuitConnectionConfig": "Microsoft.Network.Ipv6CircuitConnectionConfig", "azure.mgmt.network.models.Ipv6ExpressRouteCircuitPeeringConfig": "Microsoft.Network.Ipv6ExpressRouteCircuitPeeringConfig", + "azure.mgmt.network.models.KubeLabelSelector": "Microsoft.Network.KubeLabelSelector", + "azure.mgmt.network.models.LabelSelectorExpression": "Microsoft.Network.LabelSelectorExpression", "azure.mgmt.network.models.LoadBalancer": "Common.LoadBalancer", "azure.mgmt.network.models.LoadBalancerBackendAddress": "Common.LoadBalancerBackendAddress", "azure.mgmt.network.models.LoadBalancerBackendAddressPropertiesFormat": "Common.LoadBalancerBackendAddressPropertiesFormat", @@ -493,6 +520,9 @@ "azure.mgmt.network.models.MetricSpecification": "Microsoft.Network.MetricSpecification", "azure.mgmt.network.models.MigratedPools": "Microsoft.Network.MigratedPools", "azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest": "Microsoft.Network.MigrateLoadBalancerToIpBasedRequest", + "azure.mgmt.network.models.MoveIpConfigurationItem": "Microsoft.Network.MoveIpConfigurationItem", + "azure.mgmt.network.models.MoveIpConfigurationResourceReference": "Microsoft.Network.MoveIpConfigurationResourceReference", + "azure.mgmt.network.models.MoveIpConfigurationsRequest": "Microsoft.Network.MoveIpConfigurationsRequest", "azure.mgmt.network.models.NatGateway": "Common.NatGateway", "azure.mgmt.network.models.NatGatewayPropertiesFormat": "Common.NatGatewayPropertiesFormat", "azure.mgmt.network.models.NatGatewaySku": "Common.NatGatewaySku", @@ -543,10 +573,17 @@ "azure.mgmt.network.models.NetworkSecurityRulesEvaluationResult": "Microsoft.Network.NetworkSecurityRulesEvaluationResult", "azure.mgmt.network.models.NetworkVirtualAppliance": "Microsoft.Network.NetworkVirtualAppliance", "azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters": "Microsoft.Network.NetworkVirtualApplianceBootDiagnosticParameters", + "azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationProperties": "Microsoft.Network.NetworkVirtualApplianceCommitMigrationProperties", + "azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest": "Microsoft.Network.NetworkVirtualApplianceCommitMigrationRequest", "azure.mgmt.network.models.NetworkVirtualApplianceConnection": "Microsoft.Network.NetworkVirtualApplianceConnection", "azure.mgmt.network.models.NetworkVirtualApplianceConnectionProperties": "Microsoft.Network.NetworkVirtualApplianceConnectionProperties", + "azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationProperties": "Microsoft.Network.NetworkVirtualApplianceExecuteMigrationProperties", + "azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest": "Microsoft.Network.NetworkVirtualApplianceExecuteMigrationRequest", "azure.mgmt.network.models.NetworkVirtualApplianceInstanceId": "Microsoft.Network.NetworkVirtualApplianceInstanceId", "azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds": "Microsoft.Network.NetworkVirtualApplianceInstanceIds", + "azure.mgmt.network.models.NetworkVirtualApplianceMigrationStatus": "Microsoft.Network.NetworkVirtualApplianceMigrationStatus", + "azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationProperties": "Microsoft.Network.NetworkVirtualAppliancePrepareMigrationProperties", + "azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest": "Microsoft.Network.NetworkVirtualAppliancePrepareMigrationRequest", "azure.mgmt.network.models.NetworkVirtualAppliancePropertiesFormat": "Microsoft.Network.NetworkVirtualAppliancePropertiesFormat", "azure.mgmt.network.models.NetworkVirtualAppliancePropertiesFormatNetworkProfile": "Microsoft.Network.NetworkVirtualAppliancePropertiesFormatNetworkProfile", "azure.mgmt.network.models.NetworkVirtualApplianceSku": "Microsoft.Network.NetworkVirtualApplianceSku", @@ -583,6 +620,7 @@ "azure.mgmt.network.models.OrderBy": "Microsoft.Network.OrderBy", "azure.mgmt.network.models.OutboundRule": "Common.OutboundRule", "azure.mgmt.network.models.OutboundRulePropertiesFormat": "Common.OutboundRulePropertiesFormat", + "azure.mgmt.network.models.OutputSettings": "Microsoft.Network.OutputSettings", "azure.mgmt.network.models.OwaspCrsExclusionEntry": "Microsoft.Network.OwaspCrsExclusionEntry", "azure.mgmt.network.models.P2SConnectionConfiguration": "Microsoft.Network.P2SConnectionConfiguration", "azure.mgmt.network.models.P2SConnectionConfigurationProperties": "Microsoft.Network.P2SConnectionConfigurationProperties", @@ -641,6 +679,7 @@ "azure.mgmt.network.models.ProbePropertiesFormat": "Common.ProbePropertiesFormat", "azure.mgmt.network.models.PropagatedRouteTable": "Microsoft.Network.PropagatedRouteTable", "azure.mgmt.network.models.ProtocolConfiguration": "Microsoft.Network.ProtocolConfiguration", + "azure.mgmt.network.models.ProtocolSettings": "Microsoft.Network.ProtocolSettings", "azure.mgmt.network.models.ProxyResourceWithReadOnlyID": "Microsoft.Network.ProxyResourceWithReadOnlyID", "azure.mgmt.network.models.PublicIPAddress": "Common.PublicIPAddress", "azure.mgmt.network.models.PublicIPAddressDnsSettings": "Common.PublicIPAddressDnsSettings", @@ -727,6 +766,7 @@ "azure.mgmt.network.models.ServiceEndpointPolicyPropertiesFormat": "Common.ServiceEndpointPolicyPropertiesFormat", "azure.mgmt.network.models.ServiceEndpointPropertiesFormat": "Common.ServiceEndpointPropertiesFormat", "azure.mgmt.network.models.ServiceGateway": "Microsoft.Network.ServiceGateway", + "azure.mgmt.network.models.ServiceGatewayActionOkResponseBody": "Microsoft.Network.ServiceGatewayActionOkResponseBody", "azure.mgmt.network.models.ServiceGatewayAddress": "Microsoft.Network.ServiceGatewayAddress", "azure.mgmt.network.models.ServiceGatewayAddressLocation": "Microsoft.Network.ServiceGatewayAddressLocation", "azure.mgmt.network.models.ServiceGatewayAddressLocationResponse": "Microsoft.Network.ServiceGatewayAddressLocationResponse", @@ -758,6 +798,7 @@ "azure.mgmt.network.models.StaticRoutesConfig": "Microsoft.Network.StaticRoutesConfig", "azure.mgmt.network.models.StopCircuitLinkFailoverTestParameterBody": "Microsoft.Network.stopCircuitLinkFailoverTest.Parameter.body.anonymous", "azure.mgmt.network.models.StopSiteFailoverTestParameterBody": "Microsoft.Network.stopSiteFailoverTest.Parameter.body.anonymous", + "azure.mgmt.network.models.StorageAccountSettings": "Microsoft.Network.StorageAccountSettings", "azure.mgmt.network.models.Subgroup": "Microsoft.Network.Subgroup", "azure.mgmt.network.models.SubgroupNodeAvailabilityEntry": "Microsoft.Network.SubgroupNodeAvailabilityEntry", "azure.mgmt.network.models.SubgroupProfile": "Microsoft.Network.SubgroupProfile", @@ -994,6 +1035,7 @@ "azure.mgmt.network.models.AdvertisedPublicPrefixPropertiesValidationState": "Microsoft.Network.AdvertisedPublicPrefixPropertiesValidationState", "azure.mgmt.network.models.ExpressRouteCircuitPeeringState": "Microsoft.Network.ExpressRouteCircuitPeeringState", "azure.mgmt.network.models.CircuitConnectionStatus": "Microsoft.Network.CircuitConnectionStatus", + "azure.mgmt.network.models.ResiliencyLevel": "Microsoft.Network.ResiliencyLevel", "azure.mgmt.network.models.ExpressRouteCircuitSkuTier": "Microsoft.Network.ExpressRouteCircuitSkuTier", "azure.mgmt.network.models.ExpressRouteCircuitSkuFamily": "Microsoft.Network.ExpressRouteCircuitSkuFamily", "azure.mgmt.network.models.FailoverTestStatus": "Microsoft.Network.FailoverTestStatus", @@ -1009,6 +1051,9 @@ "azure.mgmt.network.models.ExpressRouteLinkMacSecSciState": "Microsoft.Network.ExpressRouteLinkMacSecSciState", "azure.mgmt.network.models.ExpressRoutePortsBillingType": "Microsoft.Network.ExpressRoutePortsBillingType", "azure.mgmt.network.models.ExpressRoutePortAuthorizationUseStatus": "Microsoft.Network.ExpressRoutePortAuthorizationUseStatus", + "azure.mgmt.network.models.ExpressRouteLagEncapsulation": "Microsoft.Network.ExpressRouteLagEncapsulation", + "azure.mgmt.network.models.ExpressRouteLagBillingType": "Microsoft.Network.ExpressRouteLagBillingType", + "azure.mgmt.network.models.ExpressRouteLagLacpTimer": "Microsoft.Network.ExpressRouteLagLacpTimer", "azure.mgmt.network.models.AutoLearnPrivateRangesMode": "Microsoft.Network.AutoLearnPrivateRangesMode", "azure.mgmt.network.models.FirewallPolicyIntrusionDetectionStateType": "Microsoft.Network.FirewallPolicyIntrusionDetectionStateType", "azure.mgmt.network.models.FirewallPolicyIntrusionDetectionProfileType": "Microsoft.Network.FirewallPolicyIntrusionDetectionProfileType", @@ -1020,6 +1065,7 @@ "azure.mgmt.network.models.FirewallPolicyRuleApplicationProtocolType": "Microsoft.Network.FirewallPolicyRuleApplicationProtocolType", "azure.mgmt.network.models.FirewallPolicyRuleNetworkProtocol": "Microsoft.Network.FirewallPolicyRuleNetworkProtocol", "azure.mgmt.network.models.FirewallPolicyNatRuleCollectionActionType": "Microsoft.Network.FirewallPolicyNatRuleCollectionActionType", + "azure.mgmt.network.models.LabelSelectorOperator": "Microsoft.Network.LabelSelectorOperator", "azure.mgmt.network.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", "azure.mgmt.network.models.IpType": "Microsoft.Network.IpType", "azure.mgmt.network.models.ConfigurationType": "Microsoft.Network.ConfigurationType", @@ -1029,6 +1075,7 @@ "azure.mgmt.network.models.ProbeNoHealthyBackendsBehavior": "Common.ProbeNoHealthyBackendsBehavior", "azure.mgmt.network.models.LoadBalancerOutboundRuleProtocol": "Common.LoadBalancerOutboundRuleProtocol", "azure.mgmt.network.models.LoadBalancerScope": "Common.LoadBalancerScope", + "azure.mgmt.network.models.LoadBalancerMode": "Common.LoadBalancerMode", "azure.mgmt.network.models.LoadBalancerSkuName": "Common.LoadBalancerSkuName", "azure.mgmt.network.models.LoadBalancerSkuTier": "Common.LoadBalancerSkuTier", "azure.mgmt.network.models.LoadBalancerDetailLevel": "Microsoft.Network.LoadBalancerDetailLevel", @@ -1057,6 +1104,7 @@ "azure.mgmt.network.models.NicTypeInResponse": "Microsoft.Network.NicTypeInResponse", "azure.mgmt.network.models.NicTypeInRequest": "Microsoft.Network.NicTypeInRequest", "azure.mgmt.network.models.NvaNicType": "Microsoft.Network.NvaNicType", + "azure.mgmt.network.models.MigrationType": "Microsoft.Network.MigrationType", "azure.mgmt.network.models.AssociationType": "Microsoft.Network.AssociationType", "azure.mgmt.network.models.Access": "Microsoft.Network.Access", "azure.mgmt.network.models.Direction": "Microsoft.Network.Direction", @@ -1069,6 +1117,10 @@ "azure.mgmt.network.models.Protocol": "Microsoft.Network.Protocol", "azure.mgmt.network.models.HTTPMethod": "Microsoft.Network.HTTPMethod", "azure.mgmt.network.models.VerbosityLevel": "Microsoft.Network.VerbosityLevel", + "azure.mgmt.network.models.ConnectionAnalyzerEndpointType": "Microsoft.Network.ConnectionAnalyzerEndpointTypes.EndpointType", + "azure.mgmt.network.models.DiagnosticOperation": "Microsoft.Network.DiagnosticOperation", + "azure.mgmt.network.models.PreferredIPVersion": "Microsoft.Network.PreferredIPVersion", + "azure.mgmt.network.models.ConnectionAnalyzerStatus": "Microsoft.Network.ConnectionAnalyzerStatus", "azure.mgmt.network.models.PublicIPPrefixSkuName": "Microsoft.Network.PublicIPPrefixSkuName", "azure.mgmt.network.models.PublicIPPrefixSkuTier": "Microsoft.Network.PublicIPPrefixSkuTier", "azure.mgmt.network.models.RouteFilterRuleType": "Microsoft.Network.RouteFilterRuleType", @@ -1106,6 +1158,7 @@ "azure.mgmt.network.models.ProcessorArchitecture": "Microsoft.Network.ProcessorArchitecture", "azure.mgmt.network.models.AuthenticationMethod": "Microsoft.Network.AuthenticationMethod", "azure.mgmt.network.models.BgpPeerState": "Microsoft.Network.BgpPeerState", + "azure.mgmt.network.models.GatewayEffectiveRouteNextHopType": "Microsoft.Network.GatewayEffectiveRouteNextHopType", "azure.mgmt.network.models.FailoverConnectionStatus": "Microsoft.Network.FailoverConnectionStatus", "azure.mgmt.network.models.FailoverTestStatusForSingleTest": "Microsoft.Network.FailoverTestStatusForSingleTest", "azure.mgmt.network.models.VirtualNetworkGatewayMigrationType": "Microsoft.Network.VirtualNetworkGatewayMigrationType", @@ -1180,11 +1233,11 @@ "azure.mgmt.network.models.ConnectionMonitorEndpointFilterItemType": "Microsoft.Network.ConnectionMonitorEndpointFilterItemType", "azure.mgmt.network.models.CoverageLevel": "Microsoft.Network.CoverageLevel", "azure.mgmt.network.models.ConnectionMonitorTestConfigurationProtocol": "Microsoft.Network.ConnectionMonitorTestConfigurationProtocol", - "azure.mgmt.network.models.PreferredIPVersion": "Microsoft.Network.PreferredIPVersion", "azure.mgmt.network.models.HTTPConfigurationMethod": "Microsoft.Network.HTTPConfigurationMethod", "azure.mgmt.network.models.DestinationPortBehavior": "Microsoft.Network.DestinationPortBehavior", "azure.mgmt.network.models.OutputType": "Microsoft.Network.OutputType", "azure.mgmt.network.models.ConnectionMonitorType": "Microsoft.Network.ConnectionMonitorType", + "azure.mgmt.network.models.EnableOnlyIpv6PeeringState": "Microsoft.Network.EnableOnlyIpv6PeeringState", "azure.mgmt.network.models.HubBgpConnectionStatus": "Microsoft.Network.HubBgpConnectionStatus", "azure.mgmt.network.models.NspReadinessState": "Microsoft.Network.NspReadinessState", "azure.mgmt.network.models.UsageUnit": "Microsoft.Network.UsageUnit", @@ -1463,6 +1516,28 @@ "azure.mgmt.network.aio.operations.ExpressRoutePortAuthorizationsOperations.begin_delete": "Microsoft.Network.ExpressRoutePortAuthorizations.delete", "azure.mgmt.network.operations.ExpressRoutePortAuthorizationsOperations.list": "Microsoft.Network.ExpressRoutePortAuthorizations.list", "azure.mgmt.network.aio.operations.ExpressRoutePortAuthorizationsOperations.list": "Microsoft.Network.ExpressRoutePortAuthorizations.list", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.get": "Microsoft.Network.ExpressRouteLags.get", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.get": "Microsoft.Network.ExpressRouteLags.get", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.begin_create_or_update": "Microsoft.Network.ExpressRouteLags.createOrUpdate", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.begin_create_or_update": "Microsoft.Network.ExpressRouteLags.createOrUpdate", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.update": "Microsoft.Network.ExpressRouteLags.update", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.update": "Microsoft.Network.ExpressRouteLags.update", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.begin_delete": "Microsoft.Network.ExpressRouteLags.delete", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.begin_delete": "Microsoft.Network.ExpressRouteLags.delete", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.list_by_resource_group": "Microsoft.Network.ExpressRouteLags.listByResourceGroup", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.list_by_resource_group": "Microsoft.Network.ExpressRouteLags.listByResourceGroup", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.list": "Microsoft.Network.ExpressRouteLags.list", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.list": "Microsoft.Network.ExpressRouteLags.list", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.generate_loa": "Microsoft.Network.ExpressRouteLags.generateLoa", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.generate_loa": "Microsoft.Network.ExpressRouteLags.generateLoa", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.links_get": "Microsoft.Network.ExpressRouteLags.linksGet", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.links_get": "Microsoft.Network.ExpressRouteLags.linksGet", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.links_list": "Microsoft.Network.ExpressRouteLags.linksList", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.links_list": "Microsoft.Network.ExpressRouteLags.linksList", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.members_get": "Microsoft.Network.ExpressRouteLags.membersGet", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.members_get": "Microsoft.Network.ExpressRouteLags.membersGet", + "azure.mgmt.network.operations.ExpressRouteLagsOperations.members_list": "Microsoft.Network.ExpressRouteLags.membersList", + "azure.mgmt.network.aio.operations.ExpressRouteLagsOperations.members_list": "Microsoft.Network.ExpressRouteLags.membersList", "azure.mgmt.network.operations.FirewallPoliciesOperations.get": "Microsoft.Network.FirewallPolicies.get", "azure.mgmt.network.aio.operations.FirewallPoliciesOperations.get": "Microsoft.Network.FirewallPolicies.get", "azure.mgmt.network.operations.FirewallPoliciesOperations.begin_create_or_update": "Microsoft.Network.FirewallPolicies.createOrUpdate", @@ -1483,6 +1558,14 @@ "azure.mgmt.network.aio.operations.FirewallPolicyRuleCollectionGroupsOperations.begin_delete": "Microsoft.Network.FirewallPolicyRuleCollectionGroups.delete", "azure.mgmt.network.operations.FirewallPolicyRuleCollectionGroupsOperations.list": "Microsoft.Network.FirewallPolicyRuleCollectionGroups.list", "azure.mgmt.network.aio.operations.FirewallPolicyRuleCollectionGroupsOperations.list": "Microsoft.Network.FirewallPolicyRuleCollectionGroups.list", + "azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations.get": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.get", + "azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations.get": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.get", + "azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations.begin_create_or_update": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.createOrUpdate", + "azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations.begin_create_or_update": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.createOrUpdate", + "azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations.begin_delete": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.delete", + "azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations.begin_delete": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.delete", + "azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations.list": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.list", + "azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations.list": "Microsoft.Network.FirewallPolicyKubeSelectorGroups.list", "azure.mgmt.network.operations.FirewallPolicyIdpsSignaturesOverridesOperations.get": "Microsoft.Network.FirewallPolicyIdpsSignaturesOverrides.get", "azure.mgmt.network.aio.operations.FirewallPolicyIdpsSignaturesOverridesOperations.get": "Microsoft.Network.FirewallPolicyIdpsSignaturesOverrides.get", "azure.mgmt.network.operations.FirewallPolicyIdpsSignaturesOverridesOperations.put": "Microsoft.Network.FirewallPolicyIdpsSignaturesOverrides.put", @@ -1823,6 +1906,14 @@ "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_reimage": "Microsoft.Network.NetworkVirtualAppliances.reimage", "azure.mgmt.network.operations.NetworkVirtualAppliancesOperations.begin_get_boot_diagnostic_logs": "Microsoft.Network.NetworkVirtualAppliances.getBootDiagnosticLogs", "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_get_boot_diagnostic_logs": "Microsoft.Network.NetworkVirtualAppliances.getBootDiagnosticLogs", + "azure.mgmt.network.operations.NetworkVirtualAppliancesOperations.begin_prepare_migration": "Microsoft.Network.NetworkVirtualAppliances.prepareMigration", + "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_prepare_migration": "Microsoft.Network.NetworkVirtualAppliances.prepareMigration", + "azure.mgmt.network.operations.NetworkVirtualAppliancesOperations.begin_execute_migration": "Microsoft.Network.NetworkVirtualAppliances.executeMigration", + "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_execute_migration": "Microsoft.Network.NetworkVirtualAppliances.executeMigration", + "azure.mgmt.network.operations.NetworkVirtualAppliancesOperations.begin_commit_migration": "Microsoft.Network.NetworkVirtualAppliances.commitMigration", + "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_commit_migration": "Microsoft.Network.NetworkVirtualAppliances.commitMigration", + "azure.mgmt.network.operations.NetworkVirtualAppliancesOperations.begin_abort_migration": "Microsoft.Network.NetworkVirtualAppliances.abortMigration", + "azure.mgmt.network.aio.operations.NetworkVirtualAppliancesOperations.begin_abort_migration": "Microsoft.Network.NetworkVirtualAppliances.abortMigration", "azure.mgmt.network.operations.VirtualApplianceSitesOperations.get": "Microsoft.Network.VirtualApplianceSites.get", "azure.mgmt.network.aio.operations.VirtualApplianceSitesOperations.get": "Microsoft.Network.VirtualApplianceSites.get", "azure.mgmt.network.operations.VirtualApplianceSitesOperations.begin_create_or_update": "Microsoft.Network.VirtualApplianceSites.createOrUpdate", @@ -1867,6 +1958,18 @@ "azure.mgmt.network.aio.operations.NetworkWatchersOperations.begin_list_available_providers": "Microsoft.Network.NetworkWatchers.listAvailableProviders", "azure.mgmt.network.operations.NetworkWatchersOperations.begin_get_network_configuration_diagnostic": "Microsoft.Network.NetworkWatchers.getNetworkConfigurationDiagnostic", "azure.mgmt.network.aio.operations.NetworkWatchersOperations.begin_get_network_configuration_diagnostic": "Microsoft.Network.NetworkWatchers.getNetworkConfigurationDiagnostic", + "azure.mgmt.network.operations.NetworkWatchersOperations.begin_connection_analyzers_create": "Microsoft.Network.NetworkWatchers.connectionAnalyzersCreate", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.begin_connection_analyzers_create": "Microsoft.Network.NetworkWatchers.connectionAnalyzersCreate", + "azure.mgmt.network.operations.NetworkWatchersOperations.connection_analyzers_get": "Microsoft.Network.NetworkWatchers.connectionAnalyzersGet", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.connection_analyzers_get": "Microsoft.Network.NetworkWatchers.connectionAnalyzersGet", + "azure.mgmt.network.operations.NetworkWatchersOperations.begin_connection_analyzers_delete": "Microsoft.Network.NetworkWatchers.connectionAnalyzersDelete", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.begin_connection_analyzers_delete": "Microsoft.Network.NetworkWatchers.connectionAnalyzersDelete", + "azure.mgmt.network.operations.NetworkWatchersOperations.connection_analyzers_update_tags": "Microsoft.Network.NetworkWatchers.connectionAnalyzersUpdateTags", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.connection_analyzers_update_tags": "Microsoft.Network.NetworkWatchers.connectionAnalyzersUpdateTags", + "azure.mgmt.network.operations.NetworkWatchersOperations.connection_analyzers_list": "Microsoft.Network.NetworkWatchers.connectionAnalyzersList", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.connection_analyzers_list": "Microsoft.Network.NetworkWatchers.connectionAnalyzersList", + "azure.mgmt.network.operations.NetworkWatchersOperations.begin_connection_analyzers_query": "Microsoft.Network.NetworkWatchers.connectionAnalyzersQuery", + "azure.mgmt.network.aio.operations.NetworkWatchersOperations.begin_connection_analyzers_query": "Microsoft.Network.NetworkWatchers.connectionAnalyzersQuery", "azure.mgmt.network.operations.FlowLogsOperations.get": "Microsoft.Network.FlowLogs.get", "azure.mgmt.network.aio.operations.FlowLogsOperations.get": "Microsoft.Network.FlowLogs.get", "azure.mgmt.network.operations.FlowLogsOperations.begin_create_or_update": "Microsoft.Network.FlowLogs.createOrUpdate", @@ -2007,6 +2110,8 @@ "azure.mgmt.network.aio.operations.VirtualNetworksOperations.list_usage": "Microsoft.Network.VirtualNetworks.listUsage", "azure.mgmt.network.operations.VirtualNetworksOperations.begin_list_ddos_protection_status": "Microsoft.Network.VirtualNetworks.listDdosProtectionStatus", "azure.mgmt.network.aio.operations.VirtualNetworksOperations.begin_list_ddos_protection_status": "Microsoft.Network.VirtualNetworks.listDdosProtectionStatus", + "azure.mgmt.network.operations.VirtualNetworksOperations.begin_move_ip_configurations": "Microsoft.Network.VirtualNetworks.moveIpConfigurations", + "azure.mgmt.network.aio.operations.VirtualNetworksOperations.begin_move_ip_configurations": "Microsoft.Network.VirtualNetworks.moveIpConfigurations", "azure.mgmt.network.operations.SubnetsOperations.get": "Microsoft.Network.Subnets.get", "azure.mgmt.network.aio.operations.SubnetsOperations.get": "Microsoft.Network.Subnets.get", "azure.mgmt.network.operations.SubnetsOperations.begin_create_or_update": "Microsoft.Network.Subnets.createOrUpdate", @@ -2059,6 +2164,8 @@ "azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations.begin_get_learned_routes": "Microsoft.Network.VirtualNetworkGateways.getLearnedRoutes", "azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.begin_get_advertised_routes": "Microsoft.Network.VirtualNetworkGateways.getAdvertisedRoutes", "azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations.begin_get_advertised_routes": "Microsoft.Network.VirtualNetworkGateways.getAdvertisedRoutes", + "azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.begin_get_effective_routes": "Microsoft.Network.VirtualNetworkGateways.getEffectiveRoutes", + "azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations.begin_get_effective_routes": "Microsoft.Network.VirtualNetworkGateways.getEffectiveRoutes", "azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.begin_get_resiliency_information": "Microsoft.Network.VirtualNetworkGateways.getResiliencyInformation", "azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations.begin_get_resiliency_information": "Microsoft.Network.VirtualNetworkGateways.getResiliencyInformation", "azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.begin_get_routes_information": "Microsoft.Network.VirtualNetworkGateways.getRoutesInformation", @@ -2349,10 +2456,10 @@ "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.list": "Microsoft.Network.ServiceGateways.list", "azure.mgmt.network.operations.ServiceGatewaysOperations.list_all": "Microsoft.Network.ServiceGateways.listAll", "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.list_all": "Microsoft.Network.ServiceGateways.listAll", - "azure.mgmt.network.operations.ServiceGatewaysOperations.begin_update_address_locations": "Microsoft.Network.ServiceGateways.updateAddressLocations", - "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_update_address_locations": "Microsoft.Network.ServiceGateways.updateAddressLocations", - "azure.mgmt.network.operations.ServiceGatewaysOperations.begin_update_services": "Microsoft.Network.ServiceGateways.updateServices", - "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_update_services": "Microsoft.Network.ServiceGateways.updateServices", + "azure.mgmt.network.operations.ServiceGatewaysOperations.update_address_locations": "Microsoft.Network.ServiceGateways.updateAddressLocations", + "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.update_address_locations": "Microsoft.Network.ServiceGateways.updateAddressLocations", + "azure.mgmt.network.operations.ServiceGatewaysOperations.update_services": "Microsoft.Network.ServiceGateways.updateServices", + "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.update_services": "Microsoft.Network.ServiceGateways.updateServices", "azure.mgmt.network.operations.ServiceGatewaysOperations.get_address_locations": "Microsoft.Network.ServiceGateways.getAddressLocations", "azure.mgmt.network.aio.operations.ServiceGatewaysOperations.get_address_locations": "Microsoft.Network.ServiceGateways.getAddressLocations", "azure.mgmt.network.operations.ServiceGatewaysOperations.get_services": "Microsoft.Network.ServiceGateways.getServices", @@ -2375,6 +2482,26 @@ "azure.mgmt.network.aio.operations.SubgroupsOperations.get": "Microsoft.Network.Subgroups.get", "azure.mgmt.network.operations.SubgroupsOperations.list": "Microsoft.Network.Subgroups.list", "azure.mgmt.network.aio.operations.SubgroupsOperations.list": "Microsoft.Network.Subgroups.list", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.get": "Microsoft.Network.FirstPartyServiceTags.get", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.get": "Microsoft.Network.FirstPartyServiceTags.get", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.begin_create_or_update": "Microsoft.Network.FirstPartyServiceTags.createOrUpdate", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.begin_create_or_update": "Microsoft.Network.FirstPartyServiceTags.createOrUpdate", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.begin_update_tags": "Microsoft.Network.FirstPartyServiceTags.updateTags", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.begin_update_tags": "Microsoft.Network.FirstPartyServiceTags.updateTags", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.begin_delete": "Microsoft.Network.FirstPartyServiceTags.delete", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.begin_delete": "Microsoft.Network.FirstPartyServiceTags.delete", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.list": "Microsoft.Network.FirstPartyServiceTags.list", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.list": "Microsoft.Network.FirstPartyServiceTags.list", + "azure.mgmt.network.operations.FirstPartyServiceTagsOperations.list_all": "Microsoft.Network.FirstPartyServiceTags.listAll", + "azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations.list_all": "Microsoft.Network.FirstPartyServiceTags.listAll", + "azure.mgmt.network.operations.AddressPrefixSetsOperations.get": "Microsoft.Network.AddressPrefixSets.get", + "azure.mgmt.network.aio.operations.AddressPrefixSetsOperations.get": "Microsoft.Network.AddressPrefixSets.get", + "azure.mgmt.network.operations.AddressPrefixSetsOperations.begin_create_or_update": "Microsoft.Network.AddressPrefixSets.createOrUpdate", + "azure.mgmt.network.aio.operations.AddressPrefixSetsOperations.begin_create_or_update": "Microsoft.Network.AddressPrefixSets.createOrUpdate", + "azure.mgmt.network.operations.AddressPrefixSetsOperations.begin_delete": "Microsoft.Network.AddressPrefixSets.delete", + "azure.mgmt.network.aio.operations.AddressPrefixSetsOperations.begin_delete": "Microsoft.Network.AddressPrefixSets.delete", + "azure.mgmt.network.operations.AddressPrefixSetsOperations.list": "Microsoft.Network.AddressPrefixSets.list", + "azure.mgmt.network.aio.operations.AddressPrefixSetsOperations.list": "Microsoft.Network.AddressPrefixSets.list", "azure.mgmt.network.operations.ApplicationGatewayPrivateLinkResourcesOperations.list": "Microsoft.Network.ApplicationGateways.applicationGatewayPrivateLinkResourcesList", "azure.mgmt.network.aio.operations.ApplicationGatewayPrivateLinkResourcesOperations.list": "Microsoft.Network.ApplicationGateways.applicationGatewayPrivateLinkResourcesList", "azure.mgmt.network.operations.ApplicationGatewayWafDynamicManifestsDefaultOperations.get": "Microsoft.Network.ApplicationGatewayWafDynamicManifestResults.get", @@ -2744,5 +2871,5 @@ "azure.mgmt.network.NetworkManagementClient.check_dns_name_availability": "Microsoft.Network.CheckDnsNameAvailability.checkDnsNameAvailability", "azure.mgmt.network.aio.NetworkManagementClient.check_dns_name_availability": "Microsoft.Network.CheckDnsNameAvailability.checkDnsNameAvailability" }, - "CrossLanguageVersion": "9d454ad7c005" + "CrossLanguageVersion": "fee7ff097045" } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py index 52a921408561..09509557fc05 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -21,6 +21,7 @@ from ._configuration import NetworkManagementClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( + AddressPrefixSetsOperations, AdminRuleCollectionsOperations, AdminRulesOperations, ApplicationGatewayPrivateEndpointConnectionsOperations, @@ -56,6 +57,7 @@ ExpressRouteCrossConnectionPeeringsOperations, ExpressRouteCrossConnectionsOperations, ExpressRouteGatewaysOperations, + ExpressRouteLagsOperations, ExpressRouteLinksOperations, ExpressRoutePortAuthorizationsOperations, ExpressRoutePortsLocationsOperations, @@ -68,8 +70,10 @@ FirewallPolicyIdpsSignaturesFilterValuesOperations, FirewallPolicyIdpsSignaturesOperations, FirewallPolicyIdpsSignaturesOverridesOperations, + FirewallPolicyKubeSelectorGroupsOperations, FirewallPolicyRuleCollectionGroupDraftsOperations, FirewallPolicyRuleCollectionGroupsOperations, + FirstPartyServiceTagsOperations, FlowLogsOperations, HubRouteTablesOperations, HubVirtualNetworkConnectionsOperations, @@ -198,7 +202,7 @@ class NetworkManagementClient( _NetworkManagementClientOperationsMixin -): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only """NetworkManagementClient. :ivar operations: Operations operations @@ -251,12 +255,18 @@ class NetworkManagementClient( :ivar express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations operations :vartype express_route_port_authorizations: azure.mgmt.network.operations.ExpressRoutePortAuthorizationsOperations + :ivar express_route_lags: ExpressRouteLagsOperations operations + :vartype express_route_lags: azure.mgmt.network.operations.ExpressRouteLagsOperations :ivar firewall_policies: FirewallPoliciesOperations operations :vartype firewall_policies: azure.mgmt.network.operations.FirewallPoliciesOperations :ivar firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations operations :vartype firewall_policy_rule_collection_groups: azure.mgmt.network.operations.FirewallPolicyRuleCollectionGroupsOperations + :ivar firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations + operations + :vartype firewall_policy_kube_selector_groups: + azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations :ivar firewall_policy_idps_signatures_overrides: FirewallPolicyIdpsSignaturesOverridesOperations operations :vartype firewall_policy_idps_signatures_overrides: @@ -445,6 +455,11 @@ class NetworkManagementClient( :vartype interconnect_groups: azure.mgmt.network.operations.InterconnectGroupsOperations :ivar subgroups: SubgroupsOperations operations :vartype subgroups: azure.mgmt.network.operations.SubgroupsOperations + :ivar first_party_service_tags: FirstPartyServiceTagsOperations operations + :vartype first_party_service_tags: + azure.mgmt.network.operations.FirstPartyServiceTagsOperations + :ivar address_prefix_sets: AddressPrefixSetsOperations operations + :vartype address_prefix_sets: azure.mgmt.network.operations.AddressPrefixSetsOperations :ivar application_gateway_private_link_resources: ApplicationGatewayPrivateLinkResourcesOperations operations :vartype application_gateway_private_link_resources: @@ -745,12 +760,18 @@ def __init__( self.express_route_port_authorizations = ExpressRoutePortAuthorizationsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.express_route_lags = ExpressRouteLagsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.firewall_policies = FirewallPoliciesOperations( self._client, self._config, self._serialize, self._deserialize ) self.firewall_policy_rule_collection_groups = FirewallPolicyRuleCollectionGroupsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.firewall_policy_kube_selector_groups = FirewallPolicyKubeSelectorGroupsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.firewall_policy_idps_signatures_overrides = FirewallPolicyIdpsSignaturesOverridesOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -927,6 +948,12 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.subgroups = SubgroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.first_party_service_tags = FirstPartyServiceTagsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.address_prefix_sets = AddressPrefixSetsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.application_gateway_private_link_resources = ApplicationGatewayPrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_patch.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_patch.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/model_base.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/model_base.py index a79d3782e99c..88aaf1823543 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/model_base.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/serialization.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/serialization.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py index 0f01e008ec5a..5ff08e33d6d1 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "31.0.1" +VERSION = "32.0.0b1" diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_client.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_client.py index 6f19d91a6af1..c0500cea054e 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_client.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_client.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -21,6 +21,7 @@ from .._utils.serialization import Deserializer, Serializer from ._configuration import NetworkManagementClientConfiguration from .operations import ( + AddressPrefixSetsOperations, AdminRuleCollectionsOperations, AdminRulesOperations, ApplicationGatewayPrivateEndpointConnectionsOperations, @@ -56,6 +57,7 @@ ExpressRouteCrossConnectionPeeringsOperations, ExpressRouteCrossConnectionsOperations, ExpressRouteGatewaysOperations, + ExpressRouteLagsOperations, ExpressRouteLinksOperations, ExpressRoutePortAuthorizationsOperations, ExpressRoutePortsLocationsOperations, @@ -68,8 +70,10 @@ FirewallPolicyIdpsSignaturesFilterValuesOperations, FirewallPolicyIdpsSignaturesOperations, FirewallPolicyIdpsSignaturesOverridesOperations, + FirewallPolicyKubeSelectorGroupsOperations, FirewallPolicyRuleCollectionGroupDraftsOperations, FirewallPolicyRuleCollectionGroupsOperations, + FirstPartyServiceTagsOperations, FlowLogsOperations, HubRouteTablesOperations, HubVirtualNetworkConnectionsOperations, @@ -198,7 +202,7 @@ class NetworkManagementClient( _NetworkManagementClientOperationsMixin -): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes +): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only """NetworkManagementClient. :ivar operations: Operations operations @@ -252,12 +256,18 @@ class NetworkManagementClient( :ivar express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations operations :vartype express_route_port_authorizations: azure.mgmt.network.aio.operations.ExpressRoutePortAuthorizationsOperations + :ivar express_route_lags: ExpressRouteLagsOperations operations + :vartype express_route_lags: azure.mgmt.network.aio.operations.ExpressRouteLagsOperations :ivar firewall_policies: FirewallPoliciesOperations operations :vartype firewall_policies: azure.mgmt.network.aio.operations.FirewallPoliciesOperations :ivar firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations operations :vartype firewall_policy_rule_collection_groups: azure.mgmt.network.aio.operations.FirewallPolicyRuleCollectionGroupsOperations + :ivar firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations + operations + :vartype firewall_policy_kube_selector_groups: + azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations :ivar firewall_policy_idps_signatures_overrides: FirewallPolicyIdpsSignaturesOverridesOperations operations :vartype firewall_policy_idps_signatures_overrides: @@ -454,6 +464,11 @@ class NetworkManagementClient( :vartype interconnect_groups: azure.mgmt.network.aio.operations.InterconnectGroupsOperations :ivar subgroups: SubgroupsOperations operations :vartype subgroups: azure.mgmt.network.aio.operations.SubgroupsOperations + :ivar first_party_service_tags: FirstPartyServiceTagsOperations operations + :vartype first_party_service_tags: + azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations + :ivar address_prefix_sets: AddressPrefixSetsOperations operations + :vartype address_prefix_sets: azure.mgmt.network.aio.operations.AddressPrefixSetsOperations :ivar application_gateway_private_link_resources: ApplicationGatewayPrivateLinkResourcesOperations operations :vartype application_gateway_private_link_resources: @@ -763,12 +778,18 @@ def __init__( self.express_route_port_authorizations = ExpressRoutePortAuthorizationsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.express_route_lags = ExpressRouteLagsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.firewall_policies = FirewallPoliciesOperations( self._client, self._config, self._serialize, self._deserialize ) self.firewall_policy_rule_collection_groups = FirewallPolicyRuleCollectionGroupsOperations( self._client, self._config, self._serialize, self._deserialize ) + self.firewall_policy_kube_selector_groups = FirewallPolicyKubeSelectorGroupsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.firewall_policy_idps_signatures_overrides = FirewallPolicyIdpsSignaturesOverridesOperations( self._client, self._config, self._serialize, self._deserialize ) @@ -945,6 +966,12 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) self.subgroups = SubgroupsOperations(self._client, self._config, self._serialize, self._deserialize) + self.first_party_service_tags = FirstPartyServiceTagsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.address_prefix_sets = AddressPrefixSetsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.application_gateway_private_link_resources = ApplicationGatewayPrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize ) diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_patch.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_patch.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/__init__.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/__init__.py index 966bdd725968..bbbf784e545b 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/__init__.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/__init__.py @@ -31,8 +31,10 @@ from ._operations import ExpressRoutePortsLocationsOperations # type: ignore from ._operations import ExpressRoutePortsOperations # type: ignore from ._operations import ExpressRoutePortAuthorizationsOperations # type: ignore +from ._operations import ExpressRouteLagsOperations # type: ignore from ._operations import FirewallPoliciesOperations # type: ignore from ._operations import FirewallPolicyRuleCollectionGroupsOperations # type: ignore +from ._operations import FirewallPolicyKubeSelectorGroupsOperations # type: ignore from ._operations import FirewallPolicyIdpsSignaturesOverridesOperations # type: ignore from ._operations import FirewallPolicyDraftsOperations # type: ignore from ._operations import FirewallPolicyRuleCollectionGroupDraftsOperations # type: ignore @@ -109,6 +111,8 @@ from ._operations import ServiceGatewaysOperations # type: ignore from ._operations import InterconnectGroupsOperations # type: ignore from ._operations import SubgroupsOperations # type: ignore +from ._operations import FirstPartyServiceTagsOperations # type: ignore +from ._operations import AddressPrefixSetsOperations # type: ignore from ._operations import ApplicationGatewayPrivateLinkResourcesOperations # type: ignore from ._operations import ApplicationGatewayWafDynamicManifestsDefaultOperations # type: ignore from ._operations import ApplicationGatewayWafDynamicManifestsOperations # type: ignore @@ -200,8 +204,10 @@ "ExpressRoutePortsLocationsOperations", "ExpressRoutePortsOperations", "ExpressRoutePortAuthorizationsOperations", + "ExpressRouteLagsOperations", "FirewallPoliciesOperations", "FirewallPolicyRuleCollectionGroupsOperations", + "FirewallPolicyKubeSelectorGroupsOperations", "FirewallPolicyIdpsSignaturesOverridesOperations", "FirewallPolicyDraftsOperations", "FirewallPolicyRuleCollectionGroupDraftsOperations", @@ -278,6 +284,8 @@ "ServiceGatewaysOperations", "InterconnectGroupsOperations", "SubgroupsOperations", + "FirstPartyServiceTagsOperations", + "AddressPrefixSetsOperations", "ApplicationGatewayPrivateLinkResourcesOperations", "ApplicationGatewayWafDynamicManifestsDefaultOperations", "ApplicationGatewayWafDynamicManifestsOperations", diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_operations.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_operations.py index 9d132f0bd12e..38f4ef63a210 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_operations.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_operations.py @@ -33,12 +33,16 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models as _models +from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer from ..._utils.utils import ClientMixinABC from ..._validation import api_version_validation from ...operations._operations import ( + build_address_prefix_sets_create_or_update_request, + build_address_prefix_sets_delete_request, + build_address_prefix_sets_get_request, + build_address_prefix_sets_list_request, build_admin_rule_collections_create_or_update_request, build_admin_rule_collections_delete_request, build_admin_rule_collections_get_request, @@ -203,6 +207,17 @@ build_express_route_gateways_start_site_failover_test_request, build_express_route_gateways_stop_site_failover_test_request, build_express_route_gateways_update_tags_request, + build_express_route_lags_create_or_update_request, + build_express_route_lags_delete_request, + build_express_route_lags_generate_loa_request, + build_express_route_lags_get_request, + build_express_route_lags_links_get_request, + build_express_route_lags_links_list_request, + build_express_route_lags_list_by_resource_group_request, + build_express_route_lags_list_request, + build_express_route_lags_members_get_request, + build_express_route_lags_members_list_request, + build_express_route_lags_update_request, build_express_route_links_get_request, build_express_route_links_list_request, build_express_route_port_authorizations_create_or_update_request, @@ -236,6 +251,10 @@ build_firewall_policy_idps_signatures_overrides_list_request, build_firewall_policy_idps_signatures_overrides_patch_request, build_firewall_policy_idps_signatures_overrides_put_request, + build_firewall_policy_kube_selector_groups_create_or_update_request, + build_firewall_policy_kube_selector_groups_delete_request, + build_firewall_policy_kube_selector_groups_get_request, + build_firewall_policy_kube_selector_groups_list_request, build_firewall_policy_rule_collection_group_drafts_create_or_update_request, build_firewall_policy_rule_collection_group_drafts_delete_request, build_firewall_policy_rule_collection_group_drafts_get_request, @@ -243,6 +262,12 @@ build_firewall_policy_rule_collection_groups_delete_request, build_firewall_policy_rule_collection_groups_get_request, build_firewall_policy_rule_collection_groups_list_request, + build_first_party_service_tags_create_or_update_request, + build_first_party_service_tags_delete_request, + build_first_party_service_tags_get_request, + build_first_party_service_tags_list_all_request, + build_first_party_service_tags_list_request, + build_first_party_service_tags_update_tags_request, build_flow_logs_create_or_update_request, build_flow_logs_delete_request, build_flow_logs_get_request, @@ -433,16 +458,26 @@ build_network_virtual_appliance_connections_delete_request, build_network_virtual_appliance_connections_get_request, build_network_virtual_appliance_connections_list_request, + build_network_virtual_appliances_abort_migration_request, + build_network_virtual_appliances_commit_migration_request, build_network_virtual_appliances_create_or_update_request, build_network_virtual_appliances_delete_request, + build_network_virtual_appliances_execute_migration_request, build_network_virtual_appliances_get_boot_diagnostic_logs_request, build_network_virtual_appliances_get_request, build_network_virtual_appliances_list_by_resource_group_request, build_network_virtual_appliances_list_request, + build_network_virtual_appliances_prepare_migration_request, build_network_virtual_appliances_reimage_request, build_network_virtual_appliances_restart_request, build_network_virtual_appliances_update_tags_request, build_network_watchers_check_connectivity_request, + build_network_watchers_connection_analyzers_create_request, + build_network_watchers_connection_analyzers_delete_request, + build_network_watchers_connection_analyzers_get_request, + build_network_watchers_connection_analyzers_list_request, + build_network_watchers_connection_analyzers_query_request, + build_network_watchers_connection_analyzers_update_tags_request, build_network_watchers_create_or_update_request, build_network_watchers_delete_request, build_network_watchers_get_azure_reachability_report_request, @@ -708,6 +743,7 @@ build_virtual_network_gateways_generatevpnclientpackage_request, build_virtual_network_gateways_get_advertised_routes_request, build_virtual_network_gateways_get_bgp_peer_status_request, + build_virtual_network_gateways_get_effective_routes_request, build_virtual_network_gateways_get_failover_all_test_details_request, build_virtual_network_gateways_get_failover_single_test_details_request, build_virtual_network_gateways_get_learned_routes_request, @@ -752,6 +788,7 @@ build_virtual_networks_list_ddos_protection_status_request, build_virtual_networks_list_request, build_virtual_networks_list_usage_request, + build_virtual_networks_move_ip_configurations_request, build_virtual_networks_update_tags_request, build_virtual_router_peerings_create_or_update_request, build_virtual_router_peerings_delete_request, @@ -820,11 +857,10 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -852,7 +888,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -921,7 +957,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ApplicationGatewaysOperations: # pylint: disable=too-many-public-methods +class ApplicationGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -964,7 +1000,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) _request = build_application_gateways_get_request( @@ -1015,7 +1051,7 @@ async def _create_or_update_initial( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.ApplicationGateway, JSON, IO[bytes]], + parameters: Union[_models.ApplicationGateway, _types.ApplicationGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1029,7 +1065,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1123,7 +1159,7 @@ async def begin_create_or_update( self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: _types.ApplicationGateway, *, content_type: str = "application/json", **kwargs: Any @@ -1137,7 +1173,7 @@ async def begin_create_or_update( :type application_gateway_name: str :param parameters: Parameters supplied to the create or update application gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1181,7 +1217,7 @@ async def begin_create_or_update( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.ApplicationGateway, JSON, IO[bytes]], + parameters: Union[_models.ApplicationGateway, _types.ApplicationGateway, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationGateway]: """Creates or updates the specified application gateway. @@ -1192,8 +1228,9 @@ async def begin_create_or_update( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param parameters: Parameters supplied to the create or update application gateway operation. - Is one of the following types: ApplicationGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ApplicationGateway or JSON or IO[bytes] + Is either a ApplicationGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ApplicationGateway or + ~azure.mgmt.network.types.ApplicationGateway or IO[bytes] :return: An instance of AsyncLROPoller that returns ApplicationGateway. The ApplicationGateway is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ApplicationGateway] @@ -1202,7 +1239,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1285,7 +1322,7 @@ async def update_tags( self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -1298,7 +1335,7 @@ async def update_tags( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param parameters: Parameters supplied to update application gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1339,7 +1376,7 @@ async def update_tags( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ApplicationGateway: """Updates the specified application gateway tags. @@ -1349,9 +1386,10 @@ async def update_tags( :type resource_group_name: str :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str - :param parameters: Parameters supplied to update application gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update application gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ApplicationGateway. The ApplicationGateway is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ApplicationGateway :raises ~azure.core.exceptions.HttpResponseError: @@ -1367,7 +1405,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) @@ -1438,7 +1476,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_delete_request( @@ -1504,7 +1542,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1561,7 +1599,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1642,7 +1680,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.ApplicationGateway" _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1725,7 +1763,7 @@ async def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_start_request( @@ -1791,7 +1829,7 @@ async def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1848,7 +1886,7 @@ async def _stop_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_stop_request( @@ -1914,7 +1952,7 @@ async def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1971,7 +2009,7 @@ async def _backend_health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_backend_health_request( @@ -2043,7 +2081,7 @@ async def begin_backend_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayBackendHealth] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2096,7 +2134,9 @@ async def _backend_health_on_demand_initial( self, resource_group_name: str, application_gateway_name: str, - probe_request: Union[_models.ApplicationGatewayOnDemandProbe, JSON, IO[bytes]], + probe_request: Union[ + _models.ApplicationGatewayOnDemandProbe, _types.ApplicationGatewayOnDemandProbe, IO[bytes] + ], *, expand: Optional[str] = None, **kwargs: Any @@ -2112,7 +2152,7 @@ async def _backend_health_on_demand_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2210,7 +2250,7 @@ async def begin_backend_health_on_demand( self, resource_group_name: str, application_gateway_name: str, - probe_request: JSON, + probe_request: _types.ApplicationGatewayOnDemandProbe, *, expand: Optional[str] = None, content_type: str = "application/json", @@ -2225,7 +2265,7 @@ async def begin_backend_health_on_demand( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param probe_request: Request body for on-demand test probe operation. Required. - :type probe_request: JSON + :type probe_request: ~azure.mgmt.network.types.ApplicationGatewayOnDemandProbe :keyword expand: Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Default value is None. :paramtype expand: str @@ -2278,7 +2318,9 @@ async def begin_backend_health_on_demand( self, resource_group_name: str, application_gateway_name: str, - probe_request: Union[_models.ApplicationGatewayOnDemandProbe, JSON, IO[bytes]], + probe_request: Union[ + _models.ApplicationGatewayOnDemandProbe, _types.ApplicationGatewayOnDemandProbe, IO[bytes] + ], *, expand: Optional[str] = None, **kwargs: Any @@ -2291,10 +2333,10 @@ async def begin_backend_health_on_demand( :type resource_group_name: str :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str - :param probe_request: Request body for on-demand test probe operation. Is one of the following - types: ApplicationGatewayOnDemandProbe, JSON, IO[bytes] Required. - :type probe_request: ~azure.mgmt.network.models.ApplicationGatewayOnDemandProbe or JSON or - IO[bytes] + :param probe_request: Request body for on-demand test probe operation. Is either a + ApplicationGatewayOnDemandProbe type or a IO[bytes] type. Required. + :type probe_request: ~azure.mgmt.network.models.ApplicationGatewayOnDemandProbe or + ~azure.mgmt.network.types.ApplicationGatewayOnDemandProbe or IO[bytes] :keyword expand: Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Default value is None. :paramtype expand: str @@ -2307,7 +2349,7 @@ async def begin_backend_health_on_demand( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGatewayBackendHealthOnDemand] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2379,7 +2421,7 @@ async def list_available_ssl_options(self, **kwargs: Any) -> _models.Application _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayAvailableSslOptions] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_ssl_options_request( @@ -2438,7 +2480,7 @@ def list_available_ssl_predefined_policies( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewaySslPredefinedPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -2531,7 +2573,7 @@ async def get_ssl_predefined_policy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewaySslPredefinedPolicy] = kwargs.pop("cls", None) _request = build_application_gateways_get_ssl_predefined_policy_request( @@ -2596,7 +2638,7 @@ async def list_available_server_variables(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_server_variables_request( @@ -2660,7 +2702,7 @@ async def list_available_request_headers(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_request_headers_request( @@ -2724,7 +2766,7 @@ async def list_available_response_headers(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_response_headers_request( @@ -2789,7 +2831,7 @@ async def list_available_waf_rule_sets(self, **kwargs: Any) -> _models.Applicati _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayAvailableWafRuleSetsResult] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_waf_rule_sets_request( @@ -2835,7 +2877,7 @@ async def list_available_waf_rule_sets(self, **kwargs: Any) -> _models.Applicati return deserialized # type: ignore -class ApplicationGatewayPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long +class ApplicationGatewayPrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -2882,7 +2924,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayPrivateEndpointConnection] = kwargs.pop("cls", None) _request = build_application_gateway_private_endpoint_connections_get_request( @@ -2935,7 +2977,11 @@ async def _update_initial( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: Union[_models.ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes]], + parameters: Union[ + _models.ApplicationGatewayPrivateEndpointConnection, + _types.ApplicationGatewayPrivateEndpointConnection, + IO[bytes], + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -2949,7 +2995,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3051,7 +3097,7 @@ async def begin_update( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: JSON, + parameters: _types.ApplicationGatewayPrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -3068,7 +3114,7 @@ async def begin_update( :type connection_name: str :param parameters: Parameters supplied to update application gateway private endpoint connection operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3121,7 +3167,11 @@ async def begin_update( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: Union[_models.ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes]], + parameters: Union[ + _models.ApplicationGatewayPrivateEndpointConnection, + _types.ApplicationGatewayPrivateEndpointConnection, + IO[bytes], + ], **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationGatewayPrivateEndpointConnection]: """Updates the specified private endpoint connection on application gateway. @@ -3135,10 +3185,10 @@ async def begin_update( Required. :type connection_name: str :param parameters: Parameters supplied to update application gateway private endpoint - connection operation. Is one of the following types: - ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes] Required. + connection operation. Is either a ApplicationGatewayPrivateEndpointConnection type or a + IO[bytes] type. Required. :type parameters: ~azure.mgmt.network.models.ApplicationGatewayPrivateEndpointConnection or - JSON or IO[bytes] + ~azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns ApplicationGatewayPrivateEndpointConnection. The ApplicationGatewayPrivateEndpointConnection is compatible with MutableMapping @@ -3149,7 +3199,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGatewayPrivateEndpointConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3215,7 +3265,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateway_private_endpoint_connections_delete_request( @@ -3285,7 +3335,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -3348,7 +3398,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayPrivateEndpointConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -3420,7 +3470,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ApplicationSecurityGroupsOperations: +class ApplicationSecurityGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3464,7 +3514,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) _request = build_application_security_groups_get_request( @@ -3515,7 +3565,7 @@ async def _create_or_update_initial( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.ApplicationSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.ApplicationSecurityGroup, _types.ApplicationSecurityGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -3529,7 +3579,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3623,7 +3673,7 @@ async def begin_create_or_update( self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: _types.ApplicationSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -3637,7 +3687,7 @@ async def begin_create_or_update( :type application_security_group_name: str :param parameters: Parameters supplied to the create or update ApplicationSecurityGroup operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationSecurityGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3681,7 +3731,7 @@ async def begin_create_or_update( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.ApplicationSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.ApplicationSecurityGroup, _types.ApplicationSecurityGroup, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ApplicationSecurityGroup]: """Creates or updates an application security group. @@ -3692,8 +3742,9 @@ async def begin_create_or_update( :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str :param parameters: Parameters supplied to the create or update ApplicationSecurityGroup - operation. Is one of the following types: ApplicationSecurityGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ApplicationSecurityGroup or JSON or IO[bytes] + operation. Is either a ApplicationSecurityGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ApplicationSecurityGroup or + ~azure.mgmt.network.types.ApplicationSecurityGroup or IO[bytes] :return: An instance of AsyncLROPoller that returns ApplicationSecurityGroup. The ApplicationSecurityGroup is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ApplicationSecurityGroup] @@ -3702,7 +3753,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3786,7 +3837,7 @@ async def update_tags( self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -3799,7 +3850,7 @@ async def update_tags( :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str :param parameters: Parameters supplied to update application security group tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3842,7 +3893,7 @@ async def update_tags( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ApplicationSecurityGroup: """Updates an application security group's tags. @@ -3852,9 +3903,10 @@ async def update_tags( :type resource_group_name: str :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str - :param parameters: Parameters supplied to update application security group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update application security group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ApplicationSecurityGroup. The ApplicationSecurityGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ApplicationSecurityGroup @@ -3871,7 +3923,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) @@ -3942,7 +3994,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_application_security_groups_delete_request( @@ -4008,7 +4060,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -4066,7 +4118,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -4148,7 +4200,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.ApplicationSecurity _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -4218,7 +4270,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AzureFirewallsOperations: +class AzureFirewallsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4259,7 +4311,7 @@ async def get(self, resource_group_name: str, azure_firewall_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) _request = build_azure_firewalls_get_request( @@ -4308,13 +4360,13 @@ async def get(self, resource_group_name: str, azure_firewall_name: str, **kwargs @api_version_validation( params_added_on={"2025-07-01": ["create_afc_control_plane"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _create_or_update_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.AzureFirewall, JSON, IO[bytes]], + parameters: Union[_models.AzureFirewall, _types.AzureFirewall, IO[bytes]], *, create_afc_control_plane: Optional[bool] = None, **kwargs: Any @@ -4330,7 +4382,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4429,7 +4481,7 @@ async def begin_create_or_update( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.AzureFirewall, *, create_afc_control_plane: Optional[bool] = None, content_type: str = "application/json", @@ -4444,7 +4496,7 @@ async def begin_create_or_update( :type azure_firewall_name: str :param parameters: Parameters supplied to the create or update Azure Firewall operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.AzureFirewall :keyword create_afc_control_plane: When set to true, creates an AFC control plane for the Azure Firewall. Default value is None. :paramtype create_afc_control_plane: bool @@ -4493,13 +4545,13 @@ async def begin_create_or_update( @distributed_trace_async @api_version_validation( params_added_on={"2025-07-01": ["create_afc_control_plane"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_create_or_update( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.AzureFirewall, JSON, IO[bytes]], + parameters: Union[_models.AzureFirewall, _types.AzureFirewall, IO[bytes]], *, create_afc_control_plane: Optional[bool] = None, **kwargs: Any @@ -4511,9 +4563,10 @@ async def begin_create_or_update( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to the create or update Azure Firewall operation. Is one - of the following types: AzureFirewall, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AzureFirewall or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update Azure Firewall operation. Is + either a AzureFirewall type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AzureFirewall or + ~azure.mgmt.network.types.AzureFirewall or IO[bytes] :keyword create_afc_control_plane: When set to true, creates an AFC control plane for the Azure Firewall. Default value is None. :paramtype create_afc_control_plane: bool @@ -4525,7 +4578,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4581,7 +4634,7 @@ async def _update_tags_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -4595,7 +4648,7 @@ async def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4688,7 +4741,7 @@ async def begin_update_tags( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -4701,7 +4754,7 @@ async def begin_update_tags( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to update azure firewall tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4744,7 +4797,7 @@ async def begin_update_tags( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AzureFirewall]: """Updates tags of an Azure Firewall resource. @@ -4754,9 +4807,10 @@ async def begin_update_tags( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to update azure firewall tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update azure firewall tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of AsyncLROPoller that returns AzureFirewall. The AzureFirewall is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureFirewall] @@ -4765,7 +4819,7 @@ async def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4830,7 +4884,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_azure_firewalls_delete_request( @@ -4896,7 +4950,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -4953,7 +5007,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewall]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -5034,7 +5088,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.AzureFirewall"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewall]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -5117,7 +5171,7 @@ async def _list_learned_prefixes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_azure_firewalls_list_learned_prefixes_request( @@ -5184,7 +5238,7 @@ async def begin_list_learned_prefixes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IPPrefixesList] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -5236,7 +5290,7 @@ async def _packet_capture_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -5250,7 +5304,7 @@ async def _packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5339,7 +5393,7 @@ async def begin_packet_capture( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -5352,7 +5406,7 @@ async def begin_packet_capture( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to run packet capture on azure firewall. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPacketCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5393,7 +5447,7 @@ async def begin_packet_capture( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[None]: """Runs a packet capture on AzureFirewall. @@ -5403,10 +5457,10 @@ async def begin_packet_capture( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to run packet capture on azure firewall. Is one of the - following types: FirewallPacketCaptureParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or JSON or - IO[bytes] + :param parameters: Parameters supplied to run packet capture on azure firewall. Is either a + FirewallPacketCaptureParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or + ~azure.mgmt.network.types.FirewallPacketCaptureParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -5414,7 +5468,7 @@ async def begin_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5464,7 +5518,7 @@ async def _packet_capture_operation_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -5478,7 +5532,7 @@ async def _packet_capture_operation_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5570,7 +5624,7 @@ async def begin_packet_capture_operation( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -5583,7 +5637,7 @@ async def begin_packet_capture_operation( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to run packet capture on azure firewall. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPacketCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5628,7 +5682,7 @@ async def begin_packet_capture_operation( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.AzureFirewallPacketCaptureResponse]: """Runs a packet capture operation on AzureFirewall. @@ -5638,10 +5692,10 @@ async def begin_packet_capture_operation( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to run packet capture on azure firewall. Is one of the - following types: FirewallPacketCaptureParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or JSON or - IO[bytes] + :param parameters: Parameters supplied to run packet capture on azure firewall. Is either a + FirewallPacketCaptureParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or + ~azure.mgmt.network.types.FirewallPacketCaptureParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns AzureFirewallPacketCaptureResponse. The AzureFirewallPacketCaptureResponse is compatible with MutableMapping :rtype: @@ -5651,7 +5705,7 @@ async def begin_packet_capture_operation( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewallPacketCaptureResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5703,7 +5757,7 @@ def get_long_running_output(pipeline_response): ) -class BastionHostsOperations: +class BastionHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5744,7 +5798,7 @@ async def get(self, resource_group_name: str, bastion_host_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) _request = build_bastion_hosts_get_request( @@ -5795,7 +5849,7 @@ async def _create_or_update_initial( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.BastionHost, JSON, IO[bytes]], + parameters: Union[_models.BastionHost, _types.BastionHost, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -5809,7 +5863,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5903,7 +5957,7 @@ async def begin_create_or_update( self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: _types.BastionHost, *, content_type: str = "application/json", **kwargs: Any @@ -5917,7 +5971,7 @@ async def begin_create_or_update( :type bastion_host_name: str :param parameters: Parameters supplied to the create or update Bastion Host operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BastionHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -5961,7 +6015,7 @@ async def begin_create_or_update( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.BastionHost, JSON, IO[bytes]], + parameters: Union[_models.BastionHost, _types.BastionHost, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BastionHost]: """Creates or updates the specified Bastion Host. @@ -5971,9 +6025,10 @@ async def begin_create_or_update( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param parameters: Parameters supplied to the create or update Bastion Host operation. Is one - of the following types: BastionHost, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BastionHost or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update Bastion Host operation. Is + either a BastionHost type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.BastionHost or + ~azure.mgmt.network.types.BastionHost or IO[bytes] :return: An instance of AsyncLROPoller that returns BastionHost. The BastionHost is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BastionHost] @@ -5982,7 +6037,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -6037,7 +6092,7 @@ async def _update_tags_initial( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -6051,7 +6106,7 @@ async def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -6144,7 +6199,7 @@ async def begin_update_tags( self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -6157,7 +6212,7 @@ async def begin_update_tags( :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param parameters: Parameters supplied to update BastionHost tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6200,7 +6255,7 @@ async def begin_update_tags( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BastionHost]: """Updates Tags for BastionHost resource. @@ -6210,9 +6265,10 @@ async def begin_update_tags( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param parameters: Parameters supplied to update BastionHost tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update BastionHost tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of AsyncLROPoller that returns BastionHost. The BastionHost is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BastionHost] @@ -6221,7 +6277,7 @@ async def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -6286,7 +6342,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_bastion_hosts_delete_request( @@ -6352,7 +6408,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6409,7 +6465,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6490,7 +6546,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.BastionHost"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6560,7 +6616,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkInterfacesOperations: +class NetworkInterfacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6616,7 +6672,7 @@ async def get_cloud_service_network_interface( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) _request = build_network_interfaces_get_cloud_service_network_interface_request( @@ -6686,7 +6742,7 @@ def list_cloud_service_role_instance_network_interfaces( # pylint: disable=name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6968,7 +7024,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) _request = build_network_interfaces_get_request( @@ -7020,7 +7076,7 @@ async def _create_or_update_initial( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.NetworkInterface, JSON, IO[bytes]], + parameters: Union[_models.NetworkInterface, _types.NetworkInterface, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -7034,7 +7090,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -7128,7 +7184,7 @@ async def begin_create_or_update( self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: _types.NetworkInterface, *, content_type: str = "application/json", **kwargs: Any @@ -7142,7 +7198,7 @@ async def begin_create_or_update( :type network_interface_name: str :param parameters: Parameters supplied to the create or update network interface operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkInterface :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7186,7 +7242,7 @@ async def begin_create_or_update( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.NetworkInterface, JSON, IO[bytes]], + parameters: Union[_models.NetworkInterface, _types.NetworkInterface, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.NetworkInterface]: """Creates or updates a network interface. @@ -7197,8 +7253,9 @@ async def begin_create_or_update( :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str :param parameters: Parameters supplied to the create or update network interface operation. Is - one of the following types: NetworkInterface, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkInterface or JSON or IO[bytes] + either a NetworkInterface type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkInterface or + ~azure.mgmt.network.types.NetworkInterface or IO[bytes] :return: An instance of AsyncLROPoller that returns NetworkInterface. The NetworkInterface is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterface] @@ -7207,7 +7264,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -7290,7 +7347,7 @@ async def update_tags( self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -7303,7 +7360,7 @@ async def update_tags( :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str :param parameters: Parameters supplied to update network interface tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -7344,7 +7401,7 @@ async def update_tags( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkInterface: """Updates a network interface tags. @@ -7354,9 +7411,10 @@ async def update_tags( :type resource_group_name: str :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str - :param parameters: Parameters supplied to update network interface tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update network interface tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkInterface. The NetworkInterface is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkInterface :raises ~azure.core.exceptions.HttpResponseError: @@ -7372,7 +7430,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) @@ -7443,7 +7501,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_delete_request( @@ -7509,7 +7567,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7566,7 +7624,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7647,7 +7705,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkInterface"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7730,7 +7788,7 @@ async def _get_effective_route_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_get_effective_route_table_request( @@ -7797,7 +7855,7 @@ async def begin_get_effective_route_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.EffectiveRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7859,7 +7917,7 @@ async def _list_effective_network_security_groups_initial( # pylint: disable=na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_list_effective_network_security_groups_request( @@ -7927,7 +7985,7 @@ async def begin_list_effective_network_security_groups( # pylint: disable=name- _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.EffectiveNetworkSecurityGroupListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -8193,7 +8251,7 @@ def list_cloud_service_network_interfaces( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -8354,7 +8412,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PublicIPAddressesOperations: +class PublicIPAddressesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8416,7 +8474,7 @@ async def get_cloud_service_public_ip_address( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) _request = build_public_ip_addresses_get_cloud_service_public_ip_address_request( @@ -8499,7 +8557,7 @@ def list_cloud_service_role_instance_public_ip_addresses( # pylint: disable=nam _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -8803,7 +8861,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) _request = build_public_ip_addresses_get_request( @@ -8855,7 +8913,7 @@ async def _create_or_update_initial( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.PublicIPAddress, JSON, IO[bytes]], + parameters: Union[_models.PublicIPAddress, _types.PublicIPAddress, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -8869,7 +8927,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8963,7 +9021,7 @@ async def begin_create_or_update( self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.PublicIPAddress, *, content_type: str = "application/json", **kwargs: Any @@ -8977,7 +9035,7 @@ async def begin_create_or_update( :type public_ip_address_name: str :param parameters: Parameters supplied to the create or update public IP address operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PublicIPAddress :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9021,7 +9079,7 @@ async def begin_create_or_update( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.PublicIPAddress, JSON, IO[bytes]], + parameters: Union[_models.PublicIPAddress, _types.PublicIPAddress, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.PublicIPAddress]: """Creates or updates a static or dynamic public IP address. @@ -9032,8 +9090,9 @@ async def begin_create_or_update( :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameters supplied to the create or update public IP address operation. Is - one of the following types: PublicIPAddress, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PublicIPAddress or JSON or IO[bytes] + either a PublicIPAddress type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PublicIPAddress or + ~azure.mgmt.network.types.PublicIPAddress or IO[bytes] :return: An instance of AsyncLROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -9042,7 +9101,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9125,7 +9184,7 @@ async def update_tags( self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -9138,7 +9197,7 @@ async def update_tags( :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameters supplied to update public IP address tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9179,7 +9238,7 @@ async def update_tags( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.PublicIPAddress: """Updates public IP address tags. @@ -9189,9 +9248,10 @@ async def update_tags( :type resource_group_name: str :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str - :param parameters: Parameters supplied to update public IP address tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update public IP address tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.PublicIPAddress :raises ~azure.core.exceptions.HttpResponseError: @@ -9207,7 +9267,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) @@ -9278,7 +9338,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_public_ip_addresses_delete_request( @@ -9344,7 +9404,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9401,7 +9461,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -9482,7 +9542,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.PublicIPAddress"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -9565,7 +9625,7 @@ async def _ddos_protection_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_public_ip_addresses_ddos_protection_status_request( @@ -9633,7 +9693,7 @@ async def begin_ddos_protection_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIpDdosProtectionStatusResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9685,7 +9745,11 @@ async def _reserve_cloud_service_public_ip_address_initial( # pylint: disable=n self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ReserveCloudServicePublicIpAddressRequest, + _types.ReserveCloudServicePublicIpAddressRequest, + IO[bytes], + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -9699,7 +9763,7 @@ async def _reserve_cloud_service_public_ip_address_initial( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9795,7 +9859,7 @@ async def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.ReserveCloudServicePublicIpAddressRequest, *, content_type: str = "application/json", **kwargs: Any @@ -9810,7 +9874,7 @@ async def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place of given Public IP Address. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ReserveCloudServicePublicIpAddressRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9855,7 +9919,11 @@ async def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ReserveCloudServicePublicIpAddressRequest, + _types.ReserveCloudServicePublicIpAddressRequest, + IO[bytes], + ], **kwargs: Any ) -> AsyncLROPoller[_models.PublicIPAddress]: """Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If @@ -9867,10 +9935,10 @@ async def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place - of given Public IP Address. Is one of the following types: - ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ReserveCloudServicePublicIpAddressRequest or JSON - or IO[bytes] + of given Public IP Address. Is either a ReserveCloudServicePublicIpAddressRequest type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ReserveCloudServicePublicIpAddressRequest or + ~azure.mgmt.network.types.ReserveCloudServicePublicIpAddressRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -9879,7 +9947,7 @@ async def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9934,7 +10002,9 @@ async def _disassociate_cloud_service_reserved_public_ip_initial( # pylint: dis self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.DisassociateCloudServicePublicIpRequest, JSON, IO[bytes]], + parameters: Union[ + _models.DisassociateCloudServicePublicIpRequest, _types.DisassociateCloudServicePublicIpRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -9948,7 +10018,7 @@ async def _disassociate_cloud_service_reserved_public_ip_initial( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -10044,7 +10114,7 @@ async def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disabl self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.DisassociateCloudServicePublicIpRequest, *, content_type: str = "application/json", **kwargs: Any @@ -10059,7 +10129,7 @@ async def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disabl :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place of given Public IP Address. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DisassociateCloudServicePublicIpRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10104,7 +10174,9 @@ async def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disabl self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.DisassociateCloudServicePublicIpRequest, JSON, IO[bytes]], + parameters: Union[ + _models.DisassociateCloudServicePublicIpRequest, _types.DisassociateCloudServicePublicIpRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.PublicIPAddress]: """Disassociates the Cloud Service reserved Public IP and associates the specified Standalone @@ -10116,10 +10188,10 @@ async def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disabl :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place - of given Public IP Address. Is one of the following types: - DisassociateCloudServicePublicIpRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DisassociateCloudServicePublicIpRequest or JSON or - IO[bytes] + of given Public IP Address. Is either a DisassociateCloudServicePublicIpRequest type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DisassociateCloudServicePublicIpRequest or + ~azure.mgmt.network.types.DisassociateCloudServicePublicIpRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -10128,7 +10200,7 @@ async def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -10197,7 +10269,7 @@ def list_cloud_service_public_ip_addresses( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10358,7 +10430,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DdosCustomPoliciesOperations: +class DdosCustomPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10401,7 +10473,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) _request = build_ddos_custom_policies_get_request( @@ -10452,7 +10524,7 @@ async def _create_or_update_initial( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.DdosCustomPolicy, JSON, IO[bytes]], + parameters: Union[_models.DdosCustomPolicy, _types.DdosCustomPolicy, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -10466,7 +10538,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -10559,7 +10631,7 @@ async def begin_create_or_update( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: _types.DdosCustomPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -10572,7 +10644,7 @@ async def begin_create_or_update( :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str :param parameters: Parameters supplied to the create or update operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DdosCustomPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10615,7 +10687,7 @@ async def begin_create_or_update( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.DdosCustomPolicy, JSON, IO[bytes]], + parameters: Union[_models.DdosCustomPolicy, _types.DdosCustomPolicy, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.DdosCustomPolicy]: """Creates or updates a DDoS custom policy. @@ -10625,9 +10697,10 @@ async def begin_create_or_update( :type resource_group_name: str :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str - :param parameters: Parameters supplied to the create or update operation. Is one of the - following types: DdosCustomPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DdosCustomPolicy or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update operation. Is either a + DdosCustomPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DdosCustomPolicy or + ~azure.mgmt.network.types.DdosCustomPolicy or IO[bytes] :return: An instance of AsyncLROPoller that returns DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.DdosCustomPolicy] @@ -10636,7 +10709,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -10719,7 +10792,7 @@ async def update_tags( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -10732,7 +10805,7 @@ async def update_tags( :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str :param parameters: Parameters supplied to update DDoS custom policy resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10773,7 +10846,7 @@ async def update_tags( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.DdosCustomPolicy: """Update a DDoS custom policy tags. @@ -10783,9 +10856,10 @@ async def update_tags( :type resource_group_name: str :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str - :param parameters: Parameters supplied to update DDoS custom policy resource tags. Is one of - the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update DDoS custom policy resource tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.DdosCustomPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -10801,7 +10875,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) @@ -10872,7 +10946,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_ddos_custom_policies_delete_request( @@ -10938,7 +11012,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10985,7 +11059,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @api_version_validation( method_added_on="2025-07-01", params_added_on={"2025-07-01": ["api_version", "subscription_id", "resource_group_name", "accept"]}, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.DdosCustomPolicy"]: """Gets all the DDoS custom policies in a resource group. @@ -11000,7 +11074,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosCustomPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11074,7 +11148,7 @@ async def get_next(next_link=None): @api_version_validation( method_added_on="2025-07-01", params_added_on={"2025-07-01": ["api_version", "subscription_id", "accept"]}, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.DdosCustomPolicy"]: """Gets all the DDoS custom policies in a subscription. @@ -11086,7 +11160,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.DdosCustomPolicy"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosCustomPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11156,7 +11230,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DdosProtectionPlansOperations: +class DdosProtectionPlansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11199,7 +11273,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) _request = build_ddos_protection_plans_get_request( @@ -11250,7 +11324,7 @@ async def _create_or_update_initial( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.DdosProtectionPlan, JSON, IO[bytes]], + parameters: Union[_models.DdosProtectionPlan, _types.DdosProtectionPlan, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -11264,7 +11338,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11357,7 +11431,7 @@ async def begin_create_or_update( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: _types.DdosProtectionPlan, *, content_type: str = "application/json", **kwargs: Any @@ -11370,7 +11444,7 @@ async def begin_create_or_update( :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str :param parameters: Parameters supplied to the create or update operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DdosProtectionPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11413,7 +11487,7 @@ async def begin_create_or_update( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.DdosProtectionPlan, JSON, IO[bytes]], + parameters: Union[_models.DdosProtectionPlan, _types.DdosProtectionPlan, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.DdosProtectionPlan]: """Creates or updates a DDoS protection plan. @@ -11423,9 +11497,10 @@ async def begin_create_or_update( :type resource_group_name: str :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str - :param parameters: Parameters supplied to the create or update operation. Is one of the - following types: DdosProtectionPlan, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DdosProtectionPlan or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update operation. Is either a + DdosProtectionPlan type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DdosProtectionPlan or + ~azure.mgmt.network.types.DdosProtectionPlan or IO[bytes] :return: An instance of AsyncLROPoller that returns DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.DdosProtectionPlan] @@ -11434,7 +11509,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -11518,7 +11593,7 @@ async def update_tags( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -11532,7 +11607,7 @@ async def update_tags( :type ddos_protection_plan_name: str :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11574,7 +11649,7 @@ async def update_tags( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.DdosProtectionPlan: """Update a DDoS protection plan tags. @@ -11584,9 +11659,10 @@ async def update_tags( :type resource_group_name: str :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str - :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Is one - of the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Is + either a TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.DdosProtectionPlan :raises ~azure.core.exceptions.HttpResponseError: @@ -11602,7 +11678,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) @@ -11673,7 +11749,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_ddos_protection_plans_delete_request( @@ -11739,7 +11815,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11798,7 +11874,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosProtectionPlan]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11879,7 +11955,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.DdosProtectionPlan"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosProtectionPlan]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11949,7 +12025,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteCircuitAuthorizationsOperations: # pylint: disable=name-too-long +class ExpressRouteCircuitAuthorizationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -11995,7 +12071,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitAuthorization] = kwargs.pop("cls", None) _request = build_express_route_circuit_authorizations_get_request( @@ -12048,7 +12124,9 @@ async def _create_or_update_initial( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRouteCircuitAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRouteCircuitAuthorization, _types.ExpressRouteCircuitAuthorization, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -12062,7 +12140,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -12162,7 +12240,7 @@ async def begin_create_or_update( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: _types.ExpressRouteCircuitAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -12178,7 +12256,7 @@ async def begin_create_or_update( :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route circuit authorization operation. Required. - :type authorization_parameters: JSON + :type authorization_parameters: ~azure.mgmt.network.types.ExpressRouteCircuitAuthorization :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12228,7 +12306,9 @@ async def begin_create_or_update( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRouteCircuitAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRouteCircuitAuthorization, _types.ExpressRouteCircuitAuthorization, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCircuitAuthorization]: """Creates or updates an authorization in the specified express route circuit. @@ -12241,10 +12321,10 @@ async def begin_create_or_update( :param authorization_name: The name of the authorization. Required. :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route - circuit authorization operation. Is one of the following types: - ExpressRouteCircuitAuthorization, JSON, IO[bytes] Required. + circuit authorization operation. Is either a ExpressRouteCircuitAuthorization type or a + IO[bytes] type. Required. :type authorization_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitAuthorization or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRouteCircuitAuthorization or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCircuitAuthorization. The ExpressRouteCircuitAuthorization is compatible with MutableMapping :rtype: @@ -12254,7 +12334,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitAuthorization] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -12320,7 +12400,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_authorizations_delete_request( @@ -12389,7 +12469,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12452,7 +12532,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitAuthorization]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -12524,7 +12604,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteCircuitsOperations: # pylint: disable=too-many-public-methods +class ExpressRouteCircuitsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -12565,7 +12645,7 @@ async def get(self, resource_group_name: str, circuit_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_request( @@ -12616,7 +12696,7 @@ async def _create_or_update_initial( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.ExpressRouteCircuit, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCircuit, _types.ExpressRouteCircuit, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -12630,7 +12710,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -12724,7 +12804,7 @@ async def begin_create_or_update( self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: _types.ExpressRouteCircuit, *, content_type: str = "application/json", **kwargs: Any @@ -12738,7 +12818,7 @@ async def begin_create_or_update( :type circuit_name: str :param parameters: Parameters supplied to the create or update express route circuit operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRouteCircuit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12782,7 +12862,7 @@ async def begin_create_or_update( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.ExpressRouteCircuit, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCircuit, _types.ExpressRouteCircuit, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCircuit]: """Creates or updates an express route circuit. @@ -12793,8 +12873,9 @@ async def begin_create_or_update( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param parameters: Parameters supplied to the create or update express route circuit operation. - Is one of the following types: ExpressRouteCircuit, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRouteCircuit or JSON or IO[bytes] + Is either a ExpressRouteCircuit type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRouteCircuit or + ~azure.mgmt.network.types.ExpressRouteCircuit or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCircuit. The ExpressRouteCircuit is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteCircuit] @@ -12803,7 +12884,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -12886,7 +12967,7 @@ async def update_tags( self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -12899,7 +12980,7 @@ async def update_tags( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param parameters: Parameters supplied to update express route circuit tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12940,7 +13021,7 @@ async def update_tags( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRouteCircuit: """Updates an express route circuit tags. @@ -12950,9 +13031,10 @@ async def update_tags( :type resource_group_name: str :param circuit_name: The name of express route circuit. Required. :type circuit_name: str - :param parameters: Parameters supplied to update express route circuit tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update express route circuit tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ExpressRouteCircuit. The ExpressRouteCircuit is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRouteCircuit :raises ~azure.core.exceptions.HttpResponseError: @@ -12968,7 +13050,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) @@ -13037,7 +13119,7 @@ async def _delete_initial(self, resource_group_name: str, circuit_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_delete_request( @@ -13101,7 +13183,7 @@ async def begin_delete(self, resource_group_name: str, circuit_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13158,7 +13240,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuit]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13239,7 +13321,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.ExpressRouteCircuit _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuit]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13335,7 +13417,7 @@ async def get_stats( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitStats] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_stats_request( @@ -13395,7 +13477,7 @@ async def get_stats( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def _get_circuit_link_failover_all_tests_details_initial( # pylint: disable=name-too-long self, @@ -13417,7 +13499,7 @@ async def _get_circuit_link_failover_all_tests_details_initial( # pylint: disab _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_circuit_link_failover_all_tests_details_request( @@ -13481,7 +13563,7 @@ async def _get_circuit_link_failover_all_tests_details_initial( # pylint: disab "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def begin_get_circuit_link_failover_all_tests_details( # pylint: disable=name-too-long self, @@ -13512,7 +13594,7 @@ async def begin_get_circuit_link_failover_all_tests_details( # pylint: disable= _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLinkFailoverAllTestsDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13580,7 +13662,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def _get_circuit_link_failover_single_test_details_initial( # pylint: disable=name-too-long self, @@ -13603,7 +13685,7 @@ async def _get_circuit_link_failover_single_test_details_initial( # pylint: dis _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_circuit_link_failover_single_test_details_request( @@ -13669,7 +13751,7 @@ async def _get_circuit_link_failover_single_test_details_initial( # pylint: dis "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def begin_get_circuit_link_failover_single_test_details( # pylint: disable=name-too-long self, @@ -13704,7 +13786,7 @@ async def begin_get_circuit_link_failover_single_test_details( # pylint: disabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLinkFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13772,7 +13854,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def _start_circuit_link_failover_test_initial( # pylint: disable=name-too-long self, resource_group_name: str, circuit_name: str, *, link_type: str, circuit_test_category: str, **kwargs: Any @@ -13788,7 +13870,7 @@ async def _start_circuit_link_failover_test_initial( # pylint: disable=name-too _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_start_circuit_link_failover_test_request( @@ -13852,7 +13934,7 @@ async def _start_circuit_link_failover_test_initial( # pylint: disable=name-too "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def begin_start_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, *, link_type: str, circuit_test_category: str, **kwargs: Any @@ -13876,7 +13958,7 @@ async def begin_start_circuit_link_failover_test( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13940,13 +14022,17 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def _stop_circuit_link_failover_test_initial( self, resource_group_name: str, circuit_name: str, - stop_parameters: Union[_models.ExpressRouteLinkFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteLinkFailoverStopApiParameters, + _types.ExpressRouteLinkFailoverStopApiParameters, + IO[bytes], + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -13960,7 +14046,7 @@ async def _stop_circuit_link_failover_test_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -14051,7 +14137,7 @@ async def begin_stop_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, - stop_parameters: JSON, + stop_parameters: _types.ExpressRouteLinkFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -14065,7 +14151,7 @@ async def begin_stop_circuit_link_failover_test( :type circuit_name: str :param stop_parameters: Parameters supplied to stop the link failover simulation on the express route circuit. Required. - :type stop_parameters: JSON + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteLinkFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -14115,13 +14201,17 @@ async def begin_stop_circuit_link_failover_test( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) async def begin_stop_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, - stop_parameters: Union[_models.ExpressRouteLinkFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteLinkFailoverStopApiParameters, + _types.ExpressRouteLinkFailoverStopApiParameters, + IO[bytes], + ], **kwargs: Any ) -> AsyncLROPoller[str]: """Stops link failover simulation on the express route circuit. @@ -14132,10 +14222,10 @@ async def begin_stop_circuit_link_failover_test( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param stop_parameters: Parameters supplied to stop the link failover simulation on the express - route circuit. Is one of the following types: ExpressRouteLinkFailoverStopApiParameters, JSON, - IO[bytes] Required. + route circuit. Is either a ExpressRouteLinkFailoverStopApiParameters type or a IO[bytes] type. + Required. :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteLinkFailoverStopApiParameters or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRouteLinkFailoverStopApiParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns str :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -14143,7 +14233,7 @@ async def begin_stop_circuit_link_failover_test( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -14210,7 +14300,7 @@ async def _list_arp_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_arp_table_request( @@ -14285,7 +14375,7 @@ async def begin_list_arp_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsArpTableListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -14349,7 +14439,7 @@ async def _list_routes_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_routes_table_request( @@ -14424,7 +14514,7 @@ async def begin_list_routes_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -14488,7 +14578,7 @@ async def _list_routes_table_summary_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_routes_table_summary_request( @@ -14564,7 +14654,7 @@ async def begin_list_routes_table_summary( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableSummaryListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -14643,7 +14733,7 @@ async def get_peering_stats( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitStats] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_peering_stats_request( @@ -14692,7 +14782,7 @@ async def get_peering_stats( return deserialized # type: ignore -class ExpressRouteCircuitPeeringsOperations: +class ExpressRouteCircuitPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -14738,7 +14828,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitPeering] = kwargs.pop("cls", None) _request = build_express_route_circuit_peerings_get_request( @@ -14791,7 +14881,7 @@ async def _create_or_update_initial( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCircuitPeering, JSON, IO[bytes]], + peering_parameters: Union[_models.ExpressRouteCircuitPeering, _types.ExpressRouteCircuitPeering, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -14805,7 +14895,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -14905,7 +14995,7 @@ async def begin_create_or_update( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: _types.ExpressRouteCircuitPeering, *, content_type: str = "application/json", **kwargs: Any @@ -14921,7 +15011,7 @@ async def begin_create_or_update( :type peering_name: str :param peering_parameters: Parameters supplied to the create or update express route circuit peering operation. Required. - :type peering_parameters: JSON + :type peering_parameters: ~azure.mgmt.network.types.ExpressRouteCircuitPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -14971,7 +15061,7 @@ async def begin_create_or_update( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCircuitPeering, JSON, IO[bytes]], + peering_parameters: Union[_models.ExpressRouteCircuitPeering, _types.ExpressRouteCircuitPeering, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCircuitPeering]: """Creates or updates a peering in the specified express route circuits. @@ -14984,10 +15074,9 @@ async def begin_create_or_update( :param peering_name: The name of the peering. Required. :type peering_name: str :param peering_parameters: Parameters supplied to the create or update express route circuit - peering operation. Is one of the following types: ExpressRouteCircuitPeering, JSON, IO[bytes] - Required. - :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitPeering or JSON or - IO[bytes] + peering operation. Is either a ExpressRouteCircuitPeering type or a IO[bytes] type. Required. + :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitPeering or + ~azure.mgmt.network.types.ExpressRouteCircuitPeering or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCircuitPeering. The ExpressRouteCircuitPeering is compatible with MutableMapping :rtype: @@ -14997,7 +15086,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitPeering] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -15063,7 +15152,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_peerings_delete_request( @@ -15132,7 +15221,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15195,7 +15284,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15267,7 +15356,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteCircuitConnectionsOperations: +class ExpressRouteCircuitConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -15315,7 +15404,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitConnection] = kwargs.pop("cls", None) _request = build_express_route_circuit_connections_get_request( @@ -15370,7 +15459,9 @@ async def _create_or_update_initial( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: Union[_models.ExpressRouteCircuitConnection, JSON, IO[bytes]], + express_route_circuit_connection_parameters: Union[ + _models.ExpressRouteCircuitConnection, _types.ExpressRouteCircuitConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -15384,7 +15475,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -15490,7 +15581,7 @@ async def begin_create_or_update( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: JSON, + express_route_circuit_connection_parameters: _types.ExpressRouteCircuitConnection, *, content_type: str = "application/json", **kwargs: Any @@ -15508,7 +15599,8 @@ async def begin_create_or_update( :type connection_name: str :param express_route_circuit_connection_parameters: Parameters supplied to the create or update express route circuit connection operation. Required. - :type express_route_circuit_connection_parameters: JSON + :type express_route_circuit_connection_parameters: + ~azure.mgmt.network.types.ExpressRouteCircuitConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -15562,7 +15654,9 @@ async def begin_create_or_update( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: Union[_models.ExpressRouteCircuitConnection, JSON, IO[bytes]], + express_route_circuit_connection_parameters: Union[ + _models.ExpressRouteCircuitConnection, _types.ExpressRouteCircuitConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCircuitConnection]: """Creates or updates a Express Route Circuit Connection in the specified express route circuits. @@ -15577,10 +15671,11 @@ async def begin_create_or_update( :param connection_name: The name of the express route circuit connection. Required. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters supplied to the create or update - express route circuit connection operation. Is one of the following types: - ExpressRouteCircuitConnection, JSON, IO[bytes] Required. + express route circuit connection operation. Is either a ExpressRouteCircuitConnection type or a + IO[bytes] type. Required. :type express_route_circuit_connection_parameters: - ~azure.mgmt.network.models.ExpressRouteCircuitConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.ExpressRouteCircuitConnection or + ~azure.mgmt.network.types.ExpressRouteCircuitConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCircuitConnection. The ExpressRouteCircuitConnection is compatible with MutableMapping :rtype: @@ -15590,7 +15685,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -15657,7 +15752,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_connections_delete_request( @@ -15730,7 +15825,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15797,7 +15892,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15870,7 +15965,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PeerExpressRouteCircuitConnectionsOperations: # pylint: disable=name-too-long +class PeerExpressRouteCircuitConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -15920,7 +16015,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PeerExpressRouteCircuitConnection] = kwargs.pop("cls", None) _request = build_peer_express_route_circuit_connections_get_request( @@ -15991,7 +16086,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PeerExpressRouteCircuitConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16064,7 +16159,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteCrossConnectionsOperations: +class ExpressRouteCrossConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -16109,7 +16204,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_get_request( @@ -16160,7 +16255,7 @@ async def _create_or_update_initial( self, resource_group_name: str, cross_connection_name: str, - parameters: Union[_models.ExpressRouteCrossConnection, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCrossConnection, _types.ExpressRouteCrossConnection, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -16174,7 +16269,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -16268,7 +16363,7 @@ async def begin_create_or_update( self, resource_group_name: str, cross_connection_name: str, - parameters: JSON, + parameters: _types.ExpressRouteCrossConnection, *, content_type: str = "application/json", **kwargs: Any @@ -16283,7 +16378,7 @@ async def begin_create_or_update( :type cross_connection_name: str :param parameters: Parameters supplied to the update express route crossConnection operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRouteCrossConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -16330,7 +16425,7 @@ async def begin_create_or_update( self, resource_group_name: str, cross_connection_name: str, - parameters: Union[_models.ExpressRouteCrossConnection, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCrossConnection, _types.ExpressRouteCrossConnection, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCrossConnection]: """Update the specified ExpressRouteCrossConnection. @@ -16342,8 +16437,9 @@ async def begin_create_or_update( circuit). Required. :type cross_connection_name: str :param parameters: Parameters supplied to the update express route crossConnection operation. - Is one of the following types: ExpressRouteCrossConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnection or JSON or IO[bytes] + Is either a ExpressRouteCrossConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnection or + ~azure.mgmt.network.types.ExpressRouteCrossConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCrossConnection. The ExpressRouteCrossConnection is compatible with MutableMapping :rtype: @@ -16353,7 +16449,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -16444,7 +16540,7 @@ async def update_tags( self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: JSON, + cross_connection_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -16459,7 +16555,7 @@ async def update_tags( :type cross_connection_name: str :param cross_connection_parameters: Parameters supplied to update express route cross connection tags. Required. - :type cross_connection_parameters: JSON + :type cross_connection_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -16504,7 +16600,7 @@ async def update_tags( self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + cross_connection_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRouteCrossConnection: """Updates an express route cross connection tags. @@ -16516,8 +16612,9 @@ async def update_tags( circuit). Required. :type cross_connection_name: str :param cross_connection_parameters: Parameters supplied to update express route cross - connection tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type cross_connection_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + connection tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type cross_connection_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: ExpressRouteCrossConnection. The ExpressRouteCrossConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRouteCrossConnection @@ -16534,7 +16631,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) @@ -16608,7 +16705,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16695,7 +16792,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16779,7 +16876,7 @@ async def _list_arp_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_arp_table_request( @@ -16855,7 +16952,7 @@ async def begin_list_arp_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsArpTableListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16919,7 +17016,7 @@ async def _list_routes_table_summary_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_routes_table_summary_request( @@ -16996,7 +17093,7 @@ async def begin_list_routes_table_summary( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnectionsRoutesTableSummaryListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17064,7 +17161,7 @@ async def _list_routes_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_routes_table_request( @@ -17140,7 +17237,7 @@ async def begin_list_routes_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17191,7 +17288,7 @@ def get_long_running_output(pipeline_response): ) -class ExpressRoutePortsLocationsOperations: +class ExpressRoutePortsLocationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17231,7 +17328,7 @@ async def get(self, location_name: str, **kwargs: Any) -> _models.ExpressRoutePo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePortsLocation] = kwargs.pop("cls", None) _request = build_express_route_ports_locations_get_request( @@ -17291,7 +17388,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ExpressRoutePortsLocati _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePortsLocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17361,7 +17458,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRoutePortsOperations: +class ExpressRoutePortsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -17404,7 +17501,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) _request = build_express_route_ports_get_request( @@ -17455,7 +17552,7 @@ async def _create_or_update_initial( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.ExpressRoutePort, JSON, IO[bytes]], + parameters: Union[_models.ExpressRoutePort, _types.ExpressRoutePort, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -17469,7 +17566,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -17562,7 +17659,7 @@ async def begin_create_or_update( self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: _types.ExpressRoutePort, *, content_type: str = "application/json", **kwargs: Any @@ -17575,7 +17672,7 @@ async def begin_create_or_update( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param parameters: Parameters supplied to the create ExpressRoutePort operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRoutePort :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17618,7 +17715,7 @@ async def begin_create_or_update( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.ExpressRoutePort, JSON, IO[bytes]], + parameters: Union[_models.ExpressRoutePort, _types.ExpressRoutePort, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRoutePort]: """Creates or updates the specified ExpressRoutePort resource. @@ -17628,9 +17725,10 @@ async def begin_create_or_update( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param parameters: Parameters supplied to the create ExpressRoutePort operation. Is one of the - following types: ExpressRoutePort, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRoutePort or JSON or IO[bytes] + :param parameters: Parameters supplied to the create ExpressRoutePort operation. Is either a + ExpressRoutePort type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRoutePort or + ~azure.mgmt.network.types.ExpressRoutePort or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRoutePort] @@ -17639,7 +17737,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -17722,7 +17820,7 @@ async def update_tags( self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -17735,7 +17833,7 @@ async def update_tags( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17776,7 +17874,7 @@ async def update_tags( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRoutePort: """Update ExpressRoutePort tags. @@ -17786,9 +17884,10 @@ async def update_tags( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRoutePort :raises ~azure.core.exceptions.HttpResponseError: @@ -17804,7 +17903,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) @@ -17875,7 +17974,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_ports_delete_request( @@ -17944,7 +18043,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18003,7 +18102,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePort]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18084,7 +18183,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ExpressRoutePort"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePort]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18186,7 +18285,7 @@ async def generate_loa( self, resource_group_name: str, express_route_port_name: str, - request: JSON, + request: _types.GenerateExpressRoutePortsLOARequest, *, content_type: str = "application/json", **kwargs: Any @@ -18199,7 +18298,7 @@ async def generate_loa( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param request: Request parameters supplied to generate a letter of authorization. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.GenerateExpressRoutePortsLOARequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -18242,7 +18341,9 @@ async def generate_loa( self, resource_group_name: str, express_route_port_name: str, - request: Union[_models.GenerateExpressRoutePortsLOARequest, JSON, IO[bytes]], + request: Union[ + _models.GenerateExpressRoutePortsLOARequest, _types.GenerateExpressRoutePortsLOARequest, IO[bytes] + ], **kwargs: Any ) -> _models.GenerateExpressRoutePortsLOAResult: """Generate a letter of authorization for the requested ExpressRoutePort resource. @@ -18252,10 +18353,10 @@ async def generate_loa( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param request: Request parameters supplied to generate a letter of authorization. Is one of - the following types: GenerateExpressRoutePortsLOARequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest or JSON or - IO[bytes] + :param request: Request parameters supplied to generate a letter of authorization. Is either a + GenerateExpressRoutePortsLOARequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest or + ~azure.mgmt.network.types.GenerateExpressRoutePortsLOARequest or IO[bytes] :return: GenerateExpressRoutePortsLOAResult. The GenerateExpressRoutePortsLOAResult is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOAResult @@ -18272,7 +18373,7 @@ async def generate_loa( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GenerateExpressRoutePortsLOAResult] = kwargs.pop("cls", None) @@ -18330,7 +18431,7 @@ async def generate_loa( return deserialized # type: ignore -class ExpressRoutePortAuthorizationsOperations: +class ExpressRoutePortAuthorizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -18376,7 +18477,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePortAuthorization] = kwargs.pop("cls", None) _request = build_express_route_port_authorizations_get_request( @@ -18429,7 +18530,9 @@ async def _create_or_update_initial( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRoutePortAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRoutePortAuthorization, _types.ExpressRoutePortAuthorization, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -18443,7 +18546,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -18543,7 +18646,7 @@ async def begin_create_or_update( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: _types.ExpressRoutePortAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -18559,7 +18662,7 @@ async def begin_create_or_update( :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route port authorization operation. Required. - :type authorization_parameters: JSON + :type authorization_parameters: ~azure.mgmt.network.types.ExpressRoutePortAuthorization :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -18609,7 +18712,9 @@ async def begin_create_or_update( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRoutePortAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRoutePortAuthorization, _types.ExpressRoutePortAuthorization, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRoutePortAuthorization]: """Creates or updates an authorization in the specified express route port. @@ -18622,10 +18727,10 @@ async def begin_create_or_update( :param authorization_name: The name of the authorization. Required. :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route port - authorization operation. Is one of the following types: ExpressRoutePortAuthorization, JSON, - IO[bytes] Required. + authorization operation. Is either a ExpressRoutePortAuthorization type or a IO[bytes] type. + Required. :type authorization_parameters: ~azure.mgmt.network.models.ExpressRoutePortAuthorization or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRoutePortAuthorization or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRoutePortAuthorization. The ExpressRoutePortAuthorization is compatible with MutableMapping :rtype: @@ -18635,7 +18740,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePortAuthorization] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -18701,7 +18806,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_port_authorizations_delete_request( @@ -18773,7 +18878,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18836,7 +18941,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePortAuthorization]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18908,14 +19013,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class FirewallPoliciesOperations: +class ExpressRouteLagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`firewall_policies` attribute. + :attr:`express_route_lags` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -18927,19 +19032,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, firewall_policy_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.FirewallPolicy: - """Gets the specified Firewall Policy. + self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any + ) -> _models.ExpressRouteLag: + """Retrieves the requested ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18953,14 +19056,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) - _request = build_firewall_policies_get_request( + _request = build_express_route_lags_get_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -18994,7 +19096,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -19004,8 +19106,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.FirewallPolicy, JSON, IO[bytes]], + express_route_lag_name: str, + resource: Union[_models.ExpressRouteLag, _types.ExpressRouteLag, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -19019,20 +19121,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_firewall_policies_create_or_update_request( + _request = build_express_route_lags_create_or_update_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -19083,28 +19185,27 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: _models.FirewallPolicy, + express_route_lag_name: str, + resource: _models.ExpressRouteLag, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> AsyncLROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: ~azure.mgmt.network.models.ExpressRouteLag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + :return: An instance of AsyncLROPoller that returns ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19112,28 +19213,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: JSON, + express_route_lag_name: str, + resource: _types.ExpressRouteLag, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> AsyncLROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: JSON + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: ~azure.mgmt.network.types.ExpressRouteLag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + :return: An instance of AsyncLROPoller that returns ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19141,28 +19241,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: IO[bytes], + express_route_lag_name: str, + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> AsyncLROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: IO[bytes] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + :return: An instance of AsyncLROPoller that returns ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19170,39 +19269,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.FirewallPolicy, JSON, IO[bytes]], + express_route_lag_name: str, + resource: Union[_models.ExpressRouteLag, _types.ExpressRouteLag, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> AsyncLROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. Is - one of the following types: FirewallPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicy or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Is either a + ExpressRouteLag type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.ExpressRouteLag or + ~azure.mgmt.network.types.ExpressRouteLag or IO[bytes] + :return: An instance of AsyncLROPoller that returns ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - parameters=parameters, + express_route_lag_name=express_route_lag_name, + resource=resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -19215,7 +19315,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -19233,117 +19333,125 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.FirewallPolicy].from_continuation_token( + return AsyncLROPoller[_models.ExpressRouteLag].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.FirewallPolicy]( + return AsyncLROPoller[_models.ExpressRouteLag]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @overload - async def update_tags( + async def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: _models.TagsObject, + express_route_lag_name: str, + properties: _models.ExpressRouteLagUpdateTagsOrIdentityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: ~azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: JSON, + express_route_lag_name: str, + properties: _types.ExpressRouteLagUpdateTagsOrIdentityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: JSON + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: ~azure.mgmt.network.types.ExpressRouteLagUpdateTagsOrIdentityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: IO[bytes], + express_route_lag_name: str, + properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: IO[bytes] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_lag_name: str, + properties: Union[ + _models.ExpressRouteLagUpdateTagsOrIdentityRequest, + _types.ExpressRouteLagUpdateTagsOrIdentityRequest, + IO[bytes], + ], **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. Is + either a ExpressRouteLagUpdateTagsOrIdentityRequest type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest or + ~azure.mgmt.network.types.ExpressRouteLagUpdateTagsOrIdentityRequest or IO[bytes] + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19357,20 +19465,20 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(properties, (IOBase, bytes)): + _content = properties else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_firewall_policies_update_tags_request( + _request = build_express_route_lags_update_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -19407,7 +19515,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -19415,7 +19523,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -19428,12 +19536,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_firewall_policies_delete_request( + _request = build_express_route_lags_delete_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -19452,7 +19560,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -19466,6 +19574,9 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) @@ -19478,15 +19589,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified Firewall Policy. + """Deletes the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -19494,7 +19605,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -19502,7 +19613,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -19538,21 +19649,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.FirewallPolicy"]: - """Lists all Firewall Policies in a resource group. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ExpressRouteLag"]: + """List all the ExpressRouteLag resources in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of FirewallPolicy - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :return: An iterator like instance of ExpressRouteLag + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -19565,7 +19678,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_firewall_policies_list_request( + _request = build_express_route_lags_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -19593,7 +19706,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FirewallPolicy], + List[_models.ExpressRouteLag], deserialized.get("value", []), ) if cls: @@ -19622,18 +19735,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.FirewallPolicy"]: - """Gets all the Firewall Policies in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ExpressRouteLag"]: + """List all the ExpressRouteLag resources in the specified subscription. - :return: An iterator like instance of FirewallPolicy - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :return: An iterator like instance of ExpressRouteLag + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -19646,7 +19759,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.FirewallPolicy"]: def prepare_request(next_link=None): if not next_link: - _request = build_firewall_policies_list_all_request( + _request = build_express_route_lags_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -19673,7 +19786,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FirewallPolicy], + List[_models.ExpressRouteLag], deserialized.get("value", []), ) if cls: @@ -19701,41 +19814,112 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: _models.GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. -class FirewallPolicyRuleCollectionGroupsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`firewall_policy_rule_collection_groups` attribute. - """ + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: _types.GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: ~azure.mgmt.network.types.GenerateExpressRouteLagsLOARequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def get( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroup: - """Gets the specified FirewallPolicyRuleCollectionGroup. + async def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: Union[_models.GenerateExpressRouteLagsLOARequest, _types.GenerateExpressRouteLagsLOARequest, IO[bytes]], + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :return: FirewallPolicyRuleCollectionGroup. The FirewallPolicyRuleCollectionGroup is compatible + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Is either a + GenerateExpressRouteLagsLOARequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest or + ~azure.mgmt.network.types.GenerateExpressRouteLagsLOARequest or IO[bytes] + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19746,18 +19930,27 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GenerateExpressRouteLagsLOAResult] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_groups_get_request( + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_express_route_lags_generate_loa_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -19790,21 +19983,30 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroup, response.json()) + deserialized = _deserialize(_models.GenerateExpressRouteLagsLOAResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - firewall_policy_name: str, - rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroup, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def links_get( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, **kwargs: Any + ) -> _models.ExpressRouteLagLink: + """Retrieves the specified ExpressRouteLagLink resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :return: ExpressRouteLagLink. The ExpressRouteLagLink is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLagLink + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -19813,28 +20015,18 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLagLink] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_groups_create_or_update_request( + _request = build_express_route_lags_links_get_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -19844,18 +20036,19 @@ async def _create_or_update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -19863,210 +20056,124 @@ async def _create_or_update_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExpressRouteLagLink, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - firewall_policy_name: str, - rule_collection_group_name: str, - parameters: _models.FirewallPolicyRuleCollectionGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: - """Creates or updates the specified FirewallPolicyRuleCollectionGroup. + @distributed_trace + def links_list( + self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ExpressRouteLagLink"]: + """Retrieve the ExpressRouteLagLink sub-resources of the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The - FirewallPolicyRuleCollectionGroup is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :return: An iterator like instance of ExpressRouteLagLink + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ExpressRouteLagLink] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - firewall_policy_name: str, - rule_collection_group_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: - """Creates or updates the specified FirewallPolicyRuleCollectionGroup. + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLagLink]] = kwargs.pop("cls", None) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The - FirewallPolicyRuleCollectionGroup is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - firewall_policy_name: str, - rule_collection_group_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: - """Creates or updates the specified FirewallPolicyRuleCollectionGroup. + def prepare_request(next_link=None): + if not next_link: - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The - FirewallPolicyRuleCollectionGroup is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ + _request = build_express_route_lags_links_list_request( + resource_group_name=resource_group_name, + express_route_lag_name=express_route_lag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - firewall_policy_name: str, - rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroup, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: - """Creates or updates the specified FirewallPolicyRuleCollectionGroup. + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Is one of the following types: - FirewallPolicyRuleCollectionGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The - FirewallPolicyRuleCollectionGroup is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + return _request - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ExpressRouteLagLink], + deserialized.get("value", []), ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroup, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + async def get_next(next_link=None): + _request = prepare_request(next_link) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - return AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + response = pipeline_response.http_response - async def _delete_initial( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def members_get( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, member_name: str, **kwargs: Any + ) -> _models.ExpressRouteLagMember: + """Retrieves the specified ExpressRouteLagMember resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :param member_name: The name of the express route LAG member. Required. + :type member_name: str + :return: ExpressRouteLagMember. The ExpressRouteLagMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLagMember + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -20078,13 +20185,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLagMember] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_groups_delete_request( + _request = build_express_route_lags_members_get_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, + member_name=member_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -20096,18 +20204,19 @@ async def _delete_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -20115,104 +20224,39 @@ async def _delete_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExpressRouteLagMember, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified FirewallPolicyRuleCollectionGroup. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace - def list( - self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.FirewallPolicyRuleCollectionGroup"]: - """Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. + def members_list( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ExpressRouteLagMember"]: + """Retrieve the ExpressRouteLagMember sub-resources of the specified ExpressRouteLagLink resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :return: An iterator like instance of FirewallPolicyRuleCollectionGroup + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :return: An iterator like instance of ExpressRouteLagMember :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ExpressRouteLagMember] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FirewallPolicyRuleCollectionGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLagMember]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -20225,9 +20269,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_firewall_policy_rule_collection_groups_list_request( + _request = build_express_route_lags_members_list_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -20254,7 +20299,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FirewallPolicyRuleCollectionGroup], + List[_models.ExpressRouteLagMember], deserialized.get("value", []), ) if cls: @@ -20283,14 +20328,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class FirewallPolicyIdpsSignaturesOverridesOperations: # pylint: disable=name-too-long +class FirewallPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`firewall_policy_idps_signatures_overrides` attribute. + :attr:`firewall_policies` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -20302,17 +20347,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any - ) -> _models.SignaturesOverrides: - """Returns all signatures overrides for a specific policy. + self, resource_group_name: str, firewall_policy_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.FirewallPolicy: + """Gets the specified Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20326,13 +20373,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) - _request = build_firewall_policy_idps_signatures_overrides_get_request( + _request = build_firewall_policies_get_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -20366,240 +20414,341 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SignaturesOverrides, response.json()) + deserialized = _deserialize(_models.FirewallPolicy, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + @api_version_validation( + params_added_on={"2025-09-01": ["afc_managed_sync"]}, + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], + ) + async def _create_or_update_initial( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: Union[_models.FirewallPolicy, _types.FirewallPolicy, IO[bytes]], + *, + afc_managed_sync: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policies_create_or_update_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + afc_managed_sync=afc_managed_sync, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def put( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: _models.SignaturesOverrides, + parameters: _models.FirewallPolicy, *, + afc_managed_sync: Optional[bool] = None, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will override/create a new signature overrides for the policy's IDPS. + ) -> AsyncLROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicy + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def put( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.FirewallPolicy, *, + afc_managed_sync: Optional[bool] = None, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will override/create a new signature overrides for the policy's IDPS. + ) -> AsyncLROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. - :type parameters: JSON + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. + :type parameters: ~azure.mgmt.network.types.FirewallPolicy + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def put( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, parameters: IO[bytes], *, + afc_managed_sync: Optional[bool] = None, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will override/create a new signature overrides for the policy's IDPS. + ) -> AsyncLROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. :type parameters: IO[bytes] + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def put( + @api_version_validation( + params_added_on={"2025-09-01": ["afc_managed_sync"]}, + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], + ) + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignaturesOverrides, JSON, IO[bytes]], + parameters: Union[_models.FirewallPolicy, _types.FirewallPolicy, IO[bytes]], + *, + afc_managed_sync: Optional[bool] = None, **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will override/create a new signature overrides for the policy's IDPS. + ) -> AsyncLROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Is one of the following - types: SignaturesOverrides, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or JSON or IO[bytes] - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :param parameters: Parameters supplied to the create or update Firewall Policy operation. Is + either a FirewallPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicy or + ~azure.mgmt.network.types.FirewallPolicy or IO[bytes] + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool + :return: An instance of AsyncLROPoller that returns FirewallPolicy. The FirewallPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + parameters=parameters, + afc_managed_sync=afc_managed_sync, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirewallPolicy, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_firewall_policy_idps_signatures_overrides_put_request( - resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.SignaturesOverrides, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FirewallPolicy].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FirewallPolicy]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload - async def patch( + async def update_tags( self, resource_group_name: str, firewall_policy_name: str, - parameters: _models.SignaturesOverrides, + parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will update the status of policy's signature overrides for IDPS. + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def patch( + async def update_tags( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will update the status of policy's signature overrides for IDPS. + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. - :type parameters: JSON + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def patch( + async def update_tags( self, resource_group_name: str, firewall_policy_name: str, @@ -20607,44 +20756,45 @@ async def patch( *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will update the status of policy's signature overrides for IDPS. + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Required. + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def patch( + async def update_tags( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignaturesOverrides, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.SignaturesOverrides: - """Will update the status of policy's signature overrides for IDPS. + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Is one of the following - types: SignaturesOverrides, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or JSON or IO[bytes] - :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20658,9 +20808,9 @@ async def patch( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -20669,7 +20819,7 @@ async def patch( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_firewall_policy_idps_signatures_overrides_patch_request( + _request = build_firewall_policies_update_tags_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, @@ -20708,29 +20858,16 @@ async def patch( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SignaturesOverrides, response.json()) + deserialized = _deserialize(_models.FirewallPolicy, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def list( + async def _delete_initial( self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any - ) -> _models.SignaturesOverridesList: - """Returns all signatures overrides objects for a specific policy as a list containing a single - value. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :return: SignaturesOverridesList. The SignaturesOverridesList is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SignaturesOverridesList - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -20742,10 +20879,10 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SignaturesOverridesList] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_firewall_policy_idps_signatures_overrides_list_request( + _request = build_firewall_policies_delete_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, @@ -20759,19 +20896,18 @@ async def list( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -20779,25 +20915,252 @@ async def list( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.SignaturesOverridesList, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.FirewallPolicy"]: + """Lists all Firewall Policies in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of FirewallPolicy + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_firewall_policies_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.FirewallPolicy"]: + """Gets all the Firewall Policies in a subscription. + + :return: An iterator like instance of FirewallPolicy + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_firewall_policies_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + -class FirewallPolicyDraftsOperations: +class FirewallPolicyRuleCollectionGroupsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`firewall_policy_drafts` attribute. + :attr:`firewall_policy_rule_collection_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -20809,17 +21172,21 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any - ) -> _models.FirewallPolicyDraft: - """Get a draft Firewall Policy. + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> _models.FirewallPolicyRuleCollectionGroup: + """Gets the specified FirewallPolicyRuleCollectionGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :return: FirewallPolicyRuleCollectionGroup. The FirewallPolicyRuleCollectionGroup is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20833,12 +21200,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) - _request = build_firewall_policy_drafts_get_request( + _request = build_firewall_policy_rule_collection_groups_get_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -20873,119 +21241,287 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicyDraft, response.json()) + deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def create_or_update( + async def _create_or_update_initial( self, resource_group_name: str, firewall_policy_name: str, - parameters: _models.FirewallPolicyDraft, - *, - content_type: str = "application/json", + rule_collection_group_name: str, + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroup, _types.FirewallPolicyRuleCollectionGroup, IO[bytes] + ], **kwargs: Any - ) -> _models.FirewallPolicyDraft: - """Create or update a draft Firewall Policy. + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. - Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policy_rule_collection_groups_create_or_update_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + rule_collection_group_name: str, + parameters: _models.FirewallPolicyRuleCollectionGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: + """Creates or updates the specified FirewallPolicyRuleCollectionGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The + FirewallPolicyRuleCollectionGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + rule_collection_group_name: str, + parameters: _types.FirewallPolicyRuleCollectionGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicyDraft: - """Create or update a draft Firewall Policy. + ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: + """Creates or updates the specified FirewallPolicyRuleCollectionGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. - Required. - :type parameters: JSON + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. + :type parameters: ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The + FirewallPolicyRuleCollectionGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, + rule_collection_group_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicyDraft: - """Create or update a draft Firewall Policy. + ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: + """Creates or updates the specified FirewallPolicyRuleCollectionGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. - Required. + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The + FirewallPolicyRuleCollectionGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.FirewallPolicyDraft, JSON, IO[bytes]], + rule_collection_group_name: str, + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroup, _types.FirewallPolicyRuleCollectionGroup, IO[bytes] + ], **kwargs: Any - ) -> _models.FirewallPolicyDraft: - """Create or update a draft Firewall Policy. + ) -> AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]: + """Creates or updates the specified FirewallPolicyRuleCollectionGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. - Is one of the following types: FirewallPolicyDraft, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft or JSON or IO[bytes] - :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Is either a FirewallPolicyRuleCollectionGroup type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup or + ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroup or IO[bytes] + :return: An instance of AsyncLROPoller that returns FirewallPolicyRuleCollectionGroup. The + FirewallPolicyRuleCollectionGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FirewallPolicyRuleCollectionGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -20994,27 +21530,18 @@ async def create_or_update( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_firewall_policy_drafts_create_or_update_request( + _request = build_firewall_policy_rule_collection_groups_delete_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -21024,19 +21551,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -21044,29 +21570,105 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.FirewallPolicyDraft, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @distributed_trace_async - async def delete(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> None: - """Delete a draft policy. + async def begin_delete( + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified FirewallPolicyRuleCollectionGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :return: None - :rtype: None + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.FirewallPolicyRuleCollectionGroup"]: + """Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: An iterator like instance of FirewallPolicyRuleCollectionGroup + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicyRuleCollectionGroup]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -21075,52 +21677,75 @@ async def delete(self, resource_group_name: str, firewall_policy_name: str, **kw } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + _request = build_firewall_policy_rule_collection_groups_list_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_firewall_policy_drafts_delete_request( - resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicyRuleCollectionGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response = pipeline_response.http_response - if cls: - return cls(pipeline_response, None, {}) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) -class FirewallPolicyRuleCollectionGroupDraftsOperations: # pylint: disable=name-too-long +class FirewallPolicyKubeSelectorGroupsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`firewall_policy_rule_collection_group_drafts` attribute. + :attr:`firewall_policy_kube_selector_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -21132,21 +21757,21 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroupDraft: - """Get Rule Collection Group Draft. + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> _models.FirewallPolicyKubeSelectorGroup: + """Gets the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :type kube_selector_group_name: str + :return: FirewallPolicyKubeSelectorGroup. The FirewallPolicyKubeSelectorGroup is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -21160,13 +21785,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyKubeSelectorGroup] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_group_drafts_get_request( + _request = build_firewall_policy_kube_selector_groups_get_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + kube_selector_group_name=kube_selector_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -21201,141 +21826,282 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroupDraft, response.json()) + deserialized = _deserialize(_models.FirewallPolicyKubeSelectorGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: Union[_models.FirewallPolicyKubeSelectorGroup, _types.FirewallPolicyKubeSelectorGroup, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policy_kube_selector_groups_create_or_update_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - rule_collection_group_name: str, - parameters: _models.FirewallPolicyRuleCollectionGroupDraft, + kube_selector_group_name: str, + resource: _models.FirewallPolicyKubeSelectorGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroupDraft: - """Create or Update Rule Collection Group Draft. + ) -> AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - rule_collection_group_name: str, - parameters: JSON, + kube_selector_group_name: str, + resource: _types.FirewallPolicyKubeSelectorGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroupDraft: - """Create or Update Rule Collection Group Draft. + ) -> AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: JSON + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: ~azure.mgmt.network.types.FirewallPolicyKubeSelectorGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - rule_collection_group_name: str, - parameters: IO[bytes], + kube_selector_group_name: str, + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroupDraft: - """Create or Update Rule Collection Group Draft. + ) -> AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: IO[bytes] + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :return: An instance of AsyncLROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, firewall_policy_name: str, - rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroupDraft, JSON, IO[bytes]], + kube_selector_group_name: str, + resource: Union[_models.FirewallPolicyKubeSelectorGroup, _types.FirewallPolicyKubeSelectorGroup, IO[bytes]], **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroupDraft: - """Create or Update Rule Collection Group Draft. + ) -> AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Is one of the following types: - FirewallPolicyRuleCollectionGroupDraft, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft or JSON or - IO[bytes] - :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Is either a FirewallPolicyKubeSelectorGroup type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup or + ~azure.mgmt.network.types.FirewallPolicyKubeSelectorGroup or IO[bytes] + :return: An instance of AsyncLROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirewallPolicyKubeSelectorGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + resource=resource, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirewallPolicyKubeSelectorGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FirewallPolicyKubeSelectorGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -21344,28 +22110,18 @@ async def create_or_update( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_group_drafts_create_or_update_request( + _request = build_firewall_policy_kube_selector_groups_delete_request( resource_group_name=resource_group_name, firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + kube_selector_group_name=kube_selector_group_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -21375,19 +22131,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -21395,34 +22150,105 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroupDraft, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @distributed_trace_async - async def delete( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> None: - """Delete Rule Collection Group Draft. + async def begin_delete( + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified FirewallPolicyKubeSelectorGroup. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource + :param kube_selector_group_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :return: None - :rtype: None + :type kube_selector_group_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.FirewallPolicyKubeSelectorGroup"]: + """Lists all FirewallPolicyKubeSelectorGroups in a FirewallPolicy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: An iterator like instance of FirewallPolicyKubeSelectorGroup + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicyKubeSelectorGroup]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -21431,53 +22257,75 @@ async def delete( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + _request = build_firewall_policy_kube_selector_groups_list_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_firewall_policy_rule_collection_group_drafts_delete_request( - resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicyKubeSelectorGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response = pipeline_response.http_response - if cls: - return cls(pipeline_response, None, {}) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) -class IpamPoolsOperations: +class FirewallPolicyIdpsSignaturesOverridesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`ipam_pools` attribute. + :attr:`firewall_policy_idps_signatures_overrides` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -21489,21 +22337,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any - ) -> _models.IpamPool: - """Gets the specific Pool resource. - - Gets the specific Pool resource. + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> _models.SignaturesOverrides: + """Returns all signatures overrides for a specific policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :return: IpamPool. The IpamPool is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpamPool + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -21517,13 +22361,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) - _request = build_ipam_pools_get_request( + _request = build_firewall_policy_idps_signatures_overrides_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, + firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -21550,7 +22393,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21558,59 +22401,143 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpamPool, response.json()) + deserialized = _deserialize(_models.SignaturesOverrides, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_initial( + @overload + async def put( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Union[_models.IpamPool, JSON, IO[bytes]], + firewall_policy_name: str, + parameters: _models.SignaturesOverrides, *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.SignaturesOverrides: + """Will override/create a new signature overrides for the policy's IDPS. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def put( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: _types.SignaturesOverrides, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SignaturesOverrides: + """Will override/create a new signature overrides for the policy's IDPS. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: ~azure.mgmt.network.types.SignaturesOverrides + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def put( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SignaturesOverrides: + """Will override/create a new signature overrides for the policy's IDPS. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def put( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: Union[_models.SignaturesOverrides, _types.SignaturesOverrides, IO[bytes]], + **kwargs: Any + ) -> _models.SignaturesOverrides: + """Will override/create a new signature overrides for the policy's IDPS. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Is either a + SignaturesOverrides type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or + ~azure.mgmt.network.types.SignaturesOverrides or IO[bytes] + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_ipam_pools_create_request( + _request = build_firewall_policy_idps_signatures_overrides_put_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, + firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -21623,402 +22550,478 @@ async def _create_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SignaturesOverrides, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_create( + async def patch( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: _models.IpamPool, + firewall_policy_name: str, + parameters: _models.SignaturesOverrides, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.IpamPool]: - """Creates/Updates the Pool resource. - - Creates/Updates the Pool resource. + ) -> _models.SignaturesOverrides: + """Will update the status of policy's signature overrides for IDPS. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to create/update. Required. - :type body: ~azure.mgmt.network.models.IpamPool + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create( + async def patch( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: JSON, + firewall_policy_name: str, + parameters: _types.SignaturesOverrides, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.IpamPool]: - """Creates/Updates the Pool resource. - - Creates/Updates the Pool resource. + ) -> _models.SignaturesOverrides: + """Will update the status of policy's signature overrides for IDPS. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to create/update. Required. - :type body: JSON + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: ~azure.mgmt.network.types.SignaturesOverrides :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create( + async def patch( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: IO[bytes], + firewall_policy_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.IpamPool]: - """Creates/Updates the Pool resource. - - Creates/Updates the Pool resource. + ) -> _models.SignaturesOverrides: + """Will update the status of policy's signature overrides for IDPS. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to create/update. Required. - :type body: IO[bytes] + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create( + async def patch( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Union[_models.IpamPool, JSON, IO[bytes]], - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, + firewall_policy_name: str, + parameters: Union[_models.SignaturesOverrides, _types.SignaturesOverrides, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.IpamPool]: - """Creates/Updates the Pool resource. - - Creates/Updates the Pool resource. + ) -> _models.SignaturesOverrides: + """Will update the status of policy's signature overrides for IDPS. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to create/update. Is one of the following types: IpamPool, - JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.IpamPool or JSON or IO[bytes] - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Will contain all properties of the object to put. Is either a + SignaturesOverrides type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or + ~azure.mgmt.network.types.SignaturesOverrides or IO[bytes] + :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, - body=body, - etag=etag, - match_condition=match_condition, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.IpamPool, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_firewall_policy_idps_signatures_overrides_patch_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IpamPool].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, + deserialized = _deserialize(_models.SignaturesOverrides, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def list( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> _models.SignaturesOverridesList: + """Returns all signatures overrides objects for a specific policy as a list containing a single + value. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: SignaturesOverridesList. The SignaturesOverridesList is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SignaturesOverridesList + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SignaturesOverridesList] = kwargs.pop("cls", None) + + _request = build_firewall_policy_idps_signatures_overrides_list_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - return AsyncLROPoller[_models.IpamPool]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SignaturesOverridesList, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class FirewallPolicyDraftsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`firewall_policy_drafts` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> _models.FirewallPolicyDraft: + """Get a draft Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) + + _request = build_firewall_policy_drafts_get_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirewallPolicyDraft, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + @overload - async def update( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Optional[_models.IpamPoolUpdate] = None, + firewall_policy_name: str, + parameters: _models.FirewallPolicyDraft, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.IpamPool: - """Updates the specific Pool resource. - - Updates the specific Pool resource. + ) -> _models.FirewallPolicyDraft: + """Create or update a draft Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to update partially. Default value is None. - :type body: ~azure.mgmt.network.models.IpamPoolUpdate + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. + Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: IpamPool. The IpamPool is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpamPool + :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Optional[JSON] = None, + firewall_policy_name: str, + parameters: _types.FirewallPolicyDraft, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.IpamPool: - """Updates the specific Pool resource. - - Updates the specific Pool resource. + ) -> _models.FirewallPolicyDraft: + """Create or update a draft Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to update partially. Default value is None. - :type body: JSON + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. + Required. + :type parameters: ~azure.mgmt.network.types.FirewallPolicyDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: IpamPool. The IpamPool is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpamPool + :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Optional[IO[bytes]] = None, + firewall_policy_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.IpamPool: - """Updates the specific Pool resource. - - Updates the specific Pool resource. + ) -> _models.FirewallPolicyDraft: + """Create or update a draft Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to update partially. Default value is None. - :type body: IO[bytes] + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. + Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: IpamPool. The IpamPool is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpamPool + :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - pool_name: str, - body: Optional[Union[_models.IpamPoolUpdate, JSON, IO[bytes]]] = None, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, + firewall_policy_name: str, + parameters: Union[_models.FirewallPolicyDraft, _types.FirewallPolicyDraft, IO[bytes]], **kwargs: Any - ) -> _models.IpamPool: - """Updates the specific Pool resource. - - Updates the specific Pool resource. + ) -> _models.FirewallPolicyDraft: + """Create or update a draft Firewall Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :param body: Pool resource object to update partially. Is one of the following types: - IpamPoolUpdate, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.IpamPoolUpdate or JSON or IO[bytes] - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: IpamPool. The IpamPool is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpamPool + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. + Is either a FirewallPolicyDraft type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft or + ~azure.mgmt.network.types.FirewallPolicyDraft or IO[bytes] + :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22027,39 +23030,26 @@ async def update( 409: ResourceExistsError, 304: ResourceNotModifiedError, } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if body else None - cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) + cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if body else None + content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - if body is not None: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_ipam_pools_update_request( + _request = build_firewall_policy_drafts_create_or_update_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, + firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -22079,7 +23069,7 @@ async def update( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 201]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -22087,7 +23077,7 @@ async def update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22095,303 +23085,24 @@ async def update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpamPool, response.json()) + deserialized = _deserialize(_models.FirewallPolicyDraft, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - pool_name: str, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_ipam_pools_delete_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, - subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - pool_name: str, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Pool resource. - - Delete the Pool resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, - etag=etag, - match_condition=match_condition, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, - resource_group_name: str, - network_manager_name: str, - *, - skip_token: Optional[str] = None, - skip: int = 0, - top: int = 50, - sort_key: Optional[str] = None, - sort_value: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.IpamPool"]: - """Gets list of Pool resources at Network Manager level. - - Gets list of Pool resources at Network Manager level. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :keyword skip_token: Optional skip token. Default value is None. - :paramtype skip_token: str - :keyword skip: Optional num entries to skip. Default value is 0. - :paramtype skip: int - :keyword top: Optional num entries to show. Default value is 50. - :paramtype top: int - :keyword sort_key: Optional key by which to sort. Default value is None. - :paramtype sort_key: str - :keyword sort_value: Optional sort value for pagination. Default value is None. - :paramtype sort_value: str - :return: An iterator like instance of IpamPool - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpamPool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.IpamPool]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_ipam_pools_list_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - subscription_id=self._config.subscription_id, - skip_token=skip_token, - skip=skip, - top=top, - sort_key=sort_key, - sort_value=sort_value, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.IpamPool], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - @distributed_trace_async - async def get_pool_usage( - self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any - ) -> _models.PoolUsage: - """Get the Pool Usage. - - Get the Pool Usage. + async def delete(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> None: + """Delete a draft policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :return: PoolUsage. The PoolUsage is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PoolUsage + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22405,13 +23116,12 @@ async def get_pool_usage( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PoolUsage] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_ipam_pools_get_pool_usage_request( + _request = build_firewall_policy_drafts_delete_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, + firewall_policy_name=firewall_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -22422,140 +23132,33 @@ async def get_pool_usage( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.PoolUsage, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_associated_resources( - self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PoolAssociation"]: - """List Associated Resource in the Pool. - - List Associated Resource in the Pool. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str - :return: An iterator like instance of PoolAssociation - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PoolAssociation] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PoolAssociation]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_ipam_pools_list_associated_resources_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.PoolAssociation], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + return cls(pipeline_response, None, {}) # type: ignore -class NetworkManagersOperations: +class FirewallPolicyRuleCollectionGroupDraftsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_managers` attribute. + :attr:`firewall_policy_rule_collection_group_drafts` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -22566,16 +23169,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, network_manager_name: str, **kwargs: Any) -> _models.NetworkManager: - """Gets the specified Network Manager. + async def get( + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> _models.FirewallPolicyRuleCollectionGroupDraft: + """Get Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22589,12 +23198,13 @@ async def get(self, resource_group_name: str, network_manager_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) - _request = build_network_managers_get_request( + _request = build_firewall_policy_rule_collection_group_drafts_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -22629,7 +23239,7 @@ async def get(self, resource_group_name: str, network_manager_name: str, **kwarg if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManager, response.json()) + deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroupDraft, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -22640,26 +23250,32 @@ async def get(self, resource_group_name: str, network_manager_name: str, **kwarg async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - parameters: _models.NetworkManager, + firewall_policy_name: str, + rule_collection_group_name: str, + parameters: _models.FirewallPolicyRuleCollectionGroupDraft, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManager: - """Creates or updates a Network Manager. + ) -> _models.FirewallPolicyRuleCollectionGroupDraft: + """Create or Update Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: ~azure.mgmt.network.models.NetworkManager + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22667,26 +23283,32 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - parameters: JSON, + firewall_policy_name: str, + rule_collection_group_name: str, + parameters: _types.FirewallPolicyRuleCollectionGroupDraft, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManager: - """Creates or updates a Network Manager. + ) -> _models.FirewallPolicyRuleCollectionGroupDraft: + """Create or Update Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: JSON + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. + :type parameters: ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22694,26 +23316,32 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_manager_name: str, + firewall_policy_name: str, + rule_collection_group_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManager: - """Creates or updates a Network Manager. + ) -> _models.FirewallPolicyRuleCollectionGroupDraft: + """Create or Update Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22721,22 +23349,31 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - parameters: Union[_models.NetworkManager, JSON, IO[bytes]], + firewall_policy_name: str, + rule_collection_group_name: str, + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroupDraft, _types.FirewallPolicyRuleCollectionGroupDraft, IO[bytes] + ], **kwargs: Any - ) -> _models.NetworkManager: - """Creates or updates a Network Manager. + ) -> _models.FirewallPolicyRuleCollectionGroupDraft: + """Create or Update Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Is one of the - following types: NetworkManager, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManager or JSON or IO[bytes] - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :param parameters: Parameters supplied to the create or update + FirewallPolicyRuleCollectionGroup operation. Is either a FirewallPolicyRuleCollectionGroupDraft + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft or + ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraft or IO[bytes] + :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22750,9 +23387,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) + cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -22761,9 +23398,10 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_managers_create_or_update_request( + _request = build_firewall_policy_rule_collection_group_drafts_create_or_update_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -22800,114 +23438,112 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManager, response.json()) + deserialized = _deserialize(_models.FirewallPolicyRuleCollectionGroupDraft, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def patch( - self, - resource_group_name: str, - network_manager_name: str, - parameters: _models.PatchObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManager: - """Patch NetworkManager. + @distributed_trace_async + async def delete( + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> None: + """Delete Rule Collection Group Draft. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: ~azure.mgmt.network.models.PatchObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - @overload - async def patch( - self, - resource_group_name: str, - network_manager_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManager: - """Patch NetworkManager. + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager - :raises ~azure.core.exceptions.HttpResponseError: - """ + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - @overload - async def patch( - self, - resource_group_name: str, - network_manager_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManager: - """Patch NetworkManager. + _request = build_firewall_policy_rule_collection_group_drafts_delete_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager - :raises ~azure.core.exceptions.HttpResponseError: - """ + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + +class IpamPoolsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`ipam_pools` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def patch( - self, - resource_group_name: str, - network_manager_name: str, - parameters: Union[_models.PatchObject, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.NetworkManager: - """Patch NetworkManager. + async def get( + self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any + ) -> _models.IpamPool: + """Gets the specific Pool resource. + + Gets the specific Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Is one of the - following types: PatchObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PatchObject or JSON or IO[bytes] - :return: NetworkManager. The NetworkManager is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManager + :param pool_name: Pool resource name. Required. + :type pool_name: str + :return: IpamPool. The IpamPool is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpamPool :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22918,27 +23554,18 @@ async def patch( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) - _request = build_network_managers_patch_request( + _request = build_ipam_pools_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, + pool_name=pool_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -22963,7 +23590,7 @@ async def patch( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22971,15 +23598,23 @@ async def patch( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManager, response.json()) + deserialized = _deserialize(_models.IpamPool, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, network_manager_name: str, *, force: Optional[bool] = None, **kwargs: Any + async def _create_initial( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: Union[_models.IpamPool, _types.IpamPool, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -22987,20 +23622,38 @@ async def _delete_initial( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_managers_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_ipam_pools_create_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, + pool_name=pool_name, subscription_id=self._config.subscription_id, - force=force, + etag=etag, + match_condition=match_condition, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -23017,21 +23670,23 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -23041,39 +23696,182 @@ async def _delete_initial( return deserialized # type: ignore + @overload + async def begin_create( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: _models.IpamPool, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.IpamPool]: + """Creates/Updates the Pool resource. + + Creates/Updates the Pool resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param body: Pool resource object to create/update. Required. + :type body: ~azure.mgmt.network.models.IpamPool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: _types.IpamPool, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.IpamPool]: + """Creates/Updates the Pool resource. + + Creates/Updates the Pool resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param body: Pool resource object to create/update. Required. + :type body: ~azure.mgmt.network.types.IpamPool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.IpamPool]: + """Creates/Updates the Pool resource. + + Creates/Updates the Pool resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param body: Pool resource object to create/update. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, network_manager_name: str, *, force: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a network manager. + async def begin_create( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: Union[_models.IpamPool, _types.IpamPool, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.IpamPool]: + """Creates/Updates the Pool resource. + + Creates/Updates the Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param body: Pool resource object to create/update. Is either a IpamPool type or a IO[bytes] + type. Required. + :type body: ~azure.mgmt.network.models.IpamPool or ~azure.mgmt.network.types.IpamPool or + IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: An instance of AsyncLROPoller that returns IpamPool. The IpamPool is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpamPool] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._create_initial( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - force=force, + pool_name=pool_name, + body=body, + etag=etag, + match_condition=match_condition, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -23082,9 +23880,12 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.IpamPool, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -23099,227 +23900,71 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.IpamPool].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.IpamPool]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - @distributed_trace - def list( - self, resource_group_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkManager"]: - """List network managers in a resource group. + @overload + async def update( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: Optional[_models.IpamPoolUpdate] = None, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IpamPool: + """Updates the specific Pool resource. + + Updates the specific Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkManager - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManager] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param body: Pool resource object to update partially. Default value is None. + :type body: ~azure.mgmt.network.models.IpamPoolUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IpamPool. The IpamPool is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpamPool :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + @overload + async def update( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + body: Optional[_types.IpamPoolUpdate] = None, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.IpamPool: + """Updates the specific Pool resource. - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_managers_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkManager], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_subscription( - self, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkManager"]: - """List all network managers in a subscription. - - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkManager - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManager] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_managers_list_by_subscription_request( - subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkManager], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class StaticCidrsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`static_cidrs` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any - ) -> _models.StaticCidr: - """Gets the specific Static CIDR resource. - - Gets the specific Static CIDR resource. + Updates the specific Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -23328,205 +23973,94 @@ async def get( :type network_manager_name: str :param pool_name: Pool resource name. Required. :type pool_name: str - :param static_cidr_name: StaticCidr resource name to retrieve. Required. - :type static_cidr_name: str - :return: StaticCidr. The StaticCidr is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticCidr - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) - - _request = build_static_cidrs_get_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - pool_name=pool_name, - static_cidr_name=static_cidr_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.StaticCidr, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create( - self, - resource_group_name: str, - network_manager_name: str, - pool_name: str, - static_cidr_name: str, - body: Optional[_models.StaticCidr] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.StaticCidr: - """Creates/Updates the Static CIDR resource. - - Creates/Updates the Static CIDR resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: Required. - :type network_manager_name: str - :param pool_name: The name of the IPAM pool. Required. - :type pool_name: str - :param static_cidr_name: Name for the static CIDR. Required. - :type static_cidr_name: str - :param body: StaticCidr resource object to create/update. Default value is None. - :type body: ~azure.mgmt.network.models.StaticCidr - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: StaticCidr. The StaticCidr is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticCidr - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create( - self, - resource_group_name: str, - network_manager_name: str, - pool_name: str, - static_cidr_name: str, - body: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.StaticCidr: - """Creates/Updates the Static CIDR resource. - - Creates/Updates the Static CIDR resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: Required. - :type network_manager_name: str - :param pool_name: The name of the IPAM pool. Required. - :type pool_name: str - :param static_cidr_name: Name for the static CIDR. Required. - :type static_cidr_name: str - :param body: StaticCidr resource object to create/update. Default value is None. - :type body: JSON + :param body: Pool resource object to update partially. Default value is None. + :type body: ~azure.mgmt.network.types.IpamPoolUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: StaticCidr. The StaticCidr is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticCidr + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IpamPool. The IpamPool is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpamPool :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def update( self, resource_group_name: str, network_manager_name: str, pool_name: str, - static_cidr_name: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.StaticCidr: - """Creates/Updates the Static CIDR resource. + ) -> _models.IpamPool: + """Updates the specific Pool resource. - Creates/Updates the Static CIDR resource. + Updates the specific Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: Required. + :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param pool_name: The name of the IPAM pool. Required. + :param pool_name: Pool resource name. Required. :type pool_name: str - :param static_cidr_name: Name for the static CIDR. Required. - :type static_cidr_name: str - :param body: StaticCidr resource object to create/update. Default value is None. + :param body: Pool resource object to update partially. Default value is None. :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: StaticCidr. The StaticCidr is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticCidr + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IpamPool. The IpamPool is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpamPool :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create( + async def update( self, resource_group_name: str, network_manager_name: str, pool_name: str, - static_cidr_name: str, - body: Optional[Union[_models.StaticCidr, JSON, IO[bytes]]] = None, + body: Optional[Union[_models.IpamPoolUpdate, _types.IpamPoolUpdate, IO[bytes]]] = None, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.StaticCidr: - """Creates/Updates the Static CIDR resource. + ) -> _models.IpamPool: + """Updates the specific Pool resource. - Creates/Updates the Static CIDR resource. + Updates the specific Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: Required. + :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param pool_name: The name of the IPAM pool. Required. + :param pool_name: Pool resource name. Required. :type pool_name: str - :param static_cidr_name: Name for the static CIDR. Required. - :type static_cidr_name: str - :param body: StaticCidr resource object to create/update. Is one of the following types: - StaticCidr, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.StaticCidr or JSON or IO[bytes] - :return: StaticCidr. The StaticCidr is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticCidr + :param body: Pool resource object to update partially. Is either a IpamPoolUpdate type or a + IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.IpamPoolUpdate or + ~azure.mgmt.network.types.IpamPoolUpdate or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: IpamPool. The IpamPool is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpamPool :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23535,15 +24069,21 @@ async def create( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if body else None - cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) + cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) content_type = content_type or "application/json" if body else None _content = None @@ -23555,12 +24095,13 @@ async def create( else: _content = None - _request = build_static_cidrs_create_request( + _request = build_ipam_pools_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, pool_name=pool_name, - static_cidr_name=static_cidr_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -23580,7 +24121,7 @@ async def create( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -23596,7 +24137,7 @@ async def create( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.StaticCidr, response.json()) + deserialized = _deserialize(_models.IpamPool, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -23604,7 +24145,14 @@ async def create( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -23612,20 +24160,27 @@ async def _delete_initial( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_static_cidrs_delete_request( + _request = build_ipam_pools_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, pool_name=pool_name, - static_cidr_name=static_cidr_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, headers=_headers, params=_params, @@ -23669,11 +24224,18 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete the Static CIDR resource. + """Delete the Pool resource. - Delete the Static CIDR resource. + Delete the Pool resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -23682,8 +24244,11 @@ async def begin_delete( :type network_manager_name: str :param pool_name: Pool resource name. Required. :type pool_name: str - :param static_cidr_name: StaticCidr resource name to retrieve. Required. - :type static_cidr_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -23691,7 +24256,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -23701,7 +24266,8 @@ async def begin_delete( resource_group_name=resource_group_name, network_manager_name=network_manager_name, pool_name=pool_name, - static_cidr_name=static_cidr_name, + etag=etag, + match_condition=match_condition, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -23741,7 +24307,6 @@ def list( self, resource_group_name: str, network_manager_name: str, - pool_name: str, *, skip_token: Optional[str] = None, skip: int = 0, @@ -23749,18 +24314,16 @@ def list( sort_key: Optional[str] = None, sort_value: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.StaticCidr"]: - """Gets list of Static CIDR resources at Network Manager level. + ) -> AsyncItemPaged["_models.IpamPool"]: + """Gets list of Pool resources at Network Manager level. - Gets list of Static CIDR resources at Network Manager level. + Gets list of Pool resources at Network Manager level. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param pool_name: Pool resource name. Required. - :type pool_name: str :keyword skip_token: Optional skip token. Default value is None. :paramtype skip_token: str :keyword skip: Optional num entries to skip. Default value is 0. @@ -23771,15 +24334,15 @@ def list( :paramtype sort_key: str :keyword sort_value: Optional sort value for pagination. Default value is None. :paramtype sort_value: str - :return: An iterator like instance of StaticCidr - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.StaticCidr] + :return: An iterator like instance of IpamPool + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpamPool] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.StaticCidr]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.IpamPool]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -23792,10 +24355,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_static_cidrs_list_request( + _request = build_ipam_pools_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - pool_name=pool_name, subscription_id=self._config.subscription_id, skip_token=skip_token, skip=skip, @@ -23827,7 +24389,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.StaticCidr], + List[_models.IpamPool], deserialized.get("value", []), ) if cls: @@ -23855,39 +24417,23 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - -class IpAllocationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`ip_allocations` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - @distributed_trace_async - async def get( - self, resource_group_name: str, ip_allocation_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.IpAllocation: - """Gets the specified IpAllocation by resource group. + async def get_pool_usage( + self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any + ) -> _models.PoolUsage: + """Get the Pool Usage. + + Get the Pool Usage. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpAllocation + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :return: PoolUsage. The PoolUsage is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PoolUsage :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23901,14 +24447,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PoolUsage] = kwargs.pop("cls", None) - _request = build_ip_allocations_get_request( + _request = build_ipam_pools_get_pool_usage_request( resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, + network_manager_name=network_manager_name, + pool_name=pool_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -23934,7 +24480,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23942,49 +24488,157 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpAllocation, response.json()) + deserialized = _deserialize(_models.PoolUsage, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - ip_allocation_name: str, - parameters: Union[_models.IpAllocation, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + @distributed_trace + def list_associated_resources( + self, resource_group_name: str, network_manager_name: str, pool_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PoolAssociation"]: + """List Associated Resource in the Pool. - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + List Associated Resource in the Pool. - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :return: An iterator like instance of PoolAssociation + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PoolAssociation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_ip_allocations_create_or_update_request( + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PoolAssociation]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ipam_pools_list_associated_resources_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + pool_name=pool_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PoolAssociation], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CommonErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NetworkManagersOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_managers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, network_manager_name: str, **kwargs: Any) -> _models.NetworkManager: + """Gets the specified Network Manager. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) + + _request = build_network_managers_get_request( resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, + network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -23994,18 +24648,19 @@ async def _create_or_update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -24013,285 +24668,290 @@ async def _create_or_update_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkManager, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - ip_allocation_name: str, - parameters: _models.IpAllocation, + network_manager_name: str, + parameters: _models.NetworkManager, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.IpAllocation]: - """Creates or updates an IpAllocation in the specified resource group. + ) -> _models.NetworkManager: + """Creates or updates a Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. - :type parameters: ~azure.mgmt.network.models.IpAllocation + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManager :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - ip_allocation_name: str, - parameters: JSON, + network_manager_name: str, + parameters: _types.NetworkManager, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.IpAllocation]: - """Creates or updates an IpAllocation in the specified resource group. + ) -> _models.NetworkManager: + """Creates or updates a Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. - :type parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. + :type parameters: ~azure.mgmt.network.types.NetworkManager :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - ip_allocation_name: str, + network_manager_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.IpAllocation]: - """Creates or updates an IpAllocation in the specified resource group. + ) -> _models.NetworkManager: + """Creates or updates a Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - ip_allocation_name: str, - parameters: Union[_models.IpAllocation, JSON, IO[bytes]], + network_manager_name: str, + parameters: Union[_models.NetworkManager, _types.NetworkManager, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.IpAllocation]: - """Creates or updates an IpAllocation in the specified resource group. + ) -> _models.NetworkManager: + """Creates or updates a Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. Is - one of the following types: IpAllocation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IpAllocation or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Is either a + NetworkManager type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManager or + ~azure.mgmt.network.types.NetworkManager or IO[bytes] + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.IpAllocation, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_network_managers_create_or_update_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IpAllocation].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.IpAllocation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.NetworkManager, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload - async def update_tags( + async def patch( self, resource_group_name: str, - ip_allocation_name: str, - parameters: _models.TagsObject, + network_manager_name: str, + parameters: _models.PatchObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.IpAllocation: - """Updates a IpAllocation tags. + ) -> _models.NetworkManager: + """Patch NetworkManager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to update IpAllocation tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. + :type parameters: ~azure.mgmt.network.models.PatchObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpAllocation + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def patch( self, resource_group_name: str, - ip_allocation_name: str, - parameters: JSON, + network_manager_name: str, + parameters: _types.PatchObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.IpAllocation: - """Updates a IpAllocation tags. + ) -> _models.NetworkManager: + """Patch NetworkManager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to update IpAllocation tags. Required. - :type parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. + :type parameters: ~azure.mgmt.network.types.PatchObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpAllocation + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def patch( self, resource_group_name: str, - ip_allocation_name: str, + network_manager_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.IpAllocation: - """Updates a IpAllocation tags. + ) -> _models.NetworkManager: + """Patch NetworkManager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to update IpAllocation tags. Required. + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpAllocation + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def patch( self, resource_group_name: str, - ip_allocation_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + network_manager_name: str, + parameters: Union[_models.PatchObject, _types.PatchObject, IO[bytes]], **kwargs: Any - ) -> _models.IpAllocation: - """Updates a IpAllocation tags. + ) -> _models.NetworkManager: + """Patch NetworkManager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str - :param parameters: Parameters supplied to update IpAllocation tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpAllocation + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param parameters: Parameters supplied to specify which network manager is. Is either a + PatchObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PatchObject or + ~azure.mgmt.network.types.PatchObject or IO[bytes] + :return: NetworkManager. The NetworkManager is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -24305,9 +24965,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -24316,9 +24976,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_ip_allocations_update_tags_request( + _request = build_network_managers_patch_request( resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, + network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -24355,7 +25015,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpAllocation, response.json()) + deserialized = _deserialize(_models.NetworkManager, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -24363,7 +25023,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, ip_allocation_name: str, **kwargs: Any + self, resource_group_name: str, network_manager_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -24376,13 +25036,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_ip_allocations_delete_request( + _request = build_network_managers_delete_request( resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, + network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, + force=force, api_version=api_version, headers=_headers, params=_params, @@ -24426,15 +25087,19 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, ip_allocation_name: str, **kwargs: Any + self, resource_group_name: str, network_manager_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified IpAllocation. + """Deletes a network manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_allocation_name: The name of the IpAllocation. Required. - :type ip_allocation_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -24442,7 +25107,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24450,7 +25115,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - ip_allocation_name=ip_allocation_name, + network_manager_name=network_manager_name, + force=force, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -24486,21 +25152,31 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.IpAllocation"]: - """Gets all IpAllocations in a resource group. + def list( + self, resource_group_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkManager"]: + """List network managers in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of IpAllocation - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpAllocation] + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of NetworkManager + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManager] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -24513,9 +25189,11 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_ip_allocations_list_by_resource_group_request( + _request = build_network_managers_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -24541,7 +25219,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.IpAllocation], + List[_models.NetworkManager], deserialized.get("value", []), ) if cls: @@ -24570,18 +25248,28 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpAllocation"]: - """Gets all IpAllocations in a subscription. + def list_by_subscription( + self, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkManager"]: + """List all network managers in a subscription. - :return: An iterator like instance of IpAllocation - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpAllocation] + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of NetworkManager + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManager] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -24594,8 +25282,10 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpAllocation"]: def prepare_request(next_link=None): if not next_link: - _request = build_ip_allocations_list_request( + _request = build_network_managers_list_by_subscription_request( subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -24621,7 +25311,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.IpAllocation], + List[_models.NetworkManager], deserialized.get("value", []), ) if cls: @@ -24650,14 +25340,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class IpGroupsOperations: +class StaticCidrsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`ip_groups` attribute. + :attr:`static_cidrs` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -24669,22 +25359,25 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, ip_groups_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.IpGroup: - """Gets the specified ipGroups. + self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any + ) -> _models.StaticCidr: + """Gets the specific Static CIDR resource. + + Gets the specific Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :keyword expand: Expands resourceIds (of Firewalls/Network Security Groups etc.) back - referenced by the IpGroups resource. Default value is None. - :paramtype expand: str - :return: IpGroup. The IpGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param static_cidr_name: StaticCidr resource name to retrieve. Required. + :type static_cidr_name: str + :return: StaticCidr. The StaticCidr is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticCidr + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -24696,14 +25389,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) - _request = build_ip_groups_get_request( + _request = build_static_cidrs_get_request( resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, + network_manager_name=network_manager_name, + pool_name=pool_name, + static_cidr_name=static_cidr_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -24729,7 +25423,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24737,353 +25431,147 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpGroup, response.json()) + deserialized = _deserialize(_models.StaticCidr, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - ip_groups_name: str, - parameters: Union[_models.IpGroup, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_ip_groups_create_or_update_request( - resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.Error, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - async def begin_create_or_update( + async def create( self, resource_group_name: str, - ip_groups_name: str, - parameters: _models.IpGroup, + network_manager_name: str, + pool_name: str, + static_cidr_name: str, + body: Optional[_models.StaticCidr] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.IpGroup]: - """Creates or updates an ipGroups in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the create or update IpGroups operation. Required. - :type parameters: ~azure.mgmt.network.models.IpGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> _models.StaticCidr: + """Creates/Updates the Static CIDR resource. - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - ip_groups_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.IpGroup]: - """Creates or updates an ipGroups in a specified resource group. + Creates/Updates the Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the create or update IpGroups operation. Required. - :type parameters: JSON + :param network_manager_name: Required. + :type network_manager_name: str + :param pool_name: The name of the IPAM pool. Required. + :type pool_name: str + :param static_cidr_name: Name for the static CIDR. Required. + :type static_cidr_name: str + :param body: StaticCidr resource object to create/update. Default value is None. + :type body: ~azure.mgmt.network.models.StaticCidr :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] + :return: StaticCidr. The StaticCidr is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticCidr :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create( self, resource_group_name: str, - ip_groups_name: str, - parameters: IO[bytes], + network_manager_name: str, + pool_name: str, + static_cidr_name: str, + body: Optional[_types.StaticCidr] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.IpGroup]: - """Creates or updates an ipGroups in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the create or update IpGroups operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - ip_groups_name: str, - parameters: Union[_models.IpGroup, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.IpGroup]: - """Creates or updates an ipGroups in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the create or update IpGroups operation. Is one of - the following types: IpGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IpGroup or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.IpGroup, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.IpGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.IpGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + ) -> _models.StaticCidr: + """Creates/Updates the Static CIDR resource. - @overload - async def update_groups( - self, - resource_group_name: str, - ip_groups_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IpGroup: - """Updates tags of an IpGroups resource. + Creates/Updates the Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the update ipGroups operation. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param network_manager_name: Required. + :type network_manager_name: str + :param pool_name: The name of the IPAM pool. Required. + :type pool_name: str + :param static_cidr_name: Name for the static CIDR. Required. + :type static_cidr_name: str + :param body: StaticCidr resource object to create/update. Default value is None. + :type body: ~azure.mgmt.network.types.StaticCidr :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: IpGroup. The IpGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpGroup + :return: StaticCidr. The StaticCidr is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticCidr :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_groups( + async def create( self, resource_group_name: str, - ip_groups_name: str, - parameters: JSON, + network_manager_name: str, + pool_name: str, + static_cidr_name: str, + body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.IpGroup: - """Updates tags of an IpGroups resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the update ipGroups operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: IpGroup. The IpGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> _models.StaticCidr: + """Creates/Updates the Static CIDR resource. - @overload - async def update_groups( - self, - resource_group_name: str, - ip_groups_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.IpGroup: - """Updates tags of an IpGroups resource. + Creates/Updates the Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the update ipGroups operation. Required. - :type parameters: IO[bytes] + :param network_manager_name: Required. + :type network_manager_name: str + :param pool_name: The name of the IPAM pool. Required. + :type pool_name: str + :param static_cidr_name: Name for the static CIDR. Required. + :type static_cidr_name: str + :param body: StaticCidr resource object to create/update. Default value is None. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: IpGroup. The IpGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpGroup + :return: StaticCidr. The StaticCidr is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticCidr :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_groups( + async def create( self, resource_group_name: str, - ip_groups_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + network_manager_name: str, + pool_name: str, + static_cidr_name: str, + body: Optional[Union[_models.StaticCidr, _types.StaticCidr, IO[bytes]]] = None, **kwargs: Any - ) -> _models.IpGroup: - """Updates tags of an IpGroups resource. + ) -> _models.StaticCidr: + """Creates/Updates the Static CIDR resource. + + Creates/Updates the Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str - :param parameters: Parameters supplied to the update ipGroups operation. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: IpGroup. The IpGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.IpGroup + :param network_manager_name: Required. + :type network_manager_name: str + :param pool_name: The name of the IPAM pool. Required. + :type pool_name: str + :param static_cidr_name: Name for the static CIDR. Required. + :type static_cidr_name: str + :param body: StaticCidr resource object to create/update. Is either a StaticCidr type or a + IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.StaticCidr or ~azure.mgmt.network.types.StaticCidr or + IO[bytes] + :return: StaticCidr. The StaticCidr is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticCidr :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -25097,20 +25585,26 @@ async def update_groups( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) + content_type = content_type if body else None + cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) - content_type = content_type or "application/json" + content_type = content_type or "application/json" if body else None _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(body, (IOBase, bytes)): + _content = body else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if body is not None: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None - _request = build_ip_groups_update_groups_request( + _request = build_static_cidrs_create_request( resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, + network_manager_name=network_manager_name, + pool_name=pool_name, + static_cidr_name=static_cidr_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -25131,7 +25625,7 @@ async def update_groups( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 201]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -25139,7 +25633,7 @@ async def update_groups( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25147,7 +25641,7 @@ async def update_groups( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.IpGroup, response.json()) + deserialized = _deserialize(_models.StaticCidr, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -25155,7 +25649,7 @@ async def update_groups( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, ip_groups_name: str, **kwargs: Any + self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -25168,12 +25662,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_ip_groups_delete_request( + _request = build_static_cidrs_delete_request( resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, + network_manager_name=network_manager_name, + pool_name=pool_name, + static_cidr_name=static_cidr_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -25192,14 +25688,14 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25217,14 +25713,22 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, ip_groups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes the specified ipGroups. + async def begin_delete( + self, resource_group_name: str, network_manager_name: str, pool_name: str, static_cidr_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete the Static CIDR resource. + + Delete the Static CIDR resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param ip_groups_name: The name of the ipGroups. Required. - :type ip_groups_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :param static_cidr_name: StaticCidr resource name to retrieve. Required. + :type static_cidr_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -25232,7 +25736,7 @@ async def begin_delete(self, resource_group_name: str, ip_groups_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -25240,7 +25744,9 @@ async def begin_delete(self, resource_group_name: str, ip_groups_name: str, **kw if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - ip_groups_name=ip_groups_name, + network_manager_name=network_manager_name, + pool_name=pool_name, + static_cidr_name=static_cidr_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -25276,21 +25782,49 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.IpGroup"]: - """Gets all IpGroups in a resource group. + def list( + self, + resource_group_name: str, + network_manager_name: str, + pool_name: str, + *, + skip_token: Optional[str] = None, + skip: int = 0, + top: int = 50, + sort_key: Optional[str] = None, + sort_value: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.StaticCidr"]: + """Gets list of Static CIDR resources at Network Manager level. + + Gets list of Static CIDR resources at Network Manager level. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of IpGroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpGroup] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param pool_name: Pool resource name. Required. + :type pool_name: str + :keyword skip_token: Optional skip token. Default value is None. + :paramtype skip_token: str + :keyword skip: Optional num entries to skip. Default value is 0. + :paramtype skip: int + :keyword top: Optional num entries to show. Default value is 50. + :paramtype top: int + :keyword sort_key: Optional key by which to sort. Default value is None. + :paramtype sort_key: str + :keyword sort_value: Optional sort value for pagination. Default value is None. + :paramtype sort_value: str + :return: An iterator like instance of StaticCidr + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.StaticCidr] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.StaticCidr]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -25303,9 +25837,16 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_ip_groups_list_by_resource_group_request( + _request = build_static_cidrs_list_request( resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + pool_name=pool_name, subscription_id=self._config.subscription_id, + skip_token=skip_token, + skip=skip, + top=top, + sort_key=sort_key, + sort_value=sort_value, api_version=api_version, headers=_headers, params=_params, @@ -25331,7 +25872,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.IpGroup], + List[_models.StaticCidr], deserialized.get("value", []), ) if cls: @@ -25350,7 +25891,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25359,20 +25900,41 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpGroup"]: - """Gets all IpGroups in a subscription. - :return: An iterator like instance of IpGroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) +class IpAllocationsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`ip_allocations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, ip_allocation_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.IpAllocation: + """Gets the specified IpAllocation by resource group. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: IpAllocation. The IpAllocation is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpAllocation + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -25381,133 +25943,17 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpGroup"]: } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_ip_groups_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.IpGroup], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.Error, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class LoadBalancersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`load_balancers` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - @api_version_validation( - params_added_on={"2025-07-01": ["detail_level"]}, - api_versions_list=["2025-05-01", "2025-07-01"], - ) - async def get( - self, - resource_group_name: str, - load_balancer_name: str, - *, - expand: Optional[str] = None, - detail_level: Optional[Union[str, _models.LoadBalancerDetailLevel]] = None, - **kwargs: Any - ) -> _models.LoadBalancer: - """Gets the specified load balancer. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :keyword detail_level: Controls verbosity of the returned load balancer resource. When set to - 'Reduced', read-only back-reference collections (e.g., rules referencing - frontendIPConfigurations) are omitted from the response. "Reduced" Default value is None. - :paramtype detail_level: str or ~azure.mgmt.network.models.LoadBalancerDetailLevel - :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LoadBalancer - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) - _request = build_load_balancers_get_request( + _request = build_ip_allocations_get_request( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, subscription_id=self._config.subscription_id, expand=expand, - detail_level=detail_level, api_version=api_version, headers=_headers, params=_params, @@ -25541,7 +25987,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.LoadBalancer, response.json()) + deserialized = _deserialize(_models.IpAllocation, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -25551,8 +25997,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - load_balancer_name: str, - parameters: Union[_models.LoadBalancer, JSON, IO[bytes]], + ip_allocation_name: str, + parameters: Union[_models.IpAllocation, _types.IpAllocation, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -25566,7 +26012,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -25577,9 +26023,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_load_balancers_create_or_update_request( + _request = build_ip_allocations_create_or_update_request( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -25630,28 +26076,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - load_balancer_name: str, - parameters: _models.LoadBalancer, + ip_allocation_name: str, + parameters: _models.IpAllocation, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LoadBalancer]: - """Creates or updates a load balancer. + ) -> AsyncLROPoller[_models.IpAllocation]: + """Creates or updates an IpAllocation in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the create or update load balancer operation. + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancer + :type parameters: ~azure.mgmt.network.models.IpAllocation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is + :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25659,28 +26105,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - load_balancer_name: str, - parameters: JSON, + ip_allocation_name: str, + parameters: _types.IpAllocation, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LoadBalancer]: - """Creates or updates a load balancer. + ) -> AsyncLROPoller[_models.IpAllocation]: + """Creates or updates an IpAllocation in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the create or update load balancer operation. + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.IpAllocation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is + :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25688,28 +26134,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - load_balancer_name: str, + ip_allocation_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LoadBalancer]: - """Creates or updates a load balancer. + ) -> AsyncLROPoller[_models.IpAllocation]: + """Creates or updates an IpAllocation in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the create or update load balancer operation. + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is + :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25717,38 +26163,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - load_balancer_name: str, - parameters: Union[_models.LoadBalancer, JSON, IO[bytes]], + ip_allocation_name: str, + parameters: Union[_models.IpAllocation, _types.IpAllocation, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.LoadBalancer]: - """Creates or updates a load balancer. + ) -> AsyncLROPoller[_models.IpAllocation]: + """Creates or updates an IpAllocation in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the create or update load balancer operation. Is one - of the following types: LoadBalancer, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancer or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. Is + either a IpAllocation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IpAllocation or + ~azure.mgmt.network.types.IpAllocation or IO[bytes] + :return: An instance of AsyncLROPoller that returns IpAllocation. The IpAllocation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) + cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -25762,7 +26209,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.LoadBalancer, response.json()) + deserialized = _deserialize(_models.IpAllocation, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -25780,13 +26227,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.LoadBalancer].from_continuation_token( + return AsyncLROPoller[_models.IpAllocation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.LoadBalancer]( + return AsyncLROPoller[_models.IpAllocation]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -25794,26 +26241,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - load_balancer_name: str, + ip_allocation_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.LoadBalancer: - """Updates a load balancer tags. + ) -> _models.IpAllocation: + """Updates a IpAllocation tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to update load balancer tags. Required. + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to update IpAllocation tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LoadBalancer + :return: IpAllocation. The IpAllocation is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpAllocation :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25821,26 +26268,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - load_balancer_name: str, - parameters: JSON, + ip_allocation_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.LoadBalancer: - """Updates a load balancer tags. + ) -> _models.IpAllocation: + """Updates a IpAllocation tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to update load balancer tags. Required. - :type parameters: JSON + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to update IpAllocation tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LoadBalancer + :return: IpAllocation. The IpAllocation is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpAllocation :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25848,26 +26295,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - load_balancer_name: str, + ip_allocation_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.LoadBalancer: - """Updates a load balancer tags. + ) -> _models.IpAllocation: + """Updates a IpAllocation tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to update load balancer tags. Required. + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to update IpAllocation tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LoadBalancer + :return: IpAllocation. The IpAllocation is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpAllocation :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25875,22 +26322,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - load_balancer_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + ip_allocation_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.LoadBalancer: - """Updates a load balancer tags. + ) -> _models.IpAllocation: + """Updates a IpAllocation tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to update load balancer tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LoadBalancer + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str + :param parameters: Parameters supplied to update IpAllocation tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: IpAllocation. The IpAllocation is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpAllocation :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -25904,9 +26352,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) + cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -25915,9 +26363,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_load_balancers_update_tags_request( + _request = build_ip_allocations_update_tags_request( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -25954,7 +26402,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.LoadBalancer, response.json()) + deserialized = _deserialize(_models.IpAllocation, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -25962,7 +26410,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, load_balancer_name: str, **kwargs: Any + self, resource_group_name: str, ip_allocation_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -25975,12 +26423,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_load_balancers_delete_request( + _request = build_ip_allocations_delete_request( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -26025,15 +26473,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, load_balancer_name: str, **kwargs: Any + self, resource_group_name: str, ip_allocation_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified load balancer. + """Deletes the specified IpAllocation. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str + :param ip_allocation_name: The name of the IpAllocation. Required. + :type ip_allocation_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -26041,7 +26489,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26049,7 +26497,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, + ip_allocation_name=ip_allocation_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -26085,21 +26533,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.LoadBalancer"]: - """Gets all the load balancers in a resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.IpAllocation"]: + """Gets all IpAllocations in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of LoadBalancer - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LoadBalancer] + :return: An iterator like instance of IpAllocation + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -26112,7 +26560,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_load_balancers_list_request( + _request = build_ip_allocations_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -26140,7 +26588,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.LoadBalancer], + List[_models.IpAllocation], deserialized.get("value", []), ) if cls: @@ -26169,18 +26617,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.LoadBalancer"]: - """Gets all the load balancers in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpAllocation"]: + """Gets all IpAllocations in a subscription. - :return: An iterator like instance of LoadBalancer - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LoadBalancer] + :return: An iterator like instance of IpAllocation + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpAllocation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -26193,7 +26641,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.LoadBalancer"]: def prepare_request(next_link=None): if not next_link: - _request = build_load_balancers_list_all_request( + _request = build_ip_allocations_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -26220,7 +26668,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.LoadBalancer], + List[_models.IpAllocation], deserialized.get("value", []), ) if cls: @@ -26248,104 +26696,40 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @overload - async def migrate_to_ip_based( - self, - group_name: str, - load_balancer_name: str, - parameters: Optional[_models.MigrateLoadBalancerToIpBasedRequest] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MigratedPools: - """Migrate load balancer to IP Based. - - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. - :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: MigratedPools. The MigratedPools is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.MigratedPools - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def migrate_to_ip_based( - self, - group_name: str, - load_balancer_name: str, - parameters: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MigratedPools: - """Migrate load balancer to IP Based. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: MigratedPools. The MigratedPools is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.MigratedPools - :raises ~azure.core.exceptions.HttpResponseError: - """ +class IpGroupsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. - @overload - async def migrate_to_ip_based( - self, - group_name: str, - load_balancer_name: str, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.MigratedPools: - """Migrate load balancer to IP Based. + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`ip_groups` attribute. + """ - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: MigratedPools. The MigratedPools is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.MigratedPools - :raises ~azure.core.exceptions.HttpResponseError: - """ + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def migrate_to_ip_based( - self, - group_name: str, - load_balancer_name: str, - parameters: Optional[Union[_models.MigrateLoadBalancerToIpBasedRequest, JSON, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.MigratedPools: - """Migrate load balancer to IP Based. + async def get( + self, resource_group_name: str, ip_groups_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.IpGroup: + """Gets the specified ipGroups. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param parameters: Parameters supplied to the migrateToIpBased Api. Is one of the following - types: MigrateLoadBalancerToIpBasedRequest, JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest or JSON or - IO[bytes] - :return: MigratedPools. The MigratedPools is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.MigratedPools + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :keyword expand: Expands resourceIds (of Firewalls/Network Security Groups etc.) back + referenced by the IpGroups resource. Default value is None. + :paramtype expand: str + :return: IpGroup. The IpGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -26356,31 +26740,18 @@ async def migrate_to_ip_based( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[_models.MigratedPools] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if parameters else None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) - _request = build_load_balancers_migrate_to_ip_based_request( - group_name=group_name, - load_balancer_name=load_balancer_name, + _request = build_ip_groups_get_request( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -26405,7 +26776,7 @@ async def migrate_to_ip_based( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26413,19 +26784,18 @@ async def migrate_to_ip_based( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.MigratedPools, response.json()) + deserialized = _deserialize(_models.IpGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name-too-long + async def _create_or_update_initial( self, - group_name: str, - load_balancer_name: str, - backend_pool_name: str, - parameters: Union[_models.QueryInboundNatRulePortMappingRequest, JSON, IO[bytes]], + resource_group_name: str, + ip_groups_name: str, + parameters: Union[_models.IpGroup, _types.IpGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -26439,7 +26809,7 @@ async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -26450,10 +26820,9 @@ async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name- else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_load_balancers_list_inbound_nat_rule_port_mappings_request( - group_name=group_name, - load_balancer_name=load_balancer_name, - backend_pool_name=backend_pool_name, + _request = build_ip_groups_create_or_update_request( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -26474,21 +26843,23 @@ async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name- response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -26499,139 +26870,126 @@ async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name- return deserialized # type: ignore @overload - async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long + async def begin_create_or_update( self, - group_name: str, - load_balancer_name: str, - backend_pool_name: str, - parameters: _models.QueryInboundNatRulePortMappingRequest, + resource_group_name: str, + ip_groups_name: str, + parameters: _models.IpGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: - """List of inbound NAT rule port mappings. + ) -> AsyncLROPoller[_models.IpGroup]: + """Creates or updates an ipGroups in a specified resource group. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param backend_pool_name: The name of the backend address pool. Required. - :type backend_pool_name: str - :param parameters: Query inbound NAT rule port mapping request. Required. - :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the create or update IpGroups operation. Required. + :type parameters: ~azure.mgmt.network.models.IpGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. - The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] + :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long + async def begin_create_or_update( self, - group_name: str, - load_balancer_name: str, - backend_pool_name: str, - parameters: JSON, + resource_group_name: str, + ip_groups_name: str, + parameters: _types.IpGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: - """List of inbound NAT rule port mappings. + ) -> AsyncLROPoller[_models.IpGroup]: + """Creates or updates an ipGroups in a specified resource group. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param backend_pool_name: The name of the backend address pool. Required. - :type backend_pool_name: str - :param parameters: Query inbound NAT rule port mapping request. Required. - :type parameters: JSON + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the create or update IpGroups operation. Required. + :type parameters: ~azure.mgmt.network.types.IpGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. - The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] + :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long + async def begin_create_or_update( self, - group_name: str, - load_balancer_name: str, - backend_pool_name: str, + resource_group_name: str, + ip_groups_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: - """List of inbound NAT rule port mappings. + ) -> AsyncLROPoller[_models.IpGroup]: + """Creates or updates an ipGroups in a specified resource group. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param backend_pool_name: The name of the backend address pool. Required. - :type backend_pool_name: str - :param parameters: Query inbound NAT rule port mapping request. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the create or update IpGroups operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. - The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] + :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long + async def begin_create_or_update( self, - group_name: str, - load_balancer_name: str, - backend_pool_name: str, - parameters: Union[_models.QueryInboundNatRulePortMappingRequest, JSON, IO[bytes]], + resource_group_name: str, + ip_groups_name: str, + parameters: Union[_models.IpGroup, _types.IpGroup, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: - """List of inbound NAT rule port mappings. + ) -> AsyncLROPoller[_models.IpGroup]: + """Creates or updates an ipGroups in a specified resource group. - :param group_name: Required. - :type group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :param backend_pool_name: The name of the backend address pool. Required. - :type backend_pool_name: str - :param parameters: Query inbound NAT rule port mapping request. Is one of the following types: - QueryInboundNatRulePortMappingRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest or JSON or + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the create or update IpGroups operation. Is either a + IpGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IpGroup or ~azure.mgmt.network.types.IpGroup or IO[bytes] - :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. - The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] + :return: An instance of AsyncLROPoller that returns IpGroup. The IpGroup is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.IpGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BackendAddressInboundNatRulePortMappings] = kwargs.pop("cls", None) + cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._list_inbound_nat_rule_port_mappings_initial( - group_name=group_name, - load_balancer_name=load_balancer_name, - backend_pool_name=backend_pool_name, + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -26645,7 +27003,7 @@ async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BackendAddressInboundNatRulePortMappings, response.json()) + deserialized = _deserialize(_models.IpGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -26663,19 +27021,120 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings].from_continuation_token( + return AsyncLROPoller[_models.IpGroup].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]( + return AsyncLROPoller[_models.IpGroup]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _swap_public_ip_addresses_initial( - self, location: str, parameters: Union[_models.LoadBalancerVipSwapRequest, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncIterator[bytes]: + @overload + async def update_groups( + self, + resource_group_name: str, + ip_groups_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IpGroup: + """Updates tags of an IpGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the update ipGroups operation. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IpGroup. The IpGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_groups( + self, + resource_group_name: str, + ip_groups_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IpGroup: + """Updates tags of an IpGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the update ipGroups operation. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: IpGroup. The IpGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_groups( + self, + resource_group_name: str, + ip_groups_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.IpGroup: + """Updates tags of an IpGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the update ipGroups operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: IpGroup. The IpGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_groups( + self, + resource_group_name: str, + ip_groups_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.IpGroup: + """Updates tags of an IpGroups resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str + :param parameters: Parameters supplied to the update ipGroups operation. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: IpGroup. The IpGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.IpGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -26687,9 +27146,9 @@ async def _swap_public_ip_addresses_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -26698,8 +27157,9 @@ async def _swap_public_ip_addresses_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_load_balancers_swap_public_ip_addresses_request( - location=location, + _request = build_ip_groups_update_groups_request( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -26712,6 +27172,67 @@ async def _swap_public_ip_addresses_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IpGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, ip_groups_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_ip_groups_delete_request( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + _decompress = kwargs.pop("decompress", True) _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access @@ -26720,14 +27241,14 @@ async def _swap_public_ip_addresses_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26744,95 +27265,32 @@ async def _swap_public_ip_addresses_initial( return deserialized # type: ignore - @overload - async def begin_swap_public_ip_addresses( - self, - location: str, - parameters: _models.LoadBalancerVipSwapRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Swaps VIPs between two load balancers. + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, ip_groups_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes the specified ipGroups. - :param location: The name of the Azure region. Required. - :type location: str - :param parameters: Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_swap_public_ip_addresses( - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Swaps VIPs between two load balancers. - - :param location: The name of the Azure region. Required. - :type location: str - :param parameters: Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_swap_public_ip_addresses( - self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Swaps VIPs between two load balancers. - - :param location: The name of the Azure region. Required. - :type location: str - :param parameters: Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_swap_public_ip_addresses( - self, location: str, parameters: Union[_models.LoadBalancerVipSwapRequest, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Swaps VIPs between two load balancers. - - :param location: The name of the Azure region. Required. - :type location: str - :param parameters: Is one of the following types: LoadBalancerVipSwapRequest, JSON, IO[bytes] + :param resource_group_name: The name of the resource group. The name is case insensitive. Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest or JSON or IO[bytes] + :type resource_group_name: str + :param ip_groups_name: The name of the ipGroups. Required. + :type ip_groups_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._swap_public_ip_addresses_initial( - location=location, - parameters=parameters, + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + ip_groups_name=ip_groups_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -26866,15 +27324,179 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.IpGroup"]: + """Gets all IpGroups in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of IpGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ip_groups_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.IpGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.IpGroup"]: + """Gets all IpGroups in a subscription. + + :return: An iterator like instance of IpGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.IpGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_ip_groups_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.IpGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + -class InboundNatRulesOperations: +class LoadBalancersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`inbound_nat_rules` attribute. + :attr:`load_balancers` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -26885,28 +27507,34 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async + @api_version_validation( + params_added_on={"2025-07-01": ["detail_level"]}, + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], + ) async def get( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, *, expand: Optional[str] = None, + detail_level: Optional[Union[str, _models.LoadBalancerDetailLevel]] = None, **kwargs: Any - ) -> _models.InboundNatRule: - """Gets the specified load balancer inbound NAT rule. + ) -> _models.LoadBalancer: + """Gets the specified load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str :keyword expand: Expands referenced resources. Default value is None. :paramtype expand: str - :return: InboundNatRule. The InboundNatRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InboundNatRule + :keyword detail_level: Controls verbosity of the returned load balancer resource. When set to + 'Reduced', read-only back-reference collections (e.g., rules referencing + frontendIPConfigurations) are omitted from the response. "Reduced" Default value is None. + :paramtype detail_level: str or ~azure.mgmt.network.models.LoadBalancerDetailLevel + :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LoadBalancer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -26920,15 +27548,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) - _request = build_inbound_nat_rules_get_request( + _request = build_load_balancers_get_request( resource_group_name=resource_group_name, load_balancer_name=load_balancer_name, - inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, expand=expand, + detail_level=detail_level, api_version=api_version, headers=_headers, params=_params, @@ -26962,7 +27590,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.InboundNatRule, response.json()) + deserialized = _deserialize(_models.LoadBalancer, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -26973,8 +27601,7 @@ async def _create_or_update_initial( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, - inbound_nat_rule_parameters: Union[_models.InboundNatRule, JSON, IO[bytes]], + parameters: Union[_models.LoadBalancer, _types.LoadBalancer, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -26988,21 +27615,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(inbound_nat_rule_parameters, (IOBase, bytes)): - _content = inbound_nat_rule_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(inbound_nat_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_inbound_nat_rules_create_or_update_request( + _request = build_load_balancers_create_or_update_request( resource_group_name=resource_group_name, load_balancer_name=load_balancer_name, - inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -27054,30 +27680,27 @@ async def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, - inbound_nat_rule_parameters: _models.InboundNatRule, + parameters: _models.LoadBalancer, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.InboundNatRule]: - """Creates or updates a load balancer inbound NAT rule. + ) -> AsyncLROPoller[_models.LoadBalancer]: + """Creates or updates a load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str - :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT - rule operation. Required. - :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule + :param parameters: Parameters supplied to the create or update load balancer operation. + Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27086,30 +27709,27 @@ async def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, - inbound_nat_rule_parameters: JSON, + parameters: _types.LoadBalancer, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.InboundNatRule]: - """Creates or updates a load balancer inbound NAT rule. + ) -> AsyncLROPoller[_models.LoadBalancer]: + """Creates or updates a load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str - :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT - rule operation. Required. - :type inbound_nat_rule_parameters: JSON + :param parameters: Parameters supplied to the create or update load balancer operation. + Required. + :type parameters: ~azure.mgmt.network.types.LoadBalancer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27118,30 +27738,27 @@ async def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, - inbound_nat_rule_parameters: IO[bytes], + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.InboundNatRule]: - """Creates or updates a load balancer inbound NAT rule. + ) -> AsyncLROPoller[_models.LoadBalancer]: + """Creates or updates a load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str - :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT - rule operation. Required. - :type inbound_nat_rule_parameters: IO[bytes] + :param parameters: Parameters supplied to the create or update load balancer operation. + Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27150,34 +27767,31 @@ async def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - inbound_nat_rule_name: str, - inbound_nat_rule_parameters: Union[_models.InboundNatRule, JSON, IO[bytes]], + parameters: Union[_models.LoadBalancer, _types.LoadBalancer, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.InboundNatRule]: - """Creates or updates a load balancer inbound NAT rule. + ) -> AsyncLROPoller[_models.LoadBalancer]: + """Creates or updates a load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str - :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT - rule operation. Is one of the following types: InboundNatRule, JSON, IO[bytes] Required. - :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + :param parameters: Parameters supplied to the create or update load balancer operation. Is + either a LoadBalancer type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancer or + ~azure.mgmt.network.types.LoadBalancer or IO[bytes] + :return: An instance of AsyncLROPoller that returns LoadBalancer. The LoadBalancer is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LoadBalancer] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) + cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -27185,8 +27799,7 @@ async def begin_create_or_update( raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, load_balancer_name=load_balancer_name, - inbound_nat_rule_name=inbound_nat_rule_name, - inbound_nat_rule_parameters=inbound_nat_rule_parameters, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -27199,7 +27812,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.InboundNatRule, response.json()) + deserialized = _deserialize(_models.LoadBalancer, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -27217,18 +27830,190 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.InboundNatRule].from_continuation_token( + return AsyncLROPoller[_models.LoadBalancer].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.InboundNatRule]( + return AsyncLROPoller[_models.LoadBalancer]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @overload + async def update_tags( + self, + resource_group_name: str, + load_balancer_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LoadBalancer: + """Updates a load balancer tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to update load balancer tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LoadBalancer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + load_balancer_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LoadBalancer: + """Updates a load balancer tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to update load balancer tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LoadBalancer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + load_balancer_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.LoadBalancer: + """Updates a load balancer tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to update load balancer tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LoadBalancer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + load_balancer_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.LoadBalancer: + """Updates a load balancer tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to update load balancer tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LoadBalancer + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_load_balancers_update_tags_request( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.LoadBalancer, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + async def _delete_initial( - self, resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, **kwargs: Any + self, resource_group_name: str, load_balancer_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -27241,13 +28026,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_inbound_nat_rules_delete_request( + _request = build_load_balancers_delete_request( resource_group_name=resource_group_name, load_balancer_name=load_balancer_name, - inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -27292,17 +28076,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, **kwargs: Any + self, resource_group_name: str, load_balancer_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified load balancer inbound NAT rule. + """Deletes the specified load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. - :type inbound_nat_rule_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -27310,7 +28092,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -27319,7 +28101,6 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, load_balancer_name=load_balancer_name, - inbound_nat_rule_name=inbound_nat_rule_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -27355,25 +28136,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, load_balancer_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.InboundNatRule"]: - """Gets all the inbound NAT rules in a load balancer. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.LoadBalancer"]: + """Gets all the load balancers in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param load_balancer_name: The name of the load balancer. Required. - :type load_balancer_name: str - :return: An iterator like instance of InboundNatRule - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InboundNatRule] + :return: An iterator like instance of LoadBalancer + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LoadBalancer] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.InboundNatRule]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -27386,9 +28163,8 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_inbound_nat_rules_list_request( + _request = build_load_balancers_list_request( resource_group_name=resource_group_name, - load_balancer_name=load_balancer_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -27415,7 +28191,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.InboundNatRule], + List[_models.LoadBalancer], deserialized.get("value", []), ) if cls: @@ -27443,39 +28219,186 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.LoadBalancer"]: + """Gets all the load balancers in a subscription. -class NatGatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. + :return: An iterator like instance of LoadBalancer + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LoadBalancer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`nat_gateways` attribute. - """ + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_load_balancers_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.LoadBalancer], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def migrate_to_ip_based( + self, + group_name: str, + load_balancer_name: str, + parameters: Optional[_models.MigrateLoadBalancerToIpBasedRequest] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MigratedPools: + """Migrate load balancer to IP Based. + + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. + :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MigratedPools. The MigratedPools is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.MigratedPools + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def migrate_to_ip_based( + self, + group_name: str, + load_balancer_name: str, + parameters: Optional[_types.MigrateLoadBalancerToIpBasedRequest] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MigratedPools: + """Migrate load balancer to IP Based. + + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. + :type parameters: ~azure.mgmt.network.types.MigrateLoadBalancerToIpBasedRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: MigratedPools. The MigratedPools is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.MigratedPools + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def migrate_to_ip_based( + self, + group_name: str, + load_balancer_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.MigratedPools: + """Migrate load balancer to IP Based. + + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: MigratedPools. The MigratedPools is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.MigratedPools + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def get( - self, resource_group_name: str, nat_gateway_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.NatGateway: - """Gets the specified nat gateway in a specified resource group. + async def migrate_to_ip_based( + self, + group_name: str, + load_balancer_name: str, + parameters: Optional[ + Union[_models.MigrateLoadBalancerToIpBasedRequest, _types.MigrateLoadBalancerToIpBasedRequest, IO[bytes]] + ] = None, + **kwargs: Any + ) -> _models.MigratedPools: + """Migrate load balancer to IP Based. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: NatGateway. The NatGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NatGateway + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param parameters: Parameters supplied to the migrateToIpBased Api. Is either a + MigrateLoadBalancerToIpBasedRequest type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest or + ~azure.mgmt.network.types.MigrateLoadBalancerToIpBasedRequest or IO[bytes] + :return: MigratedPools. The MigratedPools is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.MigratedPools :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -27486,18 +28409,31 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[_models.MigratedPools] = kwargs.pop("cls", None) - _request = build_nat_gateways_get_request( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, + content_type = content_type or "application/json" if parameters else None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_load_balancers_migrate_to_ip_based_request( + group_name=group_name, + load_balancer_name=load_balancer_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -27530,18 +28466,21 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NatGateway, response.json()) + deserialized = _deserialize(_models.MigratedPools, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + async def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name-too-long self, - resource_group_name: str, - nat_gateway_name: str, - parameters: Union[_models.NatGateway, JSON, IO[bytes]], + group_name: str, + load_balancer_name: str, + backend_pool_name: str, + parameters: Union[ + _models.QueryInboundNatRulePortMappingRequest, _types.QueryInboundNatRulePortMappingRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -27555,7 +28494,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -27566,9 +28505,10 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_nat_gateways_create_or_update_request( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, + _request = build_load_balancers_list_inbound_nat_rule_port_mappings_request( + group_name=group_name, + load_balancer_name=load_balancer_name, + backend_pool_name=backend_pool_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -27589,7 +28529,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201, 202]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -27602,13 +28542,8 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -27619,125 +28554,141 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long self, - resource_group_name: str, - nat_gateway_name: str, - parameters: _models.NatGateway, + group_name: str, + load_balancer_name: str, + backend_pool_name: str, + parameters: _models.QueryInboundNatRulePortMappingRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NatGateway]: - """Creates or updates a nat gateway. + ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: + """List of inbound NAT rule port mappings. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to the create or update nat gateway operation. Required. - :type parameters: ~azure.mgmt.network.models.NatGateway + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param backend_pool_name: The name of the backend address pool. Required. + :type backend_pool_name: str + :param parameters: Query inbound NAT rule port mapping request. Required. + :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] + :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. + The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long self, - resource_group_name: str, - nat_gateway_name: str, - parameters: JSON, + group_name: str, + load_balancer_name: str, + backend_pool_name: str, + parameters: _types.QueryInboundNatRulePortMappingRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NatGateway]: - """Creates or updates a nat gateway. + ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: + """List of inbound NAT rule port mappings. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to the create or update nat gateway operation. Required. - :type parameters: JSON + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param backend_pool_name: The name of the backend address pool. Required. + :type backend_pool_name: str + :param parameters: Query inbound NAT rule port mapping request. Required. + :type parameters: ~azure.mgmt.network.types.QueryInboundNatRulePortMappingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] + :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. + The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long self, - resource_group_name: str, - nat_gateway_name: str, + group_name: str, + load_balancer_name: str, + backend_pool_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NatGateway]: - """Creates or updates a nat gateway. + ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: + """List of inbound NAT rule port mappings. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to the create or update nat gateway operation. Required. + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param backend_pool_name: The name of the backend address pool. Required. + :type backend_pool_name: str + :param parameters: Query inbound NAT rule port mapping request. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] + :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. + The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long self, - resource_group_name: str, - nat_gateway_name: str, - parameters: Union[_models.NatGateway, JSON, IO[bytes]], + group_name: str, + load_balancer_name: str, + backend_pool_name: str, + parameters: Union[ + _models.QueryInboundNatRulePortMappingRequest, _types.QueryInboundNatRulePortMappingRequest, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.NatGateway]: - """Creates or updates a nat gateway. + ) -> AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]: + """List of inbound NAT rule port mappings. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to the create or update nat gateway operation. Is one of - the following types: NatGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NatGateway or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] + :param group_name: Required. + :type group_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param backend_pool_name: The name of the backend address pool. Required. + :type backend_pool_name: str + :param parameters: Query inbound NAT rule port mapping request. Is either a + QueryInboundNatRulePortMappingRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest or + ~azure.mgmt.network.types.QueryInboundNatRulePortMappingRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns BackendAddressInboundNatRulePortMappings. + The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressInboundNatRulePortMappings] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.BackendAddressInboundNatRulePortMappings] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, + raw_result = await self._list_inbound_nat_rule_port_mappings_initial( + group_name=group_name, + load_balancer_name=load_balancer_name, + backend_pool_name=backend_pool_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -27751,7 +28702,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.NatGateway, response.json()) + deserialized = _deserialize(_models.BackendAddressInboundNatRulePortMappings, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -27769,119 +28720,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NatGateway].from_continuation_token( + return AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NatGateway]( + return AsyncLROPoller[_models.BackendAddressInboundNatRulePortMappings]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - nat_gateway_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NatGateway: - """Updates nat gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to update nat gateway tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NatGateway. The NatGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NatGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - nat_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NatGateway: - """Updates nat gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to update nat gateway tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NatGateway. The NatGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NatGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - nat_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NatGateway: - """Updates nat gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to update nat gateway tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NatGateway. The NatGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NatGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( + async def _swap_public_ip_addresses_initial( self, - resource_group_name: str, - nat_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + location: str, + parameters: Union[_models.LoadBalancerVipSwapRequest, _types.LoadBalancerVipSwapRequest, IO[bytes]], **kwargs: Any - ) -> _models.NatGateway: - """Updates nat gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str - :param parameters: Parameters supplied to update nat gateway tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: NatGateway. The NatGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NatGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -27893,9 +28747,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -27904,10 +28758,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_nat_gateways_update_tags_request( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, - subscription_id=self._config.subscription_id, + _request = build_load_balancers_swap_public_ip_addresses_request( + location=location, + subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, content=_content, @@ -27919,67 +28772,6 @@ async def update_tags( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NatGateway, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, nat_gateway_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_nat_gateways_delete_request( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access @@ -27988,7 +28780,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -28012,34 +28804,103 @@ async def _delete_initial( return deserialized # type: ignore + @overload + async def begin_swap_public_ip_addresses( + self, + location: str, + parameters: _models.LoadBalancerVipSwapRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Swaps VIPs between two load balancers. + + :param location: The name of the Azure region. Required. + :type location: str + :param parameters: Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_swap_public_ip_addresses( + self, + location: str, + parameters: _types.LoadBalancerVipSwapRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Swaps VIPs between two load balancers. + + :param location: The name of the Azure region. Required. + :type location: str + :param parameters: Required. + :type parameters: ~azure.mgmt.network.types.LoadBalancerVipSwapRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_swap_public_ip_addresses( + self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncLROPoller[None]: + """Swaps VIPs between two load balancers. + + :param location: The name of the Azure region. Required. + :type location: str + :param parameters: Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, nat_gateway_name: str, **kwargs: Any + async def begin_swap_public_ip_addresses( + self, + location: str, + parameters: Union[_models.LoadBalancerVipSwapRequest, _types.LoadBalancerVipSwapRequest, IO[bytes]], + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified nat gateway. + """Swaps VIPs between two load balancers. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param nat_gateway_name: The name of the nat gateway. Required. - :type nat_gateway_name: str + :param location: The name of the Azure region. Required. + :type location: str + :param parameters: Is either a LoadBalancerVipSwapRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest or + ~azure.mgmt.network.types.LoadBalancerVipSwapRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - nat_gateway_name=nat_gateway_name, + raw_result = await self._swap_public_ip_addresses_initial( + location=location, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -28073,179 +28934,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NatGateway"]: - """Gets all nat gateways in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of NatGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NatGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_nat_gateways_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NatGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NatGateway"]: - """Gets all the Nat Gateways in a subscription. - - :return: An iterator like instance of NatGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NatGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_nat_gateways_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NatGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - -class NetworkInterfaceIPConfigurationsOperations: # pylint: disable=name-too-long +class InboundNatRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_interface_ip_configurations` attribute. + :attr:`inbound_nat_rules` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -28257,20 +28954,27 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_interface_name: str, ip_configuration_name: str, **kwargs: Any - ) -> _models.NetworkInterfaceIPConfiguration: - """Gets the specified network interface ip configuration. + self, + resource_group_name: str, + load_balancer_name: str, + inbound_nat_rule_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.InboundNatRule: + """Gets the specified load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param ip_configuration_name: The name of the ip configuration. Required. - :type ip_configuration_name: str - :return: NetworkInterfaceIPConfiguration. The NetworkInterfaceIPConfiguration is compatible - with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkInterfaceIPConfiguration + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: InboundNatRule. The InboundNatRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InboundNatRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -28284,14 +28988,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkInterfaceIPConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) - _request = build_network_interface_ip_configurations_get_request( + _request = build_inbound_nat_rules_get_request( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - ip_configuration_name=ip_configuration_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -28325,140 +29030,21 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkInterfaceIPConfiguration, response.json()) + deserialized = _deserialize(_models.InboundNatRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace - def list( - self, resource_group_name: str, network_interface_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkInterfaceIPConfiguration"]: - """Get all ip configurations in a network interface. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :return: An iterator like instance of NetworkInterfaceIPConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkInterfaceIPConfiguration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkInterfaceIPConfiguration]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_interface_ip_configurations_list_request( - resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkInterfaceIPConfiguration], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class NetworkInterfaceTapConfigurationsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_interface_tap_configurations` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any - ) -> _models.NetworkInterfaceTapConfiguration: - """Get the specified tap configuration on a network interface. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str - :return: NetworkInterfaceTapConfiguration. The NetworkInterfaceTapConfiguration is compatible - with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ + async def _create_or_update_initial( + self, + resource_group_name: str, + load_balancer_name: str, + inbound_nat_rule_name: str, + inbound_nat_rule_parameters: Union[_models.InboundNatRule, _types.InboundNatRule, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -28467,18 +29053,28 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_interface_tap_configurations_get_request( + content_type = content_type or "application/json" + _content = None + if isinstance(inbound_nat_rule_parameters, (IOBase, bytes)): + _content = inbound_nat_rule_parameters + else: + _content = json.dumps(inbound_nat_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_inbound_nat_rules_create_or_update_request( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - tap_configuration_name=tap_configuration_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -28488,84 +29084,7 @@ async def get( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkInterfaceTapConfiguration, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - network_interface_name: str, - tap_configuration_name: str, - tap_configuration_parameters: Union[_models.NetworkInterfaceTapConfiguration, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(tap_configuration_parameters, (IOBase, bytes)): - _content = tap_configuration_parameters - else: - _content = json.dumps(tap_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_network_interface_tap_configurations_create_or_update_request( - resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - tap_configuration_name=tap_configuration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -28602,33 +29121,31 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - network_interface_name: str, - tap_configuration_name: str, - tap_configuration_parameters: _models.NetworkInterfaceTapConfiguration, + load_balancer_name: str, + inbound_nat_rule_name: str, + inbound_nat_rule_parameters: _models.InboundNatRule, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: - """Creates or updates a Tap configuration in the specified NetworkInterface. + ) -> AsyncLROPoller[_models.InboundNatRule]: + """Creates or updates a load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str - :param tap_configuration_parameters: Parameters supplied to the create or update tap - configuration operation. Required. - :type tap_configuration_parameters: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT + rule operation. Required. + :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The - NetworkInterfaceTapConfiguration is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] + :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -28636,33 +29153,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_interface_name: str, - tap_configuration_name: str, - tap_configuration_parameters: JSON, + load_balancer_name: str, + inbound_nat_rule_name: str, + inbound_nat_rule_parameters: _types.InboundNatRule, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: - """Creates or updates a Tap configuration in the specified NetworkInterface. + ) -> AsyncLROPoller[_models.InboundNatRule]: + """Creates or updates a load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str - :param tap_configuration_parameters: Parameters supplied to the create or update tap - configuration operation. Required. - :type tap_configuration_parameters: JSON + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT + rule operation. Required. + :type inbound_nat_rule_parameters: ~azure.mgmt.network.types.InboundNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The - NetworkInterfaceTapConfiguration is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] + :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -28670,33 +29185,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_interface_name: str, - tap_configuration_name: str, - tap_configuration_parameters: IO[bytes], + load_balancer_name: str, + inbound_nat_rule_name: str, + inbound_nat_rule_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: - """Creates or updates a Tap configuration in the specified NetworkInterface. + ) -> AsyncLROPoller[_models.InboundNatRule]: + """Creates or updates a load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str - :param tap_configuration_parameters: Parameters supplied to the create or update tap - configuration operation. Required. - :type tap_configuration_parameters: IO[bytes] + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT + rule operation. Required. + :type inbound_nat_rule_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The - NetworkInterfaceTapConfiguration is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] + :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -28704,47 +29217,44 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_interface_name: str, - tap_configuration_name: str, - tap_configuration_parameters: Union[_models.NetworkInterfaceTapConfiguration, JSON, IO[bytes]], + load_balancer_name: str, + inbound_nat_rule_name: str, + inbound_nat_rule_parameters: Union[_models.InboundNatRule, _types.InboundNatRule, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: - """Creates or updates a Tap configuration in the specified NetworkInterface. + ) -> AsyncLROPoller[_models.InboundNatRule]: + """Creates or updates a load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str - :param tap_configuration_parameters: Parameters supplied to the create or update tap - configuration operation. Is one of the following types: NetworkInterfaceTapConfiguration, JSON, - IO[bytes] Required. - :type tap_configuration_parameters: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration - or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The - NetworkInterfaceTapConfiguration is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT + rule operation. Is either a InboundNatRule type or a IO[bytes] type. Required. + :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule or + ~azure.mgmt.network.types.InboundNatRule or IO[bytes] + :return: An instance of AsyncLROPoller that returns InboundNatRule. The InboundNatRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - tap_configuration_name=tap_configuration_name, - tap_configuration_parameters=tap_configuration_parameters, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, + inbound_nat_rule_parameters=inbound_nat_rule_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -28757,7 +29267,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkInterfaceTapConfiguration, response.json()) + deserialized = _deserialize(_models.InboundNatRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -28775,18 +29285,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NetworkInterfaceTapConfiguration].from_continuation_token( + return AsyncLROPoller[_models.InboundNatRule].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]( + return AsyncLROPoller[_models.InboundNatRule]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any + self, resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -28799,13 +29309,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_interface_tap_configurations_delete_request( + _request = build_inbound_nat_rules_delete_request( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - tap_configuration_name=tap_configuration_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -28850,18 +29360,17 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any + self, resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified tap configuration from the NetworkInterface. + """Deletes the specified load balancer inbound NAT rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :param tap_configuration_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type tap_configuration_name: str + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. + :type inbound_nat_rule_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -28869,7 +29378,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -28877,8 +29386,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, - tap_configuration_name=tap_configuration_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -28915,25 +29424,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list( - self, resource_group_name: str, network_interface_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkInterfaceTapConfiguration"]: - """Get all Tap configurations in a network interface. + self, resource_group_name: str, load_balancer_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.InboundNatRule"]: + """Gets all the inbound NAT rules in a load balancer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_interface_name: The name of the network interface. Required. - :type network_interface_name: str - :return: An iterator like instance of NetworkInterfaceTapConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] + :param load_balancer_name: The name of the load balancer. Required. + :type load_balancer_name: str + :return: An iterator like instance of InboundNatRule + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InboundNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkInterfaceTapConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.InboundNatRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -28946,9 +29454,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_network_interface_tap_configurations_list_request( + _request = build_inbound_nat_rules_list_request( resource_group_name=resource_group_name, - network_interface_name=network_interface_name, + load_balancer_name=load_balancer_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -28975,7 +29483,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkInterfaceTapConfiguration], + List[_models.InboundNatRule], deserialized.get("value", []), ) if cls: @@ -29004,14 +29512,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ManagementGroupNetworkManagerConnectionsOperations: # pylint: disable=name-too-long +class NatGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`management_group_network_manager_connections` attribute. + :attr:`nat_gateways` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -29023,17 +29531,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, management_group_id: str, network_manager_connection_name: str, **kwargs: Any - ) -> _models.NetworkManagerConnection: - """Get a specified connection created by this management group. + self, resource_group_name: str, nat_gateway_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.NatGateway: + """Gets the specified nat gateway in a specified resource group. - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerConnection + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: NatGateway. The NatGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -29047,12 +29557,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) - _request = build_management_group_network_manager_connections_get_request( - management_group_id=management_group_id, - network_manager_connection_name=network_manager_connection_name, + _request = build_nat_gateways_get_request( + resource_group_name=resource_group_name, + nat_gateway_name=nat_gateway_name, + subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -29086,116 +29598,20 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManagerConnection, response.json()) + deserialized = _deserialize(_models.NatGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def create_or_update( - self, - management_group_id: str, - network_manager_connection_name: str, - parameters: _models.NetworkManagerConnection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManagerConnection: - """Create a network manager connection on this management group. - - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - management_group_id: str, - network_manager_connection_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManagerConnection: - """Create a network manager connection on this management group. - - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - management_group_id: str, - network_manager_connection_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkManagerConnection: - """Create a network manager connection on this management group. - - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( + async def _create_or_update_initial( self, - management_group_id: str, - network_manager_connection_name: str, - parameters: Union[_models.NetworkManagerConnection, JSON, IO[bytes]], + resource_group_name: str, + nat_gateway_name: str, + parameters: Union[_models.NatGateway, _types.NatGateway, IO[bytes]], **kwargs: Any - ) -> _models.NetworkManagerConnection: - """Create a network manager connection on this management group. - - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Is one of the following - types: NetworkManagerConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or JSON or IO[bytes] - :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -29207,9 +29623,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -29218,9 +29634,10 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_management_group_network_manager_connections_create_or_update_request( - management_group_id=management_group_id, - network_manager_connection_name=network_manager_connection_name, + _request = build_nat_gateways_create_or_update_request( + resource_group_name=resource_group_name, + nat_gateway_name=nat_gateway_name, + subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, content=_content, @@ -29233,19 +29650,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 201, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -29253,390 +29669,287 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkManagerConnection, response.json()) + response_headers = {} + if response.status_code == 201: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def delete(self, management_group_id: str, network_manager_connection_name: str, **kwargs: Any) -> None: - """Delete specified pending connection created by this management group. + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + nat_gateway_name: str, + parameters: _models.NatGateway, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NatGateway]: + """Creates or updates a nat gateway. - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :param network_manager_connection_name: Name for the network manager connection. Required. - :type network_manager_connection_name: str - :return: None - :rtype: None + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to the create or update nat gateway operation. Required. + :type parameters: ~azure.mgmt.network.models.NatGateway + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_management_group_network_manager_connections_delete_request( - management_group_id=management_group_id, - network_manager_connection_name=network_manager_connection_name, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + nat_gateway_name: str, + parameters: _types.NatGateway, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NatGateway]: + """Creates or updates a nat gateway. - response = pipeline_response.http_response + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to the create or update nat gateway operation. Required. + :type parameters: ~azure.mgmt.network.types.NatGateway + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def list( - self, management_group_id: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkManagerConnection"]: - """List all network manager connections created by this management group. + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + nat_gateway_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NatGateway]: + """Creates or updates a nat gateway. - :param management_group_id: The management group ID. Required. - :type management_group_id: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkManagerConnection - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManagerConnection] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to the create or update nat gateway operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkManagerConnection]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_management_group_network_manager_connections_list_request( - management_group_id=management_group_id, - top=top, - skip_token=skip_token, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkManagerConnection], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class ConnectivityConfigurationsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`connectivity_configurations` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get( - self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any - ) -> _models.ConnectivityConfiguration: - """Gets a Network Connectivity Configuration, specified by the resource group, network manager - name, and connectivity Configuration name. + async def begin_create_or_update( + self, + resource_group_name: str, + nat_gateway_name: str, + parameters: Union[_models.NatGateway, _types.NatGateway, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.NatGateway]: + """Creates or updates a nat gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to the create or update nat gateway operation. Is either + a NatGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NatGateway or ~azure.mgmt.network.types.NatGateway + or IO[bytes] + :return: An instance of AsyncLROPoller that returns NatGateway. The NatGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NatGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + nat_gateway_name=nat_gateway_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NatGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_connectivity_configurations_get_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.ConnectivityConfiguration, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NatGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NatGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - network_manager_name: str, - configuration_name: str, - connectivity_configuration: _models.ConnectivityConfiguration, + nat_gateway_name: str, + parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ConnectivityConfiguration: - """Creates/Updates a new network manager connectivity configuration. + ) -> _models.NatGateway: + """Updates nat gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :param connectivity_configuration: Parameters supplied to create/update a network manager - connectivity configuration. Required. - :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to update nat gateway tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration + :return: NatGateway. The NatGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - network_manager_name: str, - configuration_name: str, - connectivity_configuration: JSON, + nat_gateway_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ConnectivityConfiguration: - """Creates/Updates a new network manager connectivity configuration. + ) -> _models.NatGateway: + """Updates nat gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :param connectivity_configuration: Parameters supplied to create/update a network manager - connectivity configuration. Required. - :type connectivity_configuration: JSON + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to update nat gateway tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration + :return: NatGateway. The NatGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - network_manager_name: str, - configuration_name: str, - connectivity_configuration: IO[bytes], + nat_gateway_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ConnectivityConfiguration: - """Creates/Updates a new network manager connectivity configuration. + ) -> _models.NatGateway: + """Updates nat gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :param connectivity_configuration: Parameters supplied to create/update a network manager - connectivity configuration. Required. - :type connectivity_configuration: IO[bytes] + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to update nat gateway tags. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration + :return: NatGateway. The NatGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def update_tags( self, resource_group_name: str, - network_manager_name: str, - configuration_name: str, - connectivity_configuration: Union[_models.ConnectivityConfiguration, JSON, IO[bytes]], + nat_gateway_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.ConnectivityConfiguration: - """Creates/Updates a new network manager connectivity configuration. + ) -> _models.NatGateway: + """Updates nat gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :param connectivity_configuration: Parameters supplied to create/update a network manager - connectivity configuration. Is one of the following types: ConnectivityConfiguration, JSON, - IO[bytes] Required. - :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration or JSON + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str + :param parameters: Parameters supplied to update nat gateway tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject or IO[bytes] - :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration + :return: NatGateway. The NatGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -29650,21 +29963,20 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(connectivity_configuration, (IOBase, bytes)): - _content = connectivity_configuration + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(connectivity_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connectivity_configurations_create_or_update_request( + _request = build_nat_gateways_update_tags_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, + nat_gateway_name=nat_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -29685,7 +29997,7 @@ async def create_or_update( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -29701,7 +30013,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectivityConfiguration, response.json()) + deserialized = _deserialize(_models.NatGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -29709,13 +30021,7 @@ async def create_or_update( return deserialized # type: ignore async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, nat_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -29728,15 +30034,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_connectivity_configurations_delete_request( + _request = build_nat_gateways_delete_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, + nat_gateway_name=nat_gateway_name, subscription_id=self._config.subscription_id, - force=force, api_version=api_version, headers=_headers, params=_params, @@ -29780,29 +30084,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, nat_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a network manager connectivity configuration, specified by the resource group, network - manager name, and connectivity configuration name. + """Deletes the specified nat gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager connectivity configuration. - Required. - :type configuration_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool + :param nat_gateway_name: The name of the nat gateway. Required. + :type nat_gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -29810,7 +30100,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -29818,9 +30108,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - force=force, + nat_gateway_name=nat_gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -29856,40 +30144,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, - resource_group_name: str, - network_manager_name: str, - *, - top: Optional[int] = None, - skip_token: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.ConnectivityConfiguration"]: - """Lists all the network manager connectivity configuration in a specified network manager. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NatGateway"]: + """Gets all nat gateways in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of ConnectivityConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ConnectivityConfiguration] + :return: An iterator like instance of NatGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NatGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ConnectivityConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -29902,12 +30171,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_connectivity_configurations_list_request( + _request = build_nat_gateways_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -29933,7 +30199,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ConnectivityConfiguration], + List[_models.NatGateway], deserialized.get("value", []), ) if cls: @@ -29961,41 +30227,20 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NatGateway"]: + """Gets all the Nat Gateways in a subscription. -class NetworkGroupsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_groups` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, network_manager_name: str, network_group_name: str, **kwargs: Any - ) -> _models.NetworkGroup: - """Gets the specified network group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkGroup + :return: An iterator like instance of NatGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NatGateway] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -30004,202 +30249,98 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) + _request = build_nat_gateways_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_network_groups_get_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - response = pipeline_response.http_response + return _request - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NatGateway], + deserialized.get("value", []), ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkGroup, response.json()) + async def get_next(next_link=None): + _request = prepare_request(next_link) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - return deserialized # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - @overload - async def create_or_update( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - parameters: _models.NetworkGroup, - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.NetworkGroup: - """Creates or updates a network group. + return pipeline_response - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param parameters: Parameters supplied to the specify which network group need to create. - Required. - :type parameters: ~azure.mgmt.network.models.NetworkGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ + return AsyncItemPaged(get_next, extract_data) - @overload - async def create_or_update( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.NetworkGroup: - """Creates or updates a network group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param parameters: Parameters supplied to the specify which network group need to create. - Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ +class NetworkInterfaceIPConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. - @overload - async def create_or_update( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.NetworkGroup: - """Creates or updates a network group. + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_interface_ip_configurations` attribute. + """ - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param parameters: Parameters supplied to the specify which network group need to create. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def create_or_update( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - parameters: Union[_models.NetworkGroup, JSON, IO[bytes]], - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.NetworkGroup: - """Creates or updates a network group. + async def get( + self, resource_group_name: str, network_interface_name: str, ip_configuration_name: str, **kwargs: Any + ) -> _models.NetworkInterfaceIPConfiguration: + """Gets the specified network interface ip configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param parameters: Parameters supplied to the specify which network group need to create. Is - one of the following types: NetworkGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkGroup or JSON or IO[bytes] - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkGroup + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param ip_configuration_name: The name of the ip configuration. Required. + :type ip_configuration_name: str + :return: NetworkInterfaceIPConfiguration. The NetworkInterfaceIPConfiguration is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkInterfaceIPConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -30208,38 +30349,20 @@ async def create_or_update( 409: ResourceExistsError, 304: ResourceNotModifiedError, } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkInterfaceIPConfiguration] = kwargs.pop("cls", None) - _request = build_network_groups_create_or_update_request( + _request = build_network_interface_ip_configurations_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, + network_interface_name=network_interface_name, + ip_configuration_name=ip_configuration_name, subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -30256,7 +30379,7 @@ async def create_or_update( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -30269,198 +30392,37 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag")) - if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkGroup, response.json()) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_network_groups_delete_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + deserialized = _deserialize(_models.NetworkInterfaceIPConfiguration, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a network group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace def list( - self, - resource_group_name: str, - network_manager_name: str, - *, - top: Optional[int] = None, - skip_token: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkGroup"]: - """Lists the specified network group. + self, resource_group_name: str, network_interface_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkInterfaceIPConfiguration"]: + """Get all ip configurations in a network interface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkGroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkGroup] + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :return: An iterator like instance of NetworkInterfaceIPConfiguration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkInterfaceIPConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkInterfaceIPConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -30473,12 +30435,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_network_groups_list_request( + _request = build_network_interface_ip_configurations_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, + network_interface_name=network_interface_name, subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -30504,7 +30464,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkGroup], + List[_models.NetworkInterfaceIPConfiguration], deserialized.get("value", []), ) if cls: @@ -30533,14 +30493,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class StaticMembersOperations: +class NetworkInterfaceTapConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`static_members` attribute. + :attr:`network_interface_tap_configurations` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -30552,26 +30512,21 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - **kwargs: Any - ) -> _models.StaticMember: - """Gets the specified static member. + self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any + ) -> _models.NetworkInterfaceTapConfiguration: + """Get the specified tap configuration on a network interface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :return: StaticMember. The StaticMember is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticMember + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :return: NetworkInterfaceTapConfiguration. The NetworkInterfaceTapConfiguration is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -30585,14 +30540,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) - _request = build_static_members_get_request( + _request = build_network_interface_tap_configurations_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - static_member_name=static_member_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -30627,140 +30581,287 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.StaticMember, response.json()) + deserialized = _deserialize(_models.NetworkInterfaceTapConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def create_or_update( + async def _create_or_update_initial( self, resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - parameters: _models.StaticMember, - *, - content_type: str = "application/json", + network_interface_name: str, + tap_configuration_name: str, + tap_configuration_parameters: Union[ + _models.NetworkInterfaceTapConfiguration, _types.NetworkInterfaceTapConfiguration, IO[bytes] + ], **kwargs: Any - ) -> _models.StaticMember: - """Creates or updates a static member. + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :param parameters: Parameters supplied to the specify the static member to create. Required. - :type parameters: ~azure.mgmt.network.models.StaticMember + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(tap_configuration_parameters, (IOBase, bytes)): + _content = tap_configuration_parameters + else: + _content = json.dumps(tap_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_interface_tap_configurations_create_or_update_request( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_interface_name: str, + tap_configuration_name: str, + tap_configuration_parameters: _models.NetworkInterfaceTapConfiguration, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: + """Creates or updates a Tap configuration in the specified NetworkInterface. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :param tap_configuration_parameters: Parameters supplied to the create or update tap + configuration operation. Required. + :type tap_configuration_parameters: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: StaticMember. The StaticMember is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticMember + :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The + NetworkInterfaceTapConfiguration is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - parameters: JSON, + network_interface_name: str, + tap_configuration_name: str, + tap_configuration_parameters: _types.NetworkInterfaceTapConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.StaticMember: - """Creates or updates a static member. + ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: + """Creates or updates a Tap configuration in the specified NetworkInterface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :param parameters: Parameters supplied to the specify the static member to create. Required. - :type parameters: JSON + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :param tap_configuration_parameters: Parameters supplied to the create or update tap + configuration operation. Required. + :type tap_configuration_parameters: ~azure.mgmt.network.types.NetworkInterfaceTapConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: StaticMember. The StaticMember is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticMember + :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The + NetworkInterfaceTapConfiguration is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - parameters: IO[bytes], + network_interface_name: str, + tap_configuration_name: str, + tap_configuration_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.StaticMember: - """Creates or updates a static member. + ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: + """Creates or updates a Tap configuration in the specified NetworkInterface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :param parameters: Parameters supplied to the specify the static member to create. Required. - :type parameters: IO[bytes] + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :param tap_configuration_parameters: Parameters supplied to the create or update tap + configuration operation. Required. + :type tap_configuration_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: StaticMember. The StaticMember is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticMember + :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The + NetworkInterfaceTapConfiguration is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - parameters: Union[_models.StaticMember, JSON, IO[bytes]], + network_interface_name: str, + tap_configuration_name: str, + tap_configuration_parameters: Union[ + _models.NetworkInterfaceTapConfiguration, _types.NetworkInterfaceTapConfiguration, IO[bytes] + ], **kwargs: Any - ) -> _models.StaticMember: - """Creates or updates a static member. + ) -> AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]: + """Creates or updates a Tap configuration in the specified NetworkInterface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :param parameters: Parameters supplied to the specify the static member to create. Is one of - the following types: StaticMember, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.StaticMember or JSON or IO[bytes] - :return: StaticMember. The StaticMember is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.StaticMember + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :param tap_configuration_parameters: Parameters supplied to the create or update tap + configuration operation. Is either a NetworkInterfaceTapConfiguration type or a IO[bytes] type. + Required. + :type tap_configuration_parameters: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration + or ~azure.mgmt.network.types.NetworkInterfaceTapConfiguration or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkInterfaceTapConfiguration. The + NetworkInterfaceTapConfiguration is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, + tap_configuration_parameters=tap_configuration_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkInterfaceTapConfiguration, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkInterfaceTapConfiguration].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkInterfaceTapConfiguration]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -30769,29 +30870,18 @@ async def create_or_update( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_static_members_create_or_update_request( + _request = build_network_interface_tap_configurations_delete_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - static_member_name=static_member_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -30801,19 +30891,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -30821,124 +30910,104 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.StaticMember, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @distributed_trace_async - async def delete( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - static_member_name: str, - **kwargs: Any - ) -> None: - """Deletes a static member. + async def begin_delete( + self, resource_group_name: str, network_interface_name: str, tap_configuration_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified tap configuration from the NetworkInterface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :param static_member_name: The name of the static member. Required. - :type static_member_name: str - :return: None - :rtype: None + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :param tap_configuration_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type tap_configuration_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - _request = build_static_members_delete_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, - static_member_name=static_member_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def list( - self, - resource_group_name: str, - network_manager_name: str, - network_group_name: str, - *, - top: Optional[int] = None, - skip_token: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.StaticMember"]: - """Lists the specified static member. + self, resource_group_name: str, network_interface_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkInterfaceTapConfiguration"]: + """Get all Tap configurations in a network interface. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param network_group_name: The name of the network group. Required. - :type network_group_name: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of StaticMember - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.StaticMember] + :param network_interface_name: The name of the network interface. Required. + :type network_interface_name: str + :return: An iterator like instance of NetworkInterfaceTapConfiguration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkInterfaceTapConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.StaticMember]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkInterfaceTapConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -30951,13 +31020,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_static_members_list_request( + _request = build_network_interface_tap_configurations_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - network_group_name=network_group_name, + network_interface_name=network_interface_name, subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -30983,7 +31049,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.StaticMember], + List[_models.NetworkInterfaceTapConfiguration], deserialized.get("value", []), ) if cls: @@ -31012,14 +31078,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkManagerRoutingConfigurationsOperations: # pylint: disable=name-too-long +class ManagementGroupNetworkManagerConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_manager_routing_configurations` attribute. + :attr:`management_group_network_manager_connections` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -31031,20 +31097,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any - ) -> _models.NetworkManagerRoutingConfiguration: - """Retrieves a network manager routing configuration. + self, management_group_id: str, network_manager_connection_name: str, **kwargs: Any + ) -> _models.NetworkManagerConnection: + """Get a specified connection created by this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -31058,14 +31121,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) - _request = build_network_manager_routing_configurations_get_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - subscription_id=self._config.subscription_id, + _request = build_management_group_network_manager_connections_get_request( + management_group_id=management_group_id, + network_manager_connection_name=network_manager_connection_name, api_version=api_version, headers=_headers, params=_params, @@ -31099,7 +31160,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManagerRoutingConfiguration, response.json()) + deserialized = _deserialize(_models.NetworkManagerConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -31109,121 +31170,105 @@ async def get( @overload async def create_or_update( self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - routing_configuration: _models.NetworkManagerRoutingConfiguration, + management_group_id: str, + network_manager_connection_name: str, + parameters: _models.NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManagerRoutingConfiguration: - """Creates or updates a network manager routing configuration. + ) -> _models.NetworkManagerConnection: + """Create a network manager connection on this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param routing_configuration: The routing configuration to create or update. Required. - :type routing_configuration: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :param parameters: Network manager connection to be created/updated. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerConnection :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def create_or_update( self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - routing_configuration: JSON, - *, + management_group_id: str, + network_manager_connection_name: str, + parameters: _types.NetworkManagerConnection, + *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManagerRoutingConfiguration: - """Creates or updates a network manager routing configuration. + ) -> _models.NetworkManagerConnection: + """Create a network manager connection on this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param routing_configuration: The routing configuration to create or update. Required. - :type routing_configuration: JSON + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :param parameters: Network manager connection to be created/updated. Required. + :type parameters: ~azure.mgmt.network.types.NetworkManagerConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerConnection :raises ~azure.core.exceptions.HttpResponseError: """ @overload async def create_or_update( self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - routing_configuration: IO[bytes], + management_group_id: str, + network_manager_connection_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkManagerRoutingConfiguration: - """Creates or updates a network manager routing configuration. + ) -> _models.NetworkManagerConnection: + """Create a network manager connection on this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param routing_configuration: The routing configuration to create or update. Required. - :type routing_configuration: IO[bytes] + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :param parameters: Network manager connection to be created/updated. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerConnection :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async async def create_or_update( self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - routing_configuration: Union[_models.NetworkManagerRoutingConfiguration, JSON, IO[bytes]], + management_group_id: str, + network_manager_connection_name: str, + parameters: Union[_models.NetworkManagerConnection, _types.NetworkManagerConnection, IO[bytes]], **kwargs: Any - ) -> _models.NetworkManagerRoutingConfiguration: - """Creates or updates a network manager routing configuration. + ) -> _models.NetworkManagerConnection: + """Create a network manager connection on this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param routing_configuration: The routing configuration to create or update. Is one of the - following types: NetworkManagerRoutingConfiguration, JSON, IO[bytes] Required. - :type routing_configuration: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration or - JSON or IO[bytes] - :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is - compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :param parameters: Network manager connection to be created/updated. Is either a + NetworkManagerConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or + ~azure.mgmt.network.types.NetworkManagerConnection or IO[bytes] + :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -31237,22 +31282,20 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(routing_configuration, (IOBase, bytes)): - _content = routing_configuration + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(routing_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_manager_routing_configurations_create_or_update_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - subscription_id=self._config.subscription_id, + _request = build_management_group_network_manager_connections_create_or_update_request( + management_group_id=management_group_id, + network_manager_connection_name=network_manager_connection_name, api_version=api_version, content_type=content_type, content=_content, @@ -31288,22 +31331,25 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkManagerRoutingConfiguration, response.json()) + deserialized = _deserialize(_models.NetworkManagerConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def delete(self, management_group_id: str, network_manager_connection_name: str, **kwargs: Any) -> None: + """Delete specified pending connection created by this management group. + + :param management_group_id: The management group ID. Required. + :type management_group_id: str + :param network_manager_connection_name: Name for the network manager connection. Required. + :type network_manager_connection_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -31315,15 +31361,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_network_manager_routing_configurations_delete_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - subscription_id=self._config.subscription_id, - force=force, + _request = build_management_group_network_manager_connections_delete_request( + management_group_id=management_group_id, + network_manager_connection_name=network_manager_connection_name, api_version=api_version, headers=_headers, params=_params, @@ -31333,19 +31376,14 @@ async def _delete_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -31353,111 +31391,17 @@ async def _delete_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a network manager routing configuration. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def list( - self, - resource_group_name: str, - network_manager_name: str, - *, - top: Optional[int] = None, - skip_token: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkManagerRoutingConfiguration"]: - """Lists all the network manager routing configurations in a network manager, in a paginated - format. + self, management_group_id: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkManagerConnection"]: + """List all network manager connections created by this management group. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str + :param management_group_id: The management group ID. Required. + :type management_group_id: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -31466,16 +31410,16 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of NetworkManagerRoutingConfiguration + :return: An iterator like instance of NetworkManagerConnection :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManagerRoutingConfiguration] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManagerConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkManagerRoutingConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkManagerConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -31488,10 +31432,8 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_network_manager_routing_configurations_list_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - subscription_id=self._config.subscription_id, + _request = build_management_group_network_manager_connections_list_request( + management_group_id=management_group_id, top=top, skip_token=skip_token, api_version=api_version, @@ -31519,7 +31461,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkManagerRoutingConfiguration], + List[_models.NetworkManagerConnection], deserialized.get("value", []), ) if cls: @@ -31548,14 +31490,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RoutingRuleCollectionsOperations: +class ConnectivityConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`routing_rule_collections` attribute. + :attr:`connectivity_configurations` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -31567,27 +31509,22 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - **kwargs: Any - ) -> _models.RoutingRuleCollection: - """Gets a network manager routing configuration rule collection. + self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any + ) -> _models.ConnectivityConfiguration: + """Gets a Network Connectivity Configuration, specified by the resource group, network manager + name, and connectivity Configuration name. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRuleCollection + :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -31601,14 +31538,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) - _request = build_routing_rule_collections_get_request( + _request = build_connectivity_configurations_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -31643,7 +31579,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RoutingRuleCollection, response.json()) + deserialized = _deserialize(_models.ConnectivityConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -31656,31 +31592,30 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_collection: _models.RoutingRuleCollection, + connectivity_configuration: _models.ConnectivityConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RoutingRuleCollection: - """Creates or updates a routing rule collection. + ) -> _models.ConnectivityConfiguration: + """Creates/Updates a new network manager connectivity configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection + :param connectivity_configuration: Parameters supplied to create/update a network manager + connectivity configuration. Required. + :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRuleCollection + :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31690,31 +31625,30 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_collection: JSON, + connectivity_configuration: _types.ConnectivityConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RoutingRuleCollection: - """Creates or updates a routing rule collection. + ) -> _models.ConnectivityConfiguration: + """Creates/Updates a new network manager connectivity configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: JSON + :param connectivity_configuration: Parameters supplied to create/update a network manager + connectivity configuration. Required. + :type connectivity_configuration: ~azure.mgmt.network.types.ConnectivityConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRuleCollection + :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31724,31 +31658,30 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_collection: IO[bytes], + connectivity_configuration: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RoutingRuleCollection: - """Creates or updates a routing rule collection. + ) -> _models.ConnectivityConfiguration: + """Creates/Updates a new network manager connectivity configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: IO[bytes] + :param connectivity_configuration: Parameters supplied to create/update a network manager + connectivity configuration. Required. + :type connectivity_configuration: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRuleCollection + :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -31758,27 +31691,29 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_collection: Union[_models.RoutingRuleCollection, JSON, IO[bytes]], + connectivity_configuration: Union[ + _models.ConnectivityConfiguration, _types.ConnectivityConfiguration, IO[bytes] + ], **kwargs: Any - ) -> _models.RoutingRuleCollection: - """Creates or updates a routing rule collection. + ) -> _models.ConnectivityConfiguration: + """Creates/Updates a new network manager connectivity configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Is one of the following types: - RoutingRuleCollection, JSON, IO[bytes] Required. - :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection or JSON or IO[bytes] - :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRuleCollection + :param connectivity_configuration: Parameters supplied to create/update a network manager + connectivity configuration. Is either a ConnectivityConfiguration type or a IO[bytes] type. + Required. + :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration or + ~azure.mgmt.network.types.ConnectivityConfiguration or IO[bytes] + :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -31792,22 +31727,21 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(rule_collection, (IOBase, bytes)): - _content = rule_collection + if isinstance(connectivity_configuration, (IOBase, bytes)): + _content = connectivity_configuration else: - _content = json.dumps(rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(connectivity_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_routing_rule_collections_create_or_update_request( + _request = build_connectivity_configurations_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -31844,7 +31778,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RoutingRuleCollection, response.json()) + deserialized = _deserialize(_models.ConnectivityConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -31856,7 +31790,6 @@ async def _delete_initial( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, *, force: Optional[bool] = None, **kwargs: Any @@ -31872,14 +31805,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_routing_rule_collections_delete_request( + _request = build_connectivity_configurations_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, force=force, api_version=api_version, @@ -31929,23 +31861,21 @@ async def begin_delete( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes an routing rule collection. + """Deletes a network manager connectivity configuration, specified by the resource group, network + manager name, and connectivity configuration name. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. + :param configuration_name: The name of the network manager connectivity configuration. + Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str :keyword force: Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. @@ -31957,7 +31887,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -31967,7 +31897,6 @@ async def begin_delete( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, force=force, api_version=api_version, cls=lambda x, y, z: x, @@ -32008,21 +31937,18 @@ def list( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.RoutingRuleCollection"]: - """Lists all the rule collections in a routing configuration, in a paginated format. + ) -> AsyncItemPaged["_models.ConnectivityConfiguration"]: + """Lists all the network manager connectivity configuration in a specified network manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -32031,16 +31957,16 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of RoutingRuleCollection + :return: An iterator like instance of ConnectivityConfiguration :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RoutingRuleCollection] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ConnectivityConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RoutingRuleCollection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ConnectivityConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -32053,10 +31979,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_routing_rule_collections_list_request( + _request = build_connectivity_configurations_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -32085,7 +32010,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RoutingRuleCollection], + List[_models.ConnectivityConfiguration], deserialized.get("value", []), ) if cls: @@ -32114,14 +32039,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RoutingRulesOperations: +class NetworkGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`routing_rules` attribute. + :attr:`network_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -32133,30 +32058,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - **kwargs: Any - ) -> _models.RoutingRule: - """Gets a network manager routing configuration routing rule. + self, resource_group_name: str, network_manager_name: str, network_group_name: str, **kwargs: Any + ) -> _models.NetworkGroup: + """Gets the specified network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :return: RoutingRule. The RoutingRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRule + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -32170,15 +32084,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) - _request = build_routing_rules_get_request( + _request = build_network_groups_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, + network_group_name=network_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -32213,7 +32125,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RoutingRule, response.json()) + deserialized = _deserialize(_models.NetworkGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -32225,35 +32137,36 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - routing_rule: _models.RoutingRule, + network_group_name: str, + parameters: _models.NetworkGroup, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.RoutingRule: - """Creates or updates an routing rule. + ) -> _models.NetworkGroup: + """Creates or updates a network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param routing_rule: The routing rule to create or update. Required. - :type routing_rule: ~azure.mgmt.network.models.RoutingRule + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param parameters: Parameters supplied to the specify which network group need to create. + Required. + :type parameters: ~azure.mgmt.network.models.NetworkGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRule. The RoutingRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRule + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32262,35 +32175,36 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - routing_rule: JSON, + network_group_name: str, + parameters: _types.NetworkGroup, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.RoutingRule: - """Creates or updates an routing rule. + ) -> _models.NetworkGroup: + """Creates or updates a network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param routing_rule: The routing rule to create or update. Required. - :type routing_rule: JSON + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param parameters: Parameters supplied to the specify which network group need to create. + Required. + :type parameters: ~azure.mgmt.network.types.NetworkGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRule. The RoutingRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRule + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32299,35 +32213,36 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - routing_rule: IO[bytes], + network_group_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.RoutingRule: - """Creates or updates an routing rule. + ) -> _models.NetworkGroup: + """Creates or updates a network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param routing_rule: The routing rule to create or update. Required. - :type routing_rule: IO[bytes] + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param parameters: Parameters supplied to the specify which network group need to create. + Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: RoutingRule. The RoutingRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRule + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32336,31 +32251,33 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - routing_rule: Union[_models.RoutingRule, JSON, IO[bytes]], + network_group_name: str, + parameters: Union[_models.NetworkGroup, _types.NetworkGroup, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.RoutingRule: - """Creates or updates an routing rule. + ) -> _models.NetworkGroup: + """Creates or updates a network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param routing_rule: The routing rule to create or update. Is one of the following types: - RoutingRule, JSON, IO[bytes] Required. - :type routing_rule: ~azure.mgmt.network.models.RoutingRule or JSON or IO[bytes] - :return: RoutingRule. The RoutingRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RoutingRule + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param parameters: Parameters supplied to the specify which network group need to create. Is + either a NetworkGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkGroup or + ~azure.mgmt.network.types.NetworkGroup or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: NetworkGroup. The NetworkGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -32369,29 +32286,35 @@ async def create_or_update( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(routing_rule, (IOBase, bytes)): - _content = routing_rule + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(routing_rule, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_routing_rules_create_or_update_request( + _request = build_network_groups_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, + network_group_name=network_group_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -32424,13 +32347,16 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response_headers = {} + response_headers["ETag"] = self._deserialize("str", response.headers.get("ETag")) + if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RoutingRule, response.json()) + deserialized = _deserialize(_models.NetworkGroup, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @@ -32438,9 +32364,7 @@ async def _delete_initial( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, + network_group_name: str, *, force: Optional[bool] = None, **kwargs: Any @@ -32456,15 +32380,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_routing_rules_delete_request( + _request = build_network_groups_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, + network_group_name=network_group_name, subscription_id=self._config.subscription_id, force=force, api_version=api_version, @@ -32513,27 +32435,20 @@ async def begin_delete( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, + network_group_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a routing rule. + """Deletes a network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str + :param network_group_name: The name of the network group. Required. + :type network_group_name: str :keyword force: Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. @@ -32545,7 +32460,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -32554,9 +32469,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, + network_group_name=network_group_name, force=force, api_version=api_version, cls=lambda x, y, z: x, @@ -32597,25 +32510,18 @@ def list( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.RoutingRule"]: - """List all network manager routing configuration routing rules. + ) -> AsyncItemPaged["_models.NetworkGroup"]: + """Lists the specified network group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Routing Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager routing Configuration rule - collection. Required. - :type rule_collection_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -32624,15 +32530,15 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of RoutingRule - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RoutingRule] + :return: An iterator like instance of NetworkGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RoutingRule]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -32645,11 +32551,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_routing_rules_list_request( + _request = build_network_groups_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -32678,7 +32582,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RoutingRule], + List[_models.NetworkGroup], deserialized.get("value", []), ) if cls: @@ -32707,14 +32611,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ScopeConnectionsOperations: +class StaticMembersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`scope_connections` attribute. + :attr:`static_members` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -32726,19 +32630,26 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, scope_connection_name: str, **kwargs: Any - ) -> _models.ScopeConnection: - """Get specified scope connection created by this Network Manager. + self, + resource_group_name: str, + network_manager_name: str, + network_group_name: str, + static_member_name: str, + **kwargs: Any + ) -> _models.StaticMember: + """Gets the specified static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str - :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ScopeConnection + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str + :return: StaticMember. The StaticMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -32752,13 +32663,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) - _request = build_scope_connections_get_request( + _request = build_static_members_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - scope_connection_name=scope_connection_name, + network_group_name=network_group_name, + static_member_name=static_member_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -32793,7 +32705,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ScopeConnection, response.json()) + deserialized = _deserialize(_models.StaticMember, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -32805,28 +32717,31 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - scope_connection_name: str, - parameters: _models.ScopeConnection, + network_group_name: str, + static_member_name: str, + parameters: _models.StaticMember, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ScopeConnection: - """Creates or updates scope connection from Network Manager. + ) -> _models.StaticMember: + """Creates or updates a static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str - :param parameters: Scope connection to be created/updated. Required. - :type parameters: ~azure.mgmt.network.models.ScopeConnection + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str + :param parameters: Parameters supplied to the specify the static member to create. Required. + :type parameters: ~azure.mgmt.network.models.StaticMember :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ScopeConnection + :return: StaticMember. The StaticMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32835,28 +32750,31 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - scope_connection_name: str, - parameters: JSON, + network_group_name: str, + static_member_name: str, + parameters: _types.StaticMember, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ScopeConnection: - """Creates or updates scope connection from Network Manager. + ) -> _models.StaticMember: + """Creates or updates a static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str - :param parameters: Scope connection to be created/updated. Required. - :type parameters: JSON + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str + :param parameters: Parameters supplied to the specify the static member to create. Required. + :type parameters: ~azure.mgmt.network.types.StaticMember :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ScopeConnection + :return: StaticMember. The StaticMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32865,28 +32783,31 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - scope_connection_name: str, + network_group_name: str, + static_member_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ScopeConnection: - """Creates or updates scope connection from Network Manager. + ) -> _models.StaticMember: + """Creates or updates a static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str - :param parameters: Scope connection to be created/updated. Required. + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str + :param parameters: Parameters supplied to the specify the static member to create. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ScopeConnection + :return: StaticMember. The StaticMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: """ @@ -32895,24 +32816,28 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - scope_connection_name: str, - parameters: Union[_models.ScopeConnection, JSON, IO[bytes]], + network_group_name: str, + static_member_name: str, + parameters: Union[_models.StaticMember, _types.StaticMember, IO[bytes]], **kwargs: Any - ) -> _models.ScopeConnection: - """Creates or updates scope connection from Network Manager. + ) -> _models.StaticMember: + """Creates or updates a static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str - :param parameters: Scope connection to be created/updated. Is one of the following types: - ScopeConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ScopeConnection or JSON or IO[bytes] - :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ScopeConnection + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str + :param parameters: Parameters supplied to the specify the static member to create. Is either a + StaticMember type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.StaticMember or + ~azure.mgmt.network.types.StaticMember or IO[bytes] + :return: StaticMember. The StaticMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -32926,9 +32851,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) + cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -32937,10 +32862,11 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_scope_connections_create_or_update_request( + _request = build_static_members_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - scope_connection_name=scope_connection_name, + network_group_name=network_group_name, + static_member_name=static_member_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -32977,7 +32903,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ScopeConnection, response.json()) + deserialized = _deserialize(_models.StaticMember, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -32986,17 +32912,24 @@ async def create_or_update( @distributed_trace_async async def delete( - self, resource_group_name: str, network_manager_name: str, scope_connection_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + network_group_name: str, + static_member_name: str, + **kwargs: Any ) -> None: - """Delete the pending scope connection created by this network manager. + """Deletes a static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param scope_connection_name: Name for the cross-tenant connection. Required. - :type scope_connection_name: str + :param network_group_name: The name of the network group. Required. + :type network_group_name: str + :param static_member_name: The name of the static member. Required. + :type static_member_name: str :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -33012,13 +32945,14 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_scope_connections_delete_request( + _request = build_static_members_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - scope_connection_name=scope_connection_name, + network_group_name=network_group_name, + static_member_name=static_member_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -33052,18 +32986,21 @@ def list( self, resource_group_name: str, network_manager_name: str, + network_group_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.ScopeConnection"]: - """List all scope connections created by this network manager. + ) -> AsyncItemPaged["_models.StaticMember"]: + """Lists the specified static member. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str + :param network_group_name: The name of the network group. Required. + :type network_group_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -33072,15 +33009,15 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of ScopeConnection - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ScopeConnection] + :return: An iterator like instance of StaticMember + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.StaticMember] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ScopeConnection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.StaticMember]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -33093,9 +33030,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_scope_connections_list_request( + _request = build_static_members_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, + network_group_name=network_group_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -33124,7 +33062,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ScopeConnection], + List[_models.StaticMember], deserialized.get("value", []), ) if cls: @@ -33153,14 +33091,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CommitsOperations: +class NetworkManagerRoutingConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`commits` attribute. + :attr:`network_manager_routing_configurations` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -33172,19 +33110,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any - ) -> _models.Commit: - """Gets the specified commit. + self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any + ) -> _models.NetworkManagerRoutingConfiguration: + """Retrieves a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str - :return: Commit. The Commit is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Commit + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -33198,13 +33137,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.Commit] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) - _request = build_commits_get_request( + _request = build_network_manager_routing_configurations_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - commit_name=commit_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -33239,269 +33178,212 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.Commit, response.json()) + deserialized = _deserialize(_models.NetworkManagerRoutingConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - network_manager_name: str, - commit_name: str, - resource: Union[_models.Commit, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_commits_create_or_update_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - commit_name=commit_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, network_manager_name: str, - commit_name: str, - resource: _models.Commit, + configuration_name: str, + routing_configuration: _models.NetworkManagerRoutingConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Commit]: - """Creates or updates a commit. + ) -> _models.NetworkManagerRoutingConfiguration: + """Creates or updates a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str - :param resource: Parameters supplied to specify which commit to create. Required. - :type resource: ~azure.mgmt.network.models.Commit + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :param routing_configuration: The routing configuration to create or update. Required. + :type routing_configuration: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] + :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, network_manager_name: str, - commit_name: str, - resource: JSON, + configuration_name: str, + routing_configuration: _types.NetworkManagerRoutingConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Commit]: - """Creates or updates a commit. + ) -> _models.NetworkManagerRoutingConfiguration: + """Creates or updates a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str - :param resource: Parameters supplied to specify which commit to create. Required. - :type resource: JSON + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :param routing_configuration: The routing configuration to create or update. Required. + :type routing_configuration: ~azure.mgmt.network.types.NetworkManagerRoutingConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] + :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, network_manager_name: str, - commit_name: str, - resource: IO[bytes], + configuration_name: str, + routing_configuration: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Commit]: - """Creates or updates a commit. + ) -> _models.NetworkManagerRoutingConfiguration: + """Creates or updates a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str - :param resource: Parameters supplied to specify which commit to create. Required. - :type resource: IO[bytes] + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :param routing_configuration: The routing configuration to create or update. Required. + :type routing_configuration: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] + :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, network_manager_name: str, - commit_name: str, - resource: Union[_models.Commit, JSON, IO[bytes]], + configuration_name: str, + routing_configuration: Union[ + _models.NetworkManagerRoutingConfiguration, _types.NetworkManagerRoutingConfiguration, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.Commit]: - """Creates or updates a commit. + ) -> _models.NetworkManagerRoutingConfiguration: + """Creates or updates a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str - :param resource: Parameters supplied to specify which commit to create. Is one of the following - types: Commit, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.network.models.Commit or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :param routing_configuration: The routing configuration to create or update. Is either a + NetworkManagerRoutingConfiguration type or a IO[bytes] type. Required. + :type routing_configuration: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration or + ~azure.mgmt.network.types.NetworkManagerRoutingConfiguration or IO[bytes] + :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Commit] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - commit_name=commit_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Commit, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(routing_configuration, (IOBase, bytes)): + _content = routing_configuration + else: + _content = json.dumps(routing_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_network_manager_routing_configurations_create_or_update_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.Commit].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.Commit]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.NetworkManagerRoutingConfiguration, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -33514,14 +33396,15 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_commits_delete_request( + _request = build_network_manager_routing_configurations_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - commit_name=commit_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, + force=force, api_version=api_version, headers=_headers, params=_params, @@ -33539,7 +33422,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -33565,17 +33448,27 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a commit. + """Deletes a network manager routing configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param commit_name: The name of the commit. Required. - :type commit_name: str + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -33583,7 +33476,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -33592,7 +33485,8 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - commit_name=commit_name, + configuration_name=configuration_name, + force=force, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -33636,8 +33530,9 @@ def list( top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.Commit"]: - """Lists all commits for the specified network manager. + ) -> AsyncItemPaged["_models.NetworkManagerRoutingConfiguration"]: + """Lists all the network manager routing configurations in a network manager, in a paginated + format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -33652,15 +33547,16 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of Commit - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Commit] + :return: An iterator like instance of NetworkManagerRoutingConfiguration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkManagerRoutingConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.Commit]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkManagerRoutingConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -33673,7 +33569,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_commits_list_request( + _request = build_network_manager_routing_configurations_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, @@ -33704,7 +33600,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.Commit], + List[_models.NetworkManagerRoutingConfiguration], deserialized.get("value", []), ) if cls: @@ -33733,14 +33629,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityAdminConfigurationsOperations: +class RoutingRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_admin_configurations` attribute. + :attr:`routing_rule_collections` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -33752,20 +33648,27 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any - ) -> _models.SecurityAdminConfiguration: - """Retrieves a network manager security admin configuration. + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + **kwargs: Any + ) -> _models.RoutingRuleCollection: + """Gets a network manager routing configuration rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str + :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -33779,13 +33682,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) - _request = build_security_admin_configurations_get_request( + _request = build_routing_rule_collections_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -33812,7 +33716,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33820,7 +33724,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityAdminConfiguration, response.json()) + deserialized = _deserialize(_models.RoutingRuleCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -33833,29 +33737,31 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: _models.SecurityAdminConfiguration, + rule_collection_name: str, + rule_collection: _models.RoutingRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityAdminConfiguration: - """Creates or updates a network manager security admin configuration. + ) -> _models.RoutingRuleCollection: + """Creates or updates a routing rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param security_admin_configuration: The security admin configuration to create or update. - Required. - :type security_admin_configuration: ~azure.mgmt.network.models.SecurityAdminConfiguration + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration + :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -33865,29 +33771,31 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: JSON, + rule_collection_name: str, + rule_collection: _types.RoutingRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityAdminConfiguration: - """Creates or updates a network manager security admin configuration. + ) -> _models.RoutingRuleCollection: + """Creates or updates a routing rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param security_admin_configuration: The security admin configuration to create or update. - Required. - :type security_admin_configuration: JSON + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: ~azure.mgmt.network.types.RoutingRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration + :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -33897,29 +33805,31 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: IO[bytes], + rule_collection_name: str, + rule_collection: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityAdminConfiguration: - """Creates or updates a network manager security admin configuration. + ) -> _models.RoutingRuleCollection: + """Creates or updates a routing rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param security_admin_configuration: The security admin configuration to create or update. - Required. - :type security_admin_configuration: IO[bytes] + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration + :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -33929,25 +33839,28 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: Union[_models.SecurityAdminConfiguration, JSON, IO[bytes]], + rule_collection_name: str, + rule_collection: Union[_models.RoutingRuleCollection, _types.RoutingRuleCollection, IO[bytes]], **kwargs: Any - ) -> _models.SecurityAdminConfiguration: - """Creates or updates a network manager security admin configuration. + ) -> _models.RoutingRuleCollection: + """Creates or updates a routing rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param security_admin_configuration: The security admin configuration to create or update. Is - one of the following types: SecurityAdminConfiguration, JSON, IO[bytes] Required. - :type security_admin_configuration: ~azure.mgmt.network.models.SecurityAdminConfiguration or - JSON or IO[bytes] - :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Is either a + RoutingRuleCollection type or a IO[bytes] type. Required. + :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection or + ~azure.mgmt.network.types.RoutingRuleCollection or IO[bytes] + :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -33961,21 +33874,22 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(security_admin_configuration, (IOBase, bytes)): - _content = security_admin_configuration + if isinstance(rule_collection, (IOBase, bytes)): + _content = rule_collection else: - _content = json.dumps(security_admin_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_security_admin_configurations_create_or_update_request( + _request = build_routing_rule_collections_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -34004,7 +33918,7 @@ async def create_or_update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34012,7 +33926,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityAdminConfiguration, response.json()) + deserialized = _deserialize(_models.RoutingRuleCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -34024,6 +33938,7 @@ async def _delete_initial( resource_group_name: str, network_manager_name: str, configuration_name: str, + rule_collection_name: str, *, force: Optional[bool] = None, **kwargs: Any @@ -34039,13 +33954,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_security_admin_configurations_delete_request( + _request = build_routing_rule_collections_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, force=force, api_version=api_version, @@ -34072,7 +33988,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34095,19 +34011,23 @@ async def begin_delete( resource_group_name: str, network_manager_name: str, configuration_name: str, + rule_collection_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a network manager security admin configuration. + """Deletes an routing rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str :keyword force: Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. @@ -34119,7 +34039,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -34129,6 +34049,7 @@ async def begin_delete( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, + rule_collection_name=rule_collection_name, force=force, api_version=api_version, cls=lambda x, y, z: x, @@ -34169,19 +34090,21 @@ def list( self, resource_group_name: str, network_manager_name: str, + configuration_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityAdminConfiguration"]: - """Lists all the network manager security admin configurations in a network manager, in a - paginated format. + ) -> AsyncItemPaged["_models.RoutingRuleCollection"]: + """Lists all the rule collections in a routing configuration, in a paginated format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str + :param configuration_name: The name of the network manager Routing Configuration. Required. + :type configuration_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -34190,16 +34113,16 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of SecurityAdminConfiguration + :return: An iterator like instance of RoutingRuleCollection :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityAdminConfiguration] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RoutingRuleCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityAdminConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RoutingRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -34212,9 +34135,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_security_admin_configurations_list_request( + _request = build_routing_rule_collections_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -34243,7 +34167,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityAdminConfiguration], + List[_models.RoutingRuleCollection], deserialized.get("value", []), ) if cls: @@ -34262,7 +34186,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34272,14 +34196,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AdminRuleCollectionsOperations: +class RoutingRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`admin_rule_collections` attribute. + :attr:`routing_rules` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -34296,22 +34220,25 @@ async def get( network_manager_name: str, configuration_name: str, rule_collection_name: str, + rule_name: str, **kwargs: Any - ) -> _models.AdminRuleCollection: - """Gets a network manager security admin configuration rule collection. + ) -> _models.RoutingRule: + """Gets a network manager routing configuration routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.AdminRuleCollection + :param rule_name: The name of the rule. Required. + :type rule_name: str + :return: RoutingRule. The RoutingRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -34325,14 +34252,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) - _request = build_admin_rule_collections_get_request( + _request = build_routing_rules_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, rule_collection_name=rule_collection_name, + rule_name=rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -34359,7 +34287,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34367,7 +34295,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.AdminRuleCollection, response.json()) + deserialized = _deserialize(_models.RoutingRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -34381,30 +34309,33 @@ async def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: _models.AdminRuleCollection, + rule_name: str, + routing_rule: _models.RoutingRule, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.AdminRuleCollection: - """Creates or updates an admin rule collection. + ) -> _models.RoutingRule: + """Creates or updates an routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param routing_rule: The routing rule to create or update. Required. + :type routing_rule: ~azure.mgmt.network.models.RoutingRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.AdminRuleCollection + :return: RoutingRule. The RoutingRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: """ @@ -34415,30 +34346,33 @@ async def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_name: str, + routing_rule: _types.RoutingRule, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.AdminRuleCollection: - """Creates or updates an admin rule collection. + ) -> _models.RoutingRule: + """Creates or updates an routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: JSON + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param routing_rule: The routing rule to create or update. Required. + :type routing_rule: ~azure.mgmt.network.types.RoutingRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.AdminRuleCollection + :return: RoutingRule. The RoutingRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: """ @@ -34449,30 +34383,33 @@ async def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: IO[bytes], + rule_name: str, + routing_rule: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.AdminRuleCollection: - """Creates or updates an admin rule collection. + ) -> _models.RoutingRule: + """Creates or updates an routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: IO[bytes] + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param routing_rule: The routing rule to create or update. Required. + :type routing_rule: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.AdminRuleCollection + :return: RoutingRule. The RoutingRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: """ @@ -34483,26 +34420,30 @@ async def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: Union[_models.AdminRuleCollection, JSON, IO[bytes]], + rule_name: str, + routing_rule: Union[_models.RoutingRule, _types.RoutingRule, IO[bytes]], **kwargs: Any - ) -> _models.AdminRuleCollection: - """Creates or updates an admin rule collection. + ) -> _models.RoutingRule: + """Creates or updates an routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Is one of the following types: - AdminRuleCollection, JSON, IO[bytes] Required. - :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection or JSON or IO[bytes] - :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.AdminRuleCollection + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param routing_rule: The routing rule to create or update. Is either a RoutingRule type or a + IO[bytes] type. Required. + :type routing_rule: ~azure.mgmt.network.models.RoutingRule or + ~azure.mgmt.network.types.RoutingRule or IO[bytes] + :return: RoutingRule. The RoutingRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -34516,22 +34457,23 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(rule_collection, (IOBase, bytes)): - _content = rule_collection + if isinstance(routing_rule, (IOBase, bytes)): + _content = routing_rule else: - _content = json.dumps(rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(routing_rule, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_admin_rule_collections_create_or_update_request( + _request = build_routing_rules_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, rule_collection_name=rule_collection_name, + rule_name=rule_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -34560,7 +34502,7 @@ async def create_or_update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34568,7 +34510,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.AdminRuleCollection, response.json()) + deserialized = _deserialize(_models.RoutingRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -34581,6 +34523,7 @@ async def _delete_initial( network_manager_name: str, configuration_name: str, rule_collection_name: str, + rule_name: str, *, force: Optional[bool] = None, **kwargs: Any @@ -34596,14 +34539,15 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_admin_rule_collections_delete_request( + _request = build_routing_rules_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, rule_collection_name=rule_collection_name, + rule_name=rule_name, subscription_id=self._config.subscription_id, force=force, api_version=api_version, @@ -34630,7 +34574,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34654,22 +34598,25 @@ async def begin_delete( network_manager_name: str, configuration_name: str, rule_collection_name: str, + rule_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes an admin rule collection. + """Deletes a routing rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule + :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str :keyword force: Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. @@ -34681,7 +34628,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -34692,6 +34639,7 @@ async def begin_delete( network_manager_name=network_manager_name, configuration_name=configuration_name, rule_collection_name=rule_collection_name, + rule_name=rule_name, force=force, api_version=api_version, cls=lambda x, y, z: x, @@ -34733,20 +34681,24 @@ def list( resource_group_name: str, network_manager_name: str, configuration_name: str, + rule_collection_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.AdminRuleCollection"]: - """Lists all the rule collections in a security admin configuration, in a paginated format. + ) -> AsyncItemPaged["_models.RoutingRule"]: + """List all network manager routing configuration routing rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. + :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str + :param rule_collection_name: The name of the network manager routing Configuration rule + collection. Required. + :type rule_collection_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -34755,15 +34707,15 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of AdminRuleCollection - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AdminRuleCollection] + :return: An iterator like instance of RoutingRule + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RoutingRule] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.AdminRuleCollection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RoutingRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -34776,10 +34728,11 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_admin_rule_collections_list_request( + _request = build_routing_rules_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -34808,7 +34761,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.AdminRuleCollection], + List[_models.RoutingRule], deserialized.get("value", []), ) if cls: @@ -34827,7 +34780,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34837,14 +34790,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityUserConfigurationsOperations: +class ScopeConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_user_configurations` attribute. + :attr:`scope_connections` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -34856,20 +34809,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any - ) -> _models.SecurityUserConfiguration: - """Retrieves a network manager security user configuration. + self, resource_group_name: str, network_manager_name: str, scope_connection_name: str, **kwargs: Any + ) -> _models.ScopeConnection: + """Get specified scope connection created by this Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -34883,13 +34835,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) - _request = build_security_user_configurations_get_request( + _request = build_scope_connections_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, + scope_connection_name=scope_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -34924,7 +34876,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityUserConfiguration, response.json()) + deserialized = _deserialize(_models.ScopeConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -34936,30 +34888,28 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - security_user_configuration: _models.SecurityUserConfiguration, + scope_connection_name: str, + parameters: _models.ScopeConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserConfiguration: - """Creates or updates a network manager security user configuration. + ) -> _models.ScopeConnection: + """Creates or updates scope connection from Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param security_user_configuration: The security user configuration to create or update. - Required. - :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :param parameters: Scope connection to be created/updated. Required. + :type parameters: ~azure.mgmt.network.models.ScopeConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -34968,30 +34918,28 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - security_user_configuration: JSON, + scope_connection_name: str, + parameters: _types.ScopeConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserConfiguration: - """Creates or updates a network manager security user configuration. + ) -> _models.ScopeConnection: + """Creates or updates scope connection from Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param security_user_configuration: The security user configuration to create or update. - Required. - :type security_user_configuration: JSON + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :param parameters: Scope connection to be created/updated. Required. + :type parameters: ~azure.mgmt.network.types.ScopeConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -35000,30 +34948,28 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - security_user_configuration: IO[bytes], + scope_connection_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserConfiguration: - """Creates or updates a network manager security user configuration. + ) -> _models.ScopeConnection: + """Creates or updates scope connection from Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param security_user_configuration: The security user configuration to create or update. - Required. - :type security_user_configuration: IO[bytes] + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :param parameters: Scope connection to be created/updated. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -35032,26 +34978,25 @@ async def create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - security_user_configuration: Union[_models.SecurityUserConfiguration, JSON, IO[bytes]], + scope_connection_name: str, + parameters: Union[_models.ScopeConnection, _types.ScopeConnection, IO[bytes]], **kwargs: Any - ) -> _models.SecurityUserConfiguration: - """Creates or updates a network manager security user configuration. + ) -> _models.ScopeConnection: + """Creates or updates scope connection from Network Manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param security_user_configuration: The security user configuration to create or update. Is one - of the following types: SecurityUserConfiguration, JSON, IO[bytes] Required. - :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration or JSON - or IO[bytes] - :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :param parameters: Scope connection to be created/updated. Is either a ScopeConnection type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ScopeConnection or + ~azure.mgmt.network.types.ScopeConnection or IO[bytes] + :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -35065,21 +35010,21 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(security_user_configuration, (IOBase, bytes)): - _content = security_user_configuration + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(security_user_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_security_user_configurations_create_or_update_request( + _request = build_scope_connections_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, + scope_connection_name=scope_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -35116,22 +35061,30 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityUserConfiguration, response.json()) + deserialized = _deserialize(_models.ScopeConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def delete( + self, resource_group_name: str, network_manager_name: str, scope_connection_name: str, **kwargs: Any + ) -> None: + """Delete the pending scope connection created by this network manager. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param scope_connection_name: Name for the cross-tenant connection. Required. + :type scope_connection_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -35143,15 +35096,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_security_user_configurations_delete_request( + _request = build_scope_connections_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, + scope_connection_name=scope_connection_name, subscription_id=self._config.subscription_id, - force=force, api_version=api_version, headers=_headers, params=_params, @@ -35161,19 +35113,14 @@ async def _delete_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -35181,92 +35128,8 @@ async def _delete_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a network manager security user configuration. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def list( @@ -35277,9 +35140,8 @@ def list( top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityUserConfiguration"]: - """Lists all the network manager security user configurations in a network manager, in a paginated - format. + ) -> AsyncItemPaged["_models.ScopeConnection"]: + """List all scope connections created by this network manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -35294,16 +35156,15 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of SecurityUserConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserConfiguration] + :return: An iterator like instance of ScopeConnection + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ScopeConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityUserConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ScopeConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -35316,7 +35177,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_security_user_configurations_list_request( + _request = build_scope_connections_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, @@ -35347,7 +35208,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityUserConfiguration], + List[_models.ScopeConnection], deserialized.get("value", []), ) if cls: @@ -35376,14 +35237,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityUserRuleCollectionsOperations: +class CommitsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_user_rule_collections` attribute. + :attr:`commits` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -35395,28 +35256,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - **kwargs: Any - ) -> _models.SecurityUserRuleCollection: - """Gets a network manager security user configuration rule collection. + self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any + ) -> _models.Commit: + """Gets the specified commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection + :param commit_name: The name of the commit. Required. + :type commit_name: str + :return: Commit. The Commit is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Commit :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -35430,14 +35282,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.Commit] = kwargs.pop("cls", None) - _request = build_security_user_rule_collections_get_request( + _request = build_commits_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, + commit_name=commit_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -35472,231 +35323,270 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityUserRuleCollection, response.json()) + deserialized = _deserialize(_models.Commit, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + network_manager_name: str, + commit_name: str, + resource: Union[_models.Commit, _types.Commit, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_commits_create_or_update_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + commit_name=commit_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - security_user_rule_collection: _models.SecurityUserRuleCollection, + commit_name: str, + resource: _models.Commit, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRuleCollection: - """Creates or updates a security user rule collection. + ) -> AsyncLROPoller[_models.Commit]: + """Creates or updates a commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param security_user_rule_collection: The Security User Rule Collection to create or update. - Required. - :type security_user_rule_collection: ~azure.mgmt.network.models.SecurityUserRuleCollection + :param commit_name: The name of the commit. Required. + :type commit_name: str + :param resource: Parameters supplied to specify which commit to create. Required. + :type resource: ~azure.mgmt.network.models.Commit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - security_user_rule_collection: JSON, + commit_name: str, + resource: _types.Commit, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRuleCollection: - """Creates or updates a security user rule collection. + ) -> AsyncLROPoller[_models.Commit]: + """Creates or updates a commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param security_user_rule_collection: The Security User Rule Collection to create or update. - Required. - :type security_user_rule_collection: JSON + :param commit_name: The name of the commit. Required. + :type commit_name: str + :param resource: Parameters supplied to specify which commit to create. Required. + :type resource: ~azure.mgmt.network.types.Commit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - security_user_rule_collection: IO[bytes], + commit_name: str, + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRuleCollection: - """Creates or updates a security user rule collection. + ) -> AsyncLROPoller[_models.Commit]: + """Creates or updates a commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param security_user_rule_collection: The Security User Rule Collection to create or update. - Required. - :type security_user_rule_collection: IO[bytes] + :param commit_name: The name of the commit. Required. + :type commit_name: str + :param resource: Parameters supplied to specify which commit to create. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - security_user_rule_collection: Union[_models.SecurityUserRuleCollection, JSON, IO[bytes]], + commit_name: str, + resource: Union[_models.Commit, _types.Commit, IO[bytes]], **kwargs: Any - ) -> _models.SecurityUserRuleCollection: - """Creates or updates a security user rule collection. + ) -> AsyncLROPoller[_models.Commit]: + """Creates or updates a commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param security_user_rule_collection: The Security User Rule Collection to create or update. Is - one of the following types: SecurityUserRuleCollection, JSON, IO[bytes] Required. - :type security_user_rule_collection: ~azure.mgmt.network.models.SecurityUserRuleCollection or - JSON or IO[bytes] - :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + :param commit_name: The name of the commit. Required. + :type commit_name: str + :param resource: Parameters supplied to specify which commit to create. Is either a Commit type + or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.Commit or ~azure.mgmt.network.types.Commit or + IO[bytes] + :return: An instance of AsyncLROPoller that returns Commit. The Commit is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Commit] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) + cls: ClsType[_models.Commit] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + commit_name=commit_name, + resource=resource, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(security_user_rule_collection, (IOBase, bytes)): - _content = security_user_rule_collection - else: - _content = json.dumps(security_user_rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.Commit, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_security_user_rule_collections_create_or_update_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.SecurityUserRuleCollection, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.Commit].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.Commit]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -35709,16 +35599,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_security_user_rule_collections_delete_request( + _request = build_commits_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, + commit_name=commit_name, subscription_id=self._config.subscription_id, - force=force, api_version=api_version, headers=_headers, params=_params, @@ -35736,7 +35624,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -35762,31 +35650,17 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - *, - force: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, network_manager_name: str, commit_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a Security User Rule collection. + """Deletes a commit. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :keyword force: Deletes the resource even if it is part of a deployed configuration. If the - configuration has been deployed, the service will do a cleanup deployment in the background, - prior to the delete. Default value is None. - :paramtype force: bool + :param commit_name: The name of the commit. Required. + :type commit_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -35794,7 +35668,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -35803,9 +35677,7 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - force=force, + commit_name=commit_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -35845,22 +35717,18 @@ def list( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityUserRuleCollection"]: - """Lists all the security user rule collections in a security configuration, in a paginated - format. + ) -> AsyncItemPaged["_models.Commit"]: + """Lists all commits for the specified network manager. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -35869,16 +35737,15 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of SecurityUserRuleCollection - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserRuleCollection] + :return: An iterator like instance of Commit + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Commit] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityUserRuleCollection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.Commit]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -35891,10 +35758,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_security_user_rule_collections_list_request( + _request = build_commits_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -35923,7 +35789,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityUserRuleCollection], + List[_models.Commit], deserialized.get("value", []), ) if cls: @@ -35952,14 +35818,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityUserRulesOperations: +class SecurityAdminConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_user_rules` attribute. + :attr:`security_admin_configurations` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -35971,15 +35837,9 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - configuration_name: str, - rule_collection_name: str, - rule_name: str, - **kwargs: Any - ) -> _models.SecurityUserRule: - """Gets a security user rule. + self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any + ) -> _models.SecurityAdminConfiguration: + """Retrieves a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -35988,13 +35848,9 @@ async def get( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRule + :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -36008,15 +35864,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) - _request = build_security_user_rules_get_request( + _request = build_security_admin_configurations_get_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -36043,7 +35897,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36051,7 +35905,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityUserRule, response.json()) + deserialized = _deserialize(_models.SecurityAdminConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -36064,14 +35918,12 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, - security_user_rule: _models.SecurityUserRule, + security_admin_configuration: _models.SecurityAdminConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRule: - """Creates or updates a security user rule. + ) -> _models.SecurityAdminConfiguration: + """Creates or updates a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -36080,18 +35932,15 @@ async def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param security_user_rule: The security user rule to create or update. Required. - :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule + :param security_admin_configuration: The security admin configuration to create or update. + Required. + :type security_admin_configuration: ~azure.mgmt.network.models.SecurityAdminConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRule + :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36101,14 +35950,12 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, - security_user_rule: JSON, + security_admin_configuration: _types.SecurityAdminConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRule: - """Creates or updates a security user rule. + ) -> _models.SecurityAdminConfiguration: + """Creates or updates a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -36117,18 +35964,15 @@ async def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param security_user_rule: The security user rule to create or update. Required. - :type security_user_rule: JSON + :param security_admin_configuration: The security admin configuration to create or update. + Required. + :type security_admin_configuration: ~azure.mgmt.network.types.SecurityAdminConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRule + :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36138,14 +35982,12 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, - security_user_rule: IO[bytes], + security_admin_configuration: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityUserRule: - """Creates or updates a security user rule. + ) -> _models.SecurityAdminConfiguration: + """Creates or updates a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -36154,18 +35996,15 @@ async def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param security_user_rule: The security user rule to create or update. Required. - :type security_user_rule: IO[bytes] + :param security_admin_configuration: The security admin configuration to create or update. + Required. + :type security_admin_configuration: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRule + :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36175,12 +36014,12 @@ async def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, - security_user_rule: Union[_models.SecurityUserRule, JSON, IO[bytes]], + security_admin_configuration: Union[ + _models.SecurityAdminConfiguration, _types.SecurityAdminConfiguration, IO[bytes] + ], **kwargs: Any - ) -> _models.SecurityUserRule: - """Creates or updates a security user rule. + ) -> _models.SecurityAdminConfiguration: + """Creates or updates a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -36189,16 +36028,13 @@ async def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str - :param security_user_rule: The security user rule to create or update. Is one of the following - types: SecurityUserRule, JSON, IO[bytes] Required. - :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule or JSON or IO[bytes] - :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityUserRule + :param security_admin_configuration: The security admin configuration to create or update. Is + either a SecurityAdminConfiguration type or a IO[bytes] type. Required. + :type security_admin_configuration: ~azure.mgmt.network.models.SecurityAdminConfiguration or + ~azure.mgmt.network.types.SecurityAdminConfiguration or IO[bytes] + :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -36212,23 +36048,21 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) + cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(security_user_rule, (IOBase, bytes)): - _content = security_user_rule + if isinstance(security_admin_configuration, (IOBase, bytes)): + _content = security_admin_configuration else: - _content = json.dumps(security_user_rule, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(security_admin_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_security_user_rules_create_or_update_request( + _request = build_security_admin_configurations_create_or_update_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -36257,7 +36091,7 @@ async def create_or_update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36265,7 +36099,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityUserRule, response.json()) + deserialized = _deserialize(_models.SecurityAdminConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -36277,8 +36111,6 @@ async def _delete_initial( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, *, force: Optional[bool] = None, **kwargs: Any @@ -36294,15 +36126,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_security_user_rules_delete_request( + _request = build_security_admin_configurations_delete_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, subscription_id=self._config.subscription_id, force=force, api_version=api_version, @@ -36329,7 +36159,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36352,13 +36182,11 @@ async def begin_delete( resource_group_name: str, network_manager_name: str, configuration_name: str, - rule_collection_name: str, - rule_name: str, *, force: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a security user rule. + """Deletes a network manager security admin configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -36367,11 +36195,6 @@ async def begin_delete( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str - :param rule_name: The name of the rule. Required. - :type rule_name: str :keyword force: Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. Default value is None. @@ -36383,7 +36206,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -36393,8 +36216,6 @@ async def begin_delete( resource_group_name=resource_group_name, network_manager_name=network_manager_name, configuration_name=configuration_name, - rule_collection_name=rule_collection_name, - rule_name=rule_name, force=force, api_version=api_version, cls=lambda x, y, z: x, @@ -36435,25 +36256,19 @@ def list( self, resource_group_name: str, network_manager_name: str, - configuration_name: str, - rule_collection_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityUserRule"]: - """Lists all Security User Rules in a rule collection. + ) -> AsyncItemPaged["_models.SecurityAdminConfiguration"]: + """Lists all the network manager security admin configurations in a network manager, in a + paginated format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param configuration_name: The name of the network manager Security Configuration. Required. - :type configuration_name: str - :param rule_collection_name: The name of the network manager security Configuration rule - collection. Required. - :type rule_collection_name: str :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -36462,15 +36277,16 @@ def list( include a skipToken parameter that specifies a starting point to use for subsequent calls. Default value is None. :paramtype skip_token: str - :return: An iterator like instance of SecurityUserRule - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserRule] + :return: An iterator like instance of SecurityAdminConfiguration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityAdminConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityUserRule]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityAdminConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -36483,11 +36299,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_security_user_rules_list_request( + _request = build_security_admin_configurations_list_request( resource_group_name=resource_group_name, network_manager_name=network_manager_name, - configuration_name=configuration_name, - rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, top=top, skip_token=skip_token, @@ -36516,7 +36330,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityUserRule], + List[_models.SecurityAdminConfiguration], deserialized.get("value", []), ) if cls: @@ -36535,7 +36349,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36545,14 +36359,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkProfilesOperations: +class AdminRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_profiles` attribute. + :attr:`admin_rule_collections` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -36564,19 +36378,27 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_profile_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.NetworkProfile: - """Gets the specified network profile in a specified resource group. + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + **kwargs: Any + ) -> _models.AdminRuleCollection: + """Gets a network manager security admin configuration rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -36590,14 +36412,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) - _request = build_network_profiles_get_request( + _request = build_admin_rule_collections_get_request( resource_group_name=resource_group_name, - network_profile_name=network_profile_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -36623,7 +36446,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36631,7 +36454,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkProfile, response.json()) + deserialized = _deserialize(_models.AdminRuleCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -36642,27 +36465,33 @@ async def get( async def create_or_update( self, resource_group_name: str, - network_profile_name: str, - parameters: _models.NetworkProfile, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_collection: _models.AdminRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkProfile: - """Creates or updates a network profile. + ) -> _models.AdminRuleCollection: + """Creates or updates an admin rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to the create or update network profile operation. - Required. - :type parameters: ~azure.mgmt.network.models.NetworkProfile + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile + :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36670,27 +36499,33 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_profile_name: str, - parameters: JSON, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_collection: _types.AdminRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkProfile: - """Creates or updates a network profile. + ) -> _models.AdminRuleCollection: + """Creates or updates an admin rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to the create or update network profile operation. - Required. - :type parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: ~azure.mgmt.network.types.AdminRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile + :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36698,27 +36533,33 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_profile_name: str, - parameters: IO[bytes], + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_collection: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkProfile: - """Creates or updates a network profile. + ) -> _models.AdminRuleCollection: + """Creates or updates an admin rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to the create or update network profile operation. - Required. - :type parameters: IO[bytes] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Required. + :type rule_collection: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile + :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -36726,22 +36567,30 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_profile_name: str, - parameters: Union[_models.NetworkProfile, JSON, IO[bytes]], + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_collection: Union[_models.AdminRuleCollection, _types.AdminRuleCollection, IO[bytes]], **kwargs: Any - ) -> _models.NetworkProfile: - """Creates or updates a network profile. + ) -> _models.AdminRuleCollection: + """Creates or updates an admin rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to the create or update network profile operation. Is - one of the following types: NetworkProfile, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkProfile or JSON or IO[bytes] - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_collection: The Rule Collection to create or update. Is either a + AdminRuleCollection type or a IO[bytes] type. Required. + :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection or + ~azure.mgmt.network.types.AdminRuleCollection or IO[bytes] + :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -36755,20 +36604,22 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) + cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(rule_collection, (IOBase, bytes)): + _content = rule_collection else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_profiles_create_or_update_request( + _request = build_admin_rule_collections_create_or_update_request( resource_group_name=resource_group_name, - network_profile_name=network_profile_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -36797,7 +36648,7 @@ async def create_or_update( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36805,186 +36656,22 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkProfile, response.json()) + deserialized = _deserialize(_models.AdminRuleCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def update_tags( - self, - resource_group_name: str, - network_profile_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkProfile: - """Updates network profile tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to update network profile tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - network_profile_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkProfile: - """Updates network profile tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to update network profile tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( + async def _delete_initial( self, resource_group_name: str, - network_profile_name: str, - parameters: IO[bytes], + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkProfile: - """Updates network profile tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to update network profile tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - network_profile_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + force: Optional[bool] = None, **kwargs: Any - ) -> _models.NetworkProfile: - """Updates network profile tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str - :param parameters: Parameters supplied to update network profile tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkProfile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_network_profiles_update_tags_request( - resource_group_name=resource_group_name, - network_profile_name=network_profile_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkProfile, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, network_profile_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -36997,13 +36684,16 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_profiles_delete_request( + _request = build_admin_rule_collections_delete_request( resource_group_name=resource_group_name, - network_profile_name=network_profile_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, + force=force, api_version=api_version, headers=_headers, params=_params, @@ -37028,7 +36718,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37047,15 +36737,31 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_profile_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified network profile. + """Deletes an admin rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_profile_name: The name of the public IP prefix. Required. - :type network_profile_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -37063,7 +36769,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -37071,7 +36777,10 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_profile_name=network_profile_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + force=force, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -37107,21 +36816,42 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkProfile"]: - """Gets all network profiles in a resource group. + def list( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.AdminRuleCollection"]: + """Lists all the rule collections in a security admin configuration, in a paginated format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of NetworkProfile - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkProfile] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of AdminRuleCollection + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AdminRuleCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.AdminRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -37134,9 +36864,13 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_network_profiles_list_request( + _request = build_admin_rule_collections_list_request( resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -37162,87 +36896,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkProfile], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkProfile"]: - """Gets all the network profiles in a subscription. - - :return: An iterator like instance of NetworkProfile - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkProfile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_profiles_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkProfile], + List[_models.AdminRuleCollection], deserialized.get("value", []), ) if cls: @@ -37261,7 +36915,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37271,14 +36925,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityGroupsOperations: +class SecurityUserConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_security_groups` attribute. + :attr:`security_user_configurations` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -37290,19 +36944,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_security_group_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.NetworkSecurityGroup: - """Gets the specified network security group. + self, resource_group_name: str, network_manager_name: str, configuration_name: str, **kwargs: Any + ) -> _models.SecurityUserConfiguration: + """Retrieves a network manager security user configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -37316,14 +36971,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) - _request = build_network_security_groups_get_request( + _request = build_security_user_configurations_get_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -37357,20 +37012,138 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) + deserialized = _deserialize(_models.SecurityUserConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + @overload + async def create_or_update( self, resource_group_name: str, - network_security_group_name: str, - parameters: Union[_models.NetworkSecurityGroup, JSON, IO[bytes]], + network_manager_name: str, + configuration_name: str, + security_user_configuration: _models.SecurityUserConfiguration, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.SecurityUserConfiguration: + """Creates or updates a network manager security user configuration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param security_user_configuration: The security user configuration to create or update. + Required. + :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + security_user_configuration: _types.SecurityUserConfiguration, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SecurityUserConfiguration: + """Creates or updates a network manager security user configuration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param security_user_configuration: The security user configuration to create or update. + Required. + :type security_user_configuration: ~azure.mgmt.network.types.SecurityUserConfiguration + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + security_user_configuration: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SecurityUserConfiguration: + """Creates or updates a network manager security user configuration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param security_user_configuration: The security user configuration to create or update. + Required. + :type security_user_configuration: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + security_user_configuration: Union[ + _models.SecurityUserConfiguration, _types.SecurityUserConfiguration, IO[bytes] + ], + **kwargs: Any + ) -> _models.SecurityUserConfiguration: + """Creates or updates a network manager security user configuration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param security_user_configuration: The security user configuration to create or update. Is + either a SecurityUserConfiguration type or a IO[bytes] type. Required. + :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration or + ~azure.mgmt.network.types.SecurityUserConfiguration or IO[bytes] + :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -37382,20 +37155,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(security_user_configuration, (IOBase, bytes)): + _content = security_user_configuration else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(security_user_configuration, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_security_groups_create_or_update_request( + _request = build_security_user_configurations_create_or_update_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -37409,7 +37183,7 @@ async def _create_or_update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -37417,10 +37191,11 @@ async def _create_or_update_initial( response = pipeline_response.http_response if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -37428,357 +37203,24 @@ async def _create_or_update_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SecurityUserConfiguration, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: _models.NetworkSecurityGroup, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: - """Creates or updates a network security group in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to the create or update network security group - operation. Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The - NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: - """Creates or updates a network security group in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to the create or update network security group - operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The - NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: - """Creates or updates a network security group in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to the create or update network security group - operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The - NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: Union[_models.NetworkSecurityGroup, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: - """Creates or updates a network security group in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to the create or update network security group - operation. Is one of the following types: NetworkSecurityGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The - NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NetworkSecurityGroup].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NetworkSecurityGroup]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def update_tags( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkSecurityGroup: - """Updates a network security group tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to update network security group tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkSecurityGroup: - """Updates a network security group tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to update network security group tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( + async def _delete_initial( self, resource_group_name: str, - network_security_group_name: str, - parameters: IO[bytes], + network_manager_name: str, + configuration_name: str, *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkSecurityGroup: - """Updates a network security group tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to update network security group tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - network_security_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + force: Optional[bool] = None, **kwargs: Any - ) -> _models.NetworkSecurityGroup: - """Updates a network security group tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param parameters: Parameters supplied to update network security group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_network_security_groups_update_tags_request( - resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, network_security_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -37791,13 +37233,15 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_security_groups_delete_request( + _request = build_security_user_configurations_delete_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, + force=force, api_version=api_version, headers=_headers, params=_params, @@ -37841,15 +37285,27 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_security_group_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified network security group. + """Deletes a network manager security user configuration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -37857,7 +37313,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -37865,7 +37321,9 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + force=force, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -37901,22 +37359,41 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkSecurityGroup"]: - """Gets all network security groups in a resource group. + def list( + self, + resource_group_name: str, + network_manager_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityUserConfiguration"]: + """Lists all the network manager security user configurations in a network manager, in a paginated + format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of NetworkSecurityGroup + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of SecurityUserConfiguration :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityUserConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -37929,9 +37406,12 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_network_security_groups_list_request( + _request = build_security_user_configurations_list_request( resource_group_name=resource_group_name, + network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -37957,88 +37437,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkSecurityGroup], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkSecurityGroup"]: - """Gets all network security groups in a subscription. - - :return: An iterator like instance of NetworkSecurityGroup - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityGroup] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_security_groups_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkSecurityGroup], + List[_models.SecurityUserConfiguration], deserialized.get("value", []), ) if cls: @@ -38067,14 +37466,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityRulesOperations: +class SecurityUserRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_rules` attribute. + :attr:`security_user_rule_collections` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -38086,19 +37485,28 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any - ) -> _models.SecurityRule: - """Get the specified network security rule. + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + **kwargs: Any + ) -> _models.SecurityUserRuleCollection: + """Gets a network manager security user configuration rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str - :return: SecurityRule. The SecurityRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityRule + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -38112,13 +37520,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) - _request = build_security_rules_get_request( + _request = build_security_user_rule_collections_get_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - security_rule_name=security_rule_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -38153,272 +37562,233 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityRule, response.json()) + deserialized = _deserialize(_models.SecurityUserRuleCollection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - network_security_group_name: str, - security_rule_name: str, - security_rule_parameters: Union[_models.SecurityRule, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(security_rule_parameters, (IOBase, bytes)): - _content = security_rule_parameters - else: - _content = json.dumps(security_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_security_rules_create_or_update_request( - resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - security_rule_name=security_rule_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - network_security_group_name: str, - security_rule_name: str, - security_rule_parameters: _models.SecurityRule, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + security_user_rule_collection: _models.SecurityUserRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityRule]: - """Creates or updates a security rule in the specified network security group. + ) -> _models.SecurityUserRuleCollection: + """Creates or updates a security user rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str - :param security_rule_parameters: Parameters supplied to the create or update network security - rule operation. Required. - :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param security_user_rule_collection: The Security User Rule Collection to create or update. + Required. + :type security_user_rule_collection: ~azure.mgmt.network.models.SecurityUserRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] + :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - network_security_group_name: str, - security_rule_name: str, - security_rule_parameters: JSON, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + security_user_rule_collection: _types.SecurityUserRuleCollection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityRule]: - """Creates or updates a security rule in the specified network security group. + ) -> _models.SecurityUserRuleCollection: + """Creates or updates a security user rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str - :param security_rule_parameters: Parameters supplied to the create or update network security - rule operation. Required. - :type security_rule_parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param security_user_rule_collection: The Security User Rule Collection to create or update. + Required. + :type security_user_rule_collection: ~azure.mgmt.network.types.SecurityUserRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] + :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - network_security_group_name: str, - security_rule_name: str, - security_rule_parameters: IO[bytes], + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + security_user_rule_collection: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityRule]: - """Creates or updates a security rule in the specified network security group. + ) -> _models.SecurityUserRuleCollection: + """Creates or updates a security user rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str - :param security_rule_parameters: Parameters supplied to the create or update network security - rule operation. Required. - :type security_rule_parameters: IO[bytes] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param security_user_rule_collection: The Security User Rule Collection to create or update. + Required. + :type security_user_rule_collection: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] + :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - network_security_group_name: str, - security_rule_name: str, - security_rule_parameters: Union[_models.SecurityRule, JSON, IO[bytes]], + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + security_user_rule_collection: Union[ + _models.SecurityUserRuleCollection, _types.SecurityUserRuleCollection, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityRule]: - """Creates or updates a security rule in the specified network security group. + ) -> _models.SecurityUserRuleCollection: + """Creates or updates a security user rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str - :param security_rule_parameters: Parameters supplied to the create or update network security - rule operation. Is one of the following types: SecurityRule, JSON, IO[bytes] Required. - :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param security_user_rule_collection: The Security User Rule Collection to create or update. Is + either a SecurityUserRuleCollection type or a IO[bytes] type. Required. + :type security_user_rule_collection: ~azure.mgmt.network.models.SecurityUserRuleCollection or + ~azure.mgmt.network.types.SecurityUserRuleCollection or IO[bytes] + :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - security_rule_name=security_rule_name, - security_rule_parameters=security_rule_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.SecurityRule, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(security_user_rule_collection, (IOBase, bytes)): + _content = security_user_rule_collection + else: + _content = json.dumps(security_user_rule_collection, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_security_user_rule_collections_create_or_update_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.SecurityRule].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SecurityRule]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.SecurityUserRuleCollection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -38431,14 +37801,16 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_security_rules_delete_request( + _request = build_security_user_rule_collections_delete_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - security_rule_name=security_rule_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, + force=force, api_version=api_version, headers=_headers, params=_params, @@ -38482,17 +37854,31 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified network security rule. + """Deletes a Security User Rule collection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param security_rule_name: The name of the security rule. Required. - :type security_rule_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -38500,7 +37886,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -38508,8 +37894,10 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - security_rule_name=security_rule_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + force=force, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -38546,24 +37934,43 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list( - self, resource_group_name: str, network_security_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityRule"]: - """Gets all security rules in a network security group. + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityUserRuleCollection"]: + """Lists all the security user rule collections in a security configuration, in a paginated + format. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :return: An iterator like instance of SecurityRule - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityRule] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of SecurityUserRuleCollection + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserRuleCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityUserRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -38576,10 +37983,13 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_security_rules_list_request( + _request = build_security_user_rule_collections_list_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -38605,7 +38015,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityRule], + List[_models.SecurityUserRuleCollection], deserialized.get("value", []), ) if cls: @@ -38634,14 +38044,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DefaultSecurityRulesOperations: +class SecurityUserRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`default_security_rules` attribute. + :attr:`security_user_rules` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -38653,19 +38063,30 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_security_group_name: str, default_security_rule_name: str, **kwargs: Any - ) -> _models.SecurityRule: - """Get the specified default network security rule. + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + **kwargs: Any + ) -> _models.SecurityUserRule: + """Gets a security user rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :param default_security_rule_name: The name of the default security rule. Required. - :type default_security_rule_name: str - :return: SecurityRule. The SecurityRule is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityRule + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -38679,13 +38100,15 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) - _request = build_default_security_rules_get_request( + _request = build_security_user_rules_get_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, - default_security_rule_name=default_security_rule_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + rule_name=rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -38720,49 +38143,447 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityRule, response.json()) + deserialized = _deserialize(_models.SecurityUserRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @distributed_trace - def list( - self, resource_group_name: str, network_security_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityRule"]: - """Gets all default security rules in a network security group. + @overload + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + security_user_rule: _models.SecurityUserRule, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SecurityUserRule: + """Creates or updates a security user rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_group_name: The name of the network security group. Required. - :type network_security_group_name: str - :return: An iterator like instance of SecurityRule - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityRule] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param security_user_rule: The security user rule to create or update. Required. + :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRule :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + @overload + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + security_user_rule: _types.SecurityUserRule, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SecurityUserRule: + """Creates or updates a security user rule. - def prepare_request(next_link=None): + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param security_user_rule: The security user rule to create or update. Required. + :type security_user_rule: ~azure.mgmt.network.types.SecurityUserRule + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRule + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + security_user_rule: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.SecurityUserRule: + """Creates or updates a security user rule. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param security_user_rule: The security user rule to create or update. Required. + :type security_user_rule: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRule + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + security_user_rule: Union[_models.SecurityUserRule, _types.SecurityUserRule, IO[bytes]], + **kwargs: Any + ) -> _models.SecurityUserRule: + """Creates or updates a security user rule. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :param security_user_rule: The security user rule to create or update. Is either a + SecurityUserRule type or a IO[bytes] type. Required. + :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule or + ~azure.mgmt.network.types.SecurityUserRule or IO[bytes] + :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityUserRule + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(security_user_rule, (IOBase, bytes)): + _content = security_user_rule + else: + _content = json.dumps(security_user_rule, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_security_user_rules_create_or_update_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + rule_name=rule_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SecurityUserRule, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_security_user_rules_delete_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + rule_name=rule_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + rule_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a security user rule. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :param rule_name: The name of the rule. Required. + :type rule_name: str + :keyword force: Deletes the resource even if it is part of a deployed configuration. If the + configuration has been deployed, the service will do a cleanup deployment in the background, + prior to the delete. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, + rule_name=rule_name, + force=force, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, + resource_group_name: str, + network_manager_name: str, + configuration_name: str, + rule_collection_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityUserRule"]: + """Lists all Security User Rules in a rule collection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param configuration_name: The name of the network manager Security Configuration. Required. + :type configuration_name: str + :param rule_collection_name: The name of the network manager security Configuration rule + collection. Required. + :type rule_collection_name: str + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of SecurityUserRule + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityUserRule] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityUserRule]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): if not next_link: - _request = build_default_security_rules_list_request( + _request = build_security_user_rules_list_request( resource_group_name=resource_group_name, - network_security_group_name=network_security_group_name, + network_manager_name=network_manager_name, + configuration_name=configuration_name, + rule_collection_name=rule_collection_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -38788,7 +38609,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityRule], + List[_models.SecurityUserRule], deserialized.get("value", []), ) if cls: @@ -38817,14 +38638,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimetersOperations: +class NetworkProfilesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_security_perimeters` attribute. + :attr:`network_profiles` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -38836,18 +38657,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_security_perimeter_name: str, **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Gets the specified network security perimeter by the name. + self, resource_group_name: str, network_profile_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.NetworkProfile: + """Gets the specified network profile in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -38861,13 +38683,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) - _request = build_network_security_perimeters_get_request( + _request = build_network_profiles_get_request( resource_group_name=resource_group_name, - network_security_perimeter_name=network_security_perimeter_name, + network_profile_name=network_profile_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -38901,7 +38724,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) + deserialized = _deserialize(_models.NetworkProfile, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -38912,28 +38735,27 @@ async def get( async def create_or_update( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: _models.NetworkSecurityPerimeter, + network_profile_name: str, + parameters: _models.NetworkProfile, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Creates or updates a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Creates or updates a network profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to create or update the network security perimeter. + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to the create or update network profile operation. Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :type parameters: ~azure.mgmt.network.models.NetworkProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @@ -38941,28 +38763,27 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: JSON, + network_profile_name: str, + parameters: _types.NetworkProfile, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Creates or updates a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Creates or updates a network profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to create or update the network security perimeter. + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to the create or update network profile operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @@ -38970,28 +38791,27 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_security_perimeter_name: str, + network_profile_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Creates or updates a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Creates or updates a network profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to create or update the network security perimeter. + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to the create or update network profile operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @@ -38999,23 +38819,23 @@ async def create_or_update( async def create_or_update( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: Union[_models.NetworkSecurityPerimeter, JSON, IO[bytes]], + network_profile_name: str, + parameters: Union[_models.NetworkProfile, _types.NetworkProfile, IO[bytes]], **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Creates or updates a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Creates or updates a network profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to create or update the network security perimeter. Is - one of the following types: NetworkSecurityPerimeter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter or JSON or IO[bytes] - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to the create or update network profile operation. Is + either a NetworkProfile type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkProfile or + ~azure.mgmt.network.types.NetworkProfile or IO[bytes] + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -39029,9 +38849,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -39040,9 +38860,9 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_security_perimeters_create_or_update_request( + _request = build_network_profiles_create_or_update_request( resource_group_name=resource_group_name, - network_security_perimeter_name=network_security_perimeter_name, + network_profile_name=network_profile_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -39079,7 +38899,7 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) + deserialized = _deserialize(_models.NetworkProfile, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -39087,110 +38907,107 @@ async def create_or_update( return deserialized # type: ignore @overload - async def patch( + async def update_tags( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: _models.UpdateTagsRequest, + network_profile_name: str, + parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Patch Tags for a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Updates network profile tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to the network security perimeter. Required. - :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to update network profile tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def patch( + async def update_tags( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: JSON, + network_profile_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Patch Tags for a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Updates network profile tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to the network security perimeter. Required. - :type parameters: JSON + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to update network profile tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def patch( + async def update_tags( self, resource_group_name: str, - network_security_perimeter_name: str, + network_profile_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Patch Tags for a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Updates network profile tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to the network security perimeter. Required. + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to update network profile tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def patch( + async def update_tags( self, resource_group_name: str, - network_security_perimeter_name: str, - parameters: Union[_models.UpdateTagsRequest, JSON, IO[bytes]], + network_profile_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.NetworkSecurityPerimeter: - """Patch Tags for a Network Security Perimeter. + ) -> _models.NetworkProfile: + """Updates network profile tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :param parameters: Parameter supplied to the network security perimeter. Is one of the - following types: UpdateTagsRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest or JSON or IO[bytes] - :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str + :param parameters: Parameters supplied to update network profile tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -39204,9 +39021,9 @@ async def patch( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -39215,9 +39032,9 @@ async def patch( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_security_perimeters_patch_request( + _request = build_network_profiles_update_tags_request( resource_group_name=resource_group_name, - network_security_perimeter_name=network_security_perimeter_name, + network_profile_name=network_profile_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -39254,7 +39071,7 @@ async def patch( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) + deserialized = _deserialize(_models.NetworkProfile, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -39262,12 +39079,7 @@ async def patch( return deserialized # type: ignore async def _delete_initial( - self, - resource_group_name: str, - network_security_perimeter_name: str, - *, - force_deletion: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, network_profile_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -39280,14 +39092,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_security_perimeters_delete_request( + _request = build_network_profiles_delete_request( resource_group_name=resource_group_name, - network_security_perimeter_name=network_security_perimeter_name, + network_profile_name=network_profile_name, subscription_id=self._config.subscription_id, - force_deletion=force_deletion, api_version=api_version, headers=_headers, params=_params, @@ -39319,9 +39130,7 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -39333,23 +39142,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, - resource_group_name: str, - network_security_perimeter_name: str, - *, - force_deletion: Optional[bool] = None, - **kwargs: Any + self, resource_group_name: str, network_profile_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a network security perimeter. + """Deletes the specified network profile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_security_perimeter_name: The name of the network security perimeter. Required. - :type network_security_perimeter_name: str - :keyword force_deletion: Deletes the resource even if it contains any child associations. - Default value is None. - :paramtype force_deletion: bool + :param network_profile_name: The name of the public IP prefix. Required. + :type network_profile_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -39357,7 +39158,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39365,8 +39166,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_security_perimeter_name=network_security_perimeter_name, - force_deletion=force_deletion, + network_profile_name=network_profile_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -39402,32 +39202,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkSecurityPerimeter"]: - """List network security perimeters in a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkProfile"]: + """Gets all network profiles in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkSecurityPerimeter - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityPerimeter] + :return: An iterator like instance of NetworkProfile + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -39440,11 +39229,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_network_security_perimeters_list_request( + _request = build_network_profiles_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -39470,7 +39257,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkSecurityPerimeter], + List[_models.NetworkProfile], deserialized.get("value", []), ) if cls: @@ -39499,29 +39286,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_by_subscription( - self, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkSecurityPerimeter"]: - """List all network security perimeters in a subscription. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkProfile"]: + """Gets all the network profiles in a subscription. - :keyword top: An optional query parameter which specifies the maximum number of records to be - returned by the server. Default value is None. - :paramtype top: int - :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. - If a previous response contains a nextLink element, the value of the nextLink element will - include a skipToken parameter that specifies a starting point to use for subsequent calls. - Default value is None. - :paramtype skip_token: str - :return: An iterator like instance of NetworkSecurityPerimeter - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityPerimeter] + :return: An iterator like instance of NetworkProfile + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -39534,10 +39310,8 @@ def list_by_subscription( def prepare_request(next_link=None): if not next_link: - _request = build_network_security_perimeters_list_by_subscription_request( + _request = build_network_profiles_list_all_request( subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -39563,7 +39337,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkSecurityPerimeter], + List[_models.NetworkProfile], deserialized.get("value", []), ) if cls: @@ -39592,14 +39366,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ReachabilityAnalysisIntentsOperations: +class NetworkSecurityGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`reachability_analysis_intents` attribute. + :attr:`network_security_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -39611,29 +39385,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, - **kwargs: Any - ) -> _models.ReachabilityAnalysisIntent: - """Get the Reachability Analysis Intent. - - Get the Reachability Analysis Intent. + self, resource_group_name: str, network_security_group_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.NetworkSecurityGroup: + """Gets the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -39647,15 +39411,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) - _request = build_reachability_analysis_intents_get_request( + _request = build_network_security_groups_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_intent_name=reachability_analysis_intent_name, + network_security_group_name=network_security_group_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -39681,7 +39444,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39689,252 +39452,435 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ReachabilityAnalysisIntent, response.json()) + deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + network_security_group_name: str, + parameters: Union[_models.NetworkSecurityGroup, _types.NetworkSecurityGroup, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_security_groups_create_or_update_request( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, - body: _models.ReachabilityAnalysisIntent, + network_security_group_name: str, + parameters: _models.NetworkSecurityGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisIntent: - """Creates Reachability Analysis Intent. - - Creates Reachability Analysis Intent. + ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: + """Creates or updates a network security group in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :param body: Reachability Analysis Intent object to create/update. Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network security group + operation. Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The + NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, - body: JSON, + network_security_group_name: str, + parameters: _types.NetworkSecurityGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisIntent: - """Creates Reachability Analysis Intent. - - Creates Reachability Analysis Intent. + ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: + """Creates or updates a network security group in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :param body: Reachability Analysis Intent object to create/update. Required. - :type body: JSON + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network security group + operation. Required. + :type parameters: ~azure.mgmt.network.types.NetworkSecurityGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The + NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, - body: IO[bytes], + network_security_group_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisIntent: - """Creates Reachability Analysis Intent. - - Creates Reachability Analysis Intent. + ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: + """Creates or updates a network security group in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :param body: Reachability Analysis Intent object to create/update. Required. - :type body: IO[bytes] + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network security group + operation. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The + NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, - body: Union[_models.ReachabilityAnalysisIntent, JSON, IO[bytes]], + network_security_group_name: str, + parameters: Union[_models.NetworkSecurityGroup, _types.NetworkSecurityGroup, IO[bytes]], **kwargs: Any - ) -> _models.ReachabilityAnalysisIntent: - """Creates Reachability Analysis Intent. - - Creates Reachability Analysis Intent. + ) -> AsyncLROPoller[_models.NetworkSecurityGroup]: + """Creates or updates a network security group in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :param body: Reachability Analysis Intent object to create/update. Is one of the following - types: ReachabilityAnalysisIntent, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent or JSON or IO[bytes] - :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network security group + operation. Is either a NetworkSecurityGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup or + ~azure.mgmt.network.types.NetworkSecurityGroup or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkSecurityGroup. The + NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(body, (IOBase, bytes)): - _content = body - else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_reachability_analysis_intents_create_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_intent_name=reachability_analysis_intent_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.ReachabilityAnalysisIntent, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkSecurityGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkSecurityGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - @distributed_trace_async - async def delete( + @overload + async def update_tags( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_intent_name: str, + network_security_group_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", **kwargs: Any - ) -> None: - """Deletes Reachability Analysis Intent. - - Deletes Reachability Analysis Intent. + ) -> _models.NetworkSecurityGroup: + """Updates a network security group tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. - :type reachability_analysis_intent_name: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to update network security group tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_security_group_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkSecurityGroup: + """Updates a network security group tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to update network security group tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_security_group_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkSecurityGroup: + """Updates a network security group tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to update network security group tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + network_security_group_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.NetworkSecurityGroup: + """Updates a network security group tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param parameters: Parameters supplied to update network security group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_security_groups_update_tags_request( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkSecurityGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, network_security_group_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39942,14 +39888,12 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_reachability_analysis_intents_delete_request( + _request = build_network_security_groups_delete_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_intent_name=reachability_analysis_intent_name, + network_security_group_name=network_security_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -39960,69 +39904,116 @@ async def delete( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _stream = False + _decompress = kwargs.pop("decompress", True) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 204]: + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore - @distributed_trace - def list( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - *, - skip_token: Optional[str] = None, - skip: int = 0, - top: int = 50, - sort_key: Optional[str] = None, - sort_value: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.ReachabilityAnalysisIntent"]: - """Gets list of Reachability Analysis Intents . + return deserialized # type: ignore - Gets list of Reachability Analysis Intents . + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, network_security_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :keyword skip_token: Optional skip token. Default value is None. - :paramtype skip_token: str - :keyword skip: Optional num entries to skip. Default value is 0. - :paramtype skip: int - :keyword top: Optional num entries to show. Default value is 50. - :paramtype top: int - :keyword sort_key: Optional key by which to sort. Default value is None. - :paramtype sort_key: str - :keyword sort_value: Optional sort value for pagination. Default value is None. - :paramtype sort_value: str - :return: An iterator like instance of ReachabilityAnalysisIntent + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkSecurityGroup"]: + """Gets all network security groups in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of NetworkSecurityGroup :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ReachabilityAnalysisIntent] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ReachabilityAnalysisIntent]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -40035,16 +40026,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_reachability_analysis_intents_list_request( + _request = build_network_security_groups_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, subscription_id=self._config.subscription_id, - skip_token=skip_token, - skip=skip, - top=top, - sort_key=sort_key, - sort_value=sort_value, api_version=api_version, headers=_headers, params=_params, @@ -40070,7 +40054,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ReachabilityAnalysisIntent], + List[_models.NetworkSecurityGroup], deserialized.get("value", []), ) if cls: @@ -40089,7 +40073,88 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkSecurityGroup"]: + """Gets all network security groups in a subscription. + + :return: An iterator like instance of NetworkSecurityGroup + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_security_groups_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkSecurityGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40099,14 +40164,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VerifierWorkspacesOperations: +class SecurityRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`verifier_workspaces` attribute. + :attr:`security_rules` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -40118,21 +40183,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_manager_name: str, workspace_name: str, **kwargs: Any - ) -> _models.VerifierWorkspace: - """Gets Verifier Workspace. - - Gets Verifier Workspace. + self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any + ) -> _models.SecurityRule: + """Get the specified network security rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str + :return: SecurityRule. The SecurityRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -40146,13 +40209,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) - _request = build_verifier_workspaces_get_request( + _request = build_security_rules_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -40179,7 +40242,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40187,484 +40250,273 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VerifierWorkspace, response.json()) + deserialized = _deserialize(_models.SecurityRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + network_security_group_name: str, + security_rule_name: str, + security_rule_parameters: Union[_models.SecurityRule, _types.SecurityRule, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(security_rule_parameters, (IOBase, bytes)): + _content = security_rule_parameters + else: + _content = json.dumps(security_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_security_rules_create_or_update_request( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: _models.VerifierWorkspace, + network_security_group_name: str, + security_rule_name: str, + security_rule_parameters: _models.SecurityRule, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.VerifierWorkspace: - """Creates Verifier Workspace. - - Creates Verifier Workspace. + ) -> AsyncLROPoller[_models.SecurityRule]: + """Creates or updates a security rule in the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Required. - :type body: ~azure.mgmt.network.models.VerifierWorkspace + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or update network security + rule operation. Required. + :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: JSON, + network_security_group_name: str, + security_rule_name: str, + security_rule_parameters: _types.SecurityRule, *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.VerifierWorkspace: - """Creates Verifier Workspace. - - Creates Verifier Workspace. + ) -> AsyncLROPoller[_models.SecurityRule]: + """Creates or updates a security rule in the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Required. - :type body: JSON + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or update network security + rule operation. Required. + :type security_rule_parameters: ~azure.mgmt.network.types.SecurityRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: IO[bytes], + network_security_group_name: str, + security_rule_name: str, + security_rule_parameters: IO[bytes], *, content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.VerifierWorkspace: - """Creates Verifier Workspace. - - Creates Verifier Workspace. + ) -> AsyncLROPoller[_models.SecurityRule]: + """Creates or updates a security rule in the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Required. - :type body: IO[bytes] + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or update network security + rule operation. Required. + :type security_rule_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create( + async def begin_create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: Union[_models.VerifierWorkspace, JSON, IO[bytes]], - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, + network_security_group_name: str, + security_rule_name: str, + security_rule_parameters: Union[_models.SecurityRule, _types.SecurityRule, IO[bytes]], **kwargs: Any - ) -> _models.VerifierWorkspace: - """Creates Verifier Workspace. - - Creates Verifier Workspace. + ) -> AsyncLROPoller[_models.SecurityRule]: + """Creates or updates a security rule in the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Is one of the following types: - VerifierWorkspace, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.VerifierWorkspace or JSON or IO[bytes] - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or update network security + rule operation. Is either a SecurityRule type or a IO[bytes] type. Required. + :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule or + ~azure.mgmt.network.types.SecurityRule or IO[bytes] + :return: An instance of AsyncLROPoller that returns SecurityRule. The SecurityRule is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityRule] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(body, (IOBase, bytes)): - _content = body - else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_verifier_workspaces_create_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, + cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, + security_rule_parameters=security_rule_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VerifierWorkspace, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def update( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: Optional[_models.VerifierWorkspaceUpdate] = None, - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.VerifierWorkspace: - """Updates Verifier Workspace. - - Updates Verifier Workspace. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Default value is None. - :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: Optional[JSON] = None, - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.VerifierWorkspace: - """Updates Verifier Workspace. - - Updates Verifier Workspace. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Default value is None. - :type body: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.VerifierWorkspace: - """Updates Verifier Workspace. - - Updates Verifier Workspace. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Default value is None. - :type body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - body: Optional[Union[_models.VerifierWorkspaceUpdate, JSON, IO[bytes]]] = None, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any - ) -> _models.VerifierWorkspace: - """Updates Verifier Workspace. - - Updates Verifier Workspace. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param body: Verifier Workspace object to create/update. Is one of the following types: - VerifierWorkspaceUpdate, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate or JSON or IO[bytes] - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions - :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VerifierWorkspace - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if body else None - cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" if body else None - _content = None - if isinstance(body, (IOBase, bytes)): - _content = body - else: - if body is not None: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SecurityRule, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_verifier_workspaces_update_request( - resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CommonErrorResponse, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.VerifierWorkspace, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SecurityRule].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SecurityRule]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) async def _delete_initial( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any + self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -40672,27 +40524,19 @@ async def _delete_initial( 409: ResourceExistsError, 304: ResourceNotModifiedError, } - if match_condition == MatchConditions.IfNotModified: - error_map[412] = ResourceModifiedError - elif match_condition == MatchConditions.IfPresent: - error_map[412] = ResourceNotFoundError - elif match_condition == MatchConditions.IfMissing: - error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_verifier_workspaces_delete_request( + _request = build_security_rules_delete_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, subscription_id=self._config.subscription_id, - etag=etag, - match_condition=match_condition, api_version=api_version, headers=_headers, params=_params, @@ -40710,14 +40554,14 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40736,31 +40580,17 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - *, - etag: Optional[str] = None, - match_condition: Optional[MatchConditions] = None, - **kwargs: Any + self, resource_group_name: str, network_security_group_name: str, security_rule_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes Verifier Workspace. - - Deletes Verifier Workspace. + """Deletes the specified network security rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is - None. - :paramtype etag: str - :keyword match_condition: The match condition to use upon the etag. Default value is None. - :paramtype match_condition: ~azure.core.MatchConditions + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. Required. + :type security_rule_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -40768,7 +40598,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -40776,10 +40606,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - etag=etag, - match_condition=match_condition, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -40816,45 +40644,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list( - self, - resource_group_name: str, - network_manager_name: str, - *, - skip_token: Optional[str] = None, - skip: int = 0, - top: int = 50, - sort_key: Optional[str] = None, - sort_value: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.VerifierWorkspace"]: - """Gets list of Verifier Workspaces. - - Gets list of Verifier Workspaces. + self, resource_group_name: str, network_security_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityRule"]: + """Gets all security rules in a network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :keyword skip_token: Optional skip token. Default value is None. - :paramtype skip_token: str - :keyword skip: Optional num entries to skip. Default value is 0. - :paramtype skip: int - :keyword top: Optional num entries to show. Default value is 50. - :paramtype top: int - :keyword sort_key: Optional key by which to sort. Default value is None. - :paramtype sort_key: str - :keyword sort_value: Optional sort value for pagination. Default value is None. - :paramtype sort_value: str - :return: An iterator like instance of VerifierWorkspace - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VerifierWorkspace] + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :return: An iterator like instance of SecurityRule + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityRule] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VerifierWorkspace]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -40867,15 +40674,10 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_verifier_workspaces_list_request( + _request = build_security_rules_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, + network_security_group_name=network_security_group_name, subscription_id=self._config.subscription_id, - skip_token=skip_token, - skip=skip, - top=top, - sort_key=sort_key, - sort_value=sort_value, api_version=api_version, headers=_headers, params=_params, @@ -40901,7 +40703,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VerifierWorkspace], + List[_models.SecurityRule], deserialized.get("value", []), ) if cls: @@ -40920,7 +40722,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40930,14 +40732,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ReachabilityAnalysisRunsOperations: +class DefaultSecurityRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`reachability_analysis_runs` attribute. + :attr:`default_security_rules` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -40949,28 +40751,201 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, - **kwargs: Any - ) -> _models.ReachabilityAnalysisRun: - """Gets Reachability Analysis Run. + self, resource_group_name: str, network_security_group_name: str, default_security_rule_name: str, **kwargs: Any + ) -> _models.SecurityRule: + """Get the specified default network security rule. - Gets Reachability Analysis Run. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :param default_security_rule_name: The name of the default security rule. Required. + :type default_security_rule_name: str + :return: SecurityRule. The SecurityRule is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityRule + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) + + _request = build_default_security_rules_get_request( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + default_security_rule_name=default_security_rule_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SecurityRule, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, network_security_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityRule"]: + """Gets all default security rules in a network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str - :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :param network_security_group_name: The name of the network security group. Required. + :type network_security_group_name: str + :return: An iterator like instance of SecurityRule + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityRule] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_default_security_rules_list_request( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SecurityRule], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NetworkSecurityPerimetersOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_security_perimeters` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, network_security_perimeter_name: str, **kwargs: Any + ) -> _models.NetworkSecurityPerimeter: + """Gets the specified network security perimeter by the name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -40984,14 +40959,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) - _request = build_reachability_analysis_runs_get_request( + _request = build_network_security_perimeters_get_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_run_name=reachability_analysis_run_name, + network_security_perimeter_name=network_security_perimeter_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -41018,7 +40991,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41026,7 +40999,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ReachabilityAnalysisRun, response.json()) + deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -41034,138 +41007,114 @@ async def get( return deserialized # type: ignore @overload - async def create( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, - body: _models.ReachabilityAnalysisRun, + network_security_perimeter_name: str, + parameters: _models.NetworkSecurityPerimeter, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisRun: - """Creates Reachability Analysis Runs. - - Creates Reachability Analysis Runs. + ) -> _models.NetworkSecurityPerimeter: + """Creates or updates a Network Security Perimeter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str - :param body: Analysis Run resource object to create/update. Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to create or update the network security perimeter. + Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, - body: JSON, + network_security_perimeter_name: str, + parameters: _types.NetworkSecurityPerimeter, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisRun: - """Creates Reachability Analysis Runs. - - Creates Reachability Analysis Runs. + ) -> _models.NetworkSecurityPerimeter: + """Creates or updates a Network Security Perimeter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str - :param body: Analysis Run resource object to create/update. Required. - :type body: JSON + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to create or update the network security perimeter. + Required. + :type parameters: ~azure.mgmt.network.types.NetworkSecurityPerimeter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, - body: IO[bytes], + network_security_perimeter_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ReachabilityAnalysisRun: - """Creates Reachability Analysis Runs. - - Creates Reachability Analysis Runs. + ) -> _models.NetworkSecurityPerimeter: + """Creates or updates a Network Security Perimeter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str - :param body: Analysis Run resource object to create/update. Required. - :type body: IO[bytes] + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to create or update the network security perimeter. + Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create( + async def create_or_update( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, - body: Union[_models.ReachabilityAnalysisRun, JSON, IO[bytes]], + network_security_perimeter_name: str, + parameters: Union[_models.NetworkSecurityPerimeter, _types.NetworkSecurityPerimeter, IO[bytes]], **kwargs: Any - ) -> _models.ReachabilityAnalysisRun: - """Creates Reachability Analysis Runs. - - Creates Reachability Analysis Runs. + ) -> _models.NetworkSecurityPerimeter: + """Creates or updates a Network Security Perimeter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str - :param body: Analysis Run resource object to create/update. Is one of the following types: - ReachabilityAnalysisRun, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun or JSON or IO[bytes] - :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to create or update the network security perimeter. Is + either a NetworkSecurityPerimeter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter or + ~azure.mgmt.network.types.NetworkSecurityPerimeter or IO[bytes] + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -41179,22 +41128,20 @@ async def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(body, (IOBase, bytes)): - _content = body + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_reachability_analysis_runs_create_request( + _request = build_network_security_perimeters_create_or_update_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_run_name=reachability_analysis_run_name, + network_security_perimeter_name=network_security_perimeter_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -41223,7 +41170,7 @@ async def create( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41231,21 +41178,121 @@ async def create( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ReachabilityAnalysisRun, response.json()) + deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( + @overload + async def patch( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, + network_security_perimeter_name: str, + parameters: _models.UpdateTagsRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.NetworkSecurityPerimeter: + """Patch Tags for a Network Security Perimeter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to the network security perimeter. Required. + :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def patch( + self, + resource_group_name: str, + network_security_perimeter_name: str, + parameters: _types.UpdateTagsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkSecurityPerimeter: + """Patch Tags for a Network Security Perimeter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to the network security perimeter. Required. + :type parameters: ~azure.mgmt.network.types.UpdateTagsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def patch( + self, + resource_group_name: str, + network_security_perimeter_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkSecurityPerimeter: + """Patch Tags for a Network Security Perimeter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to the network security perimeter. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def patch( + self, + resource_group_name: str, + network_security_perimeter_name: str, + parameters: Union[_models.UpdateTagsRequest, _types.UpdateTagsRequest, IO[bytes]], + **kwargs: Any + ) -> _models.NetworkSecurityPerimeter: + """Patch Tags for a Network Security Perimeter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :param parameters: Parameter supplied to the network security perimeter. Is either a + UpdateTagsRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest or + ~azure.mgmt.network.types.UpdateTagsRequest or IO[bytes] + :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -41254,18 +41301,93 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) - _request = build_reachability_analysis_runs_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_security_perimeters_patch_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_run_name=reachability_analysis_run_name, + network_security_perimeter_name=network_security_perimeter_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkSecurityPerimeter, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + network_security_perimeter_name: str, + *, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_security_perimeters_delete_request( + resource_group_name=resource_group_name, + network_security_perimeter_name=network_security_perimeter_name, subscription_id=self._config.subscription_id, + force_deletion=force_deletion, api_version=api_version, headers=_headers, params=_params, @@ -41283,21 +41405,23 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -41311,24 +41435,21 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, - network_manager_name: str, - workspace_name: str, - reachability_analysis_run_name: str, + network_security_perimeter_name: str, + *, + force_deletion: Optional[bool] = None, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes Reachability Analysis Run. - - Deletes Reachability Analysis Run. + """Deletes a network security perimeter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :param reachability_analysis_run_name: Reachability Analysis Run name. Required. - :type reachability_analysis_run_name: str + :param network_security_perimeter_name: The name of the network security perimeter. Required. + :type network_security_perimeter_name: str + :keyword force_deletion: Deletes the resource even if it contains any child associations. + Default value is None. + :paramtype force_deletion: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -41336,7 +41457,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -41344,9 +41465,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, - reachability_analysis_run_name=reachability_analysis_run_name, + network_security_perimeter_name=network_security_perimeter_name, + force_deletion=force_deletion, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -41383,49 +41503,31 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list( - self, - resource_group_name: str, - network_manager_name: str, - workspace_name: str, - *, - skip_token: Optional[str] = None, - skip: int = 0, - top: int = 50, - sort_key: Optional[str] = None, - sort_value: Optional[str] = None, - **kwargs: Any - ) -> AsyncItemPaged["_models.ReachabilityAnalysisRun"]: - """Gets list of Reachability Analysis Runs. - - Gets list of Reachability Analysis Runs. + self, resource_group_name: str, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkSecurityPerimeter"]: + """List network security perimeters in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_manager_name: The name of the network manager. Required. - :type network_manager_name: str - :param workspace_name: The name of the resource. Required. - :type workspace_name: str - :keyword skip_token: Optional skip token. Default value is None. - :paramtype skip_token: str - :keyword skip: Optional num entries to skip. Default value is 0. - :paramtype skip: int - :keyword top: Optional num entries to show. Default value is 50. + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. :paramtype top: int - :keyword sort_key: Optional key by which to sort. Default value is None. - :paramtype sort_key: str - :keyword sort_value: Optional sort value for pagination. Default value is None. - :paramtype sort_value: str - :return: An iterator like instance of ReachabilityAnalysisRun + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of NetworkSecurityPerimeter :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ReachabilityAnalysisRun] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityPerimeter] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ReachabilityAnalysisRun]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -41438,16 +41540,104 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_reachability_analysis_runs_list_request( + _request = build_network_security_perimeters_list_request( resource_group_name=resource_group_name, - network_manager_name=network_manager_name, - workspace_name=workspace_name, subscription_id=self._config.subscription_id, + top=top, skip_token=skip_token, - skip=skip, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkSecurityPerimeter], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription( + self, *, top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkSecurityPerimeter"]: + """List all network security perimeters in a subscription. + + :keyword top: An optional query parameter which specifies the maximum number of records to be + returned by the server. Default value is None. + :paramtype top: int + :keyword skip_token: SkipToken is only used if a previous operation returned a partial result. + If a previous response contains a nextLink element, the value of the nextLink element will + include a skipToken parameter that specifies a starting point to use for subsequent calls. + Default value is None. + :paramtype skip_token: str + :return: An iterator like instance of NetworkSecurityPerimeter + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkSecurityPerimeter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_security_perimeters_list_by_subscription_request( + subscription_id=self._config.subscription_id, top=top, - sort_key=sort_key, - sort_value=sort_value, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -41473,7 +41663,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ReachabilityAnalysisRun], + List[_models.NetworkSecurityPerimeter], deserialized.get("value", []), ) if cls: @@ -41492,7 +41682,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CommonErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41502,14 +41692,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkVirtualApplianceConnectionsOperations: # pylint: disable=name-too-long +class ReachabilityAnalysisIntentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_virtual_appliance_connections` attribute. + :attr:`reachability_analysis_intents` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -41519,16 +41709,33 @@ def __init__(self, *args, **kwargs) -> None: self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - async def _create_or_update_initial( + @distributed_trace_async + async def get( self, resource_group_name: str, - network_virtual_appliance_name: str, - connection_name: str, - network_virtual_appliance_connection_parameters: Union[ - _models.NetworkVirtualApplianceConnection, JSON, IO[bytes] - ], + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.ReachabilityAnalysisIntent: + """Get the Reachability Analysis Intent. + + Get the Reachability Analysis Intent. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -41537,28 +41744,19 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(network_virtual_appliance_connection_parameters, (IOBase, bytes)): - _content = network_virtual_appliance_connection_parameters - else: - _content = json.dumps(network_virtual_appliance_connection_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) - _request = build_network_virtual_appliance_connections_create_or_update_request( + _request = build_reachability_analysis_intents_get_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - connection_name=connection_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_intent_name=reachability_analysis_intent_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -41568,267 +41766,207 @@ async def _create_or_update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ReachabilityAnalysisIntent, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_create_or_update( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - connection_name: str, - network_virtual_appliance_connection_parameters: _models.NetworkVirtualApplianceConnection, + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, + body: _models.ReachabilityAnalysisIntent, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: - """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the - existing NVA connection'. + ) -> _models.ReachabilityAnalysisIntent: + """Creates Reachability Analysis Intent. + + Creates Reachability Analysis Intent. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :param network_virtual_appliance_connection_parameters: Parameters supplied in an - NetworkVirtualApplianceConnection PUT operation. Required. - :type network_virtual_appliance_connection_parameters: - ~azure.mgmt.network.models.NetworkVirtualApplianceConnection + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :param body: Reachability Analysis Intent object to create/update. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The - NetworkVirtualApplianceConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - connection_name: str, - network_virtual_appliance_connection_parameters: JSON, + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, + body: _types.ReachabilityAnalysisIntent, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: - """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the - existing NVA connection'. + ) -> _models.ReachabilityAnalysisIntent: + """Creates Reachability Analysis Intent. + + Creates Reachability Analysis Intent. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :param network_virtual_appliance_connection_parameters: Parameters supplied in an - NetworkVirtualApplianceConnection PUT operation. Required. - :type network_virtual_appliance_connection_parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :param body: Reachability Analysis Intent object to create/update. Required. + :type body: ~azure.mgmt.network.types.ReachabilityAnalysisIntent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The - NetworkVirtualApplianceConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - connection_name: str, - network_virtual_appliance_connection_parameters: IO[bytes], + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: - """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the - existing NVA connection'. + ) -> _models.ReachabilityAnalysisIntent: + """Creates Reachability Analysis Intent. + + Creates Reachability Analysis Intent. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :param network_virtual_appliance_connection_parameters: Parameters supplied in an - NetworkVirtualApplianceConnection PUT operation. Required. - :type network_virtual_appliance_connection_parameters: IO[bytes] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :param body: Reachability Analysis Intent object to create/update. Required. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The - NetworkVirtualApplianceConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - connection_name: str, - network_virtual_appliance_connection_parameters: Union[ - _models.NetworkVirtualApplianceConnection, JSON, IO[bytes] - ], + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, + body: Union[_models.ReachabilityAnalysisIntent, _types.ReachabilityAnalysisIntent, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: - """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the - existing NVA connection'. + ) -> _models.ReachabilityAnalysisIntent: + """Creates Reachability Analysis Intent. + + Creates Reachability Analysis Intent. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :param network_virtual_appliance_connection_parameters: Parameters supplied in an - NetworkVirtualApplianceConnection PUT operation. Is one of the following types: - NetworkVirtualApplianceConnection, JSON, IO[bytes] Required. - :type network_virtual_appliance_connection_parameters: - ~azure.mgmt.network.models.NetworkVirtualApplianceConnection or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The - NetworkVirtualApplianceConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :param body: Reachability Analysis Intent object to create/update. Is either a + ReachabilityAnalysisIntent type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent or + ~azure.mgmt.network.types.ReachabilityAnalysisIntent or IO[bytes] + :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - connection_name=connection_name, - network_virtual_appliance_connection_parameters=network_virtual_appliance_connection_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceConnection, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NetworkVirtualApplianceConnection].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NetworkVirtualApplianceConnection]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get( - self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any - ) -> _models.NetworkVirtualApplianceConnection: - """Retrieves the details of specified NVA connection. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :return: NetworkVirtualApplianceConnection. The NetworkVirtualApplianceConnection is compatible - with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualApplianceConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_virtual_appliance_connections_get_request( + _request = build_reachability_analysis_intents_create_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - connection_name=connection_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_intent_name=reachability_analysis_intent_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -41845,7 +41983,7 @@ async def get( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 201]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -41853,7 +41991,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41861,16 +41999,39 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkVirtualApplianceConnection, response.json()) + deserialized = _deserialize(_models.ReachabilityAnalysisIntent, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def delete( + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + reachability_analysis_intent_name: str, + **kwargs: Any + ) -> None: + """Deletes Reachability Analysis Intent. + + Deletes Reachability Analysis Intent. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. + :type reachability_analysis_intent_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -41882,13 +42043,14 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_network_virtual_appliance_connections_delete_request( + _request = build_reachability_analysis_intents_delete_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - connection_name=connection_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_intent_name=reachability_analysis_intent_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -41899,122 +42061,69 @@ async def _delete_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a NVA connection. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param connection_name: Required. - :type connection_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - connection_name=connection_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def list( - self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkVirtualApplianceConnection"]: - """Lists NetworkVirtualApplianceConnections under the NVA. + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + *, + skip_token: Optional[str] = None, + skip: int = 0, + top: int = 50, + sort_key: Optional[str] = None, + sort_value: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.ReachabilityAnalysisIntent"]: + """Gets list of Reachability Analysis Intents . + + Gets list of Reachability Analysis Intents . :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :return: An iterator like instance of NetworkVirtualApplianceConnection + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :keyword skip_token: Optional skip token. Default value is None. + :paramtype skip_token: str + :keyword skip: Optional num entries to skip. Default value is 0. + :paramtype skip: int + :keyword top: Optional num entries to show. Default value is 50. + :paramtype top: int + :keyword sort_key: Optional key by which to sort. Default value is None. + :paramtype sort_key: str + :keyword sort_value: Optional sort value for pagination. Default value is None. + :paramtype sort_value: str + :return: An iterator like instance of ReachabilityAnalysisIntent :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ReachabilityAnalysisIntent] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkVirtualApplianceConnection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ReachabilityAnalysisIntent]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -42027,10 +42136,16 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_network_virtual_appliance_connections_list_request( + _request = build_reachability_analysis_intents_list_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, subscription_id=self._config.subscription_id, + skip_token=skip_token, + skip=skip, + top=top, + sort_key=sort_key, + sort_value=sort_value, api_version=api_version, headers=_headers, params=_params, @@ -42056,7 +42171,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkVirtualApplianceConnection], + List[_models.ReachabilityAnalysisIntent], deserialized.get("value", []), ) if cls: @@ -42075,7 +42190,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42085,14 +42200,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkVirtualAppliancesOperations: +class VerifierWorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_virtual_appliances` attribute. + :attr:`verifier_workspaces` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -42104,24 +42219,21 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - *, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.NetworkVirtualAppliance: - """Gets the specified Network Virtual Appliance. + self, resource_group_name: str, network_manager_name: str, workspace_name: str, **kwargs: Any + ) -> _models.VerifierWorkspace: + """Gets Verifier Workspace. + + Gets Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -42135,14 +42247,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) - _request = build_network_virtual_appliances_get_request( + _request = build_verifier_workspaces_get_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -42168,7 +42280,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42176,46 +42288,201 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) + deserialized = _deserialize(_models.VerifierWorkspace, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + @overload + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - parameters: Union[_models.NetworkVirtualAppliance, JSON, IO[bytes]], + network_manager_name: str, + workspace_name: str, + body: _models.VerifierWorkspace, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.VerifierWorkspace: + """Creates Verifier Workspace. + + Creates Verifier Workspace. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Required. + :type body: ~azure.mgmt.network.models.VerifierWorkspace + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create( + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + body: _types.VerifierWorkspace, + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.VerifierWorkspace: + """Creates Verifier Workspace. + + Creates Verifier Workspace. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Required. + :type body: ~azure.mgmt.network.types.VerifierWorkspace + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create( + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.VerifierWorkspace: + """Creates Verifier Workspace. + + Creates Verifier Workspace. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create( + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + body: Union[_models.VerifierWorkspace, _types.VerifierWorkspace, IO[bytes]], + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any + ) -> _models.VerifierWorkspace: + """Creates Verifier Workspace. + + Creates Verifier Workspace. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Is either a VerifierWorkspace type or + a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.VerifierWorkspace or + ~azure.mgmt.network.types.VerifierWorkspace or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(body, (IOBase, bytes)): + _content = body else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_virtual_appliances_create_or_update_request( + _request = build_verifier_workspaces_create_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -42228,7 +42495,7 @@ async def _create_or_update_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) @@ -42236,297 +42503,179 @@ async def _create_or_update_initial( response = pipeline_response.http_response if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VerifierWorkspace, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_create_or_update( + async def update( self, resource_group_name: str, - network_virtual_appliance_name: str, - parameters: _models.NetworkVirtualAppliance, + network_manager_name: str, + workspace_name: str, + body: Optional[_models.VerifierWorkspaceUpdate] = None, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: - """Creates or updates the specified Network Virtual Appliance. + ) -> _models.VerifierWorkspace: + """Updates Verifier Workspace. + + Updates Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance. - Required. - :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The - NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: - """Creates or updates the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance. - Required. - :type parameters: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Default value is None. + :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The - NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def update( self, resource_group_name: str, - network_virtual_appliance_name: str, - parameters: IO[bytes], + network_manager_name: str, + workspace_name: str, + body: Optional[_types.VerifierWorkspaceUpdate] = None, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: - """Creates or updates the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The - NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - parameters: Union[_models.NetworkVirtualAppliance, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: - """Creates or updates the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance. Is - one of the following types: NetworkVirtualAppliance, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The - NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NetworkVirtualAppliance].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NetworkVirtualAppliance]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + ) -> _models.VerifierWorkspace: + """Updates Verifier Workspace. - @overload - async def update_tags( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkVirtualAppliance: - """Updates a Network Virtual Appliance. + Updates Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Default value is None. + :type body: ~azure.mgmt.network.types.VerifierWorkspaceUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update( self, resource_group_name: str, - network_virtual_appliance_name: str, - parameters: JSON, + network_manager_name: str, + workspace_name: str, + body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.NetworkVirtualAppliance: - """Updates a Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> _models.VerifierWorkspace: + """Updates Verifier Workspace. - @overload - async def update_tags( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NetworkVirtualAppliance: - """Updates a Network Virtual Appliance. + Updates Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. - :type parameters: IO[bytes] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Default value is None. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def update( self, resource_group_name: str, - network_virtual_appliance_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + network_manager_name: str, + workspace_name: str, + body: Optional[Union[_models.VerifierWorkspaceUpdate, _types.VerifierWorkspaceUpdate, IO[bytes]]] = None, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, **kwargs: Any - ) -> _models.NetworkVirtualAppliance: - """Updates a Network Virtual Appliance. + ) -> _models.VerifierWorkspace: + """Updates Verifier Workspace. + + Updates Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param body: Verifier Workspace object to create/update. Is either a VerifierWorkspaceUpdate + type or a IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate or + ~azure.mgmt.network.types.VerifierWorkspaceUpdate or IO[bytes] + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions + :return: VerifierWorkspace. The VerifierWorkspace is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VerifierWorkspace :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -42535,26 +42684,39 @@ async def update_tags( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) + content_type = content_type if body else None + cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) - content_type = content_type or "application/json" + content_type = content_type or "application/json" if body else None _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(body, (IOBase, bytes)): + _content = body else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if body is not None: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None - _request = build_network_virtual_appliances_update_tags_request( + _request = build_verifier_workspaces_update_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, content_type=content_type, content=_content, @@ -42582,7 +42744,7 @@ async def update_tags( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42590,7 +42752,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) + deserialized = _deserialize(_models.VerifierWorkspace, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -42598,7 +42760,14 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -42606,18 +42775,27 @@ async def _delete_initial( 409: ResourceExistsError, 304: ResourceNotModifiedError, } + if match_condition == MatchConditions.IfNotModified: + error_map[412] = ResourceModifiedError + elif match_condition == MatchConditions.IfPresent: + error_map[412] = ResourceNotFoundError + elif match_condition == MatchConditions.IfMissing: + error_map[412] = ResourceExistsError error_map.update(kwargs.pop("error_map", {}) or {}) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_virtual_appliances_delete_request( + _request = build_verifier_workspaces_delete_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, subscription_id=self._config.subscription_id, + etag=etag, + match_condition=match_condition, api_version=api_version, headers=_headers, params=_params, @@ -42635,14 +42813,14 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42661,15 +42839,31 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + *, + etag: Optional[str] = None, + match_condition: Optional[MatchConditions] = None, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified Network Virtual Appliance. + """Deletes Verifier Workspace. + + Deletes Verifier Workspace. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is + None. + :paramtype etag: str + :keyword match_condition: The match condition to use upon the etag. Default value is None. + :paramtype match_condition: ~azure.core.MatchConditions :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -42677,7 +42871,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -42685,7 +42879,10 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + etag=etag, + match_condition=match_condition, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -42721,24 +42918,46 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.NetworkVirtualAppliance"]: - """Lists all Network Virtual Appliances in a resource group. + def list( + self, + resource_group_name: str, + network_manager_name: str, + *, + skip_token: Optional[str] = None, + skip: int = 0, + top: int = 50, + sort_key: Optional[str] = None, + sort_value: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged["_models.VerifierWorkspace"]: + """Gets list of Verifier Workspaces. + + Gets list of Verifier Workspaces. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of NetworkVirtualAppliance - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualAppliance] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :keyword skip_token: Optional skip token. Default value is None. + :paramtype skip_token: str + :keyword skip: Optional num entries to skip. Default value is 0. + :paramtype skip: int + :keyword top: Optional num entries to show. Default value is 50. + :paramtype top: int + :keyword sort_key: Optional key by which to sort. Default value is None. + :paramtype sort_key: str + :keyword sort_value: Optional sort value for pagination. Default value is None. + :paramtype sort_value: str + :return: An iterator like instance of VerifierWorkspace + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VerifierWorkspace] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VerifierWorkspace]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -42751,9 +42970,15 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_network_virtual_appliances_list_by_resource_group_request( + _request = build_verifier_workspaces_list_request( resource_group_name=resource_group_name, + network_manager_name=network_manager_name, subscription_id=self._config.subscription_id, + skip_token=skip_token, + skip=skip, + top=top, + sort_key=sort_key, + sort_value=sort_value, api_version=api_version, headers=_headers, params=_params, @@ -42779,7 +43004,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.NetworkVirtualAppliance], + List[_models.VerifierWorkspace], deserialized.get("value", []), ) if cls: @@ -42798,7 +43023,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42807,21 +43032,50 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkVirtualAppliance"]: - """Gets all Network Virtual Appliances in a subscription. - :return: An iterator like instance of NetworkVirtualAppliance - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualAppliance] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) +class ReachabilityAnalysisRunsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`reachability_analysis_runs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, + **kwargs: Any + ) -> _models.ReachabilityAnalysisRun: + """Gets Reachability Analysis Run. + Gets Reachability Analysis Run. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -42830,327 +43084,270 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkVirtualAppliance } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_virtual_appliances_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) - return _request + _request = build_reachability_analysis_runs_get_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_run_name=reachability_analysis_run_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkVirtualAppliance], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _restart_initial( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] - ] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if network_virtual_appliance_instance_ids else None - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if network_virtual_appliance_instance_ids else None - _content = None - if isinstance(network_virtual_appliance_instance_ids, (IOBase, bytes)): - _content = network_virtual_appliance_instance_ids - else: - if network_virtual_appliance_instance_ids is not None: - _content = json.dumps(network_virtual_appliance_instance_ids, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None - - _request = build_network_virtual_appliances_restart_request( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ReachabilityAnalysisRun, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_restart( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, + body: _models.ReachabilityAnalysisRun, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + ) -> _models.ReachabilityAnalysisRun: + """Creates Reachability Analysis Runs. + + Creates Reachability Analysis Runs. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :param body: Analysis Run resource object to create/update. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_restart( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, + body: _types.ReachabilityAnalysisRun, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + ) -> _models.ReachabilityAnalysisRun: + """Creates Reachability Analysis Runs. + + Creates Reachability Analysis Runs. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: JSON + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :param body: Analysis Run resource object to create/update. Required. + :type body: ~azure.mgmt.network.types.ReachabilityAnalysisRun :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_restart( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + ) -> _models.ReachabilityAnalysisRun: + """Creates Reachability Analysis Runs. + + Creates Reachability Analysis Runs. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: IO[bytes] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :param body: Analysis Run resource object to create/update. Required. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_restart( + async def create( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] - ] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, + body: Union[_models.ReachabilityAnalysisRun, _types.ReachabilityAnalysisRun, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + ) -> _models.ReachabilityAnalysisRun: + """Creates Reachability Analysis Runs. + + Creates Reachability Analysis Runs. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Is one of the following types: - NetworkVirtualApplianceInstanceIds, JSON, IO[bytes] Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :param body: Analysis Run resource object to create/update. Is either a ReachabilityAnalysisRun + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun or + ~azure.mgmt.network.types.ReachabilityAnalysisRun or IO[bytes] + :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if network_virtual_appliance_instance_ids else None - cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_reachability_analysis_runs_create_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_run_name=reachability_analysis_run_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CommonErrorResponse, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.ReachabilityAnalysisRun, response.json()) - async def _reimage_initial( + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] - ] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -43161,31 +43358,19 @@ async def _reimage_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if network_virtual_appliance_instance_ids else None + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if network_virtual_appliance_instance_ids else None - _content = None - if isinstance(network_virtual_appliance_instance_ids, (IOBase, bytes)): - _content = network_virtual_appliance_instance_ids - else: - if network_virtual_appliance_instance_ids is not None: - _content = json.dumps(network_virtual_appliance_instance_ids, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None - - _request = build_network_virtual_appliances_reimage_request( + _request = build_reachability_analysis_runs_delete_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_run_name=reachability_analysis_run_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -43202,14 +43387,14 @@ async def _reimage_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.CommonErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43226,142 +43411,47 @@ async def _reimage_initial( return deserialized # type: ignore - @overload - async def begin_reimage( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_reimage( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_reimage( - self, - resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_reimage( + async def begin_delete( self, resource_group_name: str, - network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] - ] = None, + network_manager_name: str, + workspace_name: str, + reachability_analysis_run_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. + ) -> AsyncLROPoller[None]: + """Deletes Reachability Analysis Run. + + Deletes Reachability Analysis Run. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Is one of the following types: - NetworkVirtualApplianceInstanceIds, JSON, IO[bytes] Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :param reachability_analysis_run_name: Reachability Analysis Run name. Required. + :type reachability_analysis_run_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if network_virtual_appliance_instance_ids else None - cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._reimage_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + reachability_analysis_run_name=reachability_analysis_run_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -43370,12 +43460,9 @@ async def begin_reimage( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -43390,23 +43477,162 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_boot_diagnostic_logs_initial( + @distributed_trace + def list( self, resource_group_name: str, - network_virtual_appliance_name: str, - request: Union[_models.NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes]], + network_manager_name: str, + workspace_name: str, + *, + skip_token: Optional[str] = None, + skip: int = 0, + top: int = 50, + sort_key: Optional[str] = None, + sort_value: Optional[str] = None, **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> AsyncItemPaged["_models.ReachabilityAnalysisRun"]: + """Gets list of Reachability Analysis Runs. + + Gets list of Reachability Analysis Runs. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_manager_name: The name of the network manager. Required. + :type network_manager_name: str + :param workspace_name: The name of the resource. Required. + :type workspace_name: str + :keyword skip_token: Optional skip token. Default value is None. + :paramtype skip_token: str + :keyword skip: Optional num entries to skip. Default value is 0. + :paramtype skip: int + :keyword top: Optional num entries to show. Default value is 50. + :paramtype top: int + :keyword sort_key: Optional key by which to sort. Default value is None. + :paramtype sort_key: str + :keyword sort_value: Optional sort value for pagination. Default value is None. + :paramtype sort_value: str + :return: An iterator like instance of ReachabilityAnalysisRun + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ReachabilityAnalysisRun] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ReachabilityAnalysisRun]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_reachability_analysis_runs_list_request( + resource_group_name=resource_group_name, + network_manager_name=network_manager_name, + workspace_name=workspace_name, + subscription_id=self._config.subscription_id, + skip_token=skip_token, + skip=skip, + top=top, + sort_key=sort_key, + sort_value=sort_value, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ReachabilityAnalysisRun], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CommonErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NetworkVirtualApplianceConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_virtual_appliance_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + async def _create_or_update_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + connection_name: str, + network_virtual_appliance_connection_parameters: Union[ + _models.NetworkVirtualApplianceConnection, _types.NetworkVirtualApplianceConnection, IO[bytes] + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -43418,20 +43644,21 @@ async def _get_boot_diagnostic_logs_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(request, (IOBase, bytes)): - _content = request + if isinstance(network_virtual_appliance_connection_parameters, (IOBase, bytes)): + _content = network_virtual_appliance_connection_parameters else: - _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(network_virtual_appliance_connection_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_virtual_appliances_get_boot_diagnostic_logs_request( + _request = build_network_virtual_appliance_connections_create_or_update_request( resource_group_name=resource_group_name, network_virtual_appliance_name=network_virtual_appliance_name, + connection_name=connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -43452,7 +43679,7 @@ async def _get_boot_diagnostic_logs_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -43465,8 +43692,10 @@ async def _get_boot_diagnostic_logs_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -43477,139 +43706,157 @@ async def _get_boot_diagnostic_logs_initial( return deserialized # type: ignore @overload - async def begin_get_boot_diagnostic_logs( + async def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - request: _models.NetworkVirtualApplianceBootDiagnosticParameters, + connection_name: str, + network_virtual_appliance_connection_parameters: _models.NetworkVirtualApplianceConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: + """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the + existing NVA connection'. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. - Required. - :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters + :param connection_name: Required. + :type connection_name: str + :param network_virtual_appliance_connection_parameters: Parameters supplied in an + NetworkVirtualApplianceConnection PUT operation. Required. + :type network_virtual_appliance_connection_parameters: + ~azure.mgmt.network.models.NetworkVirtualApplianceConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The + NetworkVirtualApplianceConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_boot_diagnostic_logs( + async def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - request: JSON, + connection_name: str, + network_virtual_appliance_connection_parameters: _types.NetworkVirtualApplianceConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: + """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the + existing NVA connection'. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. - Required. - :type request: JSON + :param connection_name: Required. + :type connection_name: str + :param network_virtual_appliance_connection_parameters: Parameters supplied in an + NetworkVirtualApplianceConnection PUT operation. Required. + :type network_virtual_appliance_connection_parameters: + ~azure.mgmt.network.types.NetworkVirtualApplianceConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The + NetworkVirtualApplianceConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_boot_diagnostic_logs( + async def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - request: IO[bytes], + connection_name: str, + network_virtual_appliance_connection_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: + """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the + existing NVA connection'. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. - Required. - :type request: IO[bytes] + :param connection_name: Required. + :type connection_name: str + :param network_virtual_appliance_connection_parameters: Parameters supplied in an + NetworkVirtualApplianceConnection PUT operation. Required. + :type network_virtual_appliance_connection_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The + NetworkVirtualApplianceConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_boot_diagnostic_logs( + async def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - request: Union[_models.NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes]], + connection_name: str, + network_virtual_appliance_connection_parameters: Union[ + _models.NetworkVirtualApplianceConnection, _types.NetworkVirtualApplianceConnection, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceConnection]: + """Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the + existing NVA connection'. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. Is - one of the following types: NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes] - Required. - :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :param connection_name: Required. + :type connection_name: str + :param network_virtual_appliance_connection_parameters: Parameters supplied in an + NetworkVirtualApplianceConnection PUT operation. Is either a NetworkVirtualApplianceConnection + type or a IO[bytes] type. Required. + :type network_virtual_appliance_connection_parameters: + ~azure.mgmt.network.models.NetworkVirtualApplianceConnection or + ~azure.mgmt.network.types.NetworkVirtualApplianceConnection or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceConnection. The + NetworkVirtualApplianceConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkVirtualApplianceInstanceId] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_boot_diagnostic_logs_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, network_virtual_appliance_name=network_virtual_appliance_name, - request=request, + connection_name=connection_name, + network_virtual_appliance_connection_parameters=network_virtual_appliance_connection_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -43622,7 +43869,7 @@ async def begin_get_boot_diagnostic_logs( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceId, response.json()) + deserialized = _deserialize(_models.NetworkVirtualApplianceConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -43640,50 +43887,4237 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId].from_continuation_token( + return AsyncLROPoller[_models.NetworkVirtualApplianceConnection].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]( + return AsyncLROPoller[_models.NetworkVirtualApplianceConnection]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @distributed_trace_async + async def get( + self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any + ) -> _models.NetworkVirtualApplianceConnection: + """Retrieves the details of specified NVA connection. -class VirtualApplianceSitesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param connection_name: Required. + :type connection_name: str + :return: NetworkVirtualApplianceConnection. The NetworkVirtualApplianceConnection is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualApplianceConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_appliance_sites` attribute. - """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliance_connections_get_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + connection_name=connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkVirtualApplianceConnection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliance_connections_delete_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + connection_name=connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore @distributed_trace_async - async def get( - self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any - ) -> _models.VirtualApplianceSite: - """Gets the specified Virtual Appliance Site. + async def begin_delete( + self, resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a NVA connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of the Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param connection_name: Required. + :type connection_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + connection_name=connection_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkVirtualApplianceConnection"]: + """Lists NetworkVirtualApplianceConnections under the NVA. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :return: An iterator like instance of NetworkVirtualApplianceConnection + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualApplianceConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkVirtualApplianceConnection]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_virtual_appliance_connections_list_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkVirtualApplianceConnection], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NetworkVirtualAppliancesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_virtual_appliances` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.NetworkVirtualAppliance: + """Gets the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliances_get_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: Union[_models.NetworkVirtualAppliance, _types.NetworkVirtualAppliance, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_create_or_update_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: _models.NetworkVirtualAppliance, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: + """Creates or updates the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance. + Required. + :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The + NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: _types.NetworkVirtualAppliance, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: + """Creates or updates the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance. + Required. + :type parameters: ~azure.mgmt.network.types.NetworkVirtualAppliance + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The + NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: + """Creates or updates the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The + NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: Union[_models.NetworkVirtualAppliance, _types.NetworkVirtualAppliance, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualAppliance]: + """Creates or updates the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance. Is + either a NetworkVirtualAppliance type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance or + ~azure.mgmt.network.types.NetworkVirtualAppliance or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkVirtualAppliance. The + NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkVirtualAppliance].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkVirtualAppliance]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update_tags( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkVirtualAppliance: + """Updates a Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkVirtualAppliance: + """Updates a Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkVirtualAppliance: + """Updates a Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.NetworkVirtualAppliance: + """Updates a Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_update_tags_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkVirtualAppliance, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliances_delete_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.NetworkVirtualAppliance"]: + """Lists all Network Virtual Appliances in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of NetworkVirtualAppliance + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_virtual_appliances_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkVirtualAppliance], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkVirtualAppliance"]: + """Gets all Network Virtual Appliances in a subscription. + + :return: An iterator like instance of NetworkVirtualAppliance + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkVirtualAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_virtual_appliances_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkVirtualAppliance], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _restart_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[ + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] + ] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if network_virtual_appliance_instance_ids else None + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if network_virtual_appliance_instance_ids else None + _content = None + if isinstance(network_virtual_appliance_instance_ids, (IOBase, bytes)): + _content = network_virtual_appliance_instance_ids + else: + if network_virtual_appliance_instance_ids is not None: + _content = json.dumps(network_virtual_appliance_instance_ids, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_network_virtual_appliances_restart_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_restart( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_restart( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_types.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_restart( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_restart( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[ + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] + ] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Restarts one or more VMs belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Is either a NetworkVirtualApplianceInstanceIds + type or a IO[bytes] type. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if network_virtual_appliance_instance_ids else None + cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _reimage_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[ + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] + ] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if network_virtual_appliance_instance_ids else None + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if network_virtual_appliance_instance_ids else None + _content = None + if isinstance(network_virtual_appliance_instance_ids, (IOBase, bytes)): + _content = network_virtual_appliance_instance_ids + else: + if network_virtual_appliance_instance_ids is not None: + _content = json.dumps(network_virtual_appliance_instance_ids, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_network_virtual_appliances_reimage_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_types.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[ + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] + ] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Is either a NetworkVirtualApplianceInstanceIds + type or a IO[bytes] type. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if network_virtual_appliance_instance_ids else None + cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._reimage_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceIds]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _get_boot_diagnostic_logs_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: Union[ + _models.NetworkVirtualApplianceBootDiagnosticParameters, + _types.NetworkVirtualApplianceBootDiagnosticParameters, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_get_boot_diagnostic_logs_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: _models.NetworkVirtualApplianceBootDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: _types.NetworkVirtualApplianceBootDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: ~azure.mgmt.network.types.NetworkVirtualApplianceBootDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: Union[ + _models.NetworkVirtualApplianceBootDiagnosticParameters, + _types.NetworkVirtualApplianceBootDiagnosticParameters, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. Is + either a NetworkVirtualApplianceBootDiagnosticParameters type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters or + ~azure.mgmt.network.types.NetworkVirtualApplianceBootDiagnosticParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkVirtualApplianceInstanceId] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_boot_diagnostic_logs_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + request=request, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceId, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.NetworkVirtualApplianceInstanceId]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _prepare_migration_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualAppliancePrepareMigrationRequest, + _types.NetworkVirtualAppliancePrepareMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_prepare_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _models.NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _types.NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualAppliancePrepareMigrationRequest, + _types.NetworkVirtualAppliancePrepareMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. Is + either a NetworkVirtualAppliancePrepareMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._prepare_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _execute_migration_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualApplianceExecuteMigrationRequest, + _types.NetworkVirtualApplianceExecuteMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_execute_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _models.NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _types.NetworkVirtualApplianceExecuteMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_execute_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualApplianceExecuteMigrationRequest, + _types.NetworkVirtualApplianceExecuteMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. Is + either a NetworkVirtualApplianceExecuteMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._execute_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _commit_migration_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualApplianceCommitMigrationRequest, + _types.NetworkVirtualApplianceCommitMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_commit_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _models.NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _types.NetworkVirtualApplianceCommitMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_commit_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualApplianceCommitMigrationRequest, + _types.NetworkVirtualApplianceCommitMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. Is + either a NetworkVirtualApplianceCommitMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._commit_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_virtual_appliance_name"] + }, + api_versions_list=["2025-09-01"], + ) + async def _abort_migration_initial( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliances_abort_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_virtual_appliance_name"] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_abort_migration( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Aborts an in-progress migration of the specified Network Virtual Appliance and rolls back to + the previous state. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._abort_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class VirtualApplianceSitesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`virtual_appliance_sites` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any + ) -> _models.VirtualApplianceSite: + """Gets the specified Virtual Appliance Site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :return: VirtualApplianceSite. The VirtualApplianceSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualApplianceSite + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) + + _request = build_virtual_appliance_sites_get_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + site_name=site_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualApplianceSite, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + site_name: str, + parameters: Union[_models.VirtualApplianceSite, _types.VirtualApplianceSite, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_appliance_sites_create_or_update_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + site_name=site_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + site_name: str, + parameters: _models.VirtualApplianceSite, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualApplianceSite]: + """Creates or updates the specified Network Virtual Appliance Site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site + operation. Required. + :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The + VirtualApplianceSite is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + site_name: str, + parameters: _types.VirtualApplianceSite, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualApplianceSite]: + """Creates or updates the specified Network Virtual Appliance Site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site + operation. Required. + :type parameters: ~azure.mgmt.network.types.VirtualApplianceSite + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The + VirtualApplianceSite is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + site_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualApplianceSite]: + """Creates or updates the specified Network Virtual Appliance Site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site + operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The + VirtualApplianceSite is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + site_name: str, + parameters: Union[_models.VirtualApplianceSite, _types.VirtualApplianceSite, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualApplianceSite]: + """Creates or updates the specified Network Virtual Appliance Site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site + operation. Is either a VirtualApplianceSite type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite or + ~azure.mgmt.network.types.VirtualApplianceSite or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The + VirtualApplianceSite is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + site_name=site_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualApplianceSite, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualApplianceSite].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualApplianceSite]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_appliance_sites_delete_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + site_name=site_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified site from a Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param site_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type site_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + site_name=site_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualApplianceSite"]: + """Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :return: An iterator like instance of VirtualApplianceSite + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualApplianceSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualApplianceSite]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_appliance_sites_list_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualApplianceSite], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class NetworkWatchersOperations: # pylint: disable=docstring-missing-param,too-many-public-methods + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`network_watchers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> _models.NetworkWatcher: + """Gets the specified network watcher by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + + _request = build_network_watchers_get_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkWatcher, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.NetworkWatcher, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher resource. Required. + :type parameters: ~azure.mgmt.network.models.NetworkWatcher + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.NetworkWatcher, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher resource. Required. + :type parameters: ~azure.mgmt.network.types.NetworkWatcher + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.NetworkWatcher, _types.NetworkWatcher, IO[bytes]], + **kwargs: Any + ) -> _models.NetworkWatcher: + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher resource. Is either a + NetworkWatcher type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkWatcher or + ~azure.mgmt.network.types.NetworkWatcher or IO[bytes] + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_create_or_update_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkWatcher, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Updates a network watcher tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters supplied to update network watcher tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Updates a network watcher tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters supplied to update network watcher tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NetworkWatcher: + """Updates a network watcher tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters supplied to update network watcher tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.NetworkWatcher: + """Updates a network watcher tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters supplied to update network watcher tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.NetworkWatcher + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_update_tags_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NetworkWatcher, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_watchers_delete_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified network watcher resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkWatcher"]: + """Gets all network watchers by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of NetworkWatcher + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkWatcher] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_watchers_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkWatcher], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkWatcher"]: + """Gets all network watchers by subscription. + + :return: An iterator like instance of NetworkWatcher + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkWatcher] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_watchers_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.NetworkWatcher], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def get_topology( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.TopologyParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Topology: + """Gets the current network topology by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the representation of topology. Required. + :type parameters: ~azure.mgmt.network.models.TopologyParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Topology. The Topology is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Topology + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_topology( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.TopologyParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Topology: + """Gets the current network topology by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the representation of topology. Required. + :type parameters: ~azure.mgmt.network.types.TopologyParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Topology. The Topology is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Topology + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def get_topology( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Topology: + """Gets the current network topology by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the representation of topology. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Topology. The Topology is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Topology + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def get_topology( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.TopologyParameters, _types.TopologyParameters, IO[bytes]], + **kwargs: Any + ) -> _models.Topology: + """Gets the current network topology by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :return: VirtualApplianceSite. The VirtualApplianceSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualApplianceSite + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the representation of topology. Is either a + TopologyParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TopologyParameters or + ~azure.mgmt.network.types.TopologyParameters or IO[bytes] + :return: Topology. The Topology is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Topology :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -43694,18 +48128,27 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Topology] = kwargs.pop("cls", None) - _request = build_virtual_appliance_sites_get_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_get_topology_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - site_name=site_name, + network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -43730,7 +48173,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43738,19 +48181,18 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualApplianceSite, response.json()) + deserialized = _deserialize(_models.Topology, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + async def _verify_ip_flow_initial( self, resource_group_name: str, - network_virtual_appliance_name: str, - site_name: str, - parameters: Union[_models.VirtualApplianceSite, JSON, IO[bytes]], + network_watcher_name: str, + parameters: Union[_models.VerificationIPFlowParameters, _types.VerificationIPFlowParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -43764,7 +48206,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -43775,10 +48217,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_appliance_sites_create_or_update_request( + _request = build_network_watchers_verify_ip_flow_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - site_name=site_name, + network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -43799,23 +48240,21 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -43826,145 +48265,126 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_verify_ip_flow( self, resource_group_name: str, - network_virtual_appliance_name: str, - site_name: str, - parameters: _models.VirtualApplianceSite, + network_watcher_name: str, + parameters: _models.VerificationIPFlowParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualApplianceSite]: - """Creates or updates the specified Network Virtual Appliance Site. + ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: + """Verify IP flow from the specified VM to a location given the currently configured NSG rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site - operation. Required. - :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. Required. + :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The - VirtualApplianceSite is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The + VerificationIPFlowResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_verify_ip_flow( self, resource_group_name: str, - network_virtual_appliance_name: str, - site_name: str, - parameters: JSON, + network_watcher_name: str, + parameters: _types.VerificationIPFlowParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualApplianceSite]: - """Creates or updates the specified Network Virtual Appliance Site. + ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: + """Verify IP flow from the specified VM to a location given the currently configured NSG rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site - operation. Required. - :type parameters: JSON + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. Required. + :type parameters: ~azure.mgmt.network.types.VerificationIPFlowParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The - VirtualApplianceSite is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The + VerificationIPFlowResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_verify_ip_flow( self, resource_group_name: str, - network_virtual_appliance_name: str, - site_name: str, + network_watcher_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualApplianceSite]: - """Creates or updates the specified Network Virtual Appliance Site. + ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: + """Verify IP flow from the specified VM to a location given the currently configured NSG rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site - operation. Required. + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The - VirtualApplianceSite is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The + VerificationIPFlowResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_verify_ip_flow( self, resource_group_name: str, - network_virtual_appliance_name: str, - site_name: str, - parameters: Union[_models.VirtualApplianceSite, JSON, IO[bytes]], + network_watcher_name: str, + parameters: Union[_models.VerificationIPFlowParameters, _types.VerificationIPFlowParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualApplianceSite]: - """Creates or updates the specified Network Virtual Appliance Site. + ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: + """Verify IP flow from the specified VM to a location given the currently configured NSG rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site - operation. Is one of the following types: VirtualApplianceSite, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualApplianceSite. The - VirtualApplianceSite is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualApplianceSite] + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. Is either a + VerificationIPFlowParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters or + ~azure.mgmt.network.types.VerificationIPFlowParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The + VerificationIPFlowResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) + cls: ClsType[_models.VerificationIPFlowResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._verify_ip_flow_initial( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - site_name=site_name, + network_watcher_name=network_watcher_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -43978,7 +48398,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualApplianceSite, response.json()) + deserialized = _deserialize(_models.VerificationIPFlowResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -43996,18 +48416,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualApplianceSite].from_continuation_token( + return AsyncLROPoller[_models.VerificationIPFlowResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualApplianceSite]( + return AsyncLROPoller[_models.VerificationIPFlowResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any + async def _get_next_hop_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.NextHopParameters, _types.NextHopParameters, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -44017,18 +48441,27 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_appliance_sites_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_get_next_hop_request( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - site_name=site_name, + network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -44045,14 +48478,14 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44069,38 +48502,130 @@ async def _delete_initial( return deserialized # type: ignore + @overload + async def begin_get_next_hop( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.NextHopParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NextHopResult]: + """Gets the next hop from the specified VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination endpoint. Required. + :type parameters: ~azure.mgmt.network.models.NextHopParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_next_hop( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.NextHopParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NextHopResult]: + """Gets the next hop from the specified VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination endpoint. Required. + :type parameters: ~azure.mgmt.network.types.NextHopParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_next_hop( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.NextHopResult]: + """Gets the next hop from the specified VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination endpoint. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, network_virtual_appliance_name: str, site_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified site from a Virtual Appliance. + async def begin_get_next_hop( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.NextHopParameters, _types.NextHopParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.NextHopResult]: + """Gets the next hop from the specified VM. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :param site_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type site_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination endpoint. Is either a + NextHopParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NextHopParameters or + ~azure.mgmt.network.types.NextHopParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NextHopResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_next_hop_initial( resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - site_name=site_name, + network_watcher_name=network_watcher_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -44109,9 +48634,12 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NextHopResult, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -44126,36 +48654,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.NextHopResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualApplianceSite"]: - """Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. - :type network_virtual_appliance_name: str - :return: An iterator like instance of VirtualApplianceSite - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualApplianceSite] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualApplianceSite]] = kwargs.pop("cls", None) + return AsyncLROPoller[_models.NextHopResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + async def _get_vm_security_rules_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.SecurityGroupViewParameters, _types.SecurityGroupViewParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -44164,97 +48679,236 @@ def list( } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_virtual_appliance_sites_list_request( - resource_group_name=resource_group_name, - network_virtual_appliance_name=network_virtual_appliance_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - return _request + _request = build_network_watchers_get_vm_security_rules_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualApplianceSite], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - return pipeline_response + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - return AsyncItemPaged(get_next, extract_data) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized # type: ignore -class NetworkWatchersOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. + @overload + async def begin_get_vm_security_rules( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.SecurityGroupViewParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: + """Gets the configured and effective security group rules on the specified VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the VM to check security groups for. Required. + :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The + SecurityGroupViewResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_vm_security_rules( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.SecurityGroupViewParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: + """Gets the configured and effective security group rules on the specified VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the VM to check security groups for. Required. + :type parameters: ~azure.mgmt.network.types.SecurityGroupViewParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The + SecurityGroupViewResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`network_watchers` attribute. - """ + @overload + async def begin_get_vm_security_rules( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: + """Gets the configured and effective security group rules on the specified VM. - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the VM to check security groups for. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The + SecurityGroupViewResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def get(self, resource_group_name: str, network_watcher_name: str, **kwargs: Any) -> _models.NetworkWatcher: - """Gets the specified network watcher by resource group. + async def begin_get_vm_security_rules( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.SecurityGroupViewParameters, _types.SecurityGroupViewParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: + """Gets the configured and effective security group rules on the specified VM. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :param parameters: Parameters that define the VM to check security groups for. Is either a + SecurityGroupViewParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters or + ~azure.mgmt.network.types.SecurityGroupViewParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The + SecurityGroupViewResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SecurityGroupViewResult] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_vm_security_rules_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SecurityGroupViewResult, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SecurityGroupViewResult].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SecurityGroupViewResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _get_troubleshooting_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.TroubleshootingParameters, _types.TroubleshootingParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -44263,17 +48917,27 @@ async def get(self, resource_group_name: str, network_watcher_name: str, **kwarg } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_watchers_get_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_get_troubleshooting_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -44283,19 +48947,18 @@ async def get(self, resource_group_name: str, network_watcher_name: str, **kwarg _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.ErrorResponse, @@ -44303,72 +48966,76 @@ async def get(self, resource_group_name: str, network_watcher_name: str, **kwarg ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkWatcher, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - async def create_or_update( + async def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.NetworkWatcher, + parameters: _models.TroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Creates or updates a network watcher in the specified resource group. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Initiate troubleshooting on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the network watcher resource. Required. - :type parameters: ~azure.mgmt.network.models.NetworkWatcher + :param parameters: Parameters that define the resource to troubleshoot. Required. + :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.TroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Creates or updates a network watcher in the specified resource group. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Initiate troubleshooting on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the network watcher resource. Required. - :type parameters: JSON + :param parameters: Parameters that define the resource to troubleshoot. Required. + :type parameters: ~azure.mgmt.network.types.TroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, @@ -44376,46 +49043,110 @@ async def create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Creates or updates a network watcher in the specified resource group. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Initiate troubleshooting on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the network watcher resource. Required. + :param parameters: Parameters that define the resource to troubleshoot. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NetworkWatcher, JSON, IO[bytes]], + parameters: Union[_models.TroubleshootingParameters, _types.TroubleshootingParameters, IO[bytes]], **kwargs: Any - ) -> _models.NetworkWatcher: - """Creates or updates a network watcher in the specified resource group. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Initiate troubleshooting on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the network watcher resource. Is one of the following - types: NetworkWatcher, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkWatcher or JSON or IO[bytes] - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :param parameters: Parameters that define the resource to troubleshoot. Is either a + TroubleshootingParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters or + ~azure.mgmt.network.types.TroubleshootingParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_troubleshooting_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TroubleshootingResult, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.TroubleshootingResult].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.TroubleshootingResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _get_troubleshooting_result_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.QueryTroubleshootingParameters, _types.QueryTroubleshootingParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -44427,9 +49158,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -44438,7 +49169,7 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_create_or_update_request( + _request = build_network_watchers_get_troubleshooting_result_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, @@ -44454,19 +49185,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.ErrorResponse, @@ -44474,72 +49204,78 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.NetworkWatcher, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - async def update_tags( + async def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.TagsObject, + parameters: _models.QueryTroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Updates a network watcher tags. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Get the last completed troubleshooting result on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters supplied to update network watcher tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param parameters: Parameters that define the resource to query the troubleshooting result. + Required. + :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.QueryTroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Updates a network watcher tags. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Get the last completed troubleshooting result on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters supplied to update network watcher tags. Required. - :type parameters: JSON + :param parameters: Parameters that define the resource to query the troubleshooting result. + Required. + :type parameters: ~azure.mgmt.network.types.QueryTroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, @@ -44547,116 +49283,110 @@ async def update_tags( *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NetworkWatcher: - """Updates a network watcher tags. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Get the last completed troubleshooting result on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters supplied to update network watcher tags. Required. + :param parameters: Parameters that define the resource to query the troubleshooting result. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.QueryTroubleshootingParameters, _types.QueryTroubleshootingParameters, IO[bytes]], **kwargs: Any - ) -> _models.NetworkWatcher: - """Updates a network watcher tags. + ) -> AsyncLROPoller[_models.TroubleshootingResult]: + """Get the last completed troubleshooting result on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters supplied to update network watcher tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.NetworkWatcher + :param parameters: Parameters that define the resource to query the troubleshooting result. Is + either a QueryTroubleshootingParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters or + ~azure.mgmt.network.types.QueryTroubleshootingParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The + TroubleshootingResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) + cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_troubleshooting_result_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.TroubleshootingResult, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_network_watchers_update_tags_request( - resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.NetworkWatcher, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.TroubleshootingResult].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.TroubleshootingResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _delete_initial( - self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + async def _set_flow_log_configuration_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.FlowLogInformation, _types.FlowLogInformation, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -44666,17 +49396,27 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_network_watchers_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_set_flow_log_configuration_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -44693,7 +49433,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -44710,41 +49450,137 @@ async def _delete_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_set_flow_log_configuration( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.FlowLogInformation, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Configures flow log and traffic analytics (optional) on a specified resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the configuration of flow log. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogInformation + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_set_flow_log_configuration( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.FlowLogInformation, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Configures flow log and traffic analytics (optional) on a specified resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the configuration of flow log. Required. + :type parameters: ~azure.mgmt.network.types.FlowLogInformation + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + @overload + async def begin_set_flow_log_configuration( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Configures flow log and traffic analytics (optional) on a specified resource. - return deserialized # type: ignore + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters that define the configuration of flow log. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, network_watcher_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified network watcher resource. + async def begin_set_flow_log_configuration( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.FlowLogInformation, _types.FlowLogInformation, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Configures flow log and traffic analytics (optional) on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param parameters: Parameters that define the configuration of flow log. Is either a + FlowLogInformation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogInformation or + ~azure.mgmt.network.types.FlowLogInformation or IO[bytes] + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._set_flow_log_configuration_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -44753,9 +49589,12 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FlowLogInformation, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -44770,31 +49609,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.FlowLogInformation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.NetworkWatcher"]: - """Gets all network watchers by resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of NetworkWatcher - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkWatcher] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) + return AsyncLROPoller[_models.FlowLogInformation]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + async def _get_flow_log_status_initial( + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[_models.FlowLogStatusParameters, _types.FlowLogStatusParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -44803,201 +49634,127 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_network_watchers_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkWatcher], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkWatcher"]: - """Gets all network watchers by subscription. - - :return: An iterator like instance of NetworkWatcher - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.NetworkWatcher] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - def prepare_request(next_link=None): - if not next_link: + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_network_watchers_get_flow_log_status_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - return _request + response = pipeline_response.http_response - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.NetworkWatcher], - deserialized.get("value", []), + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - return pipeline_response + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore - return AsyncItemPaged(get_next, extract_data) + return deserialized # type: ignore @overload - async def get_topology( + async def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.TopologyParameters, + parameters: _models.FlowLogStatusParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.Topology: - """Gets the current network topology by resource group. + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Queries status of flow log and traffic analytics (optional) on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the representation of topology. Required. - :type parameters: ~azure.mgmt.network.models.TopologyParameters + :param parameters: Parameters that define a resource to query flow log and traffic analytics + (optional) status. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: Topology. The Topology is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Topology + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def get_topology( + async def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.FlowLogStatusParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.Topology: - """Gets the current network topology by resource group. + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Queries status of flow log and traffic analytics (optional) on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the representation of topology. Required. - :type parameters: JSON + :param parameters: Parameters that define a resource to query flow log and traffic analytics + (optional) status. Required. + :type parameters: ~azure.mgmt.network.types.FlowLogStatusParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: Topology. The Topology is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Topology + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def get_topology( + async def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, @@ -45005,119 +49762,109 @@ async def get_topology( *, content_type: str = "application/json", **kwargs: Any - ) -> _models.Topology: - """Gets the current network topology by resource group. + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Queries status of flow log and traffic analytics (optional) on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the representation of topology. Required. + :param parameters: Parameters that define a resource to query flow log and traffic analytics + (optional) status. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: Topology. The Topology is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Topology + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def get_topology( + async def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TopologyParameters, JSON, IO[bytes]], + parameters: Union[_models.FlowLogStatusParameters, _types.FlowLogStatusParameters, IO[bytes]], **kwargs: Any - ) -> _models.Topology: - """Gets the current network topology by resource group. + ) -> AsyncLROPoller[_models.FlowLogInformation]: + """Queries status of flow log and traffic analytics (optional) on a specified resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the representation of topology. Is one of the - following types: TopologyParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TopologyParameters or JSON or IO[bytes] - :return: Topology. The Topology is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Topology + :param parameters: Parameters that define a resource to query flow log and traffic analytics + (optional) status. Is either a FlowLogStatusParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters or + ~azure.mgmt.network.types.FlowLogStatusParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Topology] = kwargs.pop("cls", None) + cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_flow_log_status_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FlowLogInformation, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_network_watchers_get_topology_request( - resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.Topology, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FlowLogInformation].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FlowLogInformation]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _verify_ip_flow_initial( + async def _check_connectivity_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.VerificationIPFlowParameters, JSON, IO[bytes]], + parameters: Union[_models.ConnectivityParameters, _types.ConnectivityParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -45131,7 +49878,7 @@ async def _verify_ip_flow_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -45142,7 +49889,7 @@ async def _verify_ip_flow_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_verify_ip_flow_request( + _request = build_network_watchers_check_connectivity_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, @@ -45190,63 +49937,67 @@ async def _verify_ip_flow_initial( return deserialized # type: ignore @overload - async def begin_verify_ip_flow( + async def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.VerificationIPFlowParameters, + parameters: _models.ConnectivityParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: - """Verify IP flow from the specified VM to a location given the currently configured NSG rules. + ) -> AsyncLROPoller[_models.ConnectivityInformation]: + """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a + given endpoint including another VM or an arbitrary remote server. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the IP flow to be verified. Required. - :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters + :param parameters: Parameters that determine how the connectivity check will be performed. + Required. + :type parameters: ~azure.mgmt.network.models.ConnectivityParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The - VerificationIPFlowResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] + :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The + ConnectivityInformation is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_verify_ip_flow( + async def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.ConnectivityParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: - """Verify IP flow from the specified VM to a location given the currently configured NSG rules. + ) -> AsyncLROPoller[_models.ConnectivityInformation]: + """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a + given endpoint including another VM or an arbitrary remote server. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the IP flow to be verified. Required. - :type parameters: JSON + :param parameters: Parameters that determine how the connectivity check will be performed. + Required. + :type parameters: ~azure.mgmt.network.types.ConnectivityParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The - VerificationIPFlowResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] + :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The + ConnectivityInformation is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_verify_ip_flow( + async def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, @@ -45254,59 +50005,63 @@ async def begin_verify_ip_flow( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: - """Verify IP flow from the specified VM to a location given the currently configured NSG rules. + ) -> AsyncLROPoller[_models.ConnectivityInformation]: + """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a + given endpoint including another VM or an arbitrary remote server. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the IP flow to be verified. Required. + :param parameters: Parameters that determine how the connectivity check will be performed. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The - VerificationIPFlowResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] + :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The + ConnectivityInformation is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_verify_ip_flow( + async def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.VerificationIPFlowParameters, JSON, IO[bytes]], + parameters: Union[_models.ConnectivityParameters, _types.ConnectivityParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VerificationIPFlowResult]: - """Verify IP flow from the specified VM to a location given the currently configured NSG rules. + ) -> AsyncLROPoller[_models.ConnectivityInformation]: + """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a + given endpoint including another VM or an arbitrary remote server. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the IP flow to be verified. Is one of the following - types: VerificationIPFlowParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VerificationIPFlowResult. The - VerificationIPFlowResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] + :param parameters: Parameters that determine how the connectivity check will be performed. Is + either a ConnectivityParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectivityParameters or + ~azure.mgmt.network.types.ConnectivityParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The + ConnectivityInformation is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VerificationIPFlowResult] = kwargs.pop("cls", None) + cls: ClsType[_models.ConnectivityInformation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._verify_ip_flow_initial( + raw_result = await self._check_connectivity_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, parameters=parameters, @@ -45322,7 +50077,7 @@ async def begin_verify_ip_flow( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VerificationIPFlowResult, response.json()) + deserialized = _deserialize(_models.ConnectivityInformation, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -45340,21 +50095,23 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VerificationIPFlowResult].from_continuation_token( + return AsyncLROPoller[_models.ConnectivityInformation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VerificationIPFlowResult]( + return AsyncLROPoller[_models.ConnectivityInformation]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_next_hop_initial( + async def _get_azure_reachability_report_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NextHopParameters, JSON, IO[bytes]], + parameters: Union[ + _models.AzureReachabilityReportParameters, _types.AzureReachabilityReportParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -45368,7 +50125,7 @@ async def _get_next_hop_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -45379,7 +50136,7 @@ async def _get_next_hop_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_get_next_hop_request( + _request = build_network_watchers_get_azure_reachability_report_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, @@ -45427,63 +50184,67 @@ async def _get_next_hop_initial( return deserialized # type: ignore @overload - async def begin_get_next_hop( + async def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.NextHopParameters, + parameters: _models.AzureReachabilityReportParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NextHopResult]: - """Gets the next hop from the specified VM. + ) -> AsyncLROPoller[_models.AzureReachabilityReport]: + """NOTE: This feature is currently in preview and still being tested for stability. Gets the + relative latency score for internet service providers from a specified location to Azure + regions. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the source and destination endpoint. Required. - :type parameters: ~azure.mgmt.network.models.NextHopParameters + :param parameters: Parameters that determine Azure reachability report configuration. Required. + :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The + AzureReachabilityReport is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_next_hop( + async def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.AzureReachabilityReportParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NextHopResult]: - """Gets the next hop from the specified VM. + ) -> AsyncLROPoller[_models.AzureReachabilityReport]: + """NOTE: This feature is currently in preview and still being tested for stability. Gets the + relative latency score for internet service providers from a specified location to Azure + regions. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the source and destination endpoint. Required. - :type parameters: JSON + :param parameters: Parameters that determine Azure reachability report configuration. Required. + :type parameters: ~azure.mgmt.network.types.AzureReachabilityReportParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The + AzureReachabilityReport is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_next_hop( + async def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, @@ -45491,59 +50252,66 @@ async def begin_get_next_hop( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.NextHopResult]: - """Gets the next hop from the specified VM. + ) -> AsyncLROPoller[_models.AzureReachabilityReport]: + """NOTE: This feature is currently in preview and still being tested for stability. Gets the + relative latency score for internet service providers from a specified location to Azure + regions. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the source and destination endpoint. Required. + :param parameters: Parameters that determine Azure reachability report configuration. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The + AzureReachabilityReport is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_next_hop( + async def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NextHopParameters, JSON, IO[bytes]], + parameters: Union[ + _models.AzureReachabilityReportParameters, _types.AzureReachabilityReportParameters, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.NextHopResult]: - """Gets the next hop from the specified VM. + ) -> AsyncLROPoller[_models.AzureReachabilityReport]: + """NOTE: This feature is currently in preview and still being tested for stability. Gets the + relative latency score for internet service providers from a specified location to Azure + regions. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the source and destination endpoint. Is one of the - following types: NextHopParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NextHopParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns NextHopResult. The NextHopResult is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NextHopResult] + :param parameters: Parameters that determine Azure reachability report configuration. Is either + a AzureReachabilityReportParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters or + ~azure.mgmt.network.types.AzureReachabilityReportParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The + AzureReachabilityReport is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NextHopResult] = kwargs.pop("cls", None) + cls: ClsType[_models.AzureReachabilityReport] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_next_hop_initial( + raw_result = await self._get_azure_reachability_report_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, parameters=parameters, @@ -45559,7 +50327,7 @@ async def begin_get_next_hop( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.NextHopResult, response.json()) + deserialized = _deserialize(_models.AzureReachabilityReport, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -45577,21 +50345,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NextHopResult].from_continuation_token( + return AsyncLROPoller[_models.AzureReachabilityReport].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NextHopResult]( + return AsyncLROPoller[_models.AzureReachabilityReport]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_vm_security_rules_initial( + async def _list_available_providers_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.SecurityGroupViewParameters, JSON, IO[bytes]], + parameters: Union[_models.AvailableProvidersListParameters, _types.AvailableProvidersListParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -45605,7 +50373,7 @@ async def _get_vm_security_rules_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -45616,7 +50384,7 @@ async def _get_vm_security_rules_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_get_vm_security_rules_request( + _request = build_network_watchers_list_available_providers_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, @@ -45664,63 +50432,65 @@ async def _get_vm_security_rules_initial( return deserialized # type: ignore @overload - async def begin_get_vm_security_rules( + async def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.SecurityGroupViewParameters, + parameters: _models.AvailableProvidersListParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: - """Gets the configured and effective security group rules on the specified VM. + ) -> AsyncLROPoller[_models.AvailableProvidersList]: + """NOTE: This feature is currently in preview and still being tested for stability. Lists all + available internet service providers for a specified Azure region. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the VM to check security groups for. Required. - :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters + :param parameters: Parameters that scope the list of available providers. Required. + :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The - SecurityGroupViewResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The + AvailableProvidersList is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_vm_security_rules( + async def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.AvailableProvidersListParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: - """Gets the configured and effective security group rules on the specified VM. + ) -> AsyncLROPoller[_models.AvailableProvidersList]: + """NOTE: This feature is currently in preview and still being tested for stability. Lists all + available internet service providers for a specified Azure region. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the VM to check security groups for. Required. - :type parameters: JSON + :param parameters: Parameters that scope the list of available providers. Required. + :type parameters: ~azure.mgmt.network.types.AvailableProvidersListParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The - SecurityGroupViewResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The + AvailableProvidersList is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_vm_security_rules( + async def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, @@ -45728,59 +50498,62 @@ async def begin_get_vm_security_rules( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: - """Gets the configured and effective security group rules on the specified VM. + ) -> AsyncLROPoller[_models.AvailableProvidersList]: + """NOTE: This feature is currently in preview and still being tested for stability. Lists all + available internet service providers for a specified Azure region. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the VM to check security groups for. Required. + :param parameters: Parameters that scope the list of available providers. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The - SecurityGroupViewResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The + AvailableProvidersList is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_vm_security_rules( + async def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.SecurityGroupViewParameters, JSON, IO[bytes]], + parameters: Union[_models.AvailableProvidersListParameters, _types.AvailableProvidersListParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityGroupViewResult]: - """Gets the configured and effective security group rules on the specified VM. + ) -> AsyncLROPoller[_models.AvailableProvidersList]: + """NOTE: This feature is currently in preview and still being tested for stability. Lists all + available internet service providers for a specified Azure region. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the VM to check security groups for. Is one of the - following types: SecurityGroupViewParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns SecurityGroupViewResult. The - SecurityGroupViewResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] + :param parameters: Parameters that scope the list of available providers. Is either a + AvailableProvidersListParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters or + ~azure.mgmt.network.types.AvailableProvidersListParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The + AvailableProvidersList is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityGroupViewResult] = kwargs.pop("cls", None) + cls: ClsType[_models.AvailableProvidersList] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_vm_security_rules_initial( + raw_result = await self._list_available_providers_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, parameters=parameters, @@ -45796,7 +50569,7 @@ async def begin_get_vm_security_rules( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SecurityGroupViewResult, response.json()) + deserialized = _deserialize(_models.AvailableProvidersList, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -45814,21 +50587,23 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.SecurityGroupViewResult].from_continuation_token( + return AsyncLROPoller[_models.AvailableProvidersList].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.SecurityGroupViewResult]( + return AsyncLROPoller[_models.AvailableProvidersList]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_troubleshooting_initial( + async def _get_network_configuration_diagnostic_initial( # pylint: disable=name-too-long self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[ + _models.NetworkConfigurationDiagnosticParameters, _types.NetworkConfigurationDiagnosticParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -45842,7 +50617,7 @@ async def _get_troubleshooting_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -45853,7 +50628,7 @@ async def _get_troubleshooting_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_get_troubleshooting_request( + _request = build_network_watchers_get_network_configuration_diagnostic_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, subscription_id=self._config.subscription_id, @@ -45901,63 +50676,73 @@ async def _get_troubleshooting_initial( return deserialized # type: ignore @overload - async def begin_get_troubleshooting( + async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long self, resource_group_name: str, network_watcher_name: str, - parameters: _models.TroubleshootingParameters, + parameters: _models.NetworkConfigurationDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Initiate troubleshooting on a specified resource. + ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to troubleshoot. Required. - :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters + :param parameters: Parameters to get network configuration diagnostic. Required. + :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_troubleshooting( + async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.NetworkConfigurationDiagnosticParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Initiate troubleshooting on a specified resource. + ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to troubleshoot. Required. - :type parameters: JSON + :param parameters: Parameters to get network configuration diagnostic. Required. + :type parameters: ~azure.mgmt.network.types.NetworkConfigurationDiagnosticParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_troubleshooting( + async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long self, resource_group_name: str, network_watcher_name: str, @@ -45965,59 +50750,72 @@ async def begin_get_troubleshooting( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Initiate troubleshooting on a specified resource. + ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to troubleshoot. Required. + :param parameters: Parameters to get network configuration diagnostic. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_troubleshooting( + async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[ + _models.NetworkConfigurationDiagnosticParameters, _types.NetworkConfigurationDiagnosticParameters, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Initiate troubleshooting on a specified resource. + ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to troubleshoot. Is one of the following - types: TroubleshootingParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :param parameters: Parameters to get network configuration diagnostic. Is either a + NetworkConfigurationDiagnosticParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters or + ~azure.mgmt.network.types.NetworkConfigurationDiagnosticParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) + cls: ClsType[_models.NetworkConfigurationDiagnosticResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_troubleshooting_initial( + raw_result = await self._get_network_configuration_diagnostic_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, parameters=parameters, @@ -46033,7 +50831,7 @@ async def begin_get_troubleshooting( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.TroubleshootingResult, response.json()) + deserialized = _deserialize(_models.NetworkConfigurationDiagnosticResponse, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -46051,21 +50849,37 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.TroubleshootingResult].from_continuation_token( + return AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.TroubleshootingResult]( + return AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_troubleshooting_result_initial( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _connection_analyzers_create_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.QueryTroubleshootingParameters, JSON, IO[bytes]], + connection_analyzer_name: str, + body: Union[_models.ConnectionAnalyzer, _types.ConnectionAnalyzer, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -46079,20 +50893,21 @@ async def _get_troubleshooting_result_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(body, (IOBase, bytes)): + _content = body else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_get_troubleshooting_result_request( + _request = build_network_watchers_connection_analyzers_create_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -46113,7 +50928,7 @@ async def _get_troubleshooting_result_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -46126,8 +50941,10 @@ async def _get_troubleshooting_result_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -46138,130 +50955,155 @@ async def _get_troubleshooting_result_initial( return deserialized # type: ignore @overload - async def begin_get_troubleshooting_result( + async def begin_connection_analyzers_create( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.QueryTroubleshootingParameters, + connection_analyzer_name: str, + body: _models.ConnectionAnalyzer, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Get the last completed troubleshooting result on a specified resource. + ) -> AsyncLROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to query the troubleshooting result. - Required. - :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: ~azure.mgmt.network.models.ConnectionAnalyzer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_troubleshooting_result( + async def begin_connection_analyzers_create( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + connection_analyzer_name: str, + body: _types.ConnectionAnalyzer, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Get the last completed troubleshooting result on a specified resource. + ) -> AsyncLROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to query the troubleshooting result. - Required. - :type parameters: JSON + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: ~azure.mgmt.network.types.ConnectionAnalyzer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_troubleshooting_result( + async def begin_connection_analyzers_create( self, resource_group_name: str, network_watcher_name: str, - parameters: IO[bytes], + connection_analyzer_name: str, + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Get the last completed troubleshooting result on a specified resource. + ) -> AsyncLROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to query the troubleshooting result. - Required. - :type parameters: IO[bytes] + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :return: An instance of AsyncLROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_troubleshooting_result( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_connection_analyzers_create( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.QueryTroubleshootingParameters, JSON, IO[bytes]], + connection_analyzer_name: str, + body: Union[_models.ConnectionAnalyzer, _types.ConnectionAnalyzer, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.TroubleshootingResult]: - """Get the last completed troubleshooting result on a specified resource. + ) -> AsyncLROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to query the troubleshooting result. Is - one of the following types: QueryTroubleshootingParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns TroubleshootingResult. The - TroubleshootingResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.TroubleshootingResult] + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Is either a + ConnectionAnalyzer type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ConnectionAnalyzer or + ~azure.mgmt.network.types.ConnectionAnalyzer or IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_troubleshooting_result_initial( + raw_result = await self._connection_analyzers_create_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, - parameters=parameters, + connection_analyzer_name=connection_analyzer_name, + body=body, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -46274,7 +51116,7 @@ async def begin_get_troubleshooting_result( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.TroubleshootingResult, response.json()) + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -46292,23 +51134,47 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.TroubleshootingResult].from_continuation_token( + return AsyncLROPoller[_models.ConnectionAnalyzer].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.TroubleshootingResult]( + return AsyncLROPoller[_models.ConnectionAnalyzer]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _set_flow_log_configuration_initial( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.FlowLogInformation, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def connection_analyzers_get( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Gets the specified connection analyzer by name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -46317,27 +51183,93 @@ async def _set_flow_log_configuration_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + _request = build_network_watchers_connection_analyzers_get_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) - _request = build_network_watchers_set_flow_log_configuration_request( + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _connection_analyzers_delete_initial( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_watchers_connection_analyzers_delete_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -46354,7 +51286,7 @@ async def _set_flow_log_configuration_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -46376,175 +51308,397 @@ async def _set_flow_log_configuration_initial( if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized # type: ignore + return deserialized # type: ignore + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_connection_analyzers_delete( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._connection_analyzers_delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @overload - async def begin_set_flow_log_configuration( + async def connection_analyzers_update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.FlowLogInformation, + connection_analyzer_name: str, + body: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Configures flow log and traffic analytics (optional) on a specified resource. + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the configuration of flow log. Required. - :type parameters: ~azure.mgmt.network.models.FlowLogInformation + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_set_flow_log_configuration( + async def connection_analyzers_update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + connection_analyzer_name: str, + body: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Configures flow log and traffic analytics (optional) on a specified resource. + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the configuration of flow log. Required. - :type parameters: JSON + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_set_flow_log_configuration( + async def connection_analyzers_update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: IO[bytes], + connection_analyzer_name: str, + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Configures flow log and traffic analytics (optional) on a specified resource. + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the configuration of flow log. Required. - :type parameters: IO[bytes] + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_set_flow_log_configuration( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def connection_analyzers_update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.FlowLogInformation, JSON, IO[bytes]], + connection_analyzer_name: str, + body: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Configures flow log and traffic analytics (optional) on a specified resource. + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the configuration of flow log. Is one of the - following types: FlowLogInformation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FlowLogInformation or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject or + IO[bytes] + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_flow_log_configuration_initial( - resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.FlowLogInformation, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_network_watchers_connection_analyzers_update_tags_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.FlowLogInformation].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_watcher_name", "accept"] + }, + api_versions_list=["2025-09-01"], + ) + def connection_analyzers_list( + self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ConnectionAnalyzer"]: + """Lists all connection analyzers in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :return: An iterator like instance of ConnectionAnalyzer + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ConnectionAnalyzer]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_watchers_connection_analyzers_list_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectionAnalyzer], + deserialized.get("value", []), ) - return AsyncLROPoller[_models.FlowLogInformation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - async def _get_flow_log_status_initial( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.FlowLogStatusParameters, JSON, IO[bytes]], - **kwargs: Any + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _connection_analyzers_query_initial( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -46554,27 +51708,18 @@ async def _get_flow_log_status_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_network_watchers_get_flow_log_status_request( + _request = build_network_watchers_connection_analyzers_query_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -46606,6 +51751,9 @@ async def _get_flow_log_status_initial( response_headers = {} if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -46615,133 +51763,53 @@ async def _get_flow_log_status_initial( return deserialized # type: ignore - @overload - async def begin_get_flow_log_status( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: _models.FlowLogStatusParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Queries status of flow log and traffic analytics (optional) on a specified resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that define a resource to query flow log and traffic analytics - (optional) status. Required. - :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_flow_log_status( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Queries status of flow log and traffic analytics (optional) on a specified resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that define a resource to query flow log and traffic analytics - (optional) status. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_flow_log_status( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Queries status of flow log and traffic analytics (optional) on a specified resource. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that define a resource to query flow log and traffic analytics - (optional) status. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_get_flow_log_status( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.FlowLogStatusParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLogInformation]: - """Queries status of flow log and traffic analytics (optional) on a specified resource. + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_connection_analyzers_query( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectionAnalyzerQueryStatusResult]: + """Queries the specified connection analyzer for diagnostic results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define a resource to query flow log and traffic analytics - (optional) status. Is one of the following types: FlowLogStatusParameters, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns FlowLogInformation. The FlowLogInformation - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLogInformation] + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: An instance of AsyncLROPoller that returns ConnectionAnalyzerQueryStatusResult. The + ConnectionAnalyzerQueryStatusResult is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionAnalyzerQueryStatusResult] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionAnalyzerQueryStatusResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_flow_log_status_initial( + raw_result = await self._connection_analyzers_query_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, - parameters=parameters, + connection_analyzer_name=connection_analyzer_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -46752,7 +51820,7 @@ async def begin_get_flow_log_status( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.FlowLogInformation, response.json()) + deserialized = _deserialize(_models.ConnectionAnalyzerQueryStatusResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -46770,21 +51838,116 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.FlowLogInformation].from_continuation_token( + return AsyncLROPoller[_models.ConnectionAnalyzerQueryStatusResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.FlowLogInformation]( + return AsyncLROPoller[_models.ConnectionAnalyzerQueryStatusResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _check_connectivity_initial( + +class FlowLogsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`flow_logs` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any + ) -> _models.FlowLog: + """Gets a flow log resource by name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :return: FlowLog. The FlowLog is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FlowLog + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) + + _request = build_flow_logs_get_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FlowLog, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.ConnectivityParameters, JSON, IO[bytes]], + flow_log_name: str, + parameters: Union[_models.FlowLog, _types.FlowLog, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -46798,7 +51961,7 @@ async def _check_connectivity_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -46809,9 +51972,10 @@ async def _check_connectivity_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_check_connectivity_request( + _request = build_flow_logs_create_or_update_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -46832,7 +51996,7 @@ async def _check_connectivity_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -46845,8 +52009,10 @@ async def _check_connectivity_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -46857,132 +52023,139 @@ async def _check_connectivity_initial( return deserialized # type: ignore @overload - async def begin_check_connectivity( + async def begin_create_or_update( self, resource_group_name: str, network_watcher_name: str, - parameters: _models.ConnectivityParameters, + flow_log_name: str, + parameters: _models.FlowLog, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectivityInformation]: - """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a - given endpoint including another VM or an arbitrary remote server. + ) -> AsyncLROPoller[_models.FlowLog]: + """Create or update a flow log for the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine how the connectivity check will be performed. - Required. - :type parameters: ~azure.mgmt.network.models.ConnectivityParameters + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters that define the create or update flow log resource. Required. + :type parameters: ~azure.mgmt.network.models.FlowLog :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The - ConnectivityInformation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] + :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_check_connectivity( + async def begin_create_or_update( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + flow_log_name: str, + parameters: _types.FlowLog, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectivityInformation]: - """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a - given endpoint including another VM or an arbitrary remote server. + ) -> AsyncLROPoller[_models.FlowLog]: + """Create or update a flow log for the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine how the connectivity check will be performed. - Required. - :type parameters: JSON + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters that define the create or update flow log resource. Required. + :type parameters: ~azure.mgmt.network.types.FlowLog :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The - ConnectivityInformation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] + :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_check_connectivity( + async def begin_create_or_update( self, resource_group_name: str, network_watcher_name: str, + flow_log_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectivityInformation]: - """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a - given endpoint including another VM or an arbitrary remote server. + ) -> AsyncLROPoller[_models.FlowLog]: + """Create or update a flow log for the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine how the connectivity check will be performed. - Required. + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters that define the create or update flow log resource. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The - ConnectivityInformation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] + :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_check_connectivity( + async def begin_create_or_update( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.ConnectivityParameters, JSON, IO[bytes]], + flow_log_name: str, + parameters: Union[_models.FlowLog, _types.FlowLog, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectivityInformation]: - """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a - given endpoint including another VM or an arbitrary remote server. + ) -> AsyncLROPoller[_models.FlowLog]: + """Create or update a flow log for the specified network security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine how the connectivity check will be performed. Is - one of the following types: ConnectivityParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectivityParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ConnectivityInformation. The - ConnectivityInformation is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectivityInformation] + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters that define the create or update flow log resource. Is either a + FlowLog type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLog or ~azure.mgmt.network.types.FlowLog or + IO[bytes] + :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectivityInformation] = kwargs.pop("cls", None) + cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._check_connectivity_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -46996,7 +52169,7 @@ async def begin_check_connectivity( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectivityInformation, response.json()) + deserialized = _deserialize(_models.FlowLog, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -47014,23 +52187,132 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ConnectivityInformation].from_continuation_token( + return AsyncLROPoller[_models.FlowLog].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ConnectivityInformation]( + return AsyncLROPoller[_models.FlowLog]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_azure_reachability_report_initial( + @overload + async def update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.AzureReachabilityReportParameters, JSON, IO[bytes]], + flow_log_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.FlowLog: + """Update tags of the specified flow log. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters supplied to update flow log tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: FlowLog. The FlowLog is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FlowLog + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + flow_log_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FlowLog: + """Update tags of the specified flow log. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters supplied to update flow log tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: FlowLog. The FlowLog is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FlowLog + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + flow_log_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FlowLog: + """Update tags of the specified flow log. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters supplied to update flow log tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: FlowLog. The FlowLog is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FlowLog + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + flow_log_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.FlowLog: + """Update tags of the specified flow log. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :param parameters: Parameters supplied to update flow log tags. Is either a TagsObject type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: FlowLog. The FlowLog is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FlowLog + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -47042,9 +52324,9 @@ async def _get_azure_reachability_report_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -47053,9 +52335,10 @@ async def _get_azure_reachability_report_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_get_azure_reachability_report_request( + _request = build_flow_logs_update_tags_request( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -47068,6 +52351,68 @@ async def _get_azure_reachability_report_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FlowLog, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_flow_logs_delete_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + _decompress = kwargs.pop("decompress", True) _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access @@ -47076,7 +52421,7 @@ async def _get_azure_reachability_report_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -47100,181 +52445,258 @@ async def _get_azure_reachability_report_initial( return deserialized # type: ignore - @overload - async def begin_get_azure_reachability_report( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: _models.AzureReachabilityReportParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AzureReachabilityReport]: - """NOTE: This feature is currently in preview and still being tested for stability. Gets the - relative latency score for internet service providers from a specified location to Azure - regions. + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified flow log resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine Azure reachability report configuration. Required. - :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The - AzureReachabilityReport is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] + :param flow_log_name: The name of the flow log resource. Required. + :type flow_log_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - @overload - async def begin_get_azure_reachability_report( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AzureReachabilityReport]: - """NOTE: This feature is currently in preview and still being tested for stability. Gets the - relative latency score for internet service providers from a specified location to Azure - regions. + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + flow_log_name=flow_log_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that determine Azure reachability report configuration. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The - AzureReachabilityReport is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] - :raises ~azure.core.exceptions.HttpResponseError: - """ + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - @overload - async def begin_get_azure_reachability_report( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AzureReachabilityReport]: - """NOTE: This feature is currently in preview and still being tested for stability. Gets the - relative latency score for internet service providers from a specified location to Azure - regions. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.FlowLog"]: + """Lists all flow log resources for the specified Network Watcher. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine Azure reachability report configuration. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The - AzureReachabilityReport is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] + :return: An iterator like instance of FlowLog + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FlowLog] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FlowLog]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_flow_logs_list_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FlowLog], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class PrivateEndpointsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`private_endpoints` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def begin_get_azure_reachability_report( - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.AzureReachabilityReportParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AzureReachabilityReport]: - """NOTE: This feature is currently in preview and still being tested for stability. Gets the - relative latency score for internet service providers from a specified location to Azure - regions. + async def get( + self, resource_group_name: str, private_endpoint_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.PrivateEndpoint: + """Gets the specified private endpoint by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that determine Azure reachability report configuration. Is one of - the following types: AzureReachabilityReportParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns AzureReachabilityReport. The - AzureReachabilityReport is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AzureReachabilityReport] + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: PrivateEndpoint. The PrivateEndpoint is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpoint :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AzureReachabilityReport] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_azure_reachability_report_initial( - resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.AzureReachabilityReport, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) + _request = build_private_endpoints_get_request( + resource_group_name=resource_group_name, + private_endpoint_name=private_endpoint_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AzureReachabilityReport].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AzureReachabilityReport]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.PrivateEndpoint, response.json()) - async def _list_available_providers_initial( + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.AvailableProvidersListParameters, JSON, IO[bytes]], + private_endpoint_name: str, + parameters: Union[_models.PrivateEndpoint, _types.PrivateEndpoint, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -47288,7 +52710,7 @@ async def _list_available_providers_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -47299,9 +52721,9 @@ async def _list_available_providers_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_watchers_list_available_providers_request( + _request = build_private_endpoints_create_or_update_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, + private_endpoint_name=private_endpoint_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -47322,21 +52744,23 @@ async def _list_available_providers_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -47347,130 +52771,129 @@ async def _list_available_providers_initial( return deserialized # type: ignore @overload - async def begin_list_available_providers( + async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - parameters: _models.AvailableProvidersListParameters, + private_endpoint_name: str, + parameters: _models.PrivateEndpoint, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AvailableProvidersList]: - """NOTE: This feature is currently in preview and still being tested for stability. Lists all - available internet service providers for a specified Azure region. + ) -> AsyncLROPoller[_models.PrivateEndpoint]: + """Creates or updates an private endpoint in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that scope the list of available providers. Required. - :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :param parameters: Parameters supplied to the create or update private endpoint operation. + Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpoint :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The - AvailableProvidersList is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] + :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_list_available_providers( + async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - parameters: JSON, + private_endpoint_name: str, + parameters: _types.PrivateEndpoint, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AvailableProvidersList]: - """NOTE: This feature is currently in preview and still being tested for stability. Lists all - available internet service providers for a specified Azure region. + ) -> AsyncLROPoller[_models.PrivateEndpoint]: + """Creates or updates an private endpoint in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that scope the list of available providers. Required. - :type parameters: JSON + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :param parameters: Parameters supplied to the create or update private endpoint operation. + Required. + :type parameters: ~azure.mgmt.network.types.PrivateEndpoint :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The - AvailableProvidersList is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] + :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_list_available_providers( + async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, + private_endpoint_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.AvailableProvidersList]: - """NOTE: This feature is currently in preview and still being tested for stability. Lists all - available internet service providers for a specified Azure region. + ) -> AsyncLROPoller[_models.PrivateEndpoint]: + """Creates or updates an private endpoint in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that scope the list of available providers. Required. + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :param parameters: Parameters supplied to the create or update private endpoint operation. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The - AvailableProvidersList is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] + :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_list_available_providers( + async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.AvailableProvidersListParameters, JSON, IO[bytes]], + private_endpoint_name: str, + parameters: Union[_models.PrivateEndpoint, _types.PrivateEndpoint, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.AvailableProvidersList]: - """NOTE: This feature is currently in preview and still being tested for stability. Lists all - available internet service providers for a specified Azure region. + ) -> AsyncLROPoller[_models.PrivateEndpoint]: + """Creates or updates an private endpoint in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters that scope the list of available providers. Is one of the - following types: AvailableProvidersListParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns AvailableProvidersList. The - AvailableProvidersList is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AvailableProvidersList] + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :param parameters: Parameters supplied to the create or update private endpoint operation. Is + either a PrivateEndpoint type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpoint or + ~azure.mgmt.network.types.PrivateEndpoint or IO[bytes] + :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AvailableProvidersList] = kwargs.pop("cls", None) + cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._list_available_providers_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, + private_endpoint_name=private_endpoint_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -47484,7 +52907,7 @@ async def begin_list_available_providers( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.AvailableProvidersList, response.json()) + deserialized = _deserialize(_models.PrivateEndpoint, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -47502,22 +52925,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.AvailableProvidersList].from_continuation_token( + return AsyncLROPoller[_models.PrivateEndpoint].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.AvailableProvidersList]( + return AsyncLROPoller[_models.PrivateEndpoint]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_network_configuration_diagnostic_initial( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.NetworkConfigurationDiagnosticParameters, JSON, IO[bytes]], - **kwargs: Any + async def _delete_initial( + self, resource_group_name: str, private_endpoint_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -47527,27 +52946,17 @@ async def _get_network_configuration_diagnostic_initial( # pylint: disable=name } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_network_watchers_get_network_configuration_diagnostic_request( + _request = build_private_endpoints_delete_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, + private_endpoint_name=private_endpoint_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -47564,14 +52973,14 @@ async def _get_network_configuration_diagnostic_initial( # pylint: disable=name response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47588,150 +52997,34 @@ async def _get_network_configuration_diagnostic_initial( # pylint: disable=name return deserialized # type: ignore - @overload - async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: _models.NetworkConfigurationDiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.NetworkConfigurationDiagnosticParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. + async def begin_delete( + self, resource_group_name: str, private_endpoint_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified private endpoint. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Is one of the following - types: NetworkConfigurationDiagnosticParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters or JSON - or IO[bytes] - :return: An instance of AsyncLROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + :param private_endpoint_name: The name of the private endpoint. Required. + :type private_endpoint_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkConfigurationDiagnosticResponse] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_network_configuration_diagnostic_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - parameters=parameters, + private_endpoint_name=private_endpoint_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -47740,12 +53033,9 @@ async def begin_get_network_configuration_diagnostic( # pylint: disable=name-to await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkConfigurationDiagnosticResponse, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -47760,25 +53050,187 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.NetworkConfigurationDiagnosticResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PrivateEndpoint"]: + """Gets all private endpoints in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of PrivateEndpoint + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_endpoints_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpoint], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.PrivateEndpoint"]: + """Gets all private endpoints in a subscription. + + :return: An iterator like instance of PrivateEndpoint + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_endpoints_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateEndpoint], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) -class FlowLogsOperations: +class PrivateLinkServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`flow_logs` attribute. + :attr:`private_link_services` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -47790,19 +53242,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any - ) -> _models.FlowLog: - """Gets a flow log resource by name. + self, resource_group_name: str, service_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.PrivateLinkService: + """Gets the specified private link service by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :return: FlowLog. The FlowLog is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FlowLog + :param service_name: The name of the private link service. Required. + :type service_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: PrivateLinkService. The PrivateLinkService is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateLinkService :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -47816,14 +53268,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) - _request = build_flow_logs_get_request( + _request = build_private_link_services_get_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -47849,7 +53301,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47857,7 +53309,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FlowLog, response.json()) + deserialized = _deserialize(_models.PrivateLinkService, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -47867,9 +53319,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: Union[_models.FlowLog, JSON, IO[bytes]], + service_name: str, + parameters: Union[_models.PrivateLinkService, _types.PrivateLinkService, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -47883,7 +53334,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -47894,10 +53345,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_flow_logs_create_or_update_request( + _request = build_private_link_services_create_or_update_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -47925,7 +53375,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47948,30 +53398,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: _models.FlowLog, + service_name: str, + parameters: _models.PrivateLinkService, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLog]: - """Create or update a flow log for the specified network security group. + ) -> AsyncLROPoller[_models.PrivateLinkService]: + """Creates or updates an private link service in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters that define the create or update flow log resource. Required. - :type parameters: ~azure.mgmt.network.models.FlowLog + :param service_name: The name of the private link service. Required. + :type service_name: str + :param parameters: Parameters supplied to the create or update private link service operation. + Required. + :type parameters: ~azure.mgmt.network.models.PrivateLinkService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] + :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -47979,30 +53427,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: JSON, + service_name: str, + parameters: _types.PrivateLinkService, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLog]: - """Create or update a flow log for the specified network security group. + ) -> AsyncLROPoller[_models.PrivateLinkService]: + """Creates or updates an private link service in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters that define the create or update flow log resource. Required. - :type parameters: JSON + :param service_name: The name of the private link service. Required. + :type service_name: str + :param parameters: Parameters supplied to the create or update private link service operation. + Required. + :type parameters: ~azure.mgmt.network.types.PrivateLinkService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] + :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -48010,30 +53456,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, + service_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLog]: - """Create or update a flow log for the specified network security group. + ) -> AsyncLROPoller[_models.PrivateLinkService]: + """Creates or updates an private link service in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters that define the create or update flow log resource. Required. + :param service_name: The name of the private link service. Required. + :type service_name: str + :param parameters: Parameters supplied to the create or update private link service operation. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] + :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -48041,42 +53485,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: Union[_models.FlowLog, JSON, IO[bytes]], + service_name: str, + parameters: Union[_models.PrivateLinkService, _types.PrivateLinkService, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.FlowLog]: - """Create or update a flow log for the specified network security group. + ) -> AsyncLROPoller[_models.PrivateLinkService]: + """Creates or updates an private link service in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters that define the create or update flow log resource. Is one of the - following types: FlowLog, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FlowLog or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns FlowLog. The FlowLog is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FlowLog] + :param service_name: The name of the private link service. Required. + :type service_name: str + :param parameters: Parameters supplied to the create or update private link service operation. + Is either a PrivateLinkService type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateLinkService or + ~azure.mgmt.network.types.PrivateLinkService or IO[bytes] + :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) + cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -48090,7 +53531,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.FlowLog, response.json()) + deserialized = _deserialize(_models.PrivateLinkService, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -48103,134 +53544,517 @@ def get_long_running_output(pipeline_response): polling_method: AsyncPollingMethod = cast( AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.PrivateLinkService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.PrivateLinkService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_private_link_services_delete_request( + resource_group_name=resource_group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes the specified private link service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param service_name: The name of the private link service. Required. + :type service_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + service_name=service_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PrivateLinkService"]: + """Gets all private link services in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of PrivateLinkService + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateLinkService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_link_services_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateLinkService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.PrivateLinkService"]: + """Gets all private link service in a subscription. + + :return: An iterator like instance of PrivateLinkService + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateLinkService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_private_link_services_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PrivateLinkService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_private_endpoint_connection( + self, + resource_group_name: str, + service_name: str, + pe_connection_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnection: + """Get the specific private end point connection by specific private link service in the resource + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + + _request = build_private_link_services_get_private_endpoint_connection_request( + resource_group_name=resource_group_name, + service_name=service_name, + pe_connection_name=pe_connection_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.FlowLog].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.FlowLog]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload - async def update_tags( + async def update_private_endpoint_connection( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: _models.TagsObject, + service_name: str, + pe_connection_name: str, + parameters: _models.PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FlowLog: - """Update tags of the specified flow log. + ) -> _models.PrivateEndpointConnection: + """Approve or reject private end point connection for a private link service in a subscription. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters supplied to update flow log tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str + :param parameters: Parameters supplied to approve or reject the private end point connection. + Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FlowLog. The FlowLog is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FlowLog + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update_private_endpoint_connection( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: JSON, + service_name: str, + pe_connection_name: str, + parameters: _types.PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FlowLog: - """Update tags of the specified flow log. + ) -> _models.PrivateEndpointConnection: + """Approve or reject private end point connection for a private link service in a subscription. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters supplied to update flow log tags. Required. - :type parameters: JSON + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str + :param parameters: Parameters supplied to approve or reject the private end point connection. + Required. + :type parameters: ~azure.mgmt.network.types.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FlowLog. The FlowLog is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FlowLog + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update_private_endpoint_connection( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, + service_name: str, + pe_connection_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FlowLog: - """Update tags of the specified flow log. + ) -> _models.PrivateEndpointConnection: + """Approve or reject private end point connection for a private link service in a subscription. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters supplied to update flow log tags. Required. + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str + :param parameters: Parameters supplied to approve or reject the private end point connection. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: FlowLog. The FlowLog is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FlowLog + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def update_private_endpoint_connection( self, resource_group_name: str, - network_watcher_name: str, - flow_log_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + service_name: str, + pe_connection_name: str, + parameters: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any - ) -> _models.FlowLog: - """Update tags of the specified flow log. + ) -> _models.PrivateEndpointConnection: + """Approve or reject private end point connection for a private link service in a subscription. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str - :param parameters: Parameters supplied to update flow log tags. Is one of the following types: - TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: FlowLog. The FlowLog is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FlowLog + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str + :param parameters: Parameters supplied to approve or reject the private end point connection. + Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection or + ~azure.mgmt.network.types.PrivateEndpointConnection or IO[bytes] + :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -48244,9 +54068,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) + cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -48255,10 +54079,10 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_flow_logs_update_tags_request( + _request = build_private_link_services_update_private_endpoint_connection_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, + pe_connection_name=pe_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -48287,7 +54111,7 @@ async def update_tags( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48295,15 +54119,15 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FlowLog, response.json()) + deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any + async def _delete_private_endpoint_connection_initial( # pylint: disable=name-too-long + self, resource_group_name: str, service_name: str, pe_connection_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -48316,13 +54140,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_flow_logs_delete_request( + _request = build_private_link_services_delete_private_endpoint_connection_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, + pe_connection_name=pe_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -48341,14 +54165,14 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48366,18 +54190,19 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, network_watcher_name: str, flow_log_name: str, **kwargs: Any + async def begin_delete_private_endpoint_connection( + self, resource_group_name: str, service_name: str, pe_connection_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified flow log resource. + """Delete private end point connection for a private link service in a subscription. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param flow_log_name: The name of the flow log resource. Required. - :type flow_log_name: str + :param service_name: The name of the private link service. Required. + :type service_name: str + :param pe_connection_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type pe_connection_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -48385,16 +54210,16 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._delete_private_endpoint_connection_initial( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, - flow_log_name=flow_log_name, + service_name=service_name, + pe_connection_name=pe_connection_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -48430,25 +54255,26 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, network_watcher_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.FlowLog"]: - """Lists all flow log resources for the specified Network Watcher. + def list_private_endpoint_connections( + self, resource_group_name: str, service_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.PrivateEndpointConnection"]: + """Gets all private end point connections for a specific private link service. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :return: An iterator like instance of FlowLog - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FlowLog] + :param service_name: The name of the private link service. Required. + :type service_name: str + :return: An iterator like instance of PrivateEndpointConnection + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpointConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FlowLog]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PrivateEndpointConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -48461,9 +54287,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_flow_logs_list_request( + _request = build_private_link_services_list_private_endpoint_connections_request( resource_group_name=resource_group_name, - network_watcher_name=network_watcher_name, + service_name=service_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -48490,7 +54316,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FlowLog], + List[_models.PrivateEndpointConnection], deserialized.get("value", []), ) if cls: @@ -48509,7 +54335,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48518,105 +54344,12 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - -class PrivateEndpointsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`private_endpoints` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, private_endpoint_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.PrivateEndpoint: - """Gets the specified private endpoint by resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: PrivateEndpoint. The PrivateEndpoint is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpoint - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) - - _request = build_private_endpoints_get_request( - resource_group_name=resource_group_name, - private_endpoint_name=private_endpoint_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.Error, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.PrivateEndpoint, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( + async def _check_private_link_service_visibility_initial( # pylint: disable=name-too-long self, - resource_group_name: str, - private_endpoint_name: str, - parameters: Union[_models.PrivateEndpoint, JSON, IO[bytes]], + location: str, + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -48630,7 +54363,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -48641,9 +54374,8 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_private_endpoints_create_or_update_request( - resource_group_name=resource_group_name, - private_endpoint_name=private_endpoint_name, + _request = build_private_link_services_check_private_link_service_visibility_request( + location=location, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -48664,23 +54396,21 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -48691,128 +54421,110 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long self, - resource_group_name: str, - private_endpoint_name: str, - parameters: _models.PrivateEndpoint, + location: str, + parameters: _models.CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpoint]: - """Creates or updates an private endpoint in the specified resource group. + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :param parameters: Parameters supplied to the create or update private endpoint operation. - Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpoint + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long self, - resource_group_name: str, - private_endpoint_name: str, - parameters: JSON, + location: str, + parameters: _types.CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpoint]: - """Creates or updates an private endpoint in the specified resource group. + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :param parameters: Parameters supplied to the create or update private endpoint operation. - Required. - :type parameters: JSON + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( - self, - resource_group_name: str, - private_endpoint_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpoint]: - """Creates or updates an private endpoint in the specified resource group. + async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long + self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :param parameters: Parameters supplied to the create or update private endpoint operation. - Required. + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long self, - resource_group_name: str, - private_endpoint_name: str, - parameters: Union[_models.PrivateEndpoint, JSON, IO[bytes]], + location: str, + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateEndpoint]: - """Creates or updates an private endpoint in the specified resource group. + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :param parameters: Parameters supplied to the create or update private endpoint operation. Is - one of the following types: PrivateEndpoint, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpoint or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns PrivateEndpoint. The PrivateEndpoint is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateEndpoint] + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Is either a CheckPrivateLinkServiceVisibilityRequest type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or + ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) + cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - private_endpoint_name=private_endpoint_name, + raw_result = await self._check_private_link_service_visibility_initial( + location=location, parameters=parameters, api_version=api_version, content_type=content_type, @@ -48826,7 +54538,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.PrivateEndpoint, response.json()) + deserialized = _deserialize(_models.PrivateLinkServiceVisibility, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -48844,18 +54556,24 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.PrivateEndpoint].from_continuation_token( + return AsyncLROPoller[_models.PrivateLinkServiceVisibility].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.PrivateEndpoint]( + return AsyncLROPoller[_models.PrivateLinkServiceVisibility]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, private_endpoint_name: str, **kwargs: Any + async def _check_private_link_service_visibility_by_resource_group_initial( # pylint: disable=name-too-long + self, + location: str, + resource_group_name: str, + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -48865,17 +54583,27 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_private_endpoints_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_private_link_services_check_private_link_service_visibility_by_resource_group_request( + location=location, resource_group_name=resource_group_name, - private_endpoint_name=private_endpoint_name, subscription_id=self._config.subscription_id, + content_type=content_type, api_version=api_version, + content=_content, headers=_headers, params=_params, ) @@ -48892,57 +54620,163 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long + self, + location: str, + resource_group_name: str, + parameters: _models.CheckPrivateLinkServiceVisibilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service in the specified resource + group. + + :param location: The location name. Required. + :type location: str + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long + self, + location: str, + resource_group_name: str, + parameters: _types.CheckPrivateLinkServiceVisibilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service in the specified resource + group. - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + :param location: The location name. Required. + :type location: str + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + @overload + async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long + self, + location: str, + resource_group_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service in the specified resource + group. - return deserialized # type: ignore + :param location: The location name. Required. + :type location: str + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param parameters: The request body. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, private_endpoint_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified private endpoint. + async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long + self, + location: str, + resource_group_name: str, + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: + """Checks whether the subscription is visible to private link service in the specified resource + group. + :param location: The location name. Required. + :type location: str :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param private_endpoint_name: The name of the private endpoint. Required. - :type private_endpoint_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param parameters: The request body. Is either a CheckPrivateLinkServiceVisibilityRequest type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or + ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The + PrivateLinkServiceVisibility is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._check_private_link_service_visibility_by_resource_group_initial( + location=location, resource_group_name=resource_group_name, - private_endpoint_name=private_endpoint_name, + parameters=parameters, + content_type=content_type, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -48952,9 +54786,12 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.PrivateLinkServiceVisibility, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -48969,30 +54806,35 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.PrivateLinkServiceVisibility].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.PrivateLinkServiceVisibility]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PrivateEndpoint"]: - """Gets all private endpoints in a resource group. + def list_auto_approved_private_link_services( + self, location: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AutoApprovedPrivateLinkService"]: + """Returns all of the private link service ids that can be linked to a Private Endpoint with auto + approved in this subscription in this region. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of PrivateEndpoint - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpoint] + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of AutoApprovedPrivateLinkService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AutoApprovedPrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -49005,8 +54847,8 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_private_endpoints_list_request( - resource_group_name=resource_group_name, + _request = build_private_link_services_list_auto_approved_private_link_services_request( + location=location, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -49033,7 +54875,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PrivateEndpoint], + List[_models.AutoApprovedPrivateLinkService], deserialized.get("value", []), ) if cls: @@ -49052,7 +54894,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49062,18 +54904,27 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.PrivateEndpoint"]: - """Gets all private endpoints in a subscription. + def list_auto_approved_private_link_services_by_resource_group( # pylint: disable=name-too-long + self, location: str, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AutoApprovedPrivateLinkService"]: + """Returns all of the private link service ids that can be linked to a Private Endpoint with auto + approved in this subscription in this region. - :return: An iterator like instance of PrivateEndpoint - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpoint] + :param location: The location name. Required. + :type location: str + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of AutoApprovedPrivateLinkService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AutoApprovedPrivateLinkService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -49086,11 +54937,15 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Private def prepare_request(next_link=None): if not next_link: - _request = build_private_endpoints_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, + _request = ( + build_private_link_services_list_auto_approved_private_link_services_by_resource_group_request( + location=location, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) ) path_format_arguments = { "endpoint": self._serialize.url( @@ -49113,7 +54968,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PrivateEndpoint], + List[_models.AutoApprovedPrivateLinkService], deserialized.get("value", []), ) if cls: @@ -49132,7 +54987,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49142,14 +54997,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PrivateLinkServicesOperations: +class PublicIPPrefixesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`private_link_services` attribute. + :attr:`public_ip_prefixes` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -49161,19 +55016,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, service_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.PrivateLinkService: - """Gets the specified private link service by resource group. + self, resource_group_name: str, public_ip_prefix_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.PublicIPPrefix: + """Gets the specified public IP prefix in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str :keyword expand: Expands referenced resources. Default value is None. :paramtype expand: str - :return: PrivateLinkService. The PrivateLinkService is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateLinkService + :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PublicIPPrefix :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -49187,12 +55042,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) - _request = build_private_link_services_get_request( + _request = build_public_ip_prefixes_get_request( resource_group_name=resource_group_name, - service_name=service_name, + public_ip_prefix_name=public_ip_prefix_name, subscription_id=self._config.subscription_id, expand=expand, api_version=api_version, @@ -49220,7 +55075,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49228,7 +55083,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.PrivateLinkService, response.json()) + deserialized = _deserialize(_models.PublicIPPrefix, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -49238,8 +55093,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - service_name: str, - parameters: Union[_models.PrivateLinkService, JSON, IO[bytes]], + public_ip_prefix_name: str, + parameters: Union[_models.PublicIPPrefix, _types.PublicIPPrefix, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -49253,7 +55108,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -49264,9 +55119,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_private_link_services_create_or_update_request( + _request = build_public_ip_prefixes_create_or_update_request( resource_group_name=resource_group_name, - service_name=service_name, + public_ip_prefix_name=public_ip_prefix_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -49294,16 +55149,14 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -49317,28 +55170,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - service_name: str, - parameters: _models.PrivateLinkService, + public_ip_prefix_name: str, + parameters: _models.PublicIPPrefix, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkService]: - """Creates or updates an private link service in the specified resource group. + ) -> AsyncLROPoller[_models.PublicIPPrefix]: + """Creates or updates a static or dynamic public IP prefix. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param parameters: Parameters supplied to the create or update private link service operation. + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to the create or update public IP prefix operation. Required. - :type parameters: ~azure.mgmt.network.models.PrivateLinkService + :type parameters: ~azure.mgmt.network.models.PublicIPPrefix :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] + :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -49346,28 +55199,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_name: str, - parameters: JSON, + public_ip_prefix_name: str, + parameters: _types.PublicIPPrefix, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkService]: - """Creates or updates an private link service in the specified resource group. + ) -> AsyncLROPoller[_models.PublicIPPrefix]: + """Creates or updates a static or dynamic public IP prefix. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param parameters: Parameters supplied to the create or update private link service operation. + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to the create or update public IP prefix operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PublicIPPrefix :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] + :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -49375,28 +55228,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_name: str, + public_ip_prefix_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkService]: - """Creates or updates an private link service in the specified resource group. + ) -> AsyncLROPoller[_models.PublicIPPrefix]: + """Creates or updates a static or dynamic public IP prefix. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param parameters: Parameters supplied to the create or update private link service operation. + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to the create or update public IP prefix operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] + :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -49404,38 +55257,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_name: str, - parameters: Union[_models.PrivateLinkService, JSON, IO[bytes]], + public_ip_prefix_name: str, + parameters: Union[_models.PublicIPPrefix, _types.PublicIPPrefix, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkService]: - """Creates or updates an private link service in the specified resource group. + ) -> AsyncLROPoller[_models.PublicIPPrefix]: + """Creates or updates a static or dynamic public IP prefix. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param parameters: Parameters supplied to the create or update private link service operation. - Is one of the following types: PrivateLinkService, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateLinkService or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns PrivateLinkService. The PrivateLinkService - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkService] + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to the create or update public IP prefix operation. Is + either a PublicIPPrefix type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PublicIPPrefix or + ~azure.mgmt.network.types.PublicIPPrefix or IO[bytes] + :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) + cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - service_name=service_name, + public_ip_prefix_name=public_ip_prefix_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -49449,7 +55303,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.PrivateLinkService, response.json()) + deserialized = _deserialize(_models.PublicIPPrefix, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -49467,17 +55321,191 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.PrivateLinkService].from_continuation_token( + return AsyncLROPoller[_models.PublicIPPrefix].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.PrivateLinkService]( + return AsyncLROPoller[_models.PublicIPPrefix]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + @overload + async def update_tags( + self, + resource_group_name: str, + public_ip_prefix_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PublicIPPrefix: + """Updates public IP prefix tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to update public IP prefix tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PublicIPPrefix + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + public_ip_prefix_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PublicIPPrefix: + """Updates public IP prefix tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to update public IP prefix tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PublicIPPrefix + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + public_ip_prefix_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.PublicIPPrefix: + """Updates public IP prefix tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to update public IP prefix tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PublicIPPrefix + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + public_ip_prefix_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.PublicIPPrefix: + """Updates public IP prefix tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to update public IP prefix tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.PublicIPPrefix + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_public_ip_prefixes_update_tags_request( + resource_group_name=resource_group_name, + public_ip_prefix_name=public_ip_prefix_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.PublicIPPrefix, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, public_ip_prefix_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -49489,12 +55517,12 @@ async def _delete_initial(self, resource_group_name: str, service_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_private_link_services_delete_request( + _request = build_public_ip_prefixes_delete_request( resource_group_name=resource_group_name, - service_name=service_name, + public_ip_prefix_name=public_ip_prefix_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -49520,7 +55548,7 @@ async def _delete_initial(self, resource_group_name: str, service_name: str, **k pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49538,14 +55566,16 @@ async def _delete_initial(self, resource_group_name: str, service_name: str, **k return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes the specified private link service. + async def begin_delete( + self, resource_group_name: str, public_ip_prefix_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified public IP prefix. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str + :param public_ip_prefix_name: The name of the public IP prefix. Required. + :type public_ip_prefix_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -49553,7 +55583,7 @@ async def begin_delete(self, resource_group_name: str, service_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49561,7 +55591,7 @@ async def begin_delete(self, resource_group_name: str, service_name: str, **kwar if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - service_name=service_name, + public_ip_prefix_name=public_ip_prefix_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -49597,21 +55627,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PrivateLinkService"]: - """Gets all private link services in a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PublicIPPrefix"]: + """Gets all public IP prefixes in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of PrivateLinkService - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateLinkService] + :return: An iterator like instance of PublicIPPrefix + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -49624,7 +55654,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_private_link_services_list_request( + _request = build_public_ip_prefixes_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -49652,7 +55682,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PrivateLinkService], + List[_models.PublicIPPrefix], deserialized.get("value", []), ) if cls: @@ -49671,7 +55701,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49681,18 +55711,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.PrivateLinkService"]: - """Gets all private link service in a subscription. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.PublicIPPrefix"]: + """Gets all the public IP prefixes in a subscription. - :return: An iterator like instance of PrivateLinkService - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateLinkService] + :return: An iterator like instance of PublicIPPrefix + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIPPrefix] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -49705,7 +55735,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.Private def prepare_request(next_link=None): if not next_link: - _request = build_private_link_services_list_by_subscription_request( + _request = build_public_ip_prefixes_list_all_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -49732,7 +55762,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PrivateLinkService], + List[_models.PublicIPPrefix], deserialized.get("value", []), ) if cls: @@ -49751,7 +55781,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49760,32 +55790,39 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + +class RouteFiltersOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`route_filters` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace_async - async def get_private_endpoint_connection( - self, - resource_group_name: str, - service_name: str, - pe_connection_name: str, - *, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Get the specific private end point connection by specific private link service in the resource - group. + async def get( + self, resource_group_name: str, route_filter_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.RouteFilter: + """Gets the specified route filter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str - :keyword expand: Expands referenced resources. Default value is None. + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :keyword expand: Expands referenced express route bgp peering resources. Default value is None. :paramtype expand: str - :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :return: RouteFilter. The RouteFilter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteFilter :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -49799,13 +55836,12 @@ async def get_private_endpoint_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) - _request = build_private_link_services_get_private_endpoint_connection_request( + _request = build_route_filters_get_request( resource_group_name=resource_group_name, - service_name=service_name, - pe_connection_name=pe_connection_name, + route_filter_name=route_filter_name, subscription_id=self._config.subscription_id, expand=expand, api_version=api_version, @@ -49833,7 +55869,7 @@ async def get_private_endpoint_connection( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49841,137 +55877,358 @@ async def get_private_endpoint_connection( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + deserialized = _deserialize(_models.RouteFilter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + route_filter_name: str, + route_filter_parameters: Union[_models.RouteFilter, _types.RouteFilter, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(route_filter_parameters, (IOBase, bytes)): + _content = route_filter_parameters + else: + _content = json.dumps(route_filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_route_filters_create_or_update_request( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def update_private_endpoint_connection( + async def begin_create_or_update( self, resource_group_name: str, - service_name: str, - pe_connection_name: str, - parameters: _models.PrivateEndpointConnection, + route_filter_name: str, + route_filter_parameters: _models.RouteFilter, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Approve or reject private end point connection for a private link service in a subscription. + ) -> AsyncLROPoller[_models.RouteFilter]: + """Creates or updates a route filter in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str - :param parameters: Parameters supplied to approve or reject the private end point connection. + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or update route filter + operation. Required. + :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + route_filter_name: str, + route_filter_parameters: _types.RouteFilter, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RouteFilter]: + """Creates or updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection + :type resource_group_name: str + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or update route filter + operation. Required. + :type route_filter_parameters: ~azure.mgmt.network.types.RouteFilter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_private_endpoint_connection( + async def begin_create_or_update( self, resource_group_name: str, - service_name: str, - pe_connection_name: str, - parameters: JSON, + route_filter_name: str, + route_filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Approve or reject private end point connection for a private link service in a subscription. + ) -> AsyncLROPoller[_models.RouteFilter]: + """Creates or updates a route filter in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str - :param parameters: Parameters supplied to approve or reject the private end point connection. + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or update route filter + operation. Required. + :type route_filter_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + route_filter_name: str, + route_filter_parameters: Union[_models.RouteFilter, _types.RouteFilter, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.RouteFilter]: + """Creates or updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or update route filter + operation. Is either a RouteFilter type or a IO[bytes] type. Required. + :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter or + ~azure.mgmt.network.types.RouteFilter or IO[bytes] + :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + route_filter_parameters=route_filter_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.RouteFilter, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.RouteFilter].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.RouteFilter]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + async def update_tags( + self, + resource_group_name: str, + route_filter_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RouteFilter: + """Updates tags of a route filter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. Required. - :type parameters: JSON + :type resource_group_name: str + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param parameters: Parameters supplied to update route filter tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :return: RouteFilter. The RouteFilter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteFilter :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_private_endpoint_connection( + async def update_tags( self, resource_group_name: str, - service_name: str, - pe_connection_name: str, - parameters: IO[bytes], + route_filter_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Approve or reject private end point connection for a private link service in a subscription. + ) -> _models.RouteFilter: + """Updates tags of a route filter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str - :param parameters: Parameters supplied to approve or reject the private end point connection. + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param parameters: Parameters supplied to update route filter tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RouteFilter. The RouteFilter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteFilter + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + route_filter_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RouteFilter: + """Updates tags of a route filter. + + :param resource_group_name: The name of the resource group. The name is case insensitive. Required. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param parameters: Parameters supplied to update route filter tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :return: RouteFilter. The RouteFilter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteFilter :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_private_endpoint_connection( + async def update_tags( self, resource_group_name: str, - service_name: str, - pe_connection_name: str, - parameters: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + route_filter_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.PrivateEndpointConnection: - """Approve or reject private end point connection for a private link service in a subscription. + ) -> _models.RouteFilter: + """Updates tags of a route filter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str - :param parameters: Parameters supplied to approve or reject the private end point connection. - Is one of the following types: PrivateEndpointConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection or JSON or IO[bytes] - :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str + :param parameters: Parameters supplied to update route filter tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: RouteFilter. The RouteFilter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteFilter :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -49985,9 +56242,9 @@ async def update_private_endpoint_connection( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) + cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -49996,10 +56253,9 @@ async def update_private_endpoint_connection( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_private_link_services_update_private_endpoint_connection_request( + _request = build_route_filters_update_tags_request( resource_group_name=resource_group_name, - service_name=service_name, - pe_connection_name=pe_connection_name, + route_filter_name=route_filter_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -50028,7 +56284,7 @@ async def update_private_endpoint_connection( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50036,15 +56292,15 @@ async def update_private_endpoint_connection( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.PrivateEndpointConnection, response.json()) + deserialized = _deserialize(_models.RouteFilter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_private_endpoint_connection_initial( # pylint: disable=name-too-long - self, resource_group_name: str, service_name: str, pe_connection_name: str, **kwargs: Any + async def _delete_initial( + self, resource_group_name: str, route_filter_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -50057,13 +56313,12 @@ async def _delete_private_endpoint_connection_initial( # pylint: disable=name-t _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_private_link_services_delete_private_endpoint_connection_request( + _request = build_route_filters_delete_request( resource_group_name=resource_group_name, - service_name=service_name, - pe_connection_name=pe_connection_name, + route_filter_name=route_filter_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -50089,13 +56344,16 @@ async def _delete_private_endpoint_connection_initial( # pylint: disable=name-t pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) @@ -50107,19 +56365,16 @@ async def _delete_private_endpoint_connection_initial( # pylint: disable=name-t return deserialized # type: ignore @distributed_trace_async - async def begin_delete_private_endpoint_connection( - self, resource_group_name: str, service_name: str, pe_connection_name: str, **kwargs: Any + async def begin_delete( + self, resource_group_name: str, route_filter_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete private end point connection for a private link service in a subscription. + """Deletes the specified route filter. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :param pe_connection_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type pe_connection_name: str + :param route_filter_name: The name of the route filter. Required. + :type route_filter_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -50127,16 +56382,15 @@ async def begin_delete_private_endpoint_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_private_endpoint_connection_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - service_name=service_name, - pe_connection_name=pe_connection_name, + route_filter_name=route_filter_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -50146,52 +56400,128 @@ async def begin_delete_private_endpoint_connection( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.RouteFilter"]: + """Gets all route filters in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of RouteFilter + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteFilter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_route_filters_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.RouteFilter], + deserialized.get("value", []), + ) if cls: - return cls(pipeline_response, None, {}) # type: ignore + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + async def get_next(next_link=None): + _request = prepare_request(next_link) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_private_endpoint_connections( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.PrivateEndpointConnection"]: - """Gets all private end point connections for a specific private link service. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteFilter"]: + """Gets all route filters in a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_name: The name of the private link service. Required. - :type service_name: str - :return: An iterator like instance of PrivateEndpointConnection - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PrivateEndpointConnection] + :return: An iterator like instance of RouteFilter + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteFilter] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PrivateEndpointConnection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -50204,9 +56534,7 @@ def list_private_endpoint_connections( def prepare_request(next_link=None): if not next_link: - _request = build_private_link_services_list_private_endpoint_connections_request( - resource_group_name=resource_group_name, - service_name=service_name, + _request = build_route_filters_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -50233,7 +56561,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PrivateEndpointConnection], + List[_models.RouteFilter], deserialized.get("value", []), ) if cls: @@ -50252,7 +56580,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50261,10 +56589,105 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - async def _check_private_link_service_visibility_initial( # pylint: disable=name-too-long + +class RouteTablesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`route_tables` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, route_table_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.RouteTable: + """Gets the specified route table. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: RouteTable. The RouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteTable + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) + + _request = build_route_tables_get_request( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RouteTable, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, - location: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + resource_group_name: str, + route_table_name: str, + parameters: Union[_models.RouteTable, _types.RouteTable, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -50278,7 +56701,7 @@ async def _check_private_link_service_visibility_initial( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -50289,8 +56712,9 @@ async def _check_private_link_service_visibility_initial( # pylint: disable=nam else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_private_link_services_check_private_link_service_visibility_request( - location=location, + _request = build_route_tables_create_or_update_request( + resource_group_name=resource_group_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -50311,7 +56735,7 @@ async def _check_private_link_service_visibility_initial( # pylint: disable=nam response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -50324,8 +56748,10 @@ async def _check_private_link_service_visibility_initial( # pylint: disable=nam raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -50336,103 +56762,126 @@ async def _check_private_link_service_visibility_initial( # pylint: disable=nam return deserialized # type: ignore @overload - async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long + async def begin_create_or_update( self, - location: str, - parameters: _models.CheckPrivateLinkServiceVisibilityRequest, + resource_group_name: str, + route_table_name: str, + parameters: _models.RouteTable, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service. + ) -> AsyncLROPoller[_models.RouteTable]: + """Create or updates a route table in a specified resource group. - :param location: The location name. Required. - :type location: str - :param parameters: The request body. Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route table operation. Required. + :type parameters: ~azure.mgmt.network.models.RouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service. + async def begin_create_or_update( + self, + resource_group_name: str, + route_table_name: str, + parameters: _types.RouteTable, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RouteTable]: + """Create or updates a route table in a specified resource group. - :param location: The location name. Required. - :type location: str - :param parameters: The request body. Required. - :type parameters: JSON + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route table operation. Required. + :type parameters: ~azure.mgmt.network.types.RouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long - self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service. + async def begin_create_or_update( + self, + resource_group_name: str, + route_table_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.RouteTable]: + """Create or updates a route table in a specified resource group. - :param location: The location name. Required. - :type location: str - :param parameters: The request body. Required. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route table operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_check_private_link_service_visibility( # pylint: disable=name-too-long + async def begin_create_or_update( self, - location: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + resource_group_name: str, + route_table_name: str, + parameters: Union[_models.RouteTable, _types.RouteTable, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service. + ) -> AsyncLROPoller[_models.RouteTable]: + """Create or updates a route table in a specified resource group. - :param location: The location name. Required. - :type location: str - :param parameters: The request body. Is one of the following types: - CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or JSON + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route table operation. Is either + a RouteTable type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.RouteTable or ~azure.mgmt.network.types.RouteTable or IO[bytes] - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) + cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._check_private_link_service_visibility_initial( - location=location, + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -50446,7 +56895,7 @@ async def begin_check_private_link_service_visibility( # pylint: disable=name-t def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.PrivateLinkServiceVisibility, response.json()) + deserialized = _deserialize(_models.RouteTable, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -50464,23 +56913,120 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.PrivateLinkServiceVisibility].from_continuation_token( + return AsyncLROPoller[_models.RouteTable].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.PrivateLinkServiceVisibility]( + return AsyncLROPoller[_models.RouteTable]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _check_private_link_service_visibility_by_resource_group_initial( # pylint: disable=name-too-long + @overload + async def update_tags( self, - location: str, resource_group_name: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + route_table_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> _models.RouteTable: + """Updates a route table tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to update route table tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RouteTable. The RouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteTable + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + route_table_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RouteTable: + """Updates a route table tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to update route table tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RouteTable. The RouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteTable + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + route_table_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RouteTable: + """Updates a route table tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to update route table tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: RouteTable. The RouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteTable + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + route_table_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.RouteTable: + """Updates a route table tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param parameters: Parameters supplied to update route table tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: RouteTable. The RouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteTable + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -50492,9 +57038,9 @@ async def _check_private_link_service_visibility_by_resource_group_initial( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -50503,12 +57049,12 @@ async def _check_private_link_service_visibility_by_resource_group_initial( # p else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_private_link_services_check_private_link_service_visibility_by_resource_group_request( - location=location, + _request = build_route_tables_update_tags_request( resource_group_name=resource_group_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, - content_type=content_type, api_version=api_version, + content_type=content_type, content=_content, headers=_headers, params=_params, @@ -50519,18 +57065,19 @@ async def _check_private_link_service_visibility_by_resource_group_initial( # p _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -50538,149 +57085,105 @@ async def _check_private_link_service_visibility_by_resource_group_initial( # p ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RouteTable, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long - self, - location: str, - resource_group_name: str, - parameters: _models.CheckPrivateLinkServiceVisibilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service in the specified resource - group. + async def _delete_initial( + self, resource_group_name: str, route_table_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - :param location: The location name. Required. - :type location: str - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param parameters: The request body. Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] - :raises ~azure.core.exceptions.HttpResponseError: - """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_route_tables_delete_request( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - @overload - async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long - self, - location: str, - resource_group_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service in the specified resource - group. + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - :param location: The location name. Required. - :type location: str - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param parameters: The request body. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] - :raises ~azure.core.exceptions.HttpResponseError: - """ + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - @overload - async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long - self, - location: str, - resource_group_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service in the specified resource - group. + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore - :param location: The location name. Required. - :type location: str - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param parameters: The request body. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] - :raises ~azure.core.exceptions.HttpResponseError: - """ + return deserialized # type: ignore @distributed_trace_async - async def begin_check_private_link_service_visibility_by_resource_group( # pylint: disable=name-too-long - self, - location: str, - resource_group_name: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.PrivateLinkServiceVisibility]: - """Checks whether the subscription is visible to private link service in the specified resource - group. + async def begin_delete( + self, resource_group_name: str, route_table_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified route table. - :param location: The location name. Required. - :type location: str :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param parameters: The request body. Is one of the following types: - CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or JSON - or IO[bytes] - :return: An instance of AsyncLROPoller that returns PrivateLinkServiceVisibility. The - PrivateLinkServiceVisibility is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._check_private_link_service_visibility_by_resource_group_initial( - location=location, + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - parameters=parameters, - content_type=content_type, + route_table_name=route_table_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -50690,12 +57193,9 @@ async def begin_check_private_link_service_visibility_by_resource_group( # pyli await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.PrivateLinkServiceVisibility, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -50710,35 +57210,30 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.PrivateLinkServiceVisibility].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.PrivateLinkServiceVisibility]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_auto_approved_private_link_services( - self, location: str, **kwargs: Any - ) -> AsyncItemPaged["_models.AutoApprovedPrivateLinkService"]: - """Returns all of the private link service ids that can be linked to a Private Endpoint with auto - approved in this subscription in this region. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.RouteTable"]: + """Gets all route tables in a resource group. - :param location: The location name. Required. - :type location: str - :return: An iterator like instance of AutoApprovedPrivateLinkService - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AutoApprovedPrivateLinkService] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of RouteTable + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -50751,8 +57246,8 @@ def list_auto_approved_private_link_services( def prepare_request(next_link=None): if not next_link: - _request = build_private_link_services_list_auto_approved_private_link_services_request( - location=location, + _request = build_route_tables_list_request( + resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -50779,7 +57274,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.AutoApprovedPrivateLinkService], + List[_models.RouteTable], deserialized.get("value", []), ) if cls: @@ -50808,27 +57303,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_auto_approved_private_link_services_by_resource_group( # pylint: disable=name-too-long - self, location: str, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.AutoApprovedPrivateLinkService"]: - """Returns all of the private link service ids that can be linked to a Private Endpoint with auto - approved in this subscription in this region. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteTable"]: + """Gets all route tables in a subscription. - :param location: The location name. Required. - :type location: str - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of AutoApprovedPrivateLinkService - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AutoApprovedPrivateLinkService] + :return: An iterator like instance of RouteTable + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -50841,15 +57327,11 @@ def list_auto_approved_private_link_services_by_resource_group( # pylint: disab def prepare_request(next_link=None): if not next_link: - _request = ( - build_private_link_services_list_auto_approved_private_link_services_by_resource_group_request( - location=location, - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) + _request = build_route_tables_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, ) path_format_arguments = { "endpoint": self._serialize.url( @@ -50872,7 +57354,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.AutoApprovedPrivateLinkService], + List[_models.RouteTable], deserialized.get("value", []), ) if cls: @@ -50901,14 +57383,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class PublicIPPrefixesOperations: +class RoutesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`public_ip_prefixes` attribute. + :attr:`routes` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -50920,19 +57402,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, public_ip_prefix_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.PublicIPPrefix: - """Gets the specified public IP prefix in a specified resource group. + self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any + ) -> _models.Route: + """Gets the specified route from a route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PublicIPPrefix + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str + :return: Route. The Route is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Route :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -50946,14 +57428,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.Route] = kwargs.pop("cls", None) - _request = build_public_ip_prefixes_get_request( + _request = build_routes_get_request( resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, + route_table_name=route_table_name, + route_name=route_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -50987,7 +57469,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.PublicIPPrefix, response.json()) + deserialized = _deserialize(_models.Route, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -50997,8 +57479,9 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - public_ip_prefix_name: str, - parameters: Union[_models.PublicIPPrefix, JSON, IO[bytes]], + route_table_name: str, + route_name: str, + route_parameters: Union[_models.Route, _types.Route, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -51012,20 +57495,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(route_parameters, (IOBase, bytes)): + _content = route_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(route_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_public_ip_prefixes_create_or_update_request( + _request = build_routes_create_or_update_request( resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, + route_table_name=route_table_name, + route_name=route_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -51060,7 +57544,9 @@ async def _create_or_update_initial( response_headers = {} if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -51074,28 +57560,30 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - public_ip_prefix_name: str, - parameters: _models.PublicIPPrefix, + route_table_name: str, + route_name: str, + route_parameters: _models.Route, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PublicIPPrefix]: - """Creates or updates a static or dynamic public IP prefix. + ) -> AsyncLROPoller[_models.Route]: + """Creates or updates a route in the specified route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to the create or update public IP prefix operation. - Required. - :type parameters: ~azure.mgmt.network.models.PublicIPPrefix + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update route operation. Required. + :type route_parameters: ~azure.mgmt.network.models.Route :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] + :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51103,28 +57591,30 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - public_ip_prefix_name: str, - parameters: JSON, + route_table_name: str, + route_name: str, + route_parameters: _types.Route, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PublicIPPrefix]: - """Creates or updates a static or dynamic public IP prefix. + ) -> AsyncLROPoller[_models.Route]: + """Creates or updates a route in the specified route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to the create or update public IP prefix operation. - Required. - :type parameters: JSON + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update route operation. Required. + :type route_parameters: ~azure.mgmt.network.types.Route :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] + :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51132,28 +57622,30 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - public_ip_prefix_name: str, - parameters: IO[bytes], + route_table_name: str, + route_name: str, + route_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.PublicIPPrefix]: - """Creates or updates a static or dynamic public IP prefix. + ) -> AsyncLROPoller[_models.Route]: + """Creates or updates a route in the specified route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to the create or update public IP prefix operation. - Required. - :type parameters: IO[bytes] + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update route operation. Required. + :type route_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] + :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51161,39 +57653,44 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - public_ip_prefix_name: str, - parameters: Union[_models.PublicIPPrefix, JSON, IO[bytes]], + route_table_name: str, + route_name: str, + route_parameters: Union[_models.Route, _types.Route, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.PublicIPPrefix]: - """Creates or updates a static or dynamic public IP prefix. + ) -> AsyncLROPoller[_models.Route]: + """Creates or updates a route in the specified route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to the create or update public IP prefix operation. Is - one of the following types: PublicIPPrefix, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PublicIPPrefix or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns PublicIPPrefix. The PublicIPPrefix is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PublicIPPrefix] + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update route operation. Is either + a Route type or a IO[bytes] type. Required. + :type route_parameters: ~azure.mgmt.network.models.Route or ~azure.mgmt.network.types.Route or + IO[bytes] + :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) + cls: ClsType[_models.Route] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, - parameters=parameters, + route_table_name=route_table_name, + route_name=route_name, + route_parameters=route_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -51206,7 +57703,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.PublicIPPrefix, response.json()) + deserialized = _deserialize(_models.Route, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -51224,189 +57721,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.PublicIPPrefix].from_continuation_token( + return AsyncLROPoller[_models.Route].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.PublicIPPrefix]( + return AsyncLROPoller[_models.Route]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - public_ip_prefix_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PublicIPPrefix: - """Updates public IP prefix tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to update public IP prefix tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PublicIPPrefix - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - public_ip_prefix_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PublicIPPrefix: - """Updates public IP prefix tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to update public IP prefix tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PublicIPPrefix - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - public_ip_prefix_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.PublicIPPrefix: - """Updates public IP prefix tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to update public IP prefix tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PublicIPPrefix - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - public_ip_prefix_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.PublicIPPrefix: - """Updates public IP prefix tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str - :param parameters: Parameters supplied to update public IP prefix tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.PublicIPPrefix - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_public_ip_prefixes_update_tags_request( - resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.PublicIPPrefix, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, public_ip_prefix_name: str, **kwargs: Any + self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -51419,12 +57745,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_public_ip_prefixes_delete_request( + _request = build_routes_delete_request( resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, + route_table_name=route_table_name, + route_name=route_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -51469,15 +57796,17 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, public_ip_prefix_name: str, **kwargs: Any + self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified public IP prefix. + """Deletes the specified route from a route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param public_ip_prefix_name: The name of the public IP prefix. Required. - :type public_ip_prefix_name: str + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :param route_name: The name of the route. Required. + :type route_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -51485,7 +57814,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -51493,7 +57822,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - public_ip_prefix_name=public_ip_prefix_name, + route_table_name=route_table_name, + route_name=route_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -51529,21 +57859,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.PublicIPPrefix"]: - """Gets all public IP prefixes in a resource group. + def list(self, resource_group_name: str, route_table_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Route"]: + """Gets all routes in a route table. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of PublicIPPrefix - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIPPrefix] + :param route_table_name: The name of the route table. Required. + :type route_table_name: str + :return: An iterator like instance of Route + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Route] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.Route]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -51556,8 +57888,9 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_public_ip_prefixes_list_request( + _request = build_routes_list_request( resource_group_name=resource_group_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -51584,87 +57917,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.PublicIPPrefix], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.PublicIPPrefix"]: - """Gets all the public IP prefixes in a subscription. - - :return: An iterator like instance of PublicIPPrefix - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIPPrefix] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_public_ip_prefixes_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.PublicIPPrefix], + List[_models.Route], deserialized.get("value", []), ) if cls: @@ -51693,14 +57946,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RouteFiltersOperations: +class SecurityPartnerProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`route_filters` attribute. + :attr:`security_partner_providers` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -51712,19 +57965,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, route_filter_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.RouteFilter: - """Gets the specified route filter. + self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any + ) -> _models.SecurityPartnerProvider: + """Gets the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :keyword expand: Expands referenced express route bgp peering resources. Default value is None. - :paramtype expand: str - :return: RouteFilter. The RouteFilter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteFilter + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -51738,14 +57989,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) - _request = build_route_filters_get_request( + _request = build_security_partner_providers_get_request( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, + security_partner_provider_name=security_partner_provider_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -51779,7 +58029,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RouteFilter, response.json()) + deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -51789,8 +58039,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - route_filter_name: str, - route_filter_parameters: Union[_models.RouteFilter, JSON, IO[bytes]], + security_partner_provider_name: str, + parameters: Union[_models.SecurityPartnerProvider, _types.SecurityPartnerProvider, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -51804,20 +58054,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(route_filter_parameters, (IOBase, bytes)): - _content = route_filter_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(route_filter_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_route_filters_create_or_update_request( + _request = build_security_partner_providers_create_or_update_request( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, + security_partner_provider_name=security_partner_provider_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -51868,28 +58118,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - route_filter_name: str, - route_filter_parameters: _models.RouteFilter, + security_partner_provider_name: str, + parameters: _models.SecurityPartnerProvider, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteFilter]: - """Creates or updates a route filter in a specified resource group. + ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: + """Creates or updates the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param route_filter_parameters: Parameters supplied to the create or update route filter + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to the create or update Security Partner Provider operation. Required. - :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter + :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The + SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51897,28 +58147,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_filter_name: str, - route_filter_parameters: JSON, + security_partner_provider_name: str, + parameters: _types.SecurityPartnerProvider, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteFilter]: - """Creates or updates a route filter in a specified resource group. + ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: + """Creates or updates the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param route_filter_parameters: Parameters supplied to the create or update route filter + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to the create or update Security Partner Provider operation. Required. - :type route_filter_parameters: JSON + :type parameters: ~azure.mgmt.network.types.SecurityPartnerProvider :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The + SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51926,28 +58176,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_filter_name: str, - route_filter_parameters: IO[bytes], + security_partner_provider_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteFilter]: - """Creates or updates a route filter in a specified resource group. + ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: + """Creates or updates the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param route_filter_parameters: Parameters supplied to the create or update route filter + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to the create or update Security Partner Provider operation. Required. - :type route_filter_parameters: IO[bytes] + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The + SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -51955,39 +58205,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_filter_name: str, - route_filter_parameters: Union[_models.RouteFilter, JSON, IO[bytes]], + security_partner_provider_name: str, + parameters: Union[_models.SecurityPartnerProvider, _types.SecurityPartnerProvider, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.RouteFilter]: - """Creates or updates a route filter in a specified resource group. + ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: + """Creates or updates the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param route_filter_parameters: Parameters supplied to the create or update route filter - operation. Is one of the following types: RouteFilter, JSON, IO[bytes] Required. - :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns RouteFilter. The RouteFilter is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilter] + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to the create or update Security Partner Provider + operation. Is either a SecurityPartnerProvider type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider or + ~azure.mgmt.network.types.SecurityPartnerProvider or IO[bytes] + :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The + SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) + cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, - route_filter_parameters=route_filter_parameters, + security_partner_provider_name=security_partner_provider_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -52000,7 +58251,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.RouteFilter, response.json()) + deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -52018,13 +58269,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.RouteFilter].from_continuation_token( + return AsyncLROPoller[_models.SecurityPartnerProvider].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.RouteFilter]( + return AsyncLROPoller[_models.SecurityPartnerProvider]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -52032,26 +58283,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - route_filter_name: str, + security_partner_provider_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteFilter: - """Updates tags of a route filter. + ) -> _models.SecurityPartnerProvider: + """Updates tags of a Security Partner Provider resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param parameters: Parameters supplied to update route filter tags. Required. + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to update Security Partner Provider tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RouteFilter. The RouteFilter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteFilter + :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52059,26 +58310,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_filter_name: str, - parameters: JSON, + security_partner_provider_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteFilter: - """Updates tags of a route filter. + ) -> _models.SecurityPartnerProvider: + """Updates tags of a Security Partner Provider resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param parameters: Parameters supplied to update route filter tags. Required. - :type parameters: JSON + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to update Security Partner Provider tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RouteFilter. The RouteFilter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteFilter + :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52086,26 +58337,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_filter_name: str, + security_partner_provider_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteFilter: - """Updates tags of a route filter. + ) -> _models.SecurityPartnerProvider: + """Updates tags of a Security Partner Provider resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param parameters: Parameters supplied to update route filter tags. Required. + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to update Security Partner Provider tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: RouteFilter. The RouteFilter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteFilter + :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52113,22 +58364,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_filter_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + security_partner_provider_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.RouteFilter: - """Updates tags of a route filter. + ) -> _models.SecurityPartnerProvider: + """Updates tags of a Security Partner Provider resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str - :param parameters: Parameters supplied to update route filter tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: RouteFilter. The RouteFilter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteFilter + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str + :param parameters: Parameters supplied to update Security Partner Provider tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -52142,9 +58394,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) + cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -52153,9 +58405,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_route_filters_update_tags_request( + _request = build_security_partner_providers_update_tags_request( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, + security_partner_provider_name=security_partner_provider_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -52192,7 +58444,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RouteFilter, response.json()) + deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -52200,7 +58452,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, route_filter_name: str, **kwargs: Any + self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -52213,12 +58465,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_route_filters_delete_request( + _request = build_security_partner_providers_delete_request( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, + security_partner_provider_name=security_partner_provider_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -52251,9 +58503,6 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) @@ -52266,15 +58515,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, route_filter_name: str, **kwargs: Any + self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified route filter. + """Deletes the specified Security Partner Provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_filter_name: The name of the route filter. Required. - :type route_filter_name: str + :param security_partner_provider_name: The name of the Security Partner Provider. Required. + :type security_partner_provider_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -52282,7 +58531,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -52290,7 +58539,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - route_filter_name=route_filter_name, + security_partner_provider_name=security_partner_provider_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -52326,21 +58575,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.RouteFilter"]: - """Gets all route filters in a resource group. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.SecurityPartnerProvider"]: + """Lists all Security Partner Providers in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of RouteFilter - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteFilter] + :return: An iterator like instance of SecurityPartnerProvider + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -52353,7 +58605,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_route_filters_list_by_resource_group_request( + _request = build_security_partner_providers_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -52381,7 +58633,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RouteFilter], + List[_models.SecurityPartnerProvider], deserialized.get("value", []), ) if cls: @@ -52410,18 +58662,19 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteFilter"]: - """Gets all route filters in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.SecurityPartnerProvider"]: + """Gets all the Security Partner Providers in a subscription. - :return: An iterator like instance of RouteFilter - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteFilter] + :return: An iterator like instance of SecurityPartnerProvider + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityPartnerProvider] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -52434,7 +58687,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteFilter"]: def prepare_request(next_link=None): if not next_link: - _request = build_route_filters_list_request( + _request = build_security_partner_providers_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -52461,7 +58714,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RouteFilter], + List[_models.SecurityPartnerProvider], deserialized.get("value", []), ) if cls: @@ -52490,14 +58743,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RouteTablesOperations: +class ServiceEndpointPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`route_tables` attribute. + :attr:`service_endpoint_policies` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -52509,19 +58762,24 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, route_table_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.RouteTable: - """Gets the specified route table. + self, + resource_group_name: str, + service_endpoint_policy_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.ServiceEndpointPolicy: + """Gets the specified service Endpoint Policies in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str :keyword expand: Expands referenced resources. Default value is None. :paramtype expand: str - :return: RouteTable. The RouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteTable + :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -52535,12 +58793,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) - _request = build_route_tables_get_request( + _request = build_service_endpoint_policies_get_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, subscription_id=self._config.subscription_id, expand=expand, api_version=api_version, @@ -52576,7 +58834,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RouteTable, response.json()) + deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -52586,8 +58844,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - route_table_name: str, - parameters: Union[_models.RouteTable, JSON, IO[bytes]], + service_endpoint_policy_name: str, + parameters: Union[_models.ServiceEndpointPolicy, _types.ServiceEndpointPolicy, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -52601,7 +58859,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -52612,9 +58870,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_route_tables_create_or_update_request( + _request = build_service_endpoint_policies_create_or_update_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -52665,27 +58923,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - parameters: _models.RouteTable, + service_endpoint_policy_name: str, + parameters: _models.ServiceEndpointPolicy, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteTable]: - """Create or updates a route table in a specified resource group. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: + """Creates or updates a service Endpoint Policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to the create or update route table operation. Required. - :type parameters: ~azure.mgmt.network.models.RouteTable + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to the create or update service endpoint policy + operation. Required. + :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The + ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52693,27 +58952,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - parameters: JSON, + service_endpoint_policy_name: str, + parameters: _types.ServiceEndpointPolicy, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteTable]: - """Create or updates a route table in a specified resource group. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: + """Creates or updates a service Endpoint Policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to the create or update route table operation. Required. - :type parameters: JSON + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to the create or update service endpoint policy + operation. Required. + :type parameters: ~azure.mgmt.network.types.ServiceEndpointPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The + ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52721,27 +58981,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, + service_endpoint_policy_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteTable]: - """Create or updates a route table in a specified resource group. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: + """Creates or updates a service Endpoint Policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to the create or update route table operation. Required. + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to the create or update service endpoint policy + operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The + ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52749,38 +59010,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - parameters: Union[_models.RouteTable, JSON, IO[bytes]], + service_endpoint_policy_name: str, + parameters: Union[_models.ServiceEndpointPolicy, _types.ServiceEndpointPolicy, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.RouteTable]: - """Create or updates a route table in a specified resource group. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: + """Creates or updates a service Endpoint Policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to the create or update route table operation. Is one of - the following types: RouteTable, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.RouteTable or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns RouteTable. The RouteTable is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteTable] + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to the create or update service endpoint policy + operation. Is either a ServiceEndpointPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy or + ~azure.mgmt.network.types.ServiceEndpointPolicy or IO[bytes] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The + ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -52794,7 +59056,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.RouteTable, response.json()) + deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -52812,13 +59074,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.RouteTable].from_continuation_token( + return AsyncLROPoller[_models.ServiceEndpointPolicy].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.RouteTable]( + return AsyncLROPoller[_models.ServiceEndpointPolicy]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -52826,26 +59088,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - route_table_name: str, + service_endpoint_policy_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteTable: - """Updates a route table tags. + ) -> _models.ServiceEndpointPolicy: + """Updates tags of a service endpoint policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to update route table tags. Required. + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to update service endpoint policy tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RouteTable. The RouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteTable + :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52853,26 +59115,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_table_name: str, - parameters: JSON, + service_endpoint_policy_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteTable: - """Updates a route table tags. + ) -> _models.ServiceEndpointPolicy: + """Updates tags of a service endpoint policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to update route table tags. Required. - :type parameters: JSON + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to update service endpoint policy tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: RouteTable. The RouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteTable + :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52880,26 +59142,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_table_name: str, + service_endpoint_policy_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.RouteTable: - """Updates a route table tags. + ) -> _models.ServiceEndpointPolicy: + """Updates tags of a service endpoint policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to update route table tags. Required. + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to update service endpoint policy tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: RouteTable. The RouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteTable + :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -52907,22 +59169,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - route_table_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + service_endpoint_policy_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.RouteTable: - """Updates a route table tags. + ) -> _models.ServiceEndpointPolicy: + """Updates tags of a service endpoint policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param parameters: Parameters supplied to update route table tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: RouteTable. The RouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteTable + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to update service endpoint policy tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -52936,9 +59199,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -52947,9 +59210,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_route_tables_update_tags_request( + _request = build_service_endpoint_policies_update_tags_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -52986,7 +59249,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.RouteTable, response.json()) + deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -52994,7 +59257,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, route_table_name: str, **kwargs: Any + self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -53007,12 +59270,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_route_tables_delete_request( + _request = build_service_endpoint_policies_delete_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -53057,15 +59320,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, route_table_name: str, **kwargs: Any + self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified route table. + """Deletes the specified service endpoint policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -53073,7 +59336,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -53081,7 +59344,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -53117,21 +59380,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.RouteTable"]: - """Gets all route tables in a resource group. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ServiceEndpointPolicy"]: + """Gets all service endpoint Policies in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of RouteTable - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteTable] + :return: An iterator like instance of ServiceEndpointPolicy + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -53144,7 +59410,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_route_tables_list_request( + _request = build_service_endpoint_policies_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -53172,7 +59438,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RouteTable], + List[_models.ServiceEndpointPolicy], deserialized.get("value", []), ) if cls: @@ -53201,18 +59467,19 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteTable"]: - """Gets all route tables in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ServiceEndpointPolicy"]: + """Gets all the service endpoint policies in a subscription. - :return: An iterator like instance of RouteTable - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteTable] + :return: An iterator like instance of ServiceEndpointPolicy + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -53225,7 +59492,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.RouteTable"]: def prepare_request(next_link=None): if not next_link: - _request = build_route_tables_list_all_request( + _request = build_service_endpoint_policies_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -53252,7 +59519,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RouteTable], + List[_models.ServiceEndpointPolicy], deserialized.get("value", []), ) if cls: @@ -53281,14 +59548,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RoutesOperations: +class ServiceEndpointPolicyDefinitionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`routes` attribute. + :attr:`service_endpoint_policy_definitions` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -53300,19 +59567,25 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any - ) -> _models.Route: - """Gets the specified route from a route table. + self, + resource_group_name: str, + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + **kwargs: Any + ) -> _models.ServiceEndpointPolicyDefinition: + """Get a ServiceEndpointPolicyDefinition. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str - :return: Route. The Route is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Route + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str + :return: ServiceEndpointPolicyDefinition. The ServiceEndpointPolicyDefinition is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -53326,13 +59599,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.Route] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) - _request = build_routes_get_request( + _request = build_service_endpoint_policy_definitions_get_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, - route_name=route_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -53367,7 +59640,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.Route, response.json()) + deserialized = _deserialize(_models.ServiceEndpointPolicyDefinition, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -53377,9 +59650,11 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - route_table_name: str, - route_name: str, - route_parameters: Union[_models.Route, JSON, IO[bytes]], + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + service_endpoint_policy_definitions: Union[ + _models.ServiceEndpointPolicyDefinition, _types.ServiceEndpointPolicyDefinition, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -53393,21 +59668,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(route_parameters, (IOBase, bytes)): - _content = route_parameters + if isinstance(service_endpoint_policy_definitions, (IOBase, bytes)): + _content = service_endpoint_policy_definitions else: - _content = json.dumps(route_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(service_endpoint_policy_definitions, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_routes_create_or_update_request( + _request = build_service_endpoint_policy_definitions_create_or_update_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, - route_name=route_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -53458,30 +59733,35 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - route_name: str, - route_parameters: _models.Route, + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + service_endpoint_policy_definitions: _models.ServiceEndpointPolicyDefinition, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Route]: - """Creates or updates a route in the specified route table. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: + """Creates or updates a service endpoint policy definition in the specified service endpoint + policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str - :param route_parameters: Parameters supplied to the create or update route operation. Required. - :type route_parameters: ~azure.mgmt.network.models.Route + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str + :param service_endpoint_policy_definitions: Parameters supplied to the create or update service + endpoint policy operation. Required. + :type service_endpoint_policy_definitions: + ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The + ServiceEndpointPolicyDefinition is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -53489,30 +59769,35 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - route_name: str, - route_parameters: JSON, + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + service_endpoint_policy_definitions: _types.ServiceEndpointPolicyDefinition, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Route]: - """Creates or updates a route in the specified route table. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: + """Creates or updates a service endpoint policy definition in the specified service endpoint + policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str - :param route_parameters: Parameters supplied to the create or update route operation. Required. - :type route_parameters: JSON + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str + :param service_endpoint_policy_definitions: Parameters supplied to the create or update service + endpoint policy operation. Required. + :type service_endpoint_policy_definitions: + ~azure.mgmt.network.types.ServiceEndpointPolicyDefinition :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The + ServiceEndpointPolicyDefinition is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -53520,30 +59805,34 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - route_name: str, - route_parameters: IO[bytes], + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + service_endpoint_policy_definitions: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.Route]: - """Creates or updates a route in the specified route table. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: + """Creates or updates a service endpoint policy definition in the specified service endpoint + policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str - :param route_parameters: Parameters supplied to the create or update route operation. Required. - :type route_parameters: IO[bytes] + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str + :param service_endpoint_policy_definitions: Parameters supplied to the create or update service + endpoint policy operation. Required. + :type service_endpoint_policy_definitions: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The + ServiceEndpointPolicyDefinition is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -53551,43 +59840,51 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - route_table_name: str, - route_name: str, - route_parameters: Union[_models.Route, JSON, IO[bytes]], + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + service_endpoint_policy_definitions: Union[ + _models.ServiceEndpointPolicyDefinition, _types.ServiceEndpointPolicyDefinition, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.Route]: - """Creates or updates a route in the specified route table. + ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: + """Creates or updates a service endpoint policy definition in the specified service endpoint + policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str - :param route_parameters: Parameters supplied to the create or update route operation. Is one of - the following types: Route, JSON, IO[bytes] Required. - :type route_parameters: ~azure.mgmt.network.models.Route or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Route. The Route is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Route] + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str + :param service_endpoint_policy_definitions: Parameters supplied to the create or update service + endpoint policy operation. Is either a ServiceEndpointPolicyDefinition type or a IO[bytes] + type. Required. + :type service_endpoint_policy_definitions: + ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition or + ~azure.mgmt.network.types.ServiceEndpointPolicyDefinition or IO[bytes] + :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The + ServiceEndpointPolicyDefinition is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Route] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - route_table_name=route_table_name, - route_name=route_name, - route_parameters=route_parameters, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + service_endpoint_policy_definitions=service_endpoint_policy_definitions, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -53600,7 +59897,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.Route, response.json()) + deserialized = _deserialize(_models.ServiceEndpointPolicyDefinition, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -53618,18 +59915,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.Route].from_continuation_token( + return AsyncLROPoller[_models.ServiceEndpointPolicyDefinition].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.Route]( + return AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any + self, + resource_group_name: str, + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -53642,13 +59943,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_routes_delete_request( + _request = build_service_endpoint_policy_definitions_delete_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, - route_name=route_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -53693,17 +59994,22 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, route_table_name: str, route_name: str, **kwargs: Any + self, + resource_group_name: str, + service_endpoint_policy_name: str, + service_endpoint_policy_definition_name: str, + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified route from a route table. + """Deletes the specified ServiceEndpoint policy definitions. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :param route_name: The name of the route. Required. - :type route_name: str + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the resource that is unique within + a resource group. This name can be used to access the resource. Required. + :type service_endpoint_policy_definition_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -53711,7 +60017,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -53719,8 +60025,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - route_table_name=route_table_name, - route_name=route_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -53756,23 +60062,26 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, route_table_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Route"]: - """Gets all routes in a route table. + def list_by_resource_group( + self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ServiceEndpointPolicyDefinition"]: + """Gets all service endpoint policy definitions in a service end point policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param route_table_name: The name of the route table. Required. - :type route_table_name: str - :return: An iterator like instance of Route - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Route] + :param service_endpoint_policy_name: The name of the service endpoint policy. Required. + :type service_endpoint_policy_name: str + :return: An iterator like instance of ServiceEndpointPolicyDefinition + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.Route]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceEndpointPolicyDefinition]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -53785,9 +60094,9 @@ def list(self, resource_group_name: str, route_table_name: str, **kwargs: Any) - def prepare_request(next_link=None): if not next_link: - _request = build_routes_list_request( + _request = build_service_endpoint_policy_definitions_list_by_resource_group_request( resource_group_name=resource_group_name, - route_table_name=route_table_name, + service_endpoint_policy_name=service_endpoint_policy_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -53814,7 +60123,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.Route], + List[_models.ServiceEndpointPolicyDefinition], deserialized.get("value", []), ) if cls: @@ -53843,14 +60152,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SecurityPartnerProvidersOperations: +class VirtualNetworksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`security_partner_providers` attribute. + :attr:`virtual_networks` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -53862,17 +60171,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any - ) -> _models.SecurityPartnerProvider: - """Gets the specified Security Partner Provider. + self, resource_group_name: str, virtual_network_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.VirtualNetwork: + """Gets the specified virtual network by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetwork :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -53886,13 +60197,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) - _request = build_security_partner_providers_get_request( + _request = build_virtual_networks_get_request( resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -53926,7 +60238,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) + deserialized = _deserialize(_models.VirtualNetwork, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -53936,8 +60248,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: Union[_models.SecurityPartnerProvider, JSON, IO[bytes]], + virtual_network_name: str, + parameters: Union[_models.VirtualNetwork, _types.VirtualNetwork, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -53951,7 +60263,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -53962,9 +60274,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_security_partner_providers_create_or_update_request( + _request = build_virtual_networks_create_or_update_request( resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -54015,28 +60327,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: _models.SecurityPartnerProvider, + virtual_network_name: str, + parameters: _models.VirtualNetwork, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: - """Creates or updates the specified Security Partner Provider. + ) -> AsyncLROPoller[_models.VirtualNetwork]: + """Creates or updates a virtual network in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to the create or update Security Partner Provider - operation. Required. - :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. + Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetwork :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The - SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] + :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54044,28 +60356,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: JSON, + virtual_network_name: str, + parameters: _types.VirtualNetwork, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: - """Creates or updates the specified Security Partner Provider. + ) -> AsyncLROPoller[_models.VirtualNetwork]: + """Creates or updates a virtual network in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to the create or update Security Partner Provider - operation. Required. - :type parameters: JSON + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. + Required. + :type parameters: ~azure.mgmt.network.types.VirtualNetwork :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The - SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] + :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54073,28 +60385,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - security_partner_provider_name: str, + virtual_network_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: - """Creates or updates the specified Security Partner Provider. + ) -> AsyncLROPoller[_models.VirtualNetwork]: + """Creates or updates a virtual network in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to the create or update Security Partner Provider - operation. Required. + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The - SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] + :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54102,38 +60414,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: Union[_models.SecurityPartnerProvider, JSON, IO[bytes]], + virtual_network_name: str, + parameters: Union[_models.VirtualNetwork, _types.VirtualNetwork, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.SecurityPartnerProvider]: - """Creates or updates the specified Security Partner Provider. + ) -> AsyncLROPoller[_models.VirtualNetwork]: + """Creates or updates a virtual network in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to the create or update Security Partner Provider - operation. Is one of the following types: SecurityPartnerProvider, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns SecurityPartnerProvider. The - SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual network operation. Is + either a VirtualNetwork type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetwork or + ~azure.mgmt.network.types.VirtualNetwork or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, + virtual_network_name=virtual_network_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -54147,7 +60460,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) + deserialized = _deserialize(_models.VirtualNetwork, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -54165,13 +60478,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.SecurityPartnerProvider].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetwork].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.SecurityPartnerProvider]( + return AsyncLROPoller[_models.VirtualNetwork]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -54179,26 +60492,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - security_partner_provider_name: str, + virtual_network_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityPartnerProvider: - """Updates tags of a Security Partner Provider resource. + ) -> _models.VirtualNetwork: + """Updates a virtual network tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to update Security Partner Provider tags. Required. + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to update virtual network tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider + :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetwork :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54206,26 +60519,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: JSON, + virtual_network_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityPartnerProvider: - """Updates tags of a Security Partner Provider resource. + ) -> _models.VirtualNetwork: + """Updates a virtual network tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to update Security Partner Provider tags. Required. - :type parameters: JSON + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to update virtual network tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider + :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetwork :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54233,26 +60546,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - security_partner_provider_name: str, + virtual_network_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.SecurityPartnerProvider: - """Updates tags of a Security Partner Provider resource. + ) -> _models.VirtualNetwork: + """Updates a virtual network tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to update Security Partner Provider tags. Required. + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to update virtual network tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider + :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetwork :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54260,22 +60573,396 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - security_partner_provider_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_network_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.SecurityPartnerProvider: - """Updates tags of a Security Partner Provider resource. + ) -> _models.VirtualNetwork: + """Updates a virtual network tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param parameters: Parameters supplied to update virtual network tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetwork + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_networks_update_tags_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualNetwork, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial( + self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_networks_delete_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified virtual network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetwork"]: + """Gets all virtual networks in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of VirtualNetwork + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetwork] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_networks_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetwork], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetwork"]: + """Gets all virtual networks in a subscription. + + :return: An iterator like instance of VirtualNetwork + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetwork] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_networks_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetwork], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def check_ip_address_availability( + self, resource_group_name: str, virtual_network_name: str, *, ip_address: str, **kwargs: Any + ) -> _models.IPAddressAvailabilityResult: + """Checks whether a private IP address is available for use. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :param parameters: Parameters supplied to update Security Partner Provider tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :keyword ip_address: The private IP address to be verified. Required. + :paramtype ip_address: str + :return: IPAddressAvailabilityResult. The IPAddressAvailabilityResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.IPAddressAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -54286,27 +60973,18 @@ async def update_tags( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.IPAddressAvailabilityResult] = kwargs.pop("cls", None) - _request = build_security_partner_providers_update_tags_request( + _request = build_virtual_networks_check_ip_address_availability_request( resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, + ip_address=ip_address, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -54339,15 +61017,110 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.SecurityPartnerProvider, response.json()) + deserialized = _deserialize(_models.IPAddressAvailabilityResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any + @distributed_trace + def list_usage( + self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkUsage"]: + """Lists usage stats. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :return: An iterator like instance of VirtualNetworkUsage + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkUsage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkUsage]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_networks_list_usage_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkUsage], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _list_ddos_protection_status_initial( + self, + resource_group_name: str, + virtual_network_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -54360,13 +61133,15 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_security_partner_providers_delete_request( + _request = build_virtual_networks_list_ddos_protection_status_request( resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -54384,7 +61159,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -54409,85 +61184,38 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, security_partner_provider_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified Security Partner Provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param security_partner_provider_name: The name of the Security Partner Provider. Required. - :type security_partner_provider_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.SecurityPartnerProvider"]: - """Lists all Security Partner Providers in a resource group. + async def begin_list_ddos_protection_status( + self, + resource_group_name: str, + virtual_network_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]]: + """Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of SecurityPartnerProvider + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :keyword top: The max number of ip addresses to return. Default value is None. + :paramtype top: int + :keyword skip_token: The skipToken that is given with nextLink. Default value is None. + :paramtype skip_token: str + :return: An instance of LROPoller that returns an iterator like instance of list of + PublicIpDdosProtectionStatusResult :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityPartnerProvider] + ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIpDdosProtectionStatusResult]] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PublicIpDdosProtectionStatusResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -54500,9 +61228,12 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_security_partner_providers_list_by_resource_group_request( + _request = build_virtual_networks_list_ddos_protection_status_request( resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, api_version=api_version, headers=_headers, params=_params, @@ -54528,7 +61259,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.SecurityPartnerProvider], + List[_models.PublicIpDdosProtectionStatusResult], deserialized.get("value", []), ) if cls: @@ -54554,23 +61285,75 @@ async def get_next(next_link=None): return pipeline_response - return AsyncItemPaged(get_next, extract_data) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._list_ddos_protection_status_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + top=top, + skip_token=skip_token, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.SecurityPartnerProvider"]: - """Gets all the Security Partner Providers in a subscription. + def get_long_running_output(pipeline_response): + async def internal_get_next(next_link=None): + if next_link is None: + return pipeline_response + return await get_next(next_link) - :return: An iterator like instance of SecurityPartnerProvider - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.SecurityPartnerProvider] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + return AsyncItemPaged(internal_get_next, extract_data) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _move_ip_configurations_initial( + self, + resource_group_name: str, + virtual_network_name: str, + body: Union[_models.MoveIpConfigurationsRequest, _types.MoveIpConfigurationsRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -54579,73 +61362,248 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.SecurityPartnerProvider } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_security_partner_providers_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - return _request + _request = build_virtual_networks_move_ip_configurations_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.SecurityPartnerProvider], - deserialized.get("value", []), + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: _models.MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Move IP configurations from one virtual network to another. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: ~azure.mgmt.network.models.MoveIpConfigurationsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: _types.MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Move IP configurations from one virtual network to another. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: ~azure.mgmt.network.types.MoveIpConfigurationsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Move IP configurations from one virtual network to another. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: Union[_models.MoveIpConfigurationsRequest, _types.MoveIpConfigurationsRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Move IP configurations from one virtual network to another. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Is either a MoveIpConfigurationsRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.MoveIpConfigurationsRequest or + ~azure.mgmt.network.types.MoveIpConfigurationsRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._move_ip_configurations_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + return cls(pipeline_response, None, {}) # type: ignore - async def get_next(next_link=None): - _request = prepare_request(next_link) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ServiceEndpointPoliciesOperations: +class SubnetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`service_endpoint_policies` attribute. + :attr:`subnets` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -54659,22 +61617,25 @@ def __init__(self, *args, **kwargs) -> None: async def get( self, resource_group_name: str, - service_endpoint_policy_name: str, + virtual_network_name: str, + subnet_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.ServiceEndpointPolicy: - """Gets the specified service Endpoint Policies in a specified resource group. + ) -> _models.Subnet: + """Gets the specified subnet by virtual network and resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str :keyword expand: Expands referenced resources. Default value is None. :paramtype expand: str - :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy + :return: Subnet. The Subnet is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Subnet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -54688,12 +61649,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) - _request = build_service_endpoint_policies_get_request( + _request = build_subnets_get_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, subscription_id=self._config.subscription_id, expand=expand, api_version=api_version, @@ -54729,7 +61691,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) + deserialized = _deserialize(_models.Subnet, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -54739,8 +61701,9 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: Union[_models.ServiceEndpointPolicy, JSON, IO[bytes]], + virtual_network_name: str, + subnet_name: str, + subnet_parameters: Union[_models.Subnet, _types.Subnet, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -54754,20 +61717,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(subnet_parameters, (IOBase, bytes)): + _content = subnet_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(subnet_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_service_endpoint_policies_create_or_update_request( + _request = build_subnets_create_or_update_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -54818,28 +61782,31 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: _models.ServiceEndpointPolicy, + virtual_network_name: str, + subnet_name: str, + subnet_parameters: _models.Subnet, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: - """Creates or updates a service Endpoint Policies. + ) -> AsyncLROPoller[_models.Subnet]: + """Creates or updates a subnet in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to the create or update service endpoint policy - operation. Required. - :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update subnet operation. + Required. + :type subnet_parameters: ~azure.mgmt.network.models.Subnet :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The - ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] + :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54847,28 +61814,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: JSON, + virtual_network_name: str, + subnet_name: str, + subnet_parameters: _types.Subnet, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: - """Creates or updates a service Endpoint Policies. + ) -> AsyncLROPoller[_models.Subnet]: + """Creates or updates a subnet in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to the create or update service endpoint policy - operation. Required. - :type parameters: JSON + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update subnet operation. + Required. + :type subnet_parameters: ~azure.mgmt.network.types.Subnet :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The - ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] + :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54876,28 +61846,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: IO[bytes], + virtual_network_name: str, + subnet_name: str, + subnet_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: - """Creates or updates a service Endpoint Policies. + ) -> AsyncLROPoller[_models.Subnet]: + """Creates or updates a subnet in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to the create or update service endpoint policy - operation. Required. - :type parameters: IO[bytes] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update subnet operation. + Required. + :type subnet_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The - ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] + :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -54905,39 +61878,44 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: Union[_models.ServiceEndpointPolicy, JSON, IO[bytes]], + virtual_network_name: str, + subnet_name: str, + subnet_parameters: Union[_models.Subnet, _types.Subnet, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicy]: - """Creates or updates a service Endpoint Policies. + ) -> AsyncLROPoller[_models.Subnet]: + """Creates or updates a subnet in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to the create or update service endpoint policy - operation. Is one of the following types: ServiceEndpointPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicy. The - ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update subnet operation. Is + either a Subnet type or a IO[bytes] type. Required. + :type subnet_parameters: ~azure.mgmt.network.models.Subnet or ~azure.mgmt.network.types.Subnet + or IO[bytes] + :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - parameters=parameters, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subnet_parameters=subnet_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -54950,7 +61928,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) + deserialized = _deserialize(_models.Subnet, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -54968,189 +61946,496 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ServiceEndpointPolicy].from_continuation_token( + return AsyncLROPoller[_models.Subnet].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ServiceEndpointPolicy]( + return AsyncLROPoller[_models.Subnet]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + async def _delete_initial( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_subnets_delete_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified subnet. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Subnet"]: + """Gets all subnets in a virtual network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :return: An iterator like instance of Subnet + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Subnet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.Subnet]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_subnets_list_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Subnet], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _prepare_network_policies_initial( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + prepare_network_policies_request_parameters: Union[ + _models.PrepareNetworkPoliciesRequest, _types.PrepareNetworkPoliciesRequest, IO[bytes] + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(prepare_network_policies_request_parameters, (IOBase, bytes)): + _content = prepare_network_policies_request_parameters + else: + _content = json.dumps(prepare_network_policies_request_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_subnets_prepare_network_policies_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def update_tags( + async def begin_prepare_network_policies( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: _models.TagsObject, + virtual_network_name: str, + subnet_name: str, + prepare_network_policies_request_parameters: _models.PrepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceEndpointPolicy: - """Updates tags of a service endpoint policy. + ) -> AsyncLROPoller[None]: + """Prepares a subnet by applying network intent policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to update service endpoint policy tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by + applying network intent policies. Required. + :type prepare_network_policies_request_parameters: + ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_prepare_network_policies( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: JSON, + virtual_network_name: str, + subnet_name: str, + prepare_network_policies_request_parameters: _types.PrepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceEndpointPolicy: - """Updates tags of a service endpoint policy. + ) -> AsyncLROPoller[None]: + """Prepares a subnet by applying network intent policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to update service endpoint policy tags. Required. - :type parameters: JSON + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by + applying network intent policies. Required. + :type prepare_network_policies_request_parameters: + ~azure.mgmt.network.types.PrepareNetworkPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_prepare_network_policies( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: IO[bytes], + virtual_network_name: str, + subnet_name: str, + prepare_network_policies_request_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceEndpointPolicy: - """Updates tags of a service endpoint policy. + ) -> AsyncLROPoller[None]: + """Prepares a subnet by applying network intent policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to update service endpoint policy tags. Required. - :type parameters: IO[bytes] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by + applying network intent policies. Required. + :type prepare_network_policies_request_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def begin_prepare_network_policies( self, resource_group_name: str, - service_endpoint_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_network_name: str, + subnet_name: str, + prepare_network_policies_request_parameters: Union[ + _models.PrepareNetworkPoliciesRequest, _types.PrepareNetworkPoliciesRequest, IO[bytes] + ], **kwargs: Any - ) -> _models.ServiceEndpointPolicy: - """Updates tags of a service endpoint policy. + ) -> AsyncLROPoller[None]: + """Prepares a subnet by applying network intent policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to update service endpoint policy tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by + applying network intent policies. Is either a PrepareNetworkPoliciesRequest type or a IO[bytes] + type. Required. + :type prepare_network_policies_request_parameters: + ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest or + ~azure.mgmt.network.types.PrepareNetworkPoliciesRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._prepare_network_policies_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + prepare_network_policies_request_parameters=prepare_network_policies_request_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - _request = build_service_endpoint_policies_update_tags_request( - resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.ServiceEndpointPolicy, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _delete_initial( - self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any + async def _unprepare_network_policies_initial( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + unprepare_network_policies_request_parameters: Union[ + _models.UnprepareNetworkPoliciesRequest, _types.UnprepareNetworkPoliciesRequest, IO[bytes] + ], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -55160,17 +62445,28 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_service_endpoint_policies_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(unprepare_network_policies_request_parameters, (IOBase, bytes)): + _content = unprepare_network_policies_request_parameters + else: + _content = json.dumps(unprepare_network_policies_request_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_subnets_unprepare_network_policies_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -55187,7 +62483,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -55201,8 +62497,8 @@ async def _delete_initial( response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -55211,34 +62507,148 @@ async def _delete_initial( return deserialized # type: ignore + @overload + async def begin_unprepare_network_policies( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + unprepare_network_policies_request_parameters: _models.UnprepareNetworkPoliciesRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Unprepares a subnet by removing network intent policies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet + to remove network intent policies. Required. + :type unprepare_network_policies_request_parameters: + ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_unprepare_network_policies( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + unprepare_network_policies_request_parameters: _types.UnprepareNetworkPoliciesRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Unprepares a subnet by removing network intent policies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet + to remove network intent policies. Required. + :type unprepare_network_policies_request_parameters: + ~azure.mgmt.network.types.UnprepareNetworkPoliciesRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_unprepare_network_policies( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + unprepare_network_policies_request_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Unprepares a subnet by removing network intent policies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet + to remove network intent policies. Required. + :type unprepare_network_policies_request_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any + async def begin_unprepare_network_policies( + self, + resource_group_name: str, + virtual_network_name: str, + subnet_name: str, + unprepare_network_policies_request_parameters: Union[ + _models.UnprepareNetworkPoliciesRequest, _types.UnprepareNetworkPoliciesRequest, IO[bytes] + ], + **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified service endpoint policy. + """Unprepares a subnet by removing network intent policies. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. Required. + :type subnet_name: str + :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet + to remove network intent policies. Is either a UnprepareNetworkPoliciesRequest type or a + IO[bytes] type. Required. + :type unprepare_network_policies_request_parameters: + ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest or + ~azure.mgmt.network.types.UnprepareNetworkPoliciesRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._unprepare_network_policies_initial( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + unprepare_network_policies_request_parameters=unprepare_network_policies_request_parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -55272,183 +62682,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ServiceEndpointPolicy"]: - """Gets all service endpoint Policies in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of ServiceEndpointPolicy - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicy] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_service_endpoint_policies_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ServiceEndpointPolicy], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ServiceEndpointPolicy"]: - """Gets all the service endpoint policies in a subscription. - - :return: An iterator like instance of ServiceEndpointPolicy - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicy] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_service_endpoint_policies_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ServiceEndpointPolicy], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - -class ServiceEndpointPolicyDefinitionsOperations: # pylint: disable=name-too-long +class VirtualNetworkPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`service_endpoint_policy_definitions` attribute. + :attr:`virtual_network_peerings` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -55460,25 +62702,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, - resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - **kwargs: Any - ) -> _models.ServiceEndpointPolicyDefinition: - """Get a ServiceEndpointPolicyDefinition. + self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any + ) -> _models.VirtualNetworkPeering: + """Gets the specified virtual network peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str - :return: ServiceEndpointPolicyDefinition. The ServiceEndpointPolicyDefinition is compatible - with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str + :return: VirtualNetworkPeering. The VirtualNetworkPeering is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkPeering :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -55492,13 +62728,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) - _request = build_service_endpoint_policy_definitions_get_request( + _request = build_virtual_network_peerings_get_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -55533,7 +62769,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ServiceEndpointPolicyDefinition, response.json()) + deserialized = _deserialize(_models.VirtualNetworkPeering, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -55543,9 +62779,13 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: Union[_models.ServiceEndpointPolicyDefinition, JSON, IO[bytes]], + virtual_network_name: str, + virtual_network_peering_name: str, + virtual_network_peering_parameters: Union[ + _models.VirtualNetworkPeering, _types.VirtualNetworkPeering, IO[bytes] + ], + *, + sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -55559,22 +62799,23 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(service_endpoint_policy_definitions, (IOBase, bytes)): - _content = service_endpoint_policy_definitions + if isinstance(virtual_network_peering_parameters, (IOBase, bytes)): + _content = virtual_network_peering_parameters else: - _content = json.dumps(service_endpoint_policy_definitions, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(virtual_network_peering_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_service_endpoint_policy_definitions_create_or_update_request( + _request = build_virtual_network_peerings_create_or_update_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, subscription_id=self._config.subscription_id, + sync_remote_address_space=sync_remote_address_space, api_version=api_version, content_type=content_type, content=_content, @@ -55624,35 +62865,35 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: _models.ServiceEndpointPolicyDefinition, + virtual_network_name: str, + virtual_network_peering_name: str, + virtual_network_peering_parameters: _models.VirtualNetworkPeering, *, + sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: - """Creates or updates a service endpoint policy definition in the specified service endpoint - policy. + ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: + """Creates or updates a peering in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str - :param service_endpoint_policy_definitions: Parameters supplied to the create or update service - endpoint policy operation. Required. - :type service_endpoint_policy_definitions: - ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual + network peering operation. Required. + :type virtual_network_peering_parameters: ~azure.mgmt.network.models.VirtualNetworkPeering + :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with + the current address space on the remote vNet after it's updated. "true" Default value is None. + :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The - ServiceEndpointPolicyDefinition is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] + :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The + VirtualNetworkPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -55660,34 +62901,35 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: JSON, + virtual_network_name: str, + virtual_network_peering_name: str, + virtual_network_peering_parameters: _types.VirtualNetworkPeering, *, + sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: - """Creates or updates a service endpoint policy definition in the specified service endpoint - policy. + ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: + """Creates or updates a peering in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str - :param service_endpoint_policy_definitions: Parameters supplied to the create or update service - endpoint policy operation. Required. - :type service_endpoint_policy_definitions: JSON + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual + network peering operation. Required. + :type virtual_network_peering_parameters: ~azure.mgmt.network.types.VirtualNetworkPeering + :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with + the current address space on the remote vNet after it's updated. "true" Default value is None. + :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The - ServiceEndpointPolicyDefinition is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] + :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The + VirtualNetworkPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -55695,34 +62937,35 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: IO[bytes], + virtual_network_name: str, + virtual_network_peering_name: str, + virtual_network_peering_parameters: IO[bytes], *, + sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: - """Creates or updates a service endpoint policy definition in the specified service endpoint - policy. + ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: + """Creates or updates a peering in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str - :param service_endpoint_policy_definitions: Parameters supplied to the create or update service - endpoint policy operation. Required. - :type service_endpoint_policy_definitions: IO[bytes] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual + network peering operation. Required. + :type virtual_network_peering_parameters: IO[bytes] + :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with + the current address space on the remote vNet after it's updated. "true" Default value is None. + :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The - ServiceEndpointPolicyDefinition is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] + :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The + VirtualNetworkPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -55730,48 +62973,53 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: Union[_models.ServiceEndpointPolicyDefinition, JSON, IO[bytes]], + virtual_network_name: str, + virtual_network_peering_name: str, + virtual_network_peering_parameters: Union[ + _models.VirtualNetworkPeering, _types.VirtualNetworkPeering, IO[bytes] + ], + *, + sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]: - """Creates or updates a service endpoint policy definition in the specified service endpoint - policy. + ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: + """Creates or updates a peering in the specified virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str - :param service_endpoint_policy_definitions: Parameters supplied to the create or update service - endpoint policy operation. Is one of the following types: ServiceEndpointPolicyDefinition, - JSON, IO[bytes] Required. - :type service_endpoint_policy_definitions: - ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ServiceEndpointPolicyDefinition. The - ServiceEndpointPolicyDefinition is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual + network peering operation. Is either a VirtualNetworkPeering type or a IO[bytes] type. + Required. + :type virtual_network_peering_parameters: ~azure.mgmt.network.models.VirtualNetworkPeering or + ~azure.mgmt.network.types.VirtualNetworkPeering or IO[bytes] + :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with + the current address space on the remote vNet after it's updated. "true" Default value is None. + :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace + :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The + VirtualNetworkPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, - service_endpoint_policy_definitions=service_endpoint_policy_definitions, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, + virtual_network_peering_parameters=virtual_network_peering_parameters, + sync_remote_address_space=sync_remote_address_space, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -55784,7 +63032,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ServiceEndpointPolicyDefinition, response.json()) + deserialized = _deserialize(_models.VirtualNetworkPeering, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -55802,22 +63050,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ServiceEndpointPolicyDefinition].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkPeering].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ServiceEndpointPolicyDefinition]( + return AsyncLROPoller[_models.VirtualNetworkPeering]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, - resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - **kwargs: Any + self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -55830,13 +63074,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_service_endpoint_policy_definitions_delete_request( + _request = build_virtual_network_peerings_delete_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -55881,22 +63125,17 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, - resource_group_name: str, - service_endpoint_policy_name: str, - service_endpoint_policy_definition_name: str, - **kwargs: Any + self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified ServiceEndpoint policy definitions. + """Deletes the specified virtual network peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :param service_endpoint_policy_definition_name: The name of the resource that is unique within - a resource group. This name can be used to access the resource. Required. - :type service_endpoint_policy_definition_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network peering. Required. + :type virtual_network_peering_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -55904,7 +63143,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -55912,8 +63151,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, - service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -55949,26 +63188,26 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, service_endpoint_policy_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ServiceEndpointPolicyDefinition"]: - """Gets all service endpoint policy definitions in a service end point policy. + def list( + self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkPeering"]: + """Gets all virtual network peerings in a virtual network. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_endpoint_policy_name: The name of the service endpoint policy. Required. - :type service_endpoint_policy_name: str - :return: An iterator like instance of ServiceEndpointPolicyDefinition + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :return: An iterator like instance of VirtualNetworkPeering :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceEndpointPolicyDefinition] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkPeering] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceEndpointPolicyDefinition]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -55981,9 +63220,9 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_service_endpoint_policy_definitions_list_by_resource_group_request( + _request = build_virtual_network_peerings_list_request( resource_group_name=resource_group_name, - service_endpoint_policy_name=service_endpoint_policy_name, + virtual_network_name=virtual_network_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -56010,7 +63249,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ServiceEndpointPolicyDefinition], + List[_models.VirtualNetworkPeering], deserialized.get("value", []), ) if cls: @@ -56039,14 +63278,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualNetworksOperations: +class VirtualNetworkGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_networks` attribute. + :attr:`virtual_network_gateways` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -56058,19 +63297,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, virtual_network_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.VirtualNetwork: - """Gets the specified virtual network by resource group. + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> _models.VirtualNetworkGateway: + """Gets the specified virtual network gateway by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetwork + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: VirtualNetworkGateway. The VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -56084,59 +63321,301 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) - _request = build_virtual_networks_get_request( + _request = build_virtual_network_gateways_get_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Union[_models.VirtualNetworkGateway, _types.VirtualNetworkGateway, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_create_or_update_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: _models.VirtualNetworkGateway, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Creates or updates a virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual network gateway operation. + Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: _types.VirtualNetworkGateway, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Creates or updates a virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual network gateway operation. + Required. + :type parameters: ~azure.mgmt.network.types.VirtualNetworkGateway + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Creates or updates a virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual network gateway operation. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Union[_models.VirtualNetworkGateway, _types.VirtualNetworkGateway, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Creates or updates a virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual network gateway operation. + Is either a VirtualNetworkGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway or + ~azure.mgmt.network.types.VirtualNetworkGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.VirtualNetwork, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VirtualNetworkGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _create_or_update_initial( + async def _update_tags_initial( self, resource_group_name: str, - virtual_network_name: str, - parameters: Union[_models.VirtualNetwork, JSON, IO[bytes]], + virtual_network_gateway_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -56150,7 +63629,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -56161,9 +63640,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_networks_create_or_update_request( + _request = build_virtual_network_gateways_update_tags_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -56184,7 +63663,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -56197,7 +63676,7 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: + if response.status_code == 202: response_headers["Azure-AsyncOperation"] = self._deserialize( "str", response.headers.get("Azure-AsyncOperation") ) @@ -56211,128 +63690,126 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_network_name: str, - parameters: _models.VirtualNetwork, + virtual_network_gateway_name: str, + parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetwork]: - """Creates or updates a virtual network in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Updates a virtual network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetwork + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to update virtual network gateway tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_network_name: str, - parameters: JSON, + virtual_network_gateway_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetwork]: - """Creates or updates a virtual network in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Updates a virtual network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. - :type parameters: JSON + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to update virtual network gateway tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_network_name: str, + virtual_network_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetwork]: - """Creates or updates a virtual network in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Updates a virtual network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. - Required. + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to update virtual network gateway tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_network_name: str, - parameters: Union[_models.VirtualNetwork, JSON, IO[bytes]], + virtual_network_gateway_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetwork]: - """Creates or updates a virtual network in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Updates a virtual network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to the create or update virtual network operation. Is - one of the following types: VirtualNetwork, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetwork or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetwork. The VirtualNetwork is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetwork] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to update virtual network gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._update_tags_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -56346,7 +63823,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetwork, response.json()) + deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -56364,189 +63841,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetwork].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetwork]( + return AsyncLROPoller[_models.VirtualNetworkGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - virtual_network_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VirtualNetwork: - """Updates a virtual network tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to update virtual network tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetwork - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - virtual_network_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VirtualNetwork: - """Updates a virtual network tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to update virtual network tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetwork - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - virtual_network_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VirtualNetwork: - """Updates a virtual network tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to update virtual network tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetwork - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - virtual_network_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.VirtualNetwork: - """Updates a virtual network tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param parameters: Parameters supplied to update virtual network tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetwork - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_networks_update_tags_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VirtualNetwork, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -56559,12 +63865,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_networks_delete_request( + _request = build_virtual_network_gateways_delete_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -56609,15 +63915,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_network_name: str, **kwargs: Any + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified virtual network. + """Deletes the specified virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -56625,7 +63931,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -56633,7 +63939,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -56669,21 +63975,22 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetwork"]: - """Gets all virtual networks in a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkGateway"]: + """Gets all virtual network gateways by resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualNetwork - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetwork] + :return: An iterator like instance of VirtualNetworkGateway + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -56696,7 +64003,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_virtual_networks_list_request( + _request = build_virtual_network_gateways_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -56724,87 +64031,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetwork], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetwork"]: - """Gets all virtual networks in a subscription. - - :return: An iterator like instance of VirtualNetwork - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetwork] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_networks_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualNetwork], + List[_models.VirtualNetworkGateway], deserialized.get("value", []), ) if cls: @@ -56823,112 +64050,36 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def check_ip_address_availability( - self, resource_group_name: str, virtual_network_name: str, *, ip_address: str, **kwargs: Any - ) -> _models.IPAddressAvailabilityResult: - """Checks whether a private IP address is available for use. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :keyword ip_address: The private IP address to be verified. Required. - :paramtype ip_address: str - :return: IPAddressAvailabilityResult. The IPAddressAvailabilityResult is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.IPAddressAvailabilityResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.IPAddressAvailabilityResult] = kwargs.pop("cls", None) - - _request = build_virtual_networks_check_ip_address_availability_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - ip_address=ip_address, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.IPAddressAvailabilityResult, response.json()) + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_usage( - self, resource_group_name: str, virtual_network_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkUsage"]: - """Lists usage stats. + def list_connections( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkGatewayConnectionListEntity"]: + """Gets all the connections in a virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :return: An iterator like instance of VirtualNetworkUsage - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkUsage] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An iterator like instance of VirtualNetworkGatewayConnectionListEntity + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayConnectionListEntity] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkUsage]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkGatewayConnectionListEntity]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -56941,9 +64092,9 @@ def list_usage( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_networks_list_usage_request( + _request = build_virtual_network_gateways_list_connections_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -56970,7 +64121,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkUsage], + List[_models.VirtualNetworkGatewayConnectionListEntity], deserialized.get("value", []), ) if cls: @@ -56998,13 +64149,12 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - async def _list_ddos_protection_status_initial( + async def _reset_initial( self, resource_group_name: str, - virtual_network_name: str, + virtual_network_gateway_name: str, *, - top: Optional[int] = None, - skip_token: Optional[str] = None, + gateway_vip: Optional[str] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -57018,15 +64168,14 @@ async def _list_ddos_protection_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_networks_list_ddos_protection_status_request( + _request = build_virtual_network_gateways_reset_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, + gateway_vip=gateway_vip, api_version=api_version, headers=_headers, params=_params, @@ -57069,116 +64218,42 @@ async def _list_ddos_protection_status_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_list_ddos_protection_status( + async def begin_reset( self, resource_group_name: str, - virtual_network_name: str, + virtual_network_gateway_name: str, *, - top: Optional[int] = None, - skip_token: Optional[str] = None, + gateway_vip: Optional[str] = None, **kwargs: Any - ) -> AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]]: - """Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. + ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: + """Resets the primary of the virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :keyword top: The max number of ip addresses to return. Default value is None. - :paramtype top: int - :keyword skip_token: The skipToken that is given with nextLink. Default value is None. - :paramtype skip_token: str - :return: An instance of LROPoller that returns an iterator like instance of list of - PublicIpDdosProtectionStatusResult - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.PublicIpDdosProtectionStatusResult]] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :keyword gateway_vip: Virtual network gateway vip address supplied to the begin reset of the + active-active feature enabled gateway. Default value is None. + :paramtype gateway_vip: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The + VirtualNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PublicIpDdosProtectionStatusResult]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_networks_list_ddos_protection_status_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.PublicIpDdosProtectionStatusResult], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._list_ddos_protection_status_initial( + raw_result = await self._reset_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - top=top, - skip_token=skip_token, + virtual_network_gateway_name=virtual_network_gateway_name, + gateway_vip=gateway_vip, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -57189,12 +64264,11 @@ async def get_next(next_link=None): kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - async def internal_get_next(next_link=None): - if next_link is None: - return pipeline_response - return await get_next(next_link) - - return AsyncItemPaged(internal_get_next, extract_data) + response = pipeline_response.http_response + deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -57209,126 +64283,18 @@ async def internal_get_next(next_link=None): else: polling_method = polling if cont_token: - return AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[AsyncItemPaged["_models.PublicIpDdosProtectionStatusResult"]]( + return AsyncLROPoller[_models.VirtualNetworkGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - -class SubnetsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`subnets` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - *, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.Subnet: - """Gets the specified subnet by virtual network and resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: Subnet. The Subnet is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Subnet - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) - - _request = build_subnets_get_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.Subnet, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - subnet_parameters: Union[_models.Subnet, JSON, IO[bytes]], - **kwargs: Any + async def _reset_vpn_client_shared_key_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -57338,28 +64304,17 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(subnet_parameters, (IOBase, bytes)): - _content = subnet_parameters - else: - _content = json.dumps(subnet_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_subnets_create_or_update_request( + _request = build_virtual_network_gateways_reset_vpn_client_shared_key_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -57376,7 +64331,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -57389,11 +64344,9 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -57402,145 +64355,35 @@ async def _create_or_update_initial( return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - subnet_parameters: _models.Subnet, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Subnet]: - """Creates or updates a subnet in the specified virtual network. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param subnet_parameters: Parameters supplied to the create or update subnet operation. - Required. - :type subnet_parameters: ~azure.mgmt.network.models.Subnet - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - subnet_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Subnet]: - """Creates or updates a subnet in the specified virtual network. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param subnet_parameters: Parameters supplied to the create or update subnet operation. - Required. - :type subnet_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - subnet_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.Subnet]: - """Creates or updates a subnet in the specified virtual network. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param subnet_parameters: Parameters supplied to the create or update subnet operation. - Required. - :type subnet_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - subnet_parameters: Union[_models.Subnet, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.Subnet]: - """Creates or updates a subnet in the specified virtual network. + async def begin_reset_vpn_client_shared_key( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Resets the VPN client shared key of the virtual network gateway in the specified resource + group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param subnet_parameters: Parameters supplied to the create or update subnet operation. Is one - of the following types: Subnet, JSON, IO[bytes] Required. - :type subnet_parameters: ~azure.mgmt.network.models.Subnet or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns Subnet. The Subnet is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.Subnet] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._reset_vpn_client_shared_key_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - subnet_parameters=subnet_parameters, + virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -57549,12 +64392,9 @@ async def begin_create_or_update( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.Subnet, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -57569,18 +64409,20 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.Subnet].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.Subnet]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _delete_initial( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any + async def _generatevpnclientpackage_initial( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -57590,18 +64432,27 @@ async def _delete_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_subnets_delete_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_generatevpnclientpackage_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -57618,7 +64469,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -57630,49 +64481,145 @@ async def _delete_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_generatevpnclientpackage( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: _models.VpnClientParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Generates VPN client package for P2S client of the virtual network gateway in the specified + resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_generatevpnclientpackage( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: _types.VpnClientParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Generates VPN client package for P2S client of the virtual network gateway in the specified + resource group. - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: ~azure.mgmt.network.types.VpnClientParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + @overload + async def begin_generatevpnclientpackage( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Generates VPN client package for P2S client of the virtual network gateway in the specified + resource group. - return deserialized # type: ignore + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_network_name: str, subnet_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified subnet. + async def begin_generatevpnclientpackage( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Generates VPN client package for P2S client of the virtual network gateway in the specified + resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Is either a VpnClientParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters or + ~azure.mgmt.network.types.VpnClientParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._generatevpnclientpackage_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -57681,9 +64628,16 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -57698,109 +64652,19 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, virtual_network_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Subnet"]: - """Gets all subnets in a virtual network. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :return: An iterator like instance of Subnet - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Subnet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.Subnet]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_subnets_list_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.Subnet], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _prepare_network_policies_initial( + async def _generate_vpn_profile_initial( self, resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - prepare_network_policies_request_parameters: Union[_models.PrepareNetworkPoliciesRequest, JSON, IO[bytes]], + virtual_network_gateway_name: str, + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -57814,21 +64678,20 @@ async def _prepare_network_policies_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(prepare_network_policies_request_parameters, (IOBase, bytes)): - _content = prepare_network_policies_request_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(prepare_network_policies_request_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_subnets_prepare_network_policies_request( + _request = build_virtual_network_gateways_generate_vpn_profile_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -57874,141 +64737,130 @@ async def _prepare_network_policies_initial( return deserialized # type: ignore @overload - async def begin_prepare_network_policies( + async def begin_generate_vpn_profile( self, resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - prepare_network_policies_request_parameters: _models.PrepareNetworkPoliciesRequest, + virtual_network_gateway_name: str, + parameters: _models.VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Prepares a subnet by applying network intent policies. + ) -> AsyncLROPoller[str]: + """Generates VPN profile for P2S client of the virtual network gateway in the specified resource + group. Used for IKEV2 and radius based authentication. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by - applying network intent policies. Required. - :type prepare_network_policies_request_parameters: - ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_prepare_network_policies( + async def begin_generate_vpn_profile( self, resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - prepare_network_policies_request_parameters: JSON, + virtual_network_gateway_name: str, + parameters: _types.VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Prepares a subnet by applying network intent policies. + ) -> AsyncLROPoller[str]: + """Generates VPN profile for P2S client of the virtual network gateway in the specified resource + group. Used for IKEV2 and radius based authentication. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by - applying network intent policies. Required. - :type prepare_network_policies_request_parameters: JSON + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: ~azure.mgmt.network.types.VpnClientParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_prepare_network_policies( + async def begin_generate_vpn_profile( self, resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - prepare_network_policies_request_parameters: IO[bytes], + virtual_network_gateway_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Prepares a subnet by applying network intent policies. + ) -> AsyncLROPoller[str]: + """Generates VPN profile for P2S client of the virtual network gateway in the specified resource + group. Used for IKEV2 and radius based authentication. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by - applying network intent policies. Required. - :type prepare_network_policies_request_parameters: IO[bytes] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_prepare_network_policies( + async def begin_generate_vpn_profile( self, resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - prepare_network_policies_request_parameters: Union[_models.PrepareNetworkPoliciesRequest, JSON, IO[bytes]], + virtual_network_gateway_name: str, + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Prepares a subnet by applying network intent policies. + ) -> AsyncLROPoller[str]: + """Generates VPN profile for P2S client of the virtual network gateway in the specified resource + group. Used for IKEV2 and radius based authentication. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by - applying network intent policies. Is one of the following types: PrepareNetworkPoliciesRequest, - JSON, IO[bytes] Required. - :type prepare_network_policies_request_parameters: - ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network gateway VPN client + package operation. Is either a VpnClientParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters or + ~azure.mgmt.network.types.VpnClientParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._prepare_network_policies_initial( + raw_result = await self._generate_vpn_profile_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - prepare_network_policies_request_parameters=prepare_network_policies_request_parameters, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -58019,9 +64871,16 @@ async def begin_prepare_network_policies( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -58036,21 +64895,16 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _unprepare_network_policies_initial( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - unprepare_network_policies_request_parameters: Union[_models.UnprepareNetworkPoliciesRequest, JSON, IO[bytes]], - **kwargs: Any + async def _get_vpn_profile_package_url_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -58060,28 +64914,17 @@ async def _unprepare_network_policies_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(unprepare_network_policies_request_parameters, (IOBase, bytes)): - _content = unprepare_network_policies_request_parameters - else: - _content = json.dumps(unprepare_network_policies_request_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_subnets_unprepare_network_policies_request( + _request = build_virtual_network_gateways_get_vpn_profile_package_url_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -58112,8 +64955,8 @@ async def _unprepare_network_policies_initial( response_headers = {} if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -58122,144 +64965,170 @@ async def _unprepare_network_policies_initial( return deserialized # type: ignore - @overload - async def begin_unprepare_network_policies( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - unprepare_network_policies_request_parameters: _models.UnprepareNetworkPoliciesRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Unprepares a subnet by removing network intent policies. + @distributed_trace_async + async def begin_get_vpn_profile_package_url( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[str]: + """Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified + resource group. The profile needs to be generated first using generateVpnProfile. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet - to remove network intent policies. Required. - :type unprepare_network_policies_request_parameters: - ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - @overload - async def begin_unprepare_network_policies( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - unprepare_network_policies_request_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Unprepares a subnet by removing network intent policies. + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[str] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_vpn_profile_package_url_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[str].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _get_bgp_peer_status_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: Optional[str] = None, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateways_get_bgp_peer_status_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + peer=peer, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet - to remove network intent policies. Required. - :type unprepare_network_policies_request_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - @overload - async def begin_unprepare_network_policies( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - unprepare_network_policies_request_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Unprepares a subnet by removing network intent policies. + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet - to remove network intent policies. Required. - :type unprepare_network_policies_request_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore @distributed_trace_async - async def begin_unprepare_network_policies( - self, - resource_group_name: str, - virtual_network_name: str, - subnet_name: str, - unprepare_network_policies_request_parameters: Union[_models.UnprepareNetworkPoliciesRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Unprepares a subnet by removing network intent policies. + async def begin_get_bgp_peer_status( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: Optional[str] = None, **kwargs: Any + ) -> AsyncLROPoller[_models.BgpPeerStatusListResult]: + """The GetBgpPeerStatus operation retrieves the status of all BGP peers. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param subnet_name: The name of the subnet. Required. - :type subnet_name: str - :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet - to remove network intent policies. Is one of the following types: - UnprepareNetworkPoliciesRequest, JSON, IO[bytes] Required. - :type unprepare_network_policies_request_parameters: - ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :keyword peer: The IP address of the peer to retrieve the status of. Default value is None. + :paramtype peer: str + :return: An instance of AsyncLROPoller that returns BgpPeerStatusListResult. The + BgpPeerStatusListResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BgpPeerStatusListResult] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.BgpPeerStatusListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._unprepare_network_policies_initial( + raw_result = await self._get_bgp_peer_status_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subnet_name=subnet_name, - unprepare_network_policies_request_parameters=unprepare_network_policies_request_parameters, + virtual_network_gateway_name=virtual_network_gateway_name, + peer=peer, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -58268,9 +65137,12 @@ async def begin_unprepare_network_policies( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.BgpPeerStatusListResult, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -58285,47 +65157,104 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.BgpPeerStatusListResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.BgpPeerStatusListResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + @distributed_trace_async + async def supported_vpn_devices( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> str: + """Gets a xml format representation for supported vpn devices. -class VirtualNetworkPeeringsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_peerings` attribute. - """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[str] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateways_supported_vpn_devices_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any - ) -> _models.VirtualNetworkPeering: - """Gets the specified virtual network peering. + async def list_radius_secrets( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> _models.RadiusAuthServerListResult: + """List all Radius servers with respective radius secrets from virtual network gateway + VpnClientConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :return: VirtualNetworkPeering. The VirtualNetworkPeering is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkPeering + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: RadiusAuthServerListResult. The RadiusAuthServerListResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.RadiusAuthServerListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -58339,13 +65268,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) - _request = build_virtual_network_peerings_get_request( + _request = build_virtual_network_gateways_list_radius_secrets_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - virtual_network_peering_name=virtual_network_peering_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -58380,22 +65308,15 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkPeering, response.json()) + deserialized = _deserialize(_models.RadiusAuthServerListResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - virtual_network_name: str, - virtual_network_peering_name: str, - virtual_network_peering_parameters: Union[_models.VirtualNetworkPeering, JSON, IO[bytes]], - *, - sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, - **kwargs: Any + async def _get_learned_routes_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -58405,29 +65326,17 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(virtual_network_peering_parameters, (IOBase, bytes)): - _content = virtual_network_peering_parameters - else: - _content = json.dumps(virtual_network_peering_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_peerings_create_or_update_request( + _request = build_virtual_network_gateways_get_learned_routes_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - virtual_network_peering_name=virtual_network_peering_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - sync_remote_address_space=sync_remote_address_space, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -58444,7 +65353,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -58457,10 +65366,8 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -58470,165 +65377,170 @@ async def _create_or_update_initial( return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - virtual_network_peering_name: str, - virtual_network_peering_parameters: _models.VirtualNetworkPeering, - *, - sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: - """Creates or updates a peering in the specified virtual network. + @distributed_trace_async + async def begin_get_learned_routes( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.GatewayRouteListResult]: + """This operation retrieves a list of routes the virtual network gateway has learned, including + routes learned from BGP peers. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual - network peering operation. Required. - :type virtual_network_peering_parameters: ~azure.mgmt.network.models.VirtualNetworkPeering - :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with - the current address space on the remote vNet after it's updated. "true" Default value is None. - :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The - VirtualNetworkPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An instance of AsyncLROPoller that returns GatewayRouteListResult. The + GatewayRouteListResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - virtual_network_peering_name: str, - virtual_network_peering_parameters: JSON, - *, - sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: - """Creates or updates a peering in the specified virtual network. + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_learned_routes_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual - network peering operation. Required. - :type virtual_network_peering_parameters: JSON - :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with - the current address space on the remote vNet after it's updated. "true" Default value is None. - :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The - VirtualNetworkPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] - :raises ~azure.core.exceptions.HttpResponseError: - """ + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - virtual_network_peering_name: str, - virtual_network_peering_parameters: IO[bytes], - *, - sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: - """Creates or updates a peering in the specified virtual network. + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual - network peering operation. Required. - :type virtual_network_peering_parameters: IO[bytes] - :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with - the current address space on the remote vNet after it's updated. "true" Default value is None. - :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The - VirtualNetworkPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] - :raises ~azure.core.exceptions.HttpResponseError: - """ + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.GatewayRouteListResult].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.GatewayRouteListResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _get_advertised_routes_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateways_get_advertised_routes_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + peer=peer, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_name: str, - virtual_network_peering_name: str, - virtual_network_peering_parameters: Union[_models.VirtualNetworkPeering, JSON, IO[bytes]], - *, - sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkPeering]: - """Creates or updates a peering in the specified virtual network. + async def begin_get_advertised_routes( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + ) -> AsyncLROPoller[_models.GatewayRouteListResult]: + """This operation retrieves a list of routes the virtual network gateway is advertising to the + specified peer. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual - network peering operation. Is one of the following types: VirtualNetworkPeering, JSON, - IO[bytes] Required. - :type virtual_network_peering_parameters: ~azure.mgmt.network.models.VirtualNetworkPeering or - JSON or IO[bytes] - :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with - the current address space on the remote vNet after it's updated. "true" Default value is None. - :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace - :return: An instance of AsyncLROPoller that returns VirtualNetworkPeering. The - VirtualNetworkPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkPeering] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :keyword peer: The IP address of the peer. Required. + :paramtype peer: str + :return: An instance of AsyncLROPoller that returns GatewayRouteListResult. The + GatewayRouteListResult is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._get_advertised_routes_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - virtual_network_peering_name=virtual_network_peering_name, - virtual_network_peering_parameters=virtual_network_peering_parameters, - sync_remote_address_space=sync_remote_address_space, + virtual_network_gateway_name=virtual_network_gateway_name, + peer=peer, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -58639,7 +65551,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkPeering, response.json()) + deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -58657,18 +65569,31 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetworkPeering].from_continuation_token( + return AsyncLROPoller[_models.GatewayRouteListResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetworkPeering]( + return AsyncLROPoller[_models.GatewayRouteListResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_gateway_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def _get_effective_routes_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -58681,13 +65606,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_peerings_delete_request( + _request = build_virtual_network_gateways_get_effective_routes_request( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - virtual_network_peering_name=virtual_network_peering_name, + virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -58706,7 +65630,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -58731,35 +65655,47 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified virtual network peering. + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_gateway_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def begin_get_effective_routes( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.GatewayEffectiveRouteListResult]: + """This operation retrieves a list of effective routes for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :param virtual_network_peering_name: The name of the virtual network peering. Required. - :type virtual_network_peering_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An instance of AsyncLROPoller that returns GatewayEffectiveRouteListResult. The + GatewayEffectiveRouteListResult is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayEffectiveRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayEffectiveRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_effective_routes_initial( resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - virtual_network_peering_name=virtual_network_peering_name, + virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -58769,9 +65705,12 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.GatewayEffectiveRouteListResult, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -58786,137 +65725,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.GatewayEffectiveRouteListResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, virtual_network_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkPeering"]: - """Gets all virtual network peerings in a virtual network. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_name: The name of the virtual network. Required. - :type virtual_network_name: str - :return: An iterator like instance of VirtualNetworkPeering - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkPeering] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkPeering]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_network_peerings_list_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualNetworkPeering], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class VirtualNetworkGatewaysOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_gateways` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> _models.VirtualNetworkGateway: - """Gets the specified virtual network gateway by resource group. + return AsyncLROPoller[_models.GatewayEffectiveRouteListResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: VirtualNetworkGateway. The VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ + async def _get_resiliency_information_initial( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -58928,13 +65754,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_request( + _request = build_virtual_network_gateways_get_resiliency_information_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, + attempt_refresh=attempt_refresh, api_version=api_version, headers=_headers, params=_params, @@ -58945,19 +65772,18 @@ async def get( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -58965,21 +65791,102 @@ async def get( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( + @distributed_trace_async + async def begin_get_resiliency_information( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.GatewayResiliencyInformation]: + """This operation retrieves the resiliency information for an Express Route Gateway, including the + gateway's current resiliency score and recommendations to further improve the score. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :keyword attempt_refresh: Attempt to recalculate the Resiliency Information for the gateway. + Default value is None. + :paramtype attempt_refresh: bool + :return: An instance of AsyncLROPoller that returns GatewayResiliencyInformation. The + GatewayResiliencyInformation is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayResiliencyInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_resiliency_information_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + attempt_refresh=attempt_refresh, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.GatewayResiliencyInformation, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.GatewayResiliencyInformation].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.GatewayResiliencyInformation]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _get_routes_information_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VirtualNetworkGateway, JSON, IO[bytes]], + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -58990,27 +65897,18 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateways_create_or_update_request( + _request = build_virtual_network_gateways_get_routes_information_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -59027,7 +65925,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -59040,10 +65938,8 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -59053,132 +65949,46 @@ async def _create_or_update_initial( return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: _models.VirtualNetworkGateway, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Creates or updates a virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to create or update virtual network gateway operation. - Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Creates or updates a virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to create or update virtual network gateway operation. - Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Creates or updates a virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to create or update virtual network gateway operation. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_create_or_update( + async def begin_get_routes_information( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VirtualNetworkGateway, JSON, IO[bytes]], + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Creates or updates a virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.GatewayRouteSetsInformation]: + """This operation retrieves the route set information for an Express Route Gateway based on their + resiliency. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to create or update virtual network gateway operation. - Is one of the following types: VirtualNetworkGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :keyword attempt_refresh: Attempt to recalculate the Route Sets Information for the gateway. + Default value is None. + :paramtype attempt_refresh: bool + :return: An instance of AsyncLROPoller that returns GatewayRouteSetsInformation. The + GatewayRouteSetsInformation is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteSetsInformation] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._get_routes_information_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - parameters=parameters, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -59189,7 +65999,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + deserialized = _deserialize(_models.GatewayRouteSetsInformation, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -59207,21 +66017,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( + return AsyncLROPoller[_models.GatewayRouteSetsInformation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetworkGateway]( + return AsyncLROPoller[_models.GatewayRouteSetsInformation]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _update_tags_initial( + async def _set_vpnclient_ipsec_parameters_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, _types.VpnClientIPsecParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -59235,18 +66045,18 @@ async def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(vpnclient_ipsec_params, (IOBase, bytes)): + _content = vpnclient_ipsec_params else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(vpnclient_ipsec_params, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateways_update_tags_request( + _request = build_virtual_network_gateways_set_vpnclient_ipsec_parameters_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, @@ -59283,9 +66093,7 @@ async def _update_tags_initial( response_headers = {} if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -59296,126 +66104,135 @@ async def _update_tags_initial( return deserialized # type: ignore @overload - async def begin_update_tags( + async def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: _models.TagsObject, + vpnclient_ipsec_params: _models.VpnClientIPsecParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Updates a virtual network gateway tags. + ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: + """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of + virtual network gateway in the specified resource group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to update virtual network gateway tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters + of Virtual Network Gateway P2S client operation through Network resource provider. Required. + :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The + VpnClientIPsecParameters is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + vpnclient_ipsec_params: _types.VpnClientIPsecParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Updates a virtual network gateway tags. + ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: + """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of + virtual network gateway in the specified resource group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to update virtual network gateway tags. Required. - :type parameters: JSON + :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters + of Virtual Network Gateway P2S client operation through Network resource provider. Required. + :type vpnclient_ipsec_params: ~azure.mgmt.network.types.VpnClientIPsecParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The + VpnClientIPsecParameters is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: IO[bytes], + vpnclient_ipsec_params: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Updates a virtual network gateway tags. + ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: + """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of + virtual network gateway in the specified resource group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to update virtual network gateway tags. Required. - :type parameters: IO[bytes] + :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters + of Virtual Network Gateway P2S client operation through Network resource provider. Required. + :type vpnclient_ipsec_params: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The + VpnClientIPsecParameters is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_update_tags( + async def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, _types.VpnClientIPsecParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Updates a virtual network gateway tags. + ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: + """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of + virtual network gateway in the specified resource group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to update virtual network gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters + of Virtual Network Gateway P2S client operation through Network resource provider. Is either a + VpnClientIPsecParameters type or a IO[bytes] type. Required. + :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters or + ~azure.mgmt.network.types.VpnClientIPsecParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The + VpnClientIPsecParameters is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_tags_initial( + raw_result = await self._set_vpnclient_ipsec_parameters_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - parameters=parameters, + vpnclient_ipsec_params=vpnclient_ipsec_params, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -59428,7 +66245,7 @@ async def begin_update_tags( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) + deserialized = _deserialize(_models.VpnClientIPsecParameters, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -59446,17 +66263,17 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( + return AsyncLROPoller[_models.VpnClientIPsecParameters].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetworkGateway]( + return AsyncLROPoller[_models.VpnClientIPsecParameters]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( + async def _get_vpnclient_ipsec_parameters_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -59470,10 +66287,10 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_delete_request( + _request = build_virtual_network_gateways_get_vpnclient_ipsec_parameters_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, @@ -59494,7 +66311,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -59507,9 +66324,8 @@ async def _delete_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -59519,30 +66335,33 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( + async def begin_get_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified virtual network gateway. + ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: + """The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec + policy for P2S client of virtual network gateway in the specified resource group through + Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The + VpnClientIPsecParameters is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_vpnclient_ipsec_parameters_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, @@ -59554,9 +66373,16 @@ async def begin_delete( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.VpnClientIPsecParameters, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -59571,195 +66397,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.VpnClientIPsecParameters].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkGateway"]: - """Gets all virtual network gateways by resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of VirtualNetworkGateway - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_network_gateways_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualNetworkGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_connections( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkGatewayConnectionListEntity"]: - """Gets all the connections in a virtual network gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: An iterator like instance of VirtualNetworkGatewayConnectionListEntity - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayConnectionListEntity] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkGatewayConnectionListEntity]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_network_gateways_list_connections_request( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualNetworkGatewayConnectionListEntity], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + return AsyncLROPoller[_models.VpnClientIPsecParameters]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _reset_initial( + async def _start_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - *, - gateway_vip: Optional[str] = None, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -59770,18 +66424,31 @@ async def _reset_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_reset_request( + content_type = content_type or "application/json" if parameters else None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_virtual_network_gateways_start_packet_capture_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - gateway_vip=gateway_vip, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -59805,7 +66472,7 @@ async def _reset_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -59822,173 +66489,133 @@ async def _reset_initial( return deserialized # type: ignore - @distributed_trace_async - async def begin_reset( + @overload + async def begin_start_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, + parameters: Optional[_models.VpnPacketCaptureStartParameters] = None, *, - gateway_vip: Optional[str] = None, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGateway]: - """Resets the primary of the virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword gateway_vip: Virtual network gateway vip address supplied to the begin reset of the - active-active feature enabled gateway. Default value is None. - :paramtype gateway_vip: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGateway. The - VirtualNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._reset_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - gateway_vip=gateway_vip, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGateway, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGateway].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VirtualNetworkGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _reset_vpn_client_shared_key_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_virtual_network_gateways_reset_vpn_client_shared_key_request( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + @overload + async def begin_start_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Optional[_types.VpnPacketCaptureStartParameters] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway in the specified resource group. - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway. Default value is None. + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStartParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + @overload + async def begin_start_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway in the specified resource group. - return deserialized # type: ignore + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway. Default value is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_reset_vpn_client_shared_key( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Resets the VPN client shared key of the virtual network gateway in the specified resource - group. + async def begin_start_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway. Is either a VpnPacketCaptureStartParameters type or a IO[bytes] type. + Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStartParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._reset_vpn_client_shared_key_initial( + raw_result = await self._start_packet_capture_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -59997,9 +66624,16 @@ async def begin_reset_vpn_client_shared_key( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -60014,19 +66648,19 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _generatevpnclientpackage_initial( + async def _stop_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -60040,7 +66674,7 @@ async def _generatevpnclientpackage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -60051,7 +66685,7 @@ async def _generatevpnclientpackage_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateways_generatevpnclientpackage_request( + _request = build_virtual_network_gateways_stop_packet_capture_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, @@ -60081,7 +66715,7 @@ async def _generatevpnclientpackage_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -60099,26 +66733,25 @@ async def _generatevpnclientpackage_initial( return deserialized # type: ignore @overload - async def begin_generatevpnclientpackage( + async def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: _models.VpnClientParameters, + parameters: _models.VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[str]: - """Generates VPN client package for P2S client of the virtual network gateway in the specified - resource group. + """Stops packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway. Required. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -60128,26 +66761,25 @@ async def begin_generatevpnclientpackage( """ @overload - async def begin_generatevpnclientpackage( + async def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[str]: - """Generates VPN client package for P2S client of the virtual network gateway in the specified - resource group. + """Stops packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. - :type parameters: JSON + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway. Required. + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -60157,7 +66789,7 @@ async def begin_generatevpnclientpackage( """ @overload - async def begin_generatevpnclientpackage( + async def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, @@ -60166,16 +66798,15 @@ async def begin_generatevpnclientpackage( content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[str]: - """Generates VPN client package for P2S client of the virtual network gateway in the specified - resource group. + """Stops packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -60186,25 +66817,25 @@ async def begin_generatevpnclientpackage( """ @distributed_trace_async - async def begin_generatevpnclientpackage( + async def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[str]: - """Generates VPN client package for P2S client of the virtual network gateway in the specified - resource group. + """Stops packet capture on virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Is one of the following types: VpnClientParameters, JSON, IO[bytes] + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway. Is either a VpnPacketCaptureStopParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters or JSON or IO[bytes] + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStopParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns str :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -60212,14 +66843,14 @@ async def begin_generatevpnclientpackage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._generatevpnclientpackage_initial( + raw_result = await self._stop_packet_capture_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, parameters=parameters, @@ -60265,11 +66896,13 @@ def get_long_running_output(pipeline_response): ) return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _generate_vpn_profile_initial( + async def _get_failover_all_test_details_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + *, + type: str, + fetch_latest: bool, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -60280,27 +66913,19 @@ async def _generate_vpn_profile_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateways_generate_vpn_profile_request( + _request = build_virtual_network_gateways_get_failover_all_test_details_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, + type=type, + fetch_latest=fetch_latest, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -60331,8 +66956,8 @@ async def _generate_vpn_profile_initial( response_headers = {} if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -60341,133 +66966,48 @@ async def _generate_vpn_profile_initial( return deserialized # type: ignore - @overload - async def begin_generate_vpn_profile( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: _models.VpnClientParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Generates VPN profile for P2S client of the virtual network gateway in the specified resource - group. Used for IKEV2 and radius based authentication. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_vpn_profile( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Generates VPN profile for P2S client of the virtual network gateway in the specified resource - group. Used for IKEV2 and radius based authentication. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_vpn_profile( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Generates VPN profile for P2S client of the virtual network gateway in the specified resource - group. Used for IKEV2 and radius based authentication. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_generate_vpn_profile( + async def begin_get_failover_all_test_details( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + *, + type: str, + fetch_latest: bool, **kwargs: Any - ) -> AsyncLROPoller[str]: - """Generates VPN profile for P2S client of the virtual network gateway in the specified resource - group. Used for IKEV2 and radius based authentication. + ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]: + """This operation retrieves the details of all the failover tests performed on the gateway for + different peering locations. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Is one of the following types: VpnClientParameters, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :keyword type: The type of failover test. Required. + :paramtype type: str + :keyword fetch_latest: Fetch only the latest tests for each peering location. Required. + :paramtype fetch_latest: bool + :return: An instance of AsyncLROPoller that returns list of ExpressRouteFailoverTestDetails + :rtype: + ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverTestDetails]] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._generate_vpn_profile_initial( + raw_result = await self._get_failover_all_test_details_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - parameters=parameters, + type=type, + fetch_latest=fetch_latest, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -60479,10 +67019,10 @@ async def begin_generate_vpn_profile( def get_long_running_output(pipeline_response): response_headers = {} response = pipeline_response.http_response - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(List[_models.ExpressRouteFailoverTestDetails], response.json()) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized @@ -60500,16 +67040,24 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _get_vpn_profile_package_url_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + async def _get_failover_single_test_details_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + *, + peering_location: str, + failover_test_id: str, + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -60522,13 +67070,15 @@ async def _get_vpn_profile_package_url_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_vpn_profile_package_url_request( + _request = build_virtual_network_gateways_get_failover_single_test_details_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, + peering_location=peering_location, + failover_test_id=failover_test_id, api_version=api_version, headers=_headers, params=_params, @@ -60571,33 +67121,47 @@ async def _get_vpn_profile_package_url_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_vpn_profile_package_url( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[str]: - """Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified - resource group. The profile needs to be generated first using generateVpnProfile. + async def begin_get_failover_single_test_details( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + *, + peering_location: str, + failover_test_id: str, + **kwargs: Any + ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]: + """This operation retrieves the details of a particular failover test performed on the gateway + based on the test Guid. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :keyword peering_location: Peering location of the test. Required. + :paramtype peering_location: str + :keyword failover_test_id: The unique Guid value which identifies the test. Required. + :paramtype failover_test_id: str + :return: An instance of AsyncLROPoller that returns list of + ExpressRouteFailoverSingleTestDetails + :rtype: + ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverSingleTestDetails]] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_vpn_profile_package_url_initial( + raw_result = await self._get_failover_single_test_details_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, + peering_location=peering_location, + failover_test_id=failover_test_id, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -60613,7 +67177,7 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(List[_models.ExpressRouteFailoverSingleTestDetails], response.json()) if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized @@ -60631,16 +67195,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _get_bgp_peer_status_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: Optional[str] = None, **kwargs: Any + async def _start_express_route_site_failover_simulation_initial( # pylint: disable=name-too-long + self, resource_group_name: str, virtual_network_gateway_name: str, *, peering_location: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -60653,14 +67219,14 @@ async def _get_bgp_peer_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_bgp_peer_status_request( + _request = build_virtual_network_gateways_start_express_route_site_failover_simulation_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - peer=peer, + peering_location=peering_location, api_version=api_version, headers=_headers, params=_params, @@ -60703,36 +67269,35 @@ async def _get_bgp_peer_status_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_bgp_peer_status( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: Optional[str] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.BgpPeerStatusListResult]: - """The GetBgpPeerStatus operation retrieves the status of all BGP peers. + async def begin_start_express_route_site_failover_simulation( # pylint: disable=name-too-long + self, resource_group_name: str, virtual_network_gateway_name: str, *, peering_location: str, **kwargs: Any + ) -> AsyncLROPoller[str]: + """This operation starts failover simulation on the gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword peer: The IP address of the peer to retrieve the status of. Default value is None. - :paramtype peer: str - :return: An instance of AsyncLROPoller that returns BgpPeerStatusListResult. The - BgpPeerStatusListResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BgpPeerStatusListResult] + :keyword peering_location: Peering location of the test. Required. + :paramtype peering_location: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.BgpPeerStatusListResult] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_bgp_peer_status_initial( + raw_result = await self._start_express_route_site_failover_simulation_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - peer=peer, + peering_location=peering_location, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -60743,10 +67308,14 @@ async def begin_get_bgp_peer_status( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.BgpPeerStatusListResult, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -60762,31 +67331,23 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.BgpPeerStatusListResult].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.BgpPeerStatusListResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def supported_vpn_devices( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> str: - """Gets a xml format representation for supported vpn devices. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: str - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _stop_express_route_site_failover_simulation_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -60795,17 +67356,27 @@ async def supported_vpn_devices( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_supported_vpn_devices_request( + content_type = content_type or "application/json" + _content = None + if isinstance(stop_parameters, (IOBase, bytes)): + _content = stop_parameters + else: + _content = json.dumps(stop_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_stop_express_route_site_failover_simulation_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -60815,19 +67386,18 @@ async def supported_vpn_devices( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -60835,92 +67405,185 @@ async def supported_vpn_devices( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(str, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore - @distributed_trace_async - async def list_radius_secrets( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> _models.RadiusAuthServerListResult: - """List all Radius servers with respective radius secrets from virtual network gateway - VpnClientConfiguration. + @overload + async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + stop_parameters: _models.ExpressRouteFailoverStopApiParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """This operation stops failover simulation on the gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: RadiusAuthServerListResult. The RadiusAuthServerListResult is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.RadiusAuthServerListResult + :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop + failover simulation on gateway. Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + @overload + async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + stop_parameters: _types.ExpressRouteFailoverStopApiParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """This operation stops failover simulation on the gateway for the specified peering location. - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop + failover simulation on gateway. Required. + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ - _request = build_virtual_network_gateways_list_radius_secrets_request( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + @overload + async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + stop_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """This operation stops failover simulation on the gateway for the specified peering location. - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop + failover simulation on gateway. Required. + :type stop_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ - response = pipeline_response.http_response + @distributed_trace_async + async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], + **kwargs: Any + ) -> AsyncLROPoller[str]: + """This operation stops failover simulation on the gateway for the specified peering location. - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop + failover simulation on gateway. Is either a ExpressRouteFailoverStopApiParameters type or a + IO[bytes] type. Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or + ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[str] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._stop_express_route_site_failover_simulation_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + stop_parameters=stop_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.RadiusAuthServerListResult, response.json()) + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + deserialized = _deserialize(str, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized - return deserialized # type: ignore + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - async def _get_learned_routes_initial( + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[str].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _get_vpnclient_connection_health_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -60934,10 +67597,10 @@ async def _get_learned_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_learned_routes_request( + _request = build_virtual_network_gateways_get_vpnclient_connection_health_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, @@ -60983,32 +67646,33 @@ async def _get_learned_routes_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_learned_routes( + async def begin_get_vpnclient_connection_health( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteListResult]: - """This operation retrieves a list of routes the virtual network gateway has learned, including - routes learned from BGP peers. + ) -> AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult]: + """Get VPN client connection health detail per P2S client connection of the virtual network + gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns GatewayRouteListResult. The - GatewayRouteListResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteListResult] + :return: An instance of AsyncLROPoller that returns VpnClientConnectionHealthDetailListResult. + The VpnClientConnectionHealthDetailListResult is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientConnectionHealthDetailListResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnClientConnectionHealthDetailListResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_learned_routes_initial( + raw_result = await self._get_vpnclient_connection_health_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, @@ -61022,7 +67686,7 @@ async def begin_get_learned_routes( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) + deserialized = _deserialize(_models.VpnClientConnectionHealthDetailListResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -61040,18 +67704,22 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.GatewayRouteListResult].from_continuation_token( + return AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.GatewayRouteListResult]( + return AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _get_advertised_routes_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + async def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -61061,18 +67729,27 @@ async def _get_advertised_routes_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_advertised_routes_request( + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_disconnect_virtual_network_gateway_vpn_connections_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - peer=peer, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -61103,8 +67780,8 @@ async def _get_advertised_routes_initial( response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -61113,39 +67790,126 @@ async def _get_advertised_routes_initial( return deserialized # type: ignore + @overload + async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + request: _models.P2SVpnConnectionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect vpn connections of virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param request: The parameters are supplied to disconnect vpn connections. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + request: _types.P2SVpnConnectionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect vpn connections of virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param request: The parameters are supplied to disconnect vpn connections. Required. + :type request: ~azure.mgmt.network.types.P2SVpnConnectionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect vpn connections of virtual network gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param request: The parameters are supplied to disconnect vpn connections. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_get_advertised_routes( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteListResult]: - """This operation retrieves a list of routes the virtual network gateway is advertising to the - specified peer. + async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + self, + resource_group_name: str, + virtual_network_gateway_name: str, + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect vpn connections of virtual network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword peer: The IP address of the peer. Required. - :paramtype peer: str - :return: An instance of AsyncLROPoller that returns GatewayRouteListResult. The - GatewayRouteListResult is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteListResult] + :param request: The parameters are supplied to disconnect vpn connections. Is either a + P2SVpnConnectionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or + ~azure.mgmt.network.types.P2SVpnConnectionRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_advertised_routes_initial( + raw_result = await self._disconnect_virtual_network_gateway_vpn_connections_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - peer=peer, + request=request, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -61154,12 +67918,9 @@ async def begin_get_advertised_routes( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -61174,22 +67935,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.GatewayRouteListResult].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.GatewayRouteListResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_resiliency_information_initial( + async def _invoke_prepare_migration_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, + migration_params: Union[ + _models.VirtualNetworkGatewayMigrationParameters, _types.VirtualNetworkGatewayMigrationParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -61200,18 +67960,27 @@ async def _get_resiliency_information_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_resiliency_information_request( + content_type = content_type or "application/json" + _content = None + if isinstance(migration_params, (IOBase, bytes)): + _content = migration_params + else: + _content = json.dumps(migration_params, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_invoke_prepare_migration_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - attempt_refresh=attempt_refresh, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -61228,7 +67997,7 @@ async def _get_resiliency_information_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -61241,57 +68010,142 @@ async def _get_resiliency_information_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized # type: ignore + return deserialized # type: ignore + + @overload + async def begin_invoke_prepare_migration( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + migration_params: _models.VirtualNetworkGatewayMigrationParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Trigger prepare migration for the virtual network gateway. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn + gateway through Network resource provider. Required. + :type migration_params: ~azure.mgmt.network.models.VirtualNetworkGatewayMigrationParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_invoke_prepare_migration( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + migration_params: _types.VirtualNetworkGatewayMigrationParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Trigger prepare migration for the virtual network gateway. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn + gateway through Network resource provider. Required. + :type migration_params: ~azure.mgmt.network.types.VirtualNetworkGatewayMigrationParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_invoke_prepare_migration( + self, + resource_group_name: str, + virtual_network_gateway_name: str, + migration_params: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Trigger prepare migration for the virtual network gateway. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn + gateway through Network resource provider. Required. + :type migration_params: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_get_resiliency_information( + async def begin_invoke_prepare_migration( self, resource_group_name: str, virtual_network_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, + migration_params: Union[ + _models.VirtualNetworkGatewayMigrationParameters, _types.VirtualNetworkGatewayMigrationParameters, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResiliencyInformation]: - """This operation retrieves the resiliency information for an Express Route Gateway, including the - gateway's current resiliency score and recommendations to further improve the score. + ) -> AsyncLROPoller[None]: + """Trigger prepare migration for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword attempt_refresh: Attempt to recalculate the Resiliency Information for the gateway. - Default value is None. - :paramtype attempt_refresh: bool - :return: An instance of AsyncLROPoller that returns GatewayResiliencyInformation. The - GatewayResiliencyInformation is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayResiliencyInformation] + :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn + gateway through Network resource provider. Is either a VirtualNetworkGatewayMigrationParameters + type or a IO[bytes] type. Required. + :type migration_params: ~azure.mgmt.network.models.VirtualNetworkGatewayMigrationParameters or + ~azure.mgmt.network.types.VirtualNetworkGatewayMigrationParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_resiliency_information_initial( + raw_result = await self._invoke_prepare_migration_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - attempt_refresh=attempt_refresh, + migration_params=migration_params, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -61300,12 +68154,9 @@ async def begin_get_resiliency_information( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.GatewayResiliencyInformation, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -61320,23 +68171,16 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.GatewayResiliencyInformation].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.GatewayResiliencyInformation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_routes_information_initial( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any + async def _invoke_execute_migration_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -61349,14 +68193,13 @@ async def _get_routes_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_routes_information_request( + _request = build_virtual_network_gateways_invoke_execute_migration_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - attempt_refresh=attempt_refresh, api_version=api_version, headers=_headers, params=_params, @@ -61374,7 +68217,7 @@ async def _get_routes_information_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -61387,9 +68230,8 @@ async def _get_routes_information_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -61399,44 +68241,32 @@ async def _get_routes_information_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_routes_information( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteSetsInformation]: - """This operation retrieves the route set information for an Express Route Gateway based on their - resiliency. + async def begin_invoke_execute_migration( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Trigger execute migration for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword attempt_refresh: Attempt to recalculate the Route Sets Information for the gateway. - Default value is None. - :paramtype attempt_refresh: bool - :return: An instance of AsyncLROPoller that returns GatewayRouteSetsInformation. The - GatewayRouteSetsInformation is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteSetsInformation] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_routes_information_initial( + raw_result = await self._invoke_execute_migration_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - attempt_refresh=attempt_refresh, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -61446,12 +68276,9 @@ async def begin_get_routes_information( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.GatewayRouteSetsInformation, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -61466,22 +68293,16 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.GatewayRouteSetsInformation].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.GatewayRouteSetsInformation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _set_vpnclient_ipsec_parameters_initial( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, JSON, IO[bytes]], - **kwargs: Any + async def _invoke_commit_migration_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -61491,27 +68312,17 @@ async def _set_vpnclient_ipsec_parameters_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(vpnclient_ipsec_params, (IOBase, bytes)): - _content = vpnclient_ipsec_params - else: - _content = json.dumps(vpnclient_ipsec_params, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateways_set_vpnclient_ipsec_parameters_request( + _request = build_virtual_network_gateways_invoke_commit_migration_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -61528,7 +68339,7 @@ async def _set_vpnclient_ipsec_parameters_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -61541,9 +68352,8 @@ async def _set_vpnclient_ipsec_parameters_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -61552,138 +68362,34 @@ async def _set_vpnclient_ipsec_parameters_initial( return deserialized # type: ignore - @overload - async def begin_set_vpnclient_ipsec_parameters( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - vpnclient_ipsec_params: _models.VpnClientIPsecParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: - """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of - virtual network gateway in the specified resource group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters - of Virtual Network Gateway P2S client operation through Network resource provider. Required. - :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The - VpnClientIPsecParameters is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_vpnclient_ipsec_parameters( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - vpnclient_ipsec_params: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: - """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of - virtual network gateway in the specified resource group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters - of Virtual Network Gateway P2S client operation through Network resource provider. Required. - :type vpnclient_ipsec_params: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The - VpnClientIPsecParameters is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_vpnclient_ipsec_parameters( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - vpnclient_ipsec_params: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: - """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of - virtual network gateway in the specified resource group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters - of Virtual Network Gateway P2S client operation through Network resource provider. Required. - :type vpnclient_ipsec_params: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The - VpnClientIPsecParameters is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_set_vpnclient_ipsec_parameters( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: - """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of - virtual network gateway in the specified resource group through Network resource provider. + async def begin_invoke_commit_migration( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Trigger commit migration for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters - of Virtual Network Gateway P2S client operation through Network resource provider. Is one of - the following types: VpnClientIPsecParameters, JSON, IO[bytes] Required. - :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The - VpnClientIPsecParameters is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._set_vpnclient_ipsec_parameters_initial( + raw_result = await self._invoke_commit_migration_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - vpnclient_ipsec_params=vpnclient_ipsec_params, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -61692,12 +68398,9 @@ async def begin_set_vpnclient_ipsec_parameters( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnClientIPsecParameters, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -61712,17 +68415,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnClientIPsecParameters].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnClientIPsecParameters]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_vpnclient_ipsec_parameters_initial( + async def _invoke_abort_migration_initial( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -61736,10 +68437,10 @@ async def _get_vpnclient_ipsec_parameters_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_vpnclient_ipsec_parameters_request( + _request = build_virtual_network_gateways_invoke_abort_migration_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, @@ -61760,7 +68461,7 @@ async def _get_vpnclient_ipsec_parameters_initial( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -61784,33 +68485,30 @@ async def _get_vpnclient_ipsec_parameters_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_vpnclient_ipsec_parameters( + async def begin_invoke_abort_migration( self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientIPsecParameters]: - """The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec - policy for P2S client of virtual network gateway in the specified resource group through - Network resource provider. + ) -> AsyncLROPoller[None]: + """Trigger abort migration for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns VpnClientIPsecParameters. The - VpnClientIPsecParameters is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_vpnclient_ipsec_parameters_initial( + raw_result = await self._invoke_abort_migration_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, api_version=api_version, @@ -61822,16 +68520,9 @@ async def begin_get_vpnclient_ipsec_parameters( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.VpnClientIPsecParameters, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -61846,23 +68537,122 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnClientIPsecParameters].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnClientIPsecParameters]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _start_packet_capture_initial( + @overload + async def vpn_device_configuration_script( self, resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + virtual_network_gateway_connection_name: str, + parameters: _models.VpnDeviceScriptParameters, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: + ) -> str: + """Gets a xml format representation for vpn device configuration script. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the generate vpn device script operation. Required. + :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def vpn_device_configuration_script( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: _types.VpnDeviceScriptParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> str: + """Gets a xml format representation for vpn device configuration script. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the generate vpn device script operation. Required. + :type parameters: ~azure.mgmt.network.types.VpnDeviceScriptParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def vpn_device_configuration_script( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> str: + """Gets a xml format representation for vpn device configuration script. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the generate vpn device script operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def vpn_device_configuration_script( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: Union[_models.VpnDeviceScriptParameters, _types.VpnDeviceScriptParameters, IO[bytes]], + **kwargs: Any + ) -> str: + """Gets a xml format representation for vpn device configuration script. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the generate vpn device script operation. Is either a + VpnDeviceScriptParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters or + ~azure.mgmt.network.types.VpnDeviceScriptParameters or IO[bytes] + :return: str + :rtype: str + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -61874,28 +68664,117 @@ async def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[str] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if parameters else None + content_type = content_type or "application/json" _content = None if isinstance(parameters, (IOBase, bytes)): _content = parameters else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateways_vpn_device_configuration_script_request( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(str, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class VirtualNetworkGatewayConnectionsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`virtual_network_gateway_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + ) -> _models.VirtualNetworkGatewayConnection: + """Gets the specified virtual network gateway connection by resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :return: VirtualNetworkGatewayConnection. The VirtualNetworkGatewayConnection is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - _request = build_virtual_network_gateways_start_packet_capture_request( + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateway_connections_get_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -61905,207 +68784,41 @@ async def _start_packet_capture_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Optional[_models.VpnPacketCaptureStartParameters] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway. Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway. Default value is None. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway. Is one of the following types: VpnPacketCaptureStartParameters, JSON, - IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[str] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_packet_capture_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[str].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_packet_capture_initial( + async def _create_or_update_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.VirtualNetworkGatewayConnection, _types.VirtualNetworkGatewayConnection, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -62119,7 +68832,7 @@ async def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -62130,9 +68843,9 @@ async def _stop_packet_capture_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateways_stop_packet_capture_request( + _request = build_virtual_network_gateway_connections_create_or_update_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -62153,21 +68866,23 @@ async def _stop_packet_capture_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -62178,126 +68893,138 @@ async def _stop_packet_capture_initial( return deserialized # type: ignore @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - parameters: _models.VpnPacketCaptureStopParameters, + virtual_network_gateway_connection_name: str, + parameters: _models.VirtualNetworkGatewayConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Creates or updates a virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway. Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual network gateway + connection operation. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - parameters: JSON, + virtual_network_gateway_connection_name: str, + parameters: _types.VirtualNetworkGatewayConnection, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Creates or updates a virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway. Required. - :type parameters: JSON + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual network gateway + connection operation. Required. + :type parameters: ~azure.mgmt.network.types.VirtualNetworkGatewayConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, + virtual_network_gateway_connection_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Creates or updates a virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway. Required. + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual network gateway + connection operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.VirtualNetworkGatewayConnection, _types.VirtualNetworkGatewayConnection, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Creates or updates a virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway. Is one of the following types: VpnPacketCaptureStopParameters, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual network gateway + connection operation. Is either a VirtualNetworkGatewayConnection type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection or + ~azure.mgmt.network.types.VirtualNetworkGatewayConnection or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._stop_packet_capture_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -62310,14 +69037,10 @@ async def begin_stop_packet_capture( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -62333,21 +69056,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkGatewayConnection].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.VirtualNetworkGatewayConnection]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _get_failover_all_test_details_initial( + async def _update_tags_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - *, - type: str, - fetch_latest: bool, + virtual_network_gateway_connection_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -62358,19 +69081,27 @@ async def _get_failover_all_test_details_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_failover_all_test_details_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateway_connections_update_tags_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, - type=type, - fetch_latest=fetch_latest, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -62401,7 +69132,9 @@ async def _get_failover_all_test_details_initial( response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -62411,203 +69144,141 @@ async def _get_failover_all_test_details_initial( return deserialized # type: ignore - @distributed_trace_async - async def begin_get_failover_all_test_details( + @overload + async def begin_update_tags( self, resource_group_name: str, - virtual_network_gateway_name: str, + virtual_network_gateway_connection_name: str, + parameters: _models.TagsObject, *, - type: str, - fetch_latest: bool, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]: - """This operation retrieves the details of all the failover tests performed on the gateway for - different peering locations. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Updates a virtual network gateway connection tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :keyword type: The type of failover test. Required. - :paramtype type: str - :keyword fetch_latest: Fetch only the latest tests for each peering location. Required. - :paramtype fetch_latest: bool - :return: An instance of AsyncLROPoller that returns list of ExpressRouteFailoverTestDetails + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to update virtual network gateway connection tags. + Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverTestDetails]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_failover_all_test_details_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - type=type, - fetch_latest=fetch_latest, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(List[_models.ExpressRouteFailoverTestDetails], response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _get_failover_single_test_details_initial( # pylint: disable=name-too-long - self, - resource_group_name: str, - virtual_network_gateway_name: str, - *, - peering_location: str, - failover_test_id: str, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_virtual_network_gateways_get_failover_single_test_details_request( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - subscription_id=self._config.subscription_id, - peering_location=peering_location, - failover_test_id=failover_test_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + @overload + async def begin_update_tags( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Updates a virtual network gateway connection tags. - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to update virtual network gateway connection tags. + Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + @overload + async def begin_update_tags( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Updates a virtual network gateway connection tags. - return deserialized # type: ignore + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to update virtual network gateway connection tags. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace_async - async def begin_get_failover_single_test_details( + async def begin_update_tags( self, resource_group_name: str, - virtual_network_gateway_name: str, - *, - peering_location: str, - failover_test_id: str, + virtual_network_gateway_connection_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]: - """This operation retrieves the details of a particular failover test performed on the gateway - based on the test Guid. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: + """Updates a virtual network gateway connection tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :keyword peering_location: Peering location of the test. Required. - :paramtype peering_location: str - :keyword failover_test_id: The unique Guid value which identifies the test. Required. - :paramtype failover_test_id: str - :return: An instance of AsyncLROPoller that returns list of - ExpressRouteFailoverSingleTestDetails + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to update virtual network gateway connection tags. Is + either a TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The + VirtualNetworkGatewayConnection is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverSingleTestDetails]] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_failover_single_test_details_initial( + raw_result = await self._update_tags_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - peering_location=peering_location, - failover_test_id=failover_test_id, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -62617,14 +69288,10 @@ async def begin_get_failover_single_test_details( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(List[_models.ExpressRouteFailoverSingleTestDetails], response.json()) + deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -62640,18 +69307,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkGatewayConnection].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]( + return AsyncLROPoller[_models.VirtualNetworkGatewayConnection]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _start_express_route_site_failover_simulation_initial( # pylint: disable=name-too-long - self, resource_group_name: str, virtual_network_gateway_name: str, *, peering_location: str, **kwargs: Any + async def _delete_initial( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -62664,14 +69331,13 @@ async def _start_express_route_site_failover_simulation_initial( # pylint: disa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_start_express_route_site_failover_simulation_request( + _request = build_virtual_network_gateway_connections_delete_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, - peering_location=peering_location, api_version=api_version, headers=_headers, params=_params, @@ -62689,7 +69355,7 @@ async def _start_express_route_site_failover_simulation_initial( # pylint: disa response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -62714,35 +69380,33 @@ async def _start_express_route_site_failover_simulation_initial( # pylint: disa return deserialized # type: ignore @distributed_trace_async - async def begin_start_express_route_site_failover_simulation( # pylint: disable=name-too-long - self, resource_group_name: str, virtual_network_gateway_name: str, *, peering_location: str, **kwargs: Any - ) -> AsyncLROPoller[str]: - """This operation starts failover simulation on the gateway for the specified peering location. + async def begin_delete( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified virtual network Gateway connection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :keyword peering_location: Peering location of the test. Required. - :paramtype peering_location: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._start_express_route_site_failover_simulation_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - peering_location=peering_location, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -62752,16 +69416,9 @@ async def begin_start_express_route_site_failover_simulation( # pylint: disable await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -62776,19 +69433,107 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _stop_express_route_site_failover_simulation_initial( # pylint: disable=name-too-long + @distributed_trace + def list( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkGatewayConnection"]: + """The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways + connections created. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of VirtualNetworkGatewayConnection + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkGatewayConnection]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_network_gateway_connections_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkGatewayConnection], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _set_shared_key_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.ConnectionSharedKey, _types.ConnectionSharedKey, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -62802,20 +69547,20 @@ async def _stop_express_route_site_failover_simulation_initial( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(stop_parameters, (IOBase, bytes)): - _content = stop_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(stop_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateways_stop_express_route_site_failover_simulation_request( + _request = build_virtual_network_gateway_connections_set_shared_key_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -62836,7 +69581,7 @@ async def _stop_express_route_site_failover_simulation_initial( # pylint: disab response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -62849,8 +69594,10 @@ async def _stop_express_route_site_failover_simulation_initial( # pylint: disab raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -62861,262 +69608,145 @@ async def _stop_express_route_site_failover_simulation_initial( # pylint: disab return deserialized # type: ignore @overload - async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + async def begin_set_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - stop_parameters: _models.ExpressRouteFailoverStopApiParameters, + virtual_network_gateway_connection_name: str, + parameters: _models.ConnectionSharedKey, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """This operation stops failover simulation on the gateway for the specified peering location. + ) -> AsyncLROPoller[_models.ConnectionSharedKey]: + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop - failover simulation on gateway. Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection + Shared key operation throughNetwork resource provider. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The + ConnectionSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + async def begin_set_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - stop_parameters: JSON, + virtual_network_gateway_connection_name: str, + parameters: _types.ConnectionSharedKey, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """This operation stops failover simulation on the gateway for the specified peering location. + ) -> AsyncLROPoller[_models.ConnectionSharedKey]: + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop - failover simulation on gateway. Required. - :type stop_parameters: JSON + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection + Shared key operation throughNetwork resource provider. Required. + :type parameters: ~azure.mgmt.network.types.ConnectionSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The + ConnectionSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + async def begin_set_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - stop_parameters: IO[bytes], + virtual_network_gateway_connection_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """This operation stops failover simulation on the gateway for the specified peering location. + ) -> AsyncLROPoller[_models.ConnectionSharedKey]: + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop - failover simulation on gateway. Required. - :type stop_parameters: IO[bytes] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection + Shared key operation throughNetwork resource provider. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The + ConnectionSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-too-long + async def begin_set_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.ConnectionSharedKey, _types.ConnectionSharedKey, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """This operation stops failover simulation on the gateway for the specified peering location. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop - failover simulation on gateway. Is one of the following types: - ExpressRouteFailoverStopApiParameters, JSON, IO[bytes] Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or JSON - or IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_express_route_site_failover_simulation_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - stop_parameters=stop_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[str].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _get_vpnclient_connection_health_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_virtual_network_gateways_get_vpnclient_connection_health_request( - resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_get_vpnclient_connection_health( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult]: - """Get VPN client connection health detail per P2S client connection of the virtual network - gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ConnectionSharedKey]: + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns VpnClientConnectionHealthDetailListResult. - The VpnClientConnectionHealthDetailListResult is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnClientConnectionHealthDetailListResult] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection + Shared key operation throughNetwork resource provider. Is either a ConnectionSharedKey type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey or + ~azure.mgmt.network.types.ConnectionSharedKey or IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The + ConnectionSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnClientConnectionHealthDetailListResult] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_vpnclient_connection_health_initial( + raw_result = await self._set_shared_key_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -63127,7 +69757,7 @@ async def begin_get_vpnclient_connection_health( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnClientConnectionHealthDetailListResult, response.json()) + deserialized = _deserialize(_models.ConnectionSharedKey, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -63145,21 +69775,96 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult].from_continuation_token( + return AsyncLROPoller[_models.ConnectionSharedKey].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnClientConnectionHealthDetailListResult]( + return AsyncLROPoller[_models.ConnectionSharedKey]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint: disable=name-too-long + @distributed_trace_async + async def get_shared_key( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + ) -> _models.ConnectionSharedKey: + """The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the + specified virtual network gateway connection shared key through Network resource provider. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :return: ConnectionSharedKey. The ConnectionSharedKey is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionSharedKey + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateway_connections_get_shared_key_request( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectionSharedKey, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _reset_shared_key_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.ConnectionResetSharedKey, _types.ConnectionResetSharedKey, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -63173,20 +69878,20 @@ async def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(request, (IOBase, bytes)): - _content = request + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateways_disconnect_virtual_network_gateway_vpn_connections_request( + _request = build_virtual_network_gateway_connections_reset_shared_key_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -63221,8 +69926,8 @@ async def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint response_headers = {} if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -63232,122 +69937,143 @@ async def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint return deserialized # type: ignore @overload - async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + async def begin_reset_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - request: _models.P2SVpnConnectionRequest, + virtual_network_gateway_connection_name: str, + parameters: _models.ConnectionResetSharedKey, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect vpn connections of virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param request: The parameters are supplied to disconnect vpn connections. Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the begin reset virtual network gateway connection + shared key operation through network resource provider. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The + ConnectionResetSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + async def begin_reset_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - request: JSON, + virtual_network_gateway_connection_name: str, + parameters: _types.ConnectionResetSharedKey, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect vpn connections of virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param request: The parameters are supplied to disconnect vpn connections. Required. - :type request: JSON + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the begin reset virtual network gateway connection + shared key operation through network resource provider. Required. + :type parameters: ~azure.mgmt.network.types.ConnectionResetSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The + ConnectionResetSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + async def begin_reset_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - request: IO[bytes], + virtual_network_gateway_connection_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect vpn connections of virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param request: The parameters are supplied to disconnect vpn connections. Required. - :type request: IO[bytes] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the begin reset virtual network gateway connection + shared key operation through network resource provider. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The + ConnectionResetSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable=name-too-long + async def begin_reset_shared_key( self, resource_group_name: str, - virtual_network_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Union[_models.ConnectionResetSharedKey, _types.ConnectionResetSharedKey, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect vpn connections of virtual network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway + connection shared key for passed virtual network gateway connection in the specified resource + group through Network resource provider. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param request: The parameters are supplied to disconnect vpn connections. Is one of the - following types: P2SVpnConnectionRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the begin reset virtual network gateway connection + shared key operation through network resource provider. Is either a ConnectionResetSharedKey + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey or + ~azure.mgmt.network.types.ConnectionResetSharedKey or IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The + ConnectionResetSharedKey is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + cls: ClsType[_models.ConnectionResetSharedKey] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._disconnect_virtual_network_gateway_vpn_connections_initial( + raw_result = await self._reset_shared_key_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - request=request, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -63358,9 +70084,12 @@ async def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: d await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectionResetSharedKey, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -63375,19 +70104,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.ConnectionResetSharedKey].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.ConnectionResetSharedKey]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _invoke_prepare_migration_initial( + async def _start_packet_capture_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - migration_params: Union[_models.VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -63401,20 +70134,24 @@ async def _invoke_prepare_migration_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" + content_type = content_type or "application/json" if parameters else None _content = None - if isinstance(migration_params, (IOBase, bytes)): - _content = migration_params + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(migration_params, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None - _request = build_virtual_network_gateways_invoke_prepare_migration_request( + _request = build_virtual_network_gateway_connections_start_packet_capture_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -63435,21 +70172,22 @@ async def _invoke_prepare_migration_initial( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -63459,127 +70197,134 @@ async def _invoke_prepare_migration_initial( return deserialized # type: ignore @overload - async def begin_invoke_prepare_migration( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_network_gateway_name: str, - migration_params: _models.VirtualNetworkGatewayMigrationParameters, + virtual_network_gateway_connection_name: str, + parameters: Optional[_models.VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger prepare migration for the virtual network gateway. + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn - gateway through Network resource provider. Required. - :type migration_params: ~azure.mgmt.network.models.VirtualNetworkGatewayMigrationParameters + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway connection. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_invoke_prepare_migration( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_network_gateway_name: str, - migration_params: JSON, + virtual_network_gateway_connection_name: str, + parameters: Optional[_types.VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger prepare migration for the virtual network gateway. + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn - gateway through Network resource provider. Required. - :type migration_params: JSON + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway connection. Default value is None. + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_invoke_prepare_migration( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_network_gateway_name: str, - migration_params: IO[bytes], + virtual_network_gateway_connection_name: str, + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger prepare migration for the virtual network gateway. + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn - gateway through Network resource provider. Required. - :type migration_params: IO[bytes] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway connection. Default value is None. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_invoke_prepare_migration( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_network_gateway_name: str, - migration_params: Union[_models.VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes]], + virtual_network_gateway_connection_name: str, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger prepare migration for the virtual network gateway. + ) -> AsyncLROPoller[str]: + """Starts packet capture on virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn - gateway through Network resource provider. Is one of the following types: - VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes] Required. - :type migration_params: ~azure.mgmt.network.models.VirtualNetworkGatewayMigrationParameters or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to start packet + capture on gateway connection. Is either a VpnPacketCaptureStartParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStartParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + content_type = content_type if parameters else None + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._invoke_prepare_migration_initial( + raw_result = await self._start_packet_capture_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - migration_params=migration_params, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -63590,9 +70335,16 @@ async def begin_invoke_prepare_migration( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -63607,16 +70359,20 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _invoke_execute_migration_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + async def _stop_packet_capture_initial( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -63626,17 +70382,27 @@ async def _invoke_execute_migration_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_invoke_execute_migration_request( + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_gateway_connections_stop_packet_capture_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -63653,21 +70419,22 @@ async def _invoke_execute_migration_initial( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -63676,34 +70443,134 @@ async def _invoke_execute_migration_initial( return deserialized # type: ignore + @overload + async def begin_stop_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: _models.VpnPacketCaptureStopParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Stops packet capture on virtual network gateway connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway connection. Required. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_stop_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: _types.VpnPacketCaptureStopParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Stops packet capture on virtual network gateway connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway connection. Required. + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStopParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_stop_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Stops packet capture on virtual network gateway connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway connection. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_invoke_execute_migration( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger execute migration for the virtual network gateway. + async def begin_stop_packet_capture( + self, + resource_group_name: str, + virtual_network_gateway_connection_name: str, + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[str]: + """Stops packet capture on virtual network gateway connection in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :param parameters: Virtual network gateway packet capture parameters supplied to stop packet + capture on gateway connection. Is either a VpnPacketCaptureStopParameters type or a IO[bytes] + type. Required. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStopParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._invoke_execute_migration_initial( + raw_result = await self._stop_packet_capture_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -63712,9 +70579,16 @@ async def begin_invoke_execute_migration( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -63729,16 +70603,16 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _invoke_commit_migration_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + async def _get_ike_sas_initial( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -63751,12 +70625,12 @@ async def _invoke_commit_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_invoke_commit_migration_request( + _request = build_virtual_network_gateway_connections_get_ike_sas_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -63775,21 +70649,22 @@ async def _invoke_commit_migration_initial( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + if response.status_code == 202: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -63799,32 +70674,34 @@ async def _invoke_commit_migration_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_invoke_commit_migration( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Trigger commit migration for the virtual network gateway. + async def begin_get_ike_sas( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + ) -> AsyncLROPoller[str]: + """Lists IKE Security Associations for the virtual network gateway connection in the specified + resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._invoke_commit_migration_initial( + raw_result = await self._get_ike_sas_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -63834,9 +70711,16 @@ async def begin_invoke_commit_migration( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -63851,16 +70735,16 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _invoke_abort_migration_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + async def _reset_connection_initial( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -63873,12 +70757,12 @@ async def _invoke_abort_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_invoke_abort_migration_request( + _request = build_virtual_network_gateway_connections_reset_connection_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -63904,7 +70788,7 @@ async def _invoke_abort_migration_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.ErrorResponse, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -63921,16 +70805,17 @@ async def _invoke_abort_migration_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_invoke_abort_migration( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + async def begin_reset_connection( + self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Trigger abort migration for the virtual network gateway. + """Resets the virtual network gateway connection specified. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str + :param virtual_network_gateway_connection_name: The name of the virtual network gateway + connection. Required. + :type virtual_network_gateway_connection_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -63938,15 +70823,15 @@ async def begin_invoke_abort_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._invoke_abort_migration_initial( + raw_result = await self._reset_connection_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -63981,190 +70866,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @overload - async def vpn_device_configuration_script( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: _models.VpnDeviceScriptParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> str: - """Gets a xml format representation for vpn device configuration script. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the generate vpn device script operation. Required. - :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: str - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def vpn_device_configuration_script( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> str: - """Gets a xml format representation for vpn device configuration script. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the generate vpn device script operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: str - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def vpn_device_configuration_script( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> str: - """Gets a xml format representation for vpn device configuration script. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the generate vpn device script operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: str - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def vpn_device_configuration_script( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnDeviceScriptParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> str: - """Gets a xml format representation for vpn device configuration script. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the generate vpn device script operation. Is one of - the following types: VpnDeviceScriptParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters or JSON or IO[bytes] - :return: str - :rtype: str - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateways_vpn_device_configuration_script_request( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(str, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized # type: ignore - - -class VirtualNetworkGatewayConnectionsOperations: # pylint: disable=too-many-public-methods,name-too-long +class LocalNetworkGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_gateway_connections` attribute. + :attr:`local_network_gateways` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -64176,19 +70886,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> _models.VirtualNetworkGatewayConnection: - """Gets the specified virtual network gateway connection by resource group. + self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any + ) -> _models.LocalNetworkGateway: + """Gets the specified local network gateway in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :return: VirtualNetworkGatewayConnection. The VirtualNetworkGatewayConnection is compatible - with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -64202,12 +70910,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_connections_get_request( + _request = build_local_network_gateways_get_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + local_network_gateway_name=local_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -64242,7 +70950,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) + deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -64252,8 +70960,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.VirtualNetworkGatewayConnection, JSON, IO[bytes]], + local_network_gateway_name: str, + parameters: Union[_models.LocalNetworkGateway, _types.LocalNetworkGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -64267,7 +70975,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -64278,9 +70986,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateway_connections_create_or_update_request( + _request = build_local_network_gateways_create_or_update_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + local_network_gateway_name=local_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -64331,30 +71039,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: _models.VirtualNetworkGatewayConnection, + local_network_gateway_name: str, + parameters: _models.LocalNetworkGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Creates or updates a virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.LocalNetworkGateway]: + """Creates or updates a local network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the create or update virtual network gateway - connection operation. Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local network gateway operation. + Required. + :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The + LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -64362,30 +71068,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, + local_network_gateway_name: str, + parameters: _types.LocalNetworkGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Creates or updates a virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.LocalNetworkGateway]: + """Creates or updates a local network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the create or update virtual network gateway - connection operation. Required. - :type parameters: JSON + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local network gateway operation. + Required. + :type parameters: ~azure.mgmt.network.types.LocalNetworkGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The + LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -64393,30 +71097,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, + local_network_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Creates or updates a virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.LocalNetworkGateway]: + """Creates or updates a local network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the create or update virtual network gateway - connection operation. Required. + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local network gateway operation. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The + LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -64424,335 +71126,254 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.VirtualNetworkGatewayConnection, JSON, IO[bytes]], + local_network_gateway_name: str, + parameters: Union[_models.LocalNetworkGateway, _types.LocalNetworkGateway, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Creates or updates a virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.LocalNetworkGateway]: + """Creates or updates a local network gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the create or update virtual network gateway - connection operation. Is one of the following types: VirtualNetworkGatewayConnection, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local network gateway operation. + Is either a LocalNetworkGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway or + ~azure.mgmt.network.types.LocalNetworkGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The + LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) + cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGatewayConnection].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VirtualNetworkGatewayConnection]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_tags_initial( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateway_connections_update_tags_request( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") + local_network_gateway_name=local_network_gateway_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - return deserialized # type: ignore + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.LocalNetworkGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.LocalNetworkGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload - async def begin_update_tags( + async def update_tags( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, + local_network_gateway_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Updates a virtual network gateway connection tags. + ) -> _models.LocalNetworkGateway: + """Updates a local network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to update virtual network gateway connection tags. - Required. + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to update local network gateway tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def update_tags( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, + local_network_gateway_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Updates a virtual network gateway connection tags. + ) -> _models.LocalNetworkGateway: + """Updates a local network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to update virtual network gateway connection tags. - Required. - :type parameters: JSON + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to update local network gateway tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def update_tags( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, + local_network_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Updates a virtual network gateway connection tags. + ) -> _models.LocalNetworkGateway: + """Updates a local network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to update virtual network gateway connection tags. - Required. + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to update local network gateway tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_update_tags( + async def update_tags( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + local_network_gateway_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayConnection]: - """Updates a virtual network gateway connection tags. + ) -> _models.LocalNetworkGateway: + """Updates a local network gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to update virtual network gateway connection tags. Is - one of the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayConnection. The - VirtualNetworkGatewayConnection is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to update local network gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_tags_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGatewayConnection, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_local_network_gateways_update_tags_request( + resource_group_name=resource_group_name, + local_network_gateway_name=local_network_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGatewayConnection].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VirtualNetworkGatewayConnection]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -64765,12 +71386,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_connections_delete_request( + _request = build_local_network_gateways_delete_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + local_network_gateway_name=local_network_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -64815,16 +71436,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any + self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified virtual network Gateway connection. + """Deletes the specified local network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str + :param local_network_gateway_name: The name of the local network gateway. Required. + :type local_network_gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -64832,7 +71452,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -64840,7 +71460,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + local_network_gateway_name=local_network_gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -64876,25 +71496,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkGatewayConnection"]: - """The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways - connections created. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.LocalNetworkGateway"]: + """Gets all the local network gateways in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualNetworkGatewayConnection - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayConnection] + :return: An iterator like instance of LocalNetworkGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LocalNetworkGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkGatewayConnection]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.LocalNetworkGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -64907,7 +71523,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_gateway_connections_list_request( + _request = build_local_network_gateways_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -64935,7 +71551,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkGatewayConnection], + List[_models.LocalNetworkGateway], deserialized.get("value", []), ) if cls: @@ -64963,276 +71579,41 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - async def _set_shared_key_initial( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionSharedKey, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_gateway_connections_set_shared_key_request( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_shared_key( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: _models.ConnectionSharedKey, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionSharedKey]: - """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection - Shared key operation throughNetwork resource provider. Required. - :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The - ConnectionSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_shared_key( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionSharedKey]: - """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection - Shared key operation throughNetwork resource provider. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The - ConnectionSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_shared_key( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionSharedKey]: - """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection - Shared key operation throughNetwork resource provider. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The - ConnectionSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_shared_key( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionSharedKey, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionSharedKey]: - """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection - Shared key operation throughNetwork resource provider. Is one of the following types: - ConnectionSharedKey, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ConnectionSharedKey. The - ConnectionSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionSharedKey] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_shared_key_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectionSharedKey, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized +class VirtualNetworkGatewayNatRulesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`virtual_network_gateway_nat_rules` attribute. + """ - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConnectionSharedKey].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConnectionSharedKey]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get_shared_key( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> _models.ConnectionSharedKey: - """The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the - specified virtual network gateway connection shared key through Network resource provider. + async def get( + self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any + ) -> _models.VirtualNetworkGatewayNatRule: + """Retrieves the details of a nat rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :return: ConnectionSharedKey. The ConnectionSharedKey is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectionSharedKey + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :return: VirtualNetworkGatewayNatRule. The VirtualNetworkGatewayNatRule is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -65246,12 +71627,13 @@ async def get_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_connections_get_shared_key_request( + _request = build_virtual_network_gateway_nat_rules_get_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + virtual_network_gateway_name=virtual_network_gateway_name, + nat_rule_name=nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -65286,18 +71668,21 @@ async def get_shared_key( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectionSharedKey, response.json()) + deserialized = _deserialize(_models.VirtualNetworkGatewayNatRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _reset_shared_key_initial( + async def _create_or_update_initial( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionResetSharedKey, JSON, IO[bytes]], + virtual_network_gateway_name: str, + nat_rule_name: str, + nat_rule_parameters: Union[ + _models.VirtualNetworkGatewayNatRule, _types.VirtualNetworkGatewayNatRule, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -65311,20 +71696,21 @@ async def _reset_shared_key_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(nat_rule_parameters, (IOBase, bytes)): + _content = nat_rule_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(nat_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateway_connections_reset_shared_key_request( + _request = build_virtual_network_gateway_nat_rules_create_or_update_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + virtual_network_gateway_name=virtual_network_gateway_name, + nat_rule_name=nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -65345,7 +71731,7 @@ async def _reset_shared_key_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -65358,8 +71744,10 @@ async def _reset_shared_key_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -65370,142 +71758,154 @@ async def _reset_shared_key_initial( return deserialized # type: ignore @overload - async def begin_reset_shared_key( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: _models.ConnectionResetSharedKey, + virtual_network_gateway_name: str, + nat_rule_name: str, + nat_rule_parameters: _models.VirtualNetworkGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: - """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: + """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the + existing nat rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the begin reset virtual network gateway connection - shared key operation through network resource provider. Required. - :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. + :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The - ConnectionResetSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The + VirtualNetworkGatewayNatRule is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_reset_shared_key( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, + virtual_network_gateway_name: str, + nat_rule_name: str, + nat_rule_parameters: _types.VirtualNetworkGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: - """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: + """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the + existing nat rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the begin reset virtual network gateway connection - shared key operation through network resource provider. Required. - :type parameters: JSON + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. + :type nat_rule_parameters: ~azure.mgmt.network.types.VirtualNetworkGatewayNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The - ConnectionResetSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The + VirtualNetworkGatewayNatRule is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_reset_shared_key( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: IO[bytes], + virtual_network_gateway_name: str, + nat_rule_name: str, + nat_rule_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: - """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: + """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the + existing nat rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the begin reset virtual network gateway connection - shared key operation through network resource provider. Required. - :type parameters: IO[bytes] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. + :type nat_rule_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The - ConnectionResetSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The + VirtualNetworkGatewayNatRule is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_reset_shared_key( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionResetSharedKey, JSON, IO[bytes]], + virtual_network_gateway_name: str, + nat_rule_name: str, + nat_rule_parameters: Union[ + _models.VirtualNetworkGatewayNatRule, _types.VirtualNetworkGatewayNatRule, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionResetSharedKey]: - """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway - connection shared key for passed virtual network gateway connection in the specified resource - group through Network resource provider. + ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: + """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the + existing nat rules. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the begin reset virtual network gateway connection - shared key operation through network resource provider. Is one of the following types: - ConnectionResetSharedKey, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ConnectionResetSharedKey. The - ConnectionResetSharedKey is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is either a + VirtualNetworkGatewayNatRule type or a IO[bytes] type. Required. + :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule or + ~azure.mgmt.network.types.VirtualNetworkGatewayNatRule or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The + VirtualNetworkGatewayNatRule is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectionResetSharedKey] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._reset_shared_key_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - parameters=parameters, + virtual_network_gateway_name=virtual_network_gateway_name, + nat_rule_name=nat_rule_name, + nat_rule_parameters=nat_rule_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -65518,7 +71918,7 @@ async def begin_reset_shared_key( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectionResetSharedKey, response.json()) + deserialized = _deserialize(_models.VirtualNetworkGatewayNatRule, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -65536,22 +71936,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ConnectionResetSharedKey].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkGatewayNatRule].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ConnectionResetSharedKey]( + return AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _start_packet_capture_initial( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, - **kwargs: Any + async def _delete_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -65561,31 +71957,18 @@ async def _start_packet_capture_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if parameters else None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None - - _request = build_virtual_network_gateway_connections_start_packet_capture_request( + _request = build_virtual_network_gateway_nat_rules_delete_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + virtual_network_gateway_name=virtual_network_gateway_name, + nat_rule_name=nat_rule_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -65602,14 +71985,14 @@ async def _start_packet_capture_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -65626,135 +72009,38 @@ async def _start_packet_capture_initial( return deserialized # type: ignore - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Optional[_models.VpnPacketCaptureStartParameters] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway connection. Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway connection. Default value is None. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway connection. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_start_packet_capture( - self, - resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on virtual network gateway connection in the specified resource group. + async def begin_delete( + self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a nat rule. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway connection. Is one of the following types: VpnPacketCaptureStartParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :param nat_rule_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type nat_rule_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._start_packet_capture_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - parameters=parameters, + virtual_network_gateway_name=virtual_network_gateway_name, + nat_rule_name=nat_rule_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -65763,43 +72049,215 @@ async def begin_start_packet_capture( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - deserialized = _deserialize(str, response.json()) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_virtual_network_gateway( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkGatewayNatRule"]: + """Retrieves all nat rules for a particular virtual network gateway. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :return: An iterator like instance of VirtualNetworkGatewayNatRule + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkGatewayNatRule]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_network_gateway_nat_rules_list_by_virtual_network_gateway_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkGatewayNatRule], + deserialized.get("value", []), + ) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class VirtualNetworkTapsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`virtual_network_taps` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _models.VirtualNetworkTap: + """Get a VirtualNetworkTap. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) + _request = build_virtual_network_taps_get_request( + resource_group_name=resource_group_name, + tap_name=tap_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[str].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) - async def _stop_packet_capture_initial( + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + tap_name: str, + parameters: Union[_models.VirtualNetworkTap, _types.VirtualNetworkTap, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -65813,7 +72271,7 @@ async def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -65824,9 +72282,9 @@ async def _stop_packet_capture_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateway_connections_stop_packet_capture_request( + _request = build_virtual_network_taps_create_or_update_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + tap_name=tap_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -65847,21 +72305,23 @@ async def _stop_packet_capture_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -65872,130 +72332,129 @@ async def _stop_packet_capture_initial( return deserialized # type: ignore @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: _models.VpnPacketCaptureStopParameters, + tap_name: str, + parameters: _models.VirtualNetworkTap, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkTap]: + """Create a VirtualNetworkTap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway connection. Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param parameters: Parameters supplied to the create or update virtual network tap operation. + Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: JSON, + tap_name: str, + parameters: _types.VirtualNetworkTap, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkTap]: + """Create a VirtualNetworkTap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway connection. Required. - :type parameters: JSON + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param parameters: Parameters supplied to the create or update virtual network tap operation. + Required. + :type parameters: ~azure.mgmt.network.types.VirtualNetworkTap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, + tap_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkTap]: + """Create a VirtualNetworkTap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway connection. Required. + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param parameters: Parameters supplied to the create or update virtual network tap operation. + Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_stop_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + tap_name: str, + parameters: Union[_models.VirtualNetworkTap, _types.VirtualNetworkTap, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on virtual network gateway connection in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualNetworkTap]: + """Create a VirtualNetworkTap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway connection. Is one of the following types: VpnPacketCaptureStopParameters, - JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param parameters: Parameters supplied to the create or update virtual network tap operation. + Is either a VirtualNetworkTap type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap or + ~azure.mgmt.network.types.VirtualNetworkTap or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._stop_packet_capture_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + tap_name=tap_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -66008,14 +72467,10 @@ async def begin_stop_packet_capture( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -66031,17 +72486,189 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkTap].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.VirtualNetworkTap]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _get_ike_sas_initial( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + @overload + async def update_tags( + self, + resource_group_name: str, + tap_name: str, + tap_parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkTap: + """Update a VirtualNetworkTap. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. + :type tap_parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + tap_name: str, + tap_parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkTap: + """Update a VirtualNetworkTap. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. + :type tap_parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + tap_name: str, + tap_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkTap: + """Update a VirtualNetworkTap. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. + :type tap_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + tap_name: str, + tap_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.VirtualNetworkTap: + """Update a VirtualNetworkTap. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type tap_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(tap_parameters, (IOBase, bytes)): + _content = tap_parameters + else: + _content = json.dumps(tap_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_taps_update_tags_request( + resource_group_name=resource_group_name, + tap_name=tap_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -66053,12 +72680,12 @@ async def _get_ike_sas_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_connections_get_ike_sas_request( + _request = build_virtual_network_taps_delete_request( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + tap_name=tap_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -66077,22 +72704,22 @@ async def _get_ike_sas_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.ErrorResponse, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -66102,34 +72729,30 @@ async def _get_ike_sas_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_get_ike_sas( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> AsyncLROPoller[str]: - """Lists IKE Security Associations for the virtual network gateway connection in the specified - resource group. + async def begin_delete(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Delete a VirtualNetworkTap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param tap_name: The name of virtual network tap. Required. + :type tap_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_ike_sas_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + tap_name=tap_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -66139,16 +72762,9 @@ async def begin_get_ike_sas( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = _deserialize(str, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -66163,17 +72779,33 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualNetworkTap"]: + """Gets all the VirtualNetworkTaps in a subscription. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of VirtualNetworkTap + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkTap] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) - async def _reset_connection_initial( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -66182,127 +72814,154 @@ async def _reset_connection_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + def prepare_request(next_link=None): + if not next_link: - _request = build_virtual_network_gateway_connections_reset_connection_request( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_virtual_network_taps_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - response = pipeline_response.http_response + return _request - if response.status_code not in [202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.ErrorResponse, - response, + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkTap], + deserialized.get("value", []), ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + async def get_next(next_link=None): + _request = prepare_request(next_link) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return deserialized # type: ignore + return pipeline_response - @distributed_trace_async - async def begin_reset_connection( - self, resource_group_name: str, virtual_network_gateway_connection_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Resets the virtual network gateway connection specified. + return AsyncItemPaged(get_next, extract_data) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_gateway_connection_name: The name of the virtual network gateway - connection. Required. - :type virtual_network_gateway_connection_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkTap"]: + """Gets all the VirtualNetworkTaps in a subscription. + + :return: An iterator like instance of VirtualNetworkTap + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkTap] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._reset_connection_initial( - resource_group_name=resource_group_name, - virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, } + error_map.update(kwargs.pop("error_map", {}) or {}) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_network_taps_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkTap], + deserialized.get("value", []), ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) -class LocalNetworkGatewaysOperations: +class VirtualRoutersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`local_network_gateways` attribute. + :attr:`virtual_routers` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -66314,17 +72973,19 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any - ) -> _models.LocalNetworkGateway: - """Gets the specified local network gateway in a resource group. + self, resource_group_name: str, virtual_router_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.VirtualRouter: + """Gets the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LocalNetworkGateway + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: VirtualRouter. The VirtualRouter is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualRouter :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -66338,13 +72999,14 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) - _request = build_local_network_gateways_get_request( + _request = build_virtual_routers_get_request( resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, + virtual_router_name=virtual_router_name, subscription_id=self._config.subscription_id, + expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -66370,7 +73032,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -66378,7 +73040,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) + deserialized = _deserialize(_models.VirtualRouter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -66388,8 +73050,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - local_network_gateway_name: str, - parameters: Union[_models.LocalNetworkGateway, JSON, IO[bytes]], + virtual_router_name: str, + parameters: Union[_models.VirtualRouter, _types.VirtualRouter, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -66403,7 +73065,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -66414,9 +73076,9 @@ async def _create_or_update_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_local_network_gateways_create_or_update_request( + _request = build_virtual_routers_create_or_update_request( resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, + virtual_router_name=virtual_router_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -66444,7 +73106,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -66467,28 +73129,27 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - local_network_gateway_name: str, - parameters: _models.LocalNetworkGateway, + virtual_router_name: str, + parameters: _models.VirtualRouter, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LocalNetworkGateway]: - """Creates or updates a local network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualRouter]: + """Creates or updates the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to the create or update local network gateway operation. - Required. - :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param parameters: Parameters supplied to the create or update Virtual Router. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The - LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] + :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -66496,28 +73157,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - local_network_gateway_name: str, - parameters: JSON, + virtual_router_name: str, + parameters: _types.VirtualRouter, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LocalNetworkGateway]: - """Creates or updates a local network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualRouter]: + """Creates or updates the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to the create or update local network gateway operation. - Required. - :type parameters: JSON + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param parameters: Parameters supplied to the create or update Virtual Router. Required. + :type parameters: ~azure.mgmt.network.types.VirtualRouter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The - LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] + :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -66525,28 +73185,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - local_network_gateway_name: str, + virtual_router_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.LocalNetworkGateway]: - """Creates or updates a local network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualRouter]: + """Creates or updates the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to the create or update local network gateway operation. - Required. + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param parameters: Parameters supplied to the create or update Virtual Router. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The - LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] + :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -66554,38 +73213,39 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - local_network_gateway_name: str, - parameters: Union[_models.LocalNetworkGateway, JSON, IO[bytes]], + virtual_router_name: str, + parameters: Union[_models.VirtualRouter, _types.VirtualRouter, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.LocalNetworkGateway]: - """Creates or updates a local network gateway in the specified resource group. + ) -> AsyncLROPoller[_models.VirtualRouter]: + """Creates or updates the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to the create or update local network gateway operation. - Is one of the following types: LocalNetworkGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns LocalNetworkGateway. The - LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.LocalNetworkGateway] + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param parameters: Parameters supplied to the create or update Virtual Router. Is either a + VirtualRouter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouter or + ~azure.mgmt.network.types.VirtualRouter or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, + virtual_router_name=virtual_router_name, parameters=parameters, api_version=api_version, content_type=content_type, @@ -66599,7 +73259,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) + deserialized = _deserialize(_models.VirtualRouter, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -66617,189 +73277,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.LocalNetworkGateway].from_continuation_token( + return AsyncLROPoller[_models.VirtualRouter].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.LocalNetworkGateway]( + return AsyncLROPoller[_models.VirtualRouter]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - local_network_gateway_name: str, - parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LocalNetworkGateway: - """Updates a local network gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to update local network gateway tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LocalNetworkGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - local_network_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LocalNetworkGateway: - """Updates a local network gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to update local network gateway tags. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LocalNetworkGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - local_network_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.LocalNetworkGateway: - """Updates a local network gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to update local network gateway tags. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LocalNetworkGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - local_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.LocalNetworkGateway: - """Updates a local network gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str - :param parameters: Parameters supplied to update local network gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.LocalNetworkGateway - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_local_network_gateways_update_tags_request( - resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.LocalNetworkGateway, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any + self, resource_group_name: str, virtual_router_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -66812,12 +73301,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_local_network_gateways_delete_request( + _request = build_virtual_routers_delete_request( resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, + virtual_router_name=virtual_router_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -66843,7 +73332,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -66862,15 +73351,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, local_network_gateway_name: str, **kwargs: Any + self, resource_group_name: str, virtual_router_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified local network gateway. + """Deletes the specified Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param local_network_gateway_name: The name of the local network gateway. Required. - :type local_network_gateway_name: str + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -66878,7 +73367,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -66886,7 +73375,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - local_network_gateway_name=local_network_gateway_name, + virtual_router_name=virtual_router_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -66922,21 +73411,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.LocalNetworkGateway"]: - """Gets all the local network gateways in a resource group. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualRouter"]: + """Lists all Virtual Routers in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of LocalNetworkGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.LocalNetworkGateway] + :return: An iterator like instance of VirtualRouter + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouter] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.LocalNetworkGateway]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -66949,7 +73440,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_local_network_gateways_list_request( + _request = build_virtual_routers_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -66977,7 +73468,87 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.LocalNetworkGateway], + List[_models.VirtualRouter], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.Error, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualRouter"]: + """Gets all the Virtual Routers in a subscription. + + :return: An iterator like instance of VirtualRouter + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouter] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_routers_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualRouter], deserialized.get("value", []), ) if cls: @@ -66996,7 +73567,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -67006,14 +73577,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualNetworkGatewayNatRulesOperations: +class VirtualRouterPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_gateway_nat_rules` attribute. + :attr:`virtual_router_peerings` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -67025,21 +73596,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any - ) -> _models.VirtualNetworkGatewayNatRule: - """Retrieves the details of a nat rule. + self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any + ) -> _models.VirtualRouterPeering: + """Gets the specified Virtual Router Peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str - :return: VirtualNetworkGatewayNatRule. The VirtualNetworkGatewayNatRule is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str + :return: VirtualRouterPeering. The VirtualRouterPeering is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualRouterPeering :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -67053,13 +73623,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_nat_rules_get_request( + _request = build_virtual_router_peerings_get_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - nat_rule_name=nat_rule_name, + virtual_router_name=virtual_router_name, + peering_name=peering_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -67086,7 +73656,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -67094,7 +73664,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkGatewayNatRule, response.json()) + deserialized = _deserialize(_models.VirtualRouterPeering, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -67104,9 +73674,9 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_network_gateway_name: str, - nat_rule_name: str, - nat_rule_parameters: Union[_models.VirtualNetworkGatewayNatRule, JSON, IO[bytes]], + virtual_router_name: str, + peering_name: str, + parameters: Union[_models.VirtualRouterPeering, _types.VirtualRouterPeering, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -67120,21 +73690,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(nat_rule_parameters, (IOBase, bytes)): - _content = nat_rule_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(nat_rule_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_gateway_nat_rules_create_or_update_request( + _request = build_virtual_router_peerings_create_or_update_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - nat_rule_name=nat_rule_name, + virtual_router_name=virtual_router_name, + peering_name=peering_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -67162,7 +73732,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -67185,33 +73755,32 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - nat_rule_name: str, - nat_rule_parameters: _models.VirtualNetworkGatewayNatRule, + virtual_router_name: str, + peering_name: str, + parameters: _models.VirtualRouterPeering, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: - """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the - existing nat rules. + ) -> AsyncLROPoller[_models.VirtualRouterPeering]: + """Creates or updates the specified Virtual Router Peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str + :param parameters: Parameters supplied to the create or update Virtual Router Peering + operation. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The - VirtualNetworkGatewayNatRule is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The + VirtualRouterPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67219,33 +73788,32 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - nat_rule_name: str, - nat_rule_parameters: JSON, + virtual_router_name: str, + peering_name: str, + parameters: _types.VirtualRouterPeering, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: - """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the - existing nat rules. + ) -> AsyncLROPoller[_models.VirtualRouterPeering]: + """Creates or updates the specified Virtual Router Peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: JSON + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str + :param parameters: Parameters supplied to the create or update Virtual Router Peering + operation. Required. + :type parameters: ~azure.mgmt.network.types.VirtualRouterPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The - VirtualNetworkGatewayNatRule is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The + VirtualRouterPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67253,33 +73821,32 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - nat_rule_name: str, - nat_rule_parameters: IO[bytes], + virtual_router_name: str, + peering_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: - """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the - existing nat rules. + ) -> AsyncLROPoller[_models.VirtualRouterPeering]: + """Creates or updates the specified Virtual Router Peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: IO[bytes] + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str + :param parameters: Parameters supplied to the create or update Virtual Router Peering + operation. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The - VirtualNetworkGatewayNatRule is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The + VirtualRouterPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67287,47 +73854,45 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_network_gateway_name: str, - nat_rule_name: str, - nat_rule_parameters: Union[_models.VirtualNetworkGatewayNatRule, JSON, IO[bytes]], + virtual_router_name: str, + peering_name: str, + parameters: Union[_models.VirtualRouterPeering, _types.VirtualRouterPeering, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]: - """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the - existing nat rules. + ) -> AsyncLROPoller[_models.VirtualRouterPeering]: + """Creates or updates the specified Virtual Router Peering. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is one of the - following types: VirtualNetworkGatewayNatRule, JSON, IO[bytes] Required. - :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkGatewayNatRule. The - VirtualNetworkGatewayNatRule is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str + :param parameters: Parameters supplied to the create or update Virtual Router Peering + operation. Is either a VirtualRouterPeering type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering or + ~azure.mgmt.network.types.VirtualRouterPeering or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The + VirtualRouterPeering is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - nat_rule_name=nat_rule_name, - nat_rule_parameters=nat_rule_parameters, + virtual_router_name=virtual_router_name, + peering_name=peering_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -67340,7 +73905,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkGatewayNatRule, response.json()) + deserialized = _deserialize(_models.VirtualRouterPeering, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -67358,18 +73923,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetworkGatewayNatRule].from_continuation_token( + return AsyncLROPoller[_models.VirtualRouterPeering].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetworkGatewayNatRule]( + return AsyncLROPoller[_models.VirtualRouterPeering]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any + self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -67382,13 +73947,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateway_nat_rules_delete_request( + _request = build_virtual_router_peerings_delete_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - nat_rule_name=nat_rule_name, + virtual_router_name=virtual_router_name, + peering_name=peering_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -67414,7 +73979,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -67433,18 +73998,18 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, **kwargs: Any + self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a nat rule. + """Deletes the specified peering from a Virtual Router. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :param nat_rule_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type nat_rule_name: str + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :param peering_name: The name of the resource that is unique within a resource group. This name + can be used to access the resource. Required. + :type peering_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -67452,7 +74017,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -67460,8 +74025,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, - nat_rule_name=nat_rule_name, + virtual_router_name=virtual_router_name, + peering_name=peering_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -67497,26 +74062,26 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_virtual_network_gateway( - self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkGatewayNatRule"]: - """Retrieves all nat rules for a particular virtual network gateway. + def list( + self, resource_group_name: str, virtual_router_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VirtualRouterPeering"]: + """Lists all Virtual Router Peerings in a Virtual Router resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_gateway_name: The name of the virtual network gateway. Required. - :type virtual_network_gateway_name: str - :return: An iterator like instance of VirtualNetworkGatewayNatRule + :param virtual_router_name: The name of the Virtual Router. Required. + :type virtual_router_name: str + :return: An iterator like instance of VirtualRouterPeering :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouterPeering] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkGatewayNatRule]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualRouterPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -67529,9 +74094,9 @@ def list_by_virtual_network_gateway( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_gateway_nat_rules_list_by_virtual_network_gateway_request( + _request = build_virtual_router_peerings_list_request( resource_group_name=resource_group_name, - virtual_network_gateway_name=virtual_network_gateway_name, + virtual_router_name=virtual_router_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -67558,7 +74123,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkGatewayNatRule], + List[_models.VirtualRouterPeering], deserialized.get("value", []), ) if cls: @@ -67577,7 +74142,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.CloudError, + _models.Error, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -67587,14 +74152,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualNetworkTapsOperations: +class VirtualWansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_taps` attribute. + :attr:`virtual_wans` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -67605,16 +74170,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _models.VirtualNetworkTap: - """Get a VirtualNetworkTap. + async def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any) -> _models.VirtualWAN: + """Retrieves the details of a VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -67628,12 +74193,12 @@ async def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) - _request = build_virtual_network_taps_get_request( + _request = build_virtual_wans_get_request( resource_group_name=resource_group_name, - tap_name=tap_name, + virtual_wan_name=virtual_wan_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -67668,7 +74233,7 @@ async def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _ if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) + deserialized = _deserialize(_models.VirtualWAN, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -67678,8 +74243,8 @@ async def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _ async def _create_or_update_initial( self, resource_group_name: str, - tap_name: str, - parameters: Union[_models.VirtualNetworkTap, JSON, IO[bytes]], + virtual_wan_name: str, + wan_parameters: Union[_models.VirtualWAN, _types.VirtualWAN, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -67693,20 +74258,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(wan_parameters, (IOBase, bytes)): + _content = wan_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(wan_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_taps_create_or_update_request( + _request = build_virtual_wans_create_or_update_request( resource_group_name=resource_group_name, - tap_name=tap_name, + virtual_wan_name=virtual_wan_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -67757,28 +74322,27 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - tap_name: str, - parameters: _models.VirtualNetworkTap, + virtual_wan_name: str, + wan_parameters: _models.VirtualWAN, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkTap]: - """Create a VirtualNetworkTap. + ) -> AsyncLROPoller[_models.VirtualWAN]: + """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param parameters: Parameters supplied to the create or update virtual network tap operation. - Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. + :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] + :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67786,28 +74350,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - tap_name: str, - parameters: JSON, + virtual_wan_name: str, + wan_parameters: _types.VirtualWAN, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkTap]: - """Create a VirtualNetworkTap. + ) -> AsyncLROPoller[_models.VirtualWAN]: + """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param parameters: Parameters supplied to the create or update virtual network tap operation. - Required. - :type parameters: JSON + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. + :type wan_parameters: ~azure.mgmt.network.types.VirtualWAN :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] + :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67815,28 +74378,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - tap_name: str, - parameters: IO[bytes], + virtual_wan_name: str, + wan_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkTap]: - """Create a VirtualNetworkTap. + ) -> AsyncLROPoller[_models.VirtualWAN]: + """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param parameters: Parameters supplied to the create or update virtual network tap operation. - Required. - :type parameters: IO[bytes] + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. + :type wan_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] + :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67844,39 +74406,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - tap_name: str, - parameters: Union[_models.VirtualNetworkTap, JSON, IO[bytes]], + virtual_wan_name: str, + wan_parameters: Union[_models.VirtualWAN, _types.VirtualWAN, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkTap]: - """Create a VirtualNetworkTap. + ) -> AsyncLROPoller[_models.VirtualWAN]: + """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param parameters: Parameters supplied to the create or update virtual network tap operation. - Is one of the following types: VirtualNetworkTap, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkTap] + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to create or update VirtualWAN. Is either a + VirtualWAN type or a IO[bytes] type. Required. + :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN or + ~azure.mgmt.network.types.VirtualWAN or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - tap_name=tap_name, - parameters=parameters, + virtual_wan_name=virtual_wan_name, + wan_parameters=wan_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -67889,7 +74452,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) + deserialized = _deserialize(_models.VirtualWAN, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -67907,13 +74470,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualNetworkTap].from_continuation_token( + return AsyncLROPoller[_models.VirtualWAN].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualNetworkTap]( + return AsyncLROPoller[_models.VirtualWAN]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -67921,26 +74484,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - tap_name: str, - tap_parameters: _models.TagsObject, + virtual_wan_name: str, + wan_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkTap: - """Update a VirtualNetworkTap. + ) -> _models.VirtualWAN: + """Updates a VirtualWAN tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. - :type tap_parameters: ~azure.mgmt.network.models.TagsObject + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. + :type wan_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67948,26 +74511,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - tap_name: str, - tap_parameters: JSON, + virtual_wan_name: str, + wan_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkTap: - """Update a VirtualNetworkTap. + ) -> _models.VirtualWAN: + """Updates a VirtualWAN tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. - :type tap_parameters: JSON + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. + :type wan_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: """ @@ -67975,26 +74538,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - tap_name: str, - tap_parameters: IO[bytes], + virtual_wan_name: str, + wan_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkTap: - """Update a VirtualNetworkTap. + ) -> _models.VirtualWAN: + """Updates a VirtualWAN tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. - :type tap_parameters: IO[bytes] + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. + :type wan_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: """ @@ -68002,22 +74565,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - tap_name: str, - tap_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_wan_name: str, + wan_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.VirtualNetworkTap: - """Update a VirtualNetworkTap. + ) -> _models.VirtualWAN: + """Updates a VirtualWAN tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str - :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type tap_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkTap + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type wan_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -68031,20 +74595,20 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(tap_parameters, (IOBase, bytes)): - _content = tap_parameters + if isinstance(wan_parameters, (IOBase, bytes)): + _content = wan_parameters else: - _content = json.dumps(tap_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(wan_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_taps_update_tags_request( + _request = build_virtual_wans_update_tags_request( resource_group_name=resource_group_name, - tap_name=tap_name, + virtual_wan_name=virtual_wan_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -68081,14 +74645,16 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkTap, response.json()) + deserialized = _deserialize(_models.VirtualWAN, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + async def _delete_initial( + self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -68100,12 +74666,12 @@ async def _delete_initial(self, resource_group_name: str, tap_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_taps_delete_request( + _request = build_virtual_wans_delete_request( resource_group_name=resource_group_name, - tap_name=tap_name, + virtual_wan_name=virtual_wan_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -68149,14 +74715,16 @@ async def _delete_initial(self, resource_group_name: str, tap_name: str, **kwarg return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Delete a VirtualNetworkTap. + async def begin_delete( + self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a VirtualWAN. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param tap_name: The name of virtual network tap. Required. - :type tap_name: str + :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. + :type virtual_wan_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -68164,7 +74732,7 @@ async def begin_delete(self, resource_group_name: str, tap_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -68172,7 +74740,7 @@ async def begin_delete(self, resource_group_name: str, tap_name: str, **kwargs: if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - tap_name=tap_name, + virtual_wan_name=virtual_wan_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -68208,23 +74776,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualNetworkTap"]: - """Gets all the VirtualNetworkTaps in a subscription. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualWAN"]: + """Lists all the VirtualWANs in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualNetworkTap - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkTap] + :return: An iterator like instance of VirtualWAN + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -68237,7 +74803,7 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_taps_list_by_resource_group_request( + _request = build_virtual_wans_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -68265,7 +74831,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkTap], + List[_models.VirtualWAN], deserialized.get("value", []), ) if cls: @@ -68294,18 +74860,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkTap"]: - """Gets all the VirtualNetworkTaps in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualWAN"]: + """Lists all the VirtualWANs in a subscription. - :return: An iterator like instance of VirtualNetworkTap - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkTap] + :return: An iterator like instance of VirtualWAN + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualWAN] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -68318,7 +74884,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkTap"] def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_taps_list_all_request( + _request = build_virtual_wans_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -68345,7 +74911,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkTap], + List[_models.VirtualWAN], deserialized.get("value", []), ) if cls: @@ -68374,14 +74940,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualRoutersOperations: +class VpnSitesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_routers` attribute. + :attr:`vpn_sites` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -68392,20 +74958,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_router_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.VirtualRouter: - """Gets the specified Virtual Router. + async def get(self, resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> _models.VpnSite: + """Retrieves the details of a VPN site. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: VirtualRouter. The VirtualRouter is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualRouter + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :return: VpnSite. The VpnSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -68419,14 +74981,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) - _request = build_virtual_routers_get_request( + _request = build_vpn_sites_get_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, + vpn_site_name=vpn_site_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -68452,7 +75013,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -68460,7 +75021,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualRouter, response.json()) + deserialized = _deserialize(_models.VpnSite, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -68470,8 +75031,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_router_name: str, - parameters: Union[_models.VirtualRouter, JSON, IO[bytes]], + vpn_site_name: str, + vpn_site_parameters: Union[_models.VpnSite, _types.VpnSite, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -68485,20 +75046,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(vpn_site_parameters, (IOBase, bytes)): + _content = vpn_site_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(vpn_site_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_routers_create_or_update_request( + _request = build_vpn_sites_create_or_update_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, + vpn_site_name=vpn_site_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -68526,7 +75087,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -68538,176 +75099,349 @@ async def _create_or_update_initial( ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vpn_site_name: str, + vpn_site_parameters: _models.VpnSite, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VpnSite]: + """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vpn_site_name: str, + vpn_site_parameters: _types.VpnSite, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VpnSite]: + """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. + :type vpn_site_parameters: ~azure.mgmt.network.types.VpnSite + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + vpn_site_name: str, + vpn_site_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.VpnSite]: + """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. + :type vpn_site_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + vpn_site_name: str, + vpn_site_parameters: Union[_models.VpnSite, _types.VpnSite, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.VpnSite]: + """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Is either a + VpnSite type or a IO[bytes] type. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite or + ~azure.mgmt.network.types.VpnSite or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + vpn_site_parameters=vpn_site_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VpnSite, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - return deserialized # type: ignore + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VpnSite].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VpnSite]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload - async def begin_create_or_update( + async def update_tags( self, resource_group_name: str, - virtual_router_name: str, - parameters: _models.VirtualRouter, + vpn_site_name: str, + vpn_site_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouter]: - """Creates or updates the specified Virtual Router. + ) -> _models.VpnSite: + """Updates VpnSite tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param parameters: Parameters supplied to the create or update Virtual Router. Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouter + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] + :return: VpnSite. The VpnSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def update_tags( self, resource_group_name: str, - virtual_router_name: str, - parameters: JSON, + vpn_site_name: str, + vpn_site_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouter]: - """Creates or updates the specified Virtual Router. + ) -> _models.VpnSite: + """Updates VpnSite tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param parameters: Parameters supplied to the create or update Virtual Router. Required. - :type parameters: JSON + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. + :type vpn_site_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] + :return: VpnSite. The VpnSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def update_tags( self, resource_group_name: str, - virtual_router_name: str, - parameters: IO[bytes], + vpn_site_name: str, + vpn_site_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouter]: - """Creates or updates the specified Virtual Router. + ) -> _models.VpnSite: + """Updates VpnSite tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param parameters: Parameters supplied to the create or update Virtual Router. Required. - :type parameters: IO[bytes] + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. + :type vpn_site_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] + :return: VpnSite. The VpnSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def update_tags( self, resource_group_name: str, - virtual_router_name: str, - parameters: Union[_models.VirtualRouter, JSON, IO[bytes]], + vpn_site_name: str, + vpn_site_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouter]: - """Creates or updates the specified Virtual Router. + ) -> _models.VpnSite: + """Updates VpnSite tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param parameters: Parameters supplied to the create or update Virtual Router. Is one of the - following types: VirtualRouter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouter or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualRouter. The VirtualRouter is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouter] + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: VpnSite. The VpnSite is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualRouter, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(vpn_site_parameters, (IOBase, bytes)): + _content = vpn_site_parameters + else: + _content = json.dumps(vpn_site_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_vpn_sites_update_tags_request( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VirtualRouter].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VirtualRouter]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.VpnSite, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, virtual_router_name: str, **kwargs: Any + self, resource_group_name: str, vpn_site_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -68720,12 +75454,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_routers_delete_request( + _request = build_vpn_sites_delete_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, + vpn_site_name=vpn_site_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -68751,7 +75485,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -68769,16 +75503,14 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_router_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified Virtual Router. + async def begin_delete(self, resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes a VpnSite. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -68786,7 +75518,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -68794,7 +75526,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, + vpn_site_name=vpn_site_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -68830,23 +75562,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualRouter"]: - """Lists all Virtual Routers in a resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VpnSite"]: + """Lists all the vpnSites in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualRouter - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouter] + :return: An iterator like instance of VpnSite + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSite] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -68859,7 +75589,7 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_routers_list_by_resource_group_request( + _request = build_vpn_sites_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -68887,7 +75617,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualRouter], + List[_models.VpnSite], deserialized.get("value", []), ) if cls: @@ -68906,7 +75636,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -68916,18 +75646,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualRouter"]: - """Gets all the Virtual Routers in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnSite"]: + """Lists all the VpnSites in a subscription. - :return: An iterator like instance of VirtualRouter - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouter] + :return: An iterator like instance of VpnSite + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSite] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -68940,7 +75670,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualRouter"]: def prepare_request(next_link=None): if not next_link: - _request = build_virtual_routers_list_request( + _request = build_vpn_sites_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -68967,7 +75697,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualRouter], + List[_models.VpnSite], deserialized.get("value", []), ) if cls: @@ -68986,7 +75716,7 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -68996,14 +75726,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualRouterPeeringsOperations: +class VpnSiteLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_router_peerings` attribute. + :attr:`vpn_site_links` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -69015,20 +75745,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any - ) -> _models.VirtualRouterPeering: - """Gets the specified Virtual Router Peering. + self, resource_group_name: str, vpn_site_name: str, vpn_site_link_name: str, **kwargs: Any + ) -> _models.VpnSiteLink: + """Retrieves the details of a VPN site link. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str - :return: VirtualRouterPeering. The VirtualRouterPeering is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualRouterPeering + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :param vpn_site_link_name: The name of the resource that is unique within a resource group. + This name can be used to access the resource. Required. + :type vpn_site_link_name: str + :return: VpnSiteLink. The VpnSiteLink is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSiteLink :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -69042,13 +75772,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnSiteLink] = kwargs.pop("cls", None) - _request = build_virtual_router_peerings_get_request( + _request = build_vpn_site_links_get_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - peering_name=peering_name, + vpn_site_name=vpn_site_name, + vpn_site_link_name=vpn_site_link_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -69075,7 +75805,7 @@ async def get( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -69083,7 +75813,188 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualRouterPeering, response.json()) + deserialized = _deserialize(_models.VpnSiteLink, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_by_vpn_site( + self, resource_group_name: str, vpn_site_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VpnSiteLink"]: + """Lists all the vpnSiteLinks in a resource group for a vpn site. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. Required. + :type vpn_site_name: str + :return: An iterator like instance of VpnSiteLink + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSiteLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnSiteLink]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_vpn_site_links_list_by_vpn_site_request( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VpnSiteLink], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class VpnServerConfigurationsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`vpn_server_configurations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any + ) -> _models.VpnServerConfiguration: + """Retrieves the details of a VpnServerConfiguration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) + + _request = build_vpn_server_configurations_get_request( + resource_group_name=resource_group_name, + vpn_server_configuration_name=vpn_server_configuration_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -69093,9 +76004,10 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_router_name: str, - peering_name: str, - parameters: Union[_models.VirtualRouterPeering, JSON, IO[bytes]], + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: Union[ + _models.VpnServerConfiguration, _types.VpnServerConfiguration, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -69109,21 +76021,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(vpn_server_configuration_parameters, (IOBase, bytes)): + _content = vpn_server_configuration_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(vpn_server_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_router_peerings_create_or_update_request( + _request = build_vpn_server_configurations_create_or_update_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - peering_name=peering_name, + vpn_server_configuration_name=vpn_server_configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -69151,7 +76062,7 @@ async def _create_or_update_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -69174,32 +76085,30 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_router_name: str, - peering_name: str, - parameters: _models.VirtualRouterPeering, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: _models.VpnServerConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouterPeering]: - """Creates or updates the specified Virtual Router Peering. + ) -> AsyncLROPoller[_models.VpnServerConfiguration]: + """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing + VpnServerConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str - :param parameters: Parameters supplied to the create or update Virtual Router Peering - operation. Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to create or update + VpnServerConfiguration. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.VpnServerConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The - VirtualRouterPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] + :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The + VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69207,32 +76116,30 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_router_name: str, - peering_name: str, - parameters: JSON, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: _types.VpnServerConfiguration, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouterPeering]: - """Creates or updates the specified Virtual Router Peering. + ) -> AsyncLROPoller[_models.VpnServerConfiguration]: + """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing + VpnServerConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str - :param parameters: Parameters supplied to the create or update Virtual Router Peering - operation. Required. - :type parameters: JSON + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to create or update + VpnServerConfiguration. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.types.VpnServerConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The - VirtualRouterPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] + :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The + VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69240,32 +76147,30 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_router_name: str, - peering_name: str, - parameters: IO[bytes], + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouterPeering]: - """Creates or updates the specified Virtual Router Peering. + ) -> AsyncLROPoller[_models.VpnServerConfiguration]: + """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing + VpnServerConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str - :param parameters: Parameters supplied to the create or update Virtual Router Peering - operation. Required. - :type parameters: IO[bytes] + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to create or update + VpnServerConfiguration. Required. + :type vpn_server_configuration_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The - VirtualRouterPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] + :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The + VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69273,44 +76178,44 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_router_name: str, - peering_name: str, - parameters: Union[_models.VirtualRouterPeering, JSON, IO[bytes]], + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: Union[ + _models.VpnServerConfiguration, _types.VpnServerConfiguration, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualRouterPeering]: - """Creates or updates the specified Virtual Router Peering. + ) -> AsyncLROPoller[_models.VpnServerConfiguration]: + """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing + VpnServerConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str - :param parameters: Parameters supplied to the create or update Virtual Router Peering - operation. Is one of the following types: VirtualRouterPeering, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualRouterPeering. The - VirtualRouterPeering is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualRouterPeering] + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to create or update + VpnServerConfiguration. Is either a VpnServerConfiguration type or a IO[bytes] type. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.VpnServerConfiguration or + ~azure.mgmt.network.types.VpnServerConfiguration or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The + VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) + cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - peering_name=peering_name, - parameters=parameters, + vpn_server_configuration_name=vpn_server_configuration_name, + vpn_server_configuration_parameters=vpn_server_configuration_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -69323,7 +76228,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualRouterPeering, response.json()) + deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -69341,18 +76246,197 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualRouterPeering].from_continuation_token( + return AsyncLROPoller[_models.VpnServerConfiguration].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualRouterPeering]( + return AsyncLROPoller[_models.VpnServerConfiguration]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @overload + async def update_tags( + self, + resource_group_name: str, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VpnServerConfiguration: + """Updates VpnServerConfiguration tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to update + VpnServerConfiguration tags. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VpnServerConfiguration: + """Updates VpnServerConfiguration tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to update + VpnServerConfiguration tags. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VpnServerConfiguration: + """Updates VpnServerConfiguration tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to update + VpnServerConfiguration tags. Required. + :type vpn_server_configuration_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + vpn_server_configuration_name: str, + vpn_server_configuration_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.VpnServerConfiguration: + """Updates VpnServerConfiguration tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :param vpn_server_configuration_parameters: Parameters supplied to update + VpnServerConfiguration tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(vpn_server_configuration_parameters, (IOBase, bytes)): + _content = vpn_server_configuration_parameters + else: + _content = json.dumps(vpn_server_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_vpn_server_configurations_update_tags_request( + resource_group_name=resource_group_name, + vpn_server_configuration_name=vpn_server_configuration_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + async def _delete_initial( - self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any + self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -69365,13 +76449,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_router_peerings_delete_request( + _request = build_vpn_server_configurations_delete_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - peering_name=peering_name, + vpn_server_configuration_name=vpn_server_configuration_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -69397,7 +76480,7 @@ async def _delete_initial( pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -69416,18 +76499,16 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_router_name: str, peering_name: str, **kwargs: Any + self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified peering from a Virtual Router. + """Deletes a VpnServerConfiguration. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :param peering_name: The name of the resource that is unique within a resource group. This name - can be used to access the resource. Required. - :type peering_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -69435,7 +76516,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -69443,8 +76524,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, - peering_name=peering_name, + vpn_server_configuration_name=vpn_server_configuration_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -69480,26 +76560,24 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, virtual_router_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VirtualRouterPeering"]: - """Lists all Virtual Router Peerings in a Virtual Router resource. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.VpnServerConfiguration"]: + """Lists all the vpnServerConfigurations in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_router_name: The name of the Virtual Router. Required. - :type virtual_router_name: str - :return: An iterator like instance of VirtualRouterPeering + :return: An iterator like instance of VpnServerConfiguration :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualRouterPeering] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnServerConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualRouterPeering]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -69512,9 +76590,8 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_virtual_router_peerings_list_request( + _request = build_vpn_server_configurations_list_by_resource_group_request( resource_group_name=resource_group_name, - virtual_router_name=virtual_router_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -69541,7 +76618,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualRouterPeering], + List[_models.VpnServerConfiguration], deserialized.get("value", []), ) if cls: @@ -69560,7 +76637,88 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( - _models.Error, + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnServerConfiguration"]: + """Lists all the VpnServerConfigurations in a subscription. + + :return: An iterator like instance of VpnServerConfiguration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnServerConfiguration] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_vpn_server_configurations_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VpnServerConfiguration], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, response, ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -69569,15 +76727,90 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + @distributed_trace_async + async def list_radius_secrets( + self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any + ) -> _models.RadiusAuthServerListResult: + """List all Radius servers with respective radius secrets from VpnServerConfiguration. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param vpn_server_configuration_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type vpn_server_configuration_name: str + :return: RadiusAuthServerListResult. The RadiusAuthServerListResult is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.RadiusAuthServerListResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) + + _request = build_vpn_server_configurations_list_radius_secrets_request( + resource_group_name=resource_group_name, + vpn_server_configuration_name=vpn_server_configuration_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RadiusAuthServerListResult, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + -class VirtualWansOperations: +class VirtualHubsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_wans` attribute. + :attr:`virtual_hubs` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -69588,16 +76821,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any) -> _models.VirtualWAN: - """Retrieves the details of a VirtualWAN. + async def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> _models.VirtualHub: + """Retrieves the details of a VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualWAN + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :return: VirtualHub. The VirtualHub is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -69611,12 +76844,12 @@ async def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) - _request = build_virtual_wans_get_request( + _request = build_virtual_hubs_get_request( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -69651,7 +76884,7 @@ async def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: A if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualWAN, response.json()) + deserialized = _deserialize(_models.VirtualHub, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -69661,8 +76894,8 @@ async def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: A async def _create_or_update_initial( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: Union[_models.VirtualWAN, JSON, IO[bytes]], + virtual_hub_name: str, + virtual_hub_parameters: Union[_models.VirtualHub, _types.VirtualHub, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -69676,20 +76909,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(wan_parameters, (IOBase, bytes)): - _content = wan_parameters + if isinstance(virtual_hub_parameters, (IOBase, bytes)): + _content = virtual_hub_parameters else: - _content = json.dumps(wan_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(virtual_hub_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_wans_create_or_update_request( + _request = build_virtual_hubs_create_or_update_request( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -69740,27 +76973,27 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: _models.VirtualWAN, + virtual_hub_name: str, + virtual_hub_parameters: _models.VirtualHub, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualWAN]: - """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + ) -> AsyncLROPoller[_models.VirtualHub]: + """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. - :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69768,27 +77001,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: JSON, + virtual_hub_name: str, + virtual_hub_parameters: _types.VirtualHub, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualWAN]: - """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + ) -> AsyncLROPoller[_models.VirtualHub]: + """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. - :type wan_parameters: JSON + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.types.VirtualHub :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69796,27 +77029,27 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: IO[bytes], + virtual_hub_name: str, + virtual_hub_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualWAN]: - """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + ) -> AsyncLROPoller[_models.VirtualHub]: + """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. - :type wan_parameters: IO[bytes] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. + :type virtual_hub_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69824,39 +77057,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: Union[_models.VirtualWAN, JSON, IO[bytes]], + virtual_hub_name: str, + virtual_hub_parameters: Union[_models.VirtualHub, _types.VirtualHub, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualWAN]: - """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + ) -> AsyncLROPoller[_models.VirtualHub]: + """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to create or update VirtualWAN. Is one of the - following types: VirtualWAN, JSON, IO[bytes] Required. - :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualWAN. The VirtualWAN is compatible + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Is either a + VirtualHub type or a IO[bytes] type. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub or + ~azure.mgmt.network.types.VirtualHub or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualWAN] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, - wan_parameters=wan_parameters, + virtual_hub_name=virtual_hub_name, + virtual_hub_parameters=virtual_hub_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -69869,7 +77103,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualWAN, response.json()) + deserialized = _deserialize(_models.VirtualHub, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -69887,13 +77121,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualWAN].from_continuation_token( + return AsyncLROPoller[_models.VirtualHub].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualWAN]( + return AsyncLROPoller[_models.VirtualHub]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -69901,26 +77135,26 @@ def get_long_running_output(pipeline_response): async def update_tags( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: _models.TagsObject, + virtual_hub_name: str, + virtual_hub_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualWAN: - """Updates a VirtualWAN tags. + ) -> _models.VirtualHub: + """Updates VirtualHub tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. - :type wan_parameters: ~azure.mgmt.network.models.TagsObject + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualWAN + :return: VirtualHub. The VirtualHub is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69928,26 +77162,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: JSON, + virtual_hub_name: str, + virtual_hub_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualWAN: - """Updates a VirtualWAN tags. + ) -> _models.VirtualHub: + """Updates VirtualHub tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. - :type wan_parameters: JSON + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualWAN + :return: VirtualHub. The VirtualHub is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69955,26 +77189,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: IO[bytes], + virtual_hub_name: str, + virtual_hub_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualWAN: - """Updates a VirtualWAN tags. + ) -> _models.VirtualHub: + """Updates VirtualHub tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. - :type wan_parameters: IO[bytes] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. + :type virtual_hub_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualWAN + :return: VirtualHub. The VirtualHub is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: """ @@ -69982,22 +77216,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - virtual_wan_name: str, - wan_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_hub_name: str, + virtual_hub_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.VirtualWAN: - """Updates a VirtualWAN tags. + ) -> _models.VirtualHub: + """Updates VirtualHub tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type wan_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualWAN + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: VirtualHub. The VirtualHub is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -70011,20 +77246,20 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(wan_parameters, (IOBase, bytes)): - _content = wan_parameters + if isinstance(virtual_hub_parameters, (IOBase, bytes)): + _content = virtual_hub_parameters else: - _content = json.dumps(wan_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(virtual_hub_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_wans_update_tags_request( + _request = build_virtual_hubs_update_tags_request( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -70061,7 +77296,7 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualWAN, response.json()) + deserialized = _deserialize(_models.VirtualHub, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -70069,7 +77304,7 @@ async def update_tags( return deserialized # type: ignore async def _delete_initial( - self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -70082,12 +77317,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_wans_delete_request( + _request = build_virtual_hubs_delete_request( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -70132,15 +77367,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a VirtualWAN. + """Deletes a VirtualHub. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. - :type virtual_wan_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -70148,7 +77383,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -70156,7 +77391,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_wan_name=virtual_wan_name, + virtual_hub_name=virtual_hub_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -70192,21 +77427,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualWAN"]: - """Lists all the VirtualWANs in a resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualHub"]: + """Lists all the VirtualHubs in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualWAN - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualWAN] + :return: An iterator like instance of VirtualHub + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -70219,7 +77454,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_virtual_wans_list_by_resource_group_request( + _request = build_virtual_hubs_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -70247,7 +77482,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualWAN], + List[_models.VirtualHub], deserialized.get("value", []), ) if cls: @@ -70276,18 +77511,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualWAN"]: - """Lists all the VirtualWANs in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualHub"]: + """Lists all the VirtualHubs in a subscription. - :return: An iterator like instance of VirtualWAN - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualWAN] + :return: An iterator like instance of VirtualHub + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualHub] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -70300,155 +77535,68 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualWAN"]: def prepare_request(next_link=None): if not next_link: - _request = build_virtual_wans_list_request( + _request = build_virtual_hubs_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, params=_params, ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VirtualWAN], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class VpnSitesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`vpn_sites` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get(self, resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> _models.VpnSite: - """Retrieves the details of a VPN site. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :return: VpnSite. The VpnSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSite - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_vpn_sites_get_request( - resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualHub], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - response = pipeline_response.http_response + async def get_next(next_link=None): + _request = prepare_request(next_link) - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response = pipeline_response.http_response - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnSite, response.json()) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return AsyncItemPaged(get_next, extract_data) - async def _create_or_update_initial( + async def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too-long self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: Union[_models.VpnSite, JSON, IO[bytes]], + virtual_hub_name: str, + effective_routes_parameters: Optional[ + Union[_models.EffectiveRoutesParameters, _types.EffectiveRoutesParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -70462,20 +77610,24 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if effective_routes_parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" + content_type = content_type or "application/json" if effective_routes_parameters else None _content = None - if isinstance(vpn_site_parameters, (IOBase, bytes)): - _content = vpn_site_parameters + if isinstance(effective_routes_parameters, (IOBase, bytes)): + _content = effective_routes_parameters else: - _content = json.dumps(vpn_site_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if effective_routes_parameters is not None: + _content = json.dumps(effective_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None - _request = build_vpn_sites_create_or_update_request( + _request = build_virtual_hubs_get_effective_virtual_hub_routes_request( resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -70496,7 +77648,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -70509,10 +77661,8 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -70523,126 +77673,138 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: _models.VpnSite, + virtual_hub_name: str, + effective_routes_parameters: Optional[_models.EffectiveRoutesParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnSite]: - """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: + """Gets the effective routes configured for the Virtual Hub resource or the specified resource . :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param effective_routes_parameters: Parameters supplied to get the effective routes for a + specific resource. Default value is None. + :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The + VirtualHubEffectiveRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: JSON, + virtual_hub_name: str, + effective_routes_parameters: Optional[_types.EffectiveRoutesParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnSite]: - """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: + """Gets the effective routes configured for the Virtual Hub resource or the specified resource . :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. - :type vpn_site_parameters: JSON + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param effective_routes_parameters: Parameters supplied to get the effective routes for a + specific resource. Default value is None. + :type effective_routes_parameters: ~azure.mgmt.network.types.EffectiveRoutesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The + VirtualHubEffectiveRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: IO[bytes], + virtual_hub_name: str, + effective_routes_parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnSite]: - """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: + """Gets the effective routes configured for the Virtual Hub resource or the specified resource . :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. - :type vpn_site_parameters: IO[bytes] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param effective_routes_parameters: Parameters supplied to get the effective routes for a + specific resource. Default value is None. + :type effective_routes_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The + VirtualHubEffectiveRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: Union[_models.VpnSite, JSON, IO[bytes]], + virtual_hub_name: str, + effective_routes_parameters: Optional[ + Union[_models.EffectiveRoutesParameters, _types.EffectiveRoutesParameters, IO[bytes]] + ] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.VpnSite]: - """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: + """Gets the effective routes configured for the Virtual Hub resource or the specified resource . :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Is one of the - following types: VpnSite, JSON, IO[bytes] Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnSite. The VpnSite is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnSite] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param effective_routes_parameters: Parameters supplied to get the effective routes for a + specific resource. Is either a EffectiveRoutesParameters type or a IO[bytes] type. Default + value is None. + :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters or + ~azure.mgmt.network.types.EffectiveRoutesParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The + VirtualHubEffectiveRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) + content_type = content_type if effective_routes_parameters else None + cls: ClsType[_models.VirtualHubEffectiveRouteList] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._get_effective_virtual_hub_routes_initial( resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, - vpn_site_parameters=vpn_site_parameters, + virtual_hub_name=virtual_hub_name, + effective_routes_parameters=effective_routes_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -70655,7 +77817,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnSite, response.json()) + deserialized = _deserialize(_models.VirtualHubEffectiveRouteList, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -70673,119 +77835,25 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnSite].from_continuation_token( + return AsyncLROPoller[_models.VirtualHubEffectiveRouteList].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnSite]( + return AsyncLROPoller[_models.VirtualHubEffectiveRouteList]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnSite: - """Updates VpnSite tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnSite. The VpnSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSite - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnSite: - """Updates VpnSite tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. - :type vpn_site_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnSite. The VpnSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSite - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnSite: - """Updates VpnSite tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. - :type vpn_site_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnSite. The VpnSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSite - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( + async def _get_inbound_routes_initial( self, resource_group_name: str, - vpn_site_name: str, - vpn_site_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_hub_name: str, + get_inbound_routes_parameters: Union[ + _models.GetInboundRoutesParameters, _types.GetInboundRoutesParameters, IO[bytes] + ], **kwargs: Any - ) -> _models.VpnSite: - """Updates VpnSite tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VpnSite. The VpnSite is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSite - :raises ~azure.core.exceptions.HttpResponseError: - """ + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -70797,20 +77865,20 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(vpn_site_parameters, (IOBase, bytes)): - _content = vpn_site_parameters + if isinstance(get_inbound_routes_parameters, (IOBase, bytes)): + _content = get_inbound_routes_parameters else: - _content = json.dumps(vpn_site_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(get_inbound_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_sites_update_tags_request( + _request = build_virtual_hubs_get_inbound_routes_request( resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -70823,67 +77891,6 @@ async def update_tags( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnSite, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, resource_group_name: str, vpn_site_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_vpn_sites_delete_request( - resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access @@ -70892,7 +77899,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -70916,32 +77923,139 @@ async def _delete_initial( return deserialized # type: ignore + @overload + async def begin_get_inbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_inbound_routes_parameters: _models.GetInboundRoutesParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the inbound routes configured for the Virtual Hub on a particular connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a + connection resource. Required. + :type get_inbound_routes_parameters: ~azure.mgmt.network.models.GetInboundRoutesParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_inbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_inbound_routes_parameters: _types.GetInboundRoutesParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the inbound routes configured for the Virtual Hub on a particular connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a + connection resource. Required. + :type get_inbound_routes_parameters: ~azure.mgmt.network.types.GetInboundRoutesParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_inbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_inbound_routes_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the inbound routes configured for the Virtual Hub on a particular connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a + connection resource. Required. + :type get_inbound_routes_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_delete(self, resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes a VpnSite. + async def begin_get_inbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_inbound_routes_parameters: Union[ + _models.GetInboundRoutesParameters, _types.GetInboundRoutesParameters, IO[bytes] + ], + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the inbound routes configured for the Virtual Hub on a particular connection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a + connection resource. Is either a GetInboundRoutesParameters type or a IO[bytes] type. Required. + :type get_inbound_routes_parameters: ~azure.mgmt.network.models.GetInboundRoutesParameters or + ~azure.mgmt.network.types.GetInboundRoutesParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_inbound_routes_initial( resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, + virtual_hub_name=virtual_hub_name, + get_inbound_routes_parameters=get_inbound_routes_parameters, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -70950,9 +78064,12 @@ async def begin_delete(self, resource_group_name: str, vpn_site_name: str, **kwa await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.EffectiveRouteMapRouteList, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -70967,31 +78084,25 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.EffectiveRouteMapRouteList].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VpnSite"]: - """Lists all the vpnSites in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of VpnSite - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSite] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) + return AsyncLROPoller[_models.EffectiveRouteMapRouteList]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + async def _get_outbound_routes_initial( + self, + resource_group_name: str, + virtual_hub_name: str, + get_outbound_routes_parameters: Union[ + _models.GetOutboundRoutesParameters, _types.GetOutboundRoutesParameters, IO[bytes] + ], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -71000,201 +78111,27 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_vpn_sites_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnSite], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnSite"]: - """Lists all the VpnSites in a subscription. - - :return: An iterator like instance of VpnSite - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSite] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_vpn_sites_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnSite], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class VpnSiteLinksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`vpn_site_links` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, vpn_site_name: str, vpn_site_link_name: str, **kwargs: Any - ) -> _models.VpnSiteLink: - """Retrieves the details of a VPN site link. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :param vpn_site_link_name: The name of the resource that is unique within a resource group. - This name can be used to access the resource. Required. - :type vpn_site_link_name: str - :return: VpnSiteLink. The VpnSiteLink is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSiteLink - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnSiteLink] = kwargs.pop("cls", None) + content_type = content_type or "application/json" + _content = None + if isinstance(get_outbound_routes_parameters, (IOBase, bytes)): + _content = get_outbound_routes_parameters + else: + _content = json.dumps(get_outbound_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_site_links_get_request( + _request = build_virtual_hubs_get_outbound_routes_request( resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, - vpn_site_link_name=vpn_site_link_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -71204,19 +78141,18 @@ async def get( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -71224,114 +78160,199 @@ async def get( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnSiteLink, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore - @distributed_trace - def list_by_vpn_site( - self, resource_group_name: str, vpn_site_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VpnSiteLink"]: - """Lists all the vpnSiteLinks in a resource group for a vpn site. + @overload + async def begin_get_outbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_outbound_routes_parameters: _models.GetOutboundRoutesParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the outbound routes configured for the Virtual Hub on a particular connection. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_site_name: The name of the VpnSite being retrieved. Required. - :type vpn_site_name: str - :return: An iterator like instance of VpnSiteLink - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnSiteLink] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a + connection resource. Required. + :type get_outbound_routes_parameters: ~azure.mgmt.network.models.GetOutboundRoutesParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnSiteLink]] = kwargs.pop("cls", None) + @overload + async def begin_get_outbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_outbound_routes_parameters: _types.GetOutboundRoutesParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the outbound routes configured for the Virtual Hub on a particular connection. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a + connection resource. Required. + :type get_outbound_routes_parameters: ~azure.mgmt.network.types.GetOutboundRoutesParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ - def prepare_request(next_link=None): - if not next_link: + @overload + async def begin_get_outbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_outbound_routes_parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the outbound routes configured for the Virtual Hub on a particular connection. - _request = build_vpn_site_links_list_by_vpn_site_request( - resource_group_name=resource_group_name, - vpn_site_name=vpn_site_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a + connection resource. Required. + :type get_outbound_routes_parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + @distributed_trace_async + async def begin_get_outbound_routes( + self, + resource_group_name: str, + virtual_hub_name: str, + get_outbound_routes_parameters: Union[ + _models.GetOutboundRoutesParameters, _types.GetOutboundRoutesParameters, IO[bytes] + ], + **kwargs: Any + ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: + """Gets the outbound routes configured for the Virtual Hub on a particular connection. - return _request + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a + connection resource. Is either a GetOutboundRoutesParameters type or a IO[bytes] type. + Required. + :type get_outbound_routes_parameters: ~azure.mgmt.network.models.GetOutboundRoutesParameters or + ~azure.mgmt.network.types.GetOutboundRoutesParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The + EffectiveRouteMapRouteList is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnSiteLink], - deserialized.get("value", []), + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_outbound_routes_initial( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + get_outbound_routes_parameters=get_outbound_routes_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + def get_long_running_output(pipeline_response): response = pipeline_response.http_response + deserialized = _deserialize(_models.EffectiveRouteMapRouteList, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - return AsyncItemPaged(get_next, extract_data) + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.EffectiveRouteMapRouteList].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.EffectiveRouteMapRouteList]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) -class VpnServerConfigurationsOperations: +class RouteMapsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`vpn_server_configurations` attribute. + :attr:`route_maps` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -71343,18 +78364,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any - ) -> _models.VpnServerConfiguration: - """Retrieves the details of a VpnServerConfiguration. + self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any + ) -> _models.RouteMap: + """Retrieves the details of a RouteMap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnServerConfiguration + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str + :return: RouteMap. The RouteMap is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.RouteMap :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -71368,12 +78391,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) - _request = build_vpn_server_configurations_get_request( + _request = build_route_maps_get_request( resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, + virtual_hub_name=virtual_hub_name, + route_map_name=route_map_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -71408,7 +78432,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) + deserialized = _deserialize(_models.RouteMap, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -71418,8 +78442,9 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.VpnServerConfiguration, JSON, IO[bytes]], + virtual_hub_name: str, + route_map_name: str, + route_map_parameters: Union[_models.RouteMap, _types.RouteMap, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -71433,20 +78458,21 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(vpn_server_configuration_parameters, (IOBase, bytes)): - _content = vpn_server_configuration_parameters + if isinstance(route_map_parameters, (IOBase, bytes)): + _content = route_map_parameters else: - _content = json.dumps(vpn_server_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(route_map_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_server_configurations_create_or_update_request( + _request = build_route_maps_create_or_update_request( resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, + virtual_hub_name=virtual_hub_name, + route_map_name=route_map_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -71497,30 +78523,31 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: _models.VpnServerConfiguration, + virtual_hub_name: str, + route_map_name: str, + route_map_parameters: _models.RouteMap, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnServerConfiguration]: - """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing - VpnServerConfiguration. + ) -> AsyncLROPoller[_models.RouteMap]: + """Creates a RouteMap if it doesn't exist else updates the existing one. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to create or update - VpnServerConfiguration. Required. - :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.VpnServerConfiguration + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str + :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. + :type route_map_parameters: ~azure.mgmt.network.models.RouteMap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The - VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] + :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -71528,30 +78555,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + virtual_hub_name: str, + route_map_name: str, + route_map_parameters: _types.RouteMap, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnServerConfiguration]: - """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing - VpnServerConfiguration. + ) -> AsyncLROPoller[_models.RouteMap]: + """Creates a RouteMap if it doesn't exist else updates the existing one. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to create or update - VpnServerConfiguration. Required. - :type vpn_server_configuration_parameters: JSON + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str + :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. + :type route_map_parameters: ~azure.mgmt.network.types.RouteMap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The - VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] + :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -71559,30 +78587,31 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: IO[bytes], + virtual_hub_name: str, + route_map_name: str, + route_map_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnServerConfiguration]: - """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing - VpnServerConfiguration. + ) -> AsyncLROPoller[_models.RouteMap]: + """Creates a RouteMap if it doesn't exist else updates the existing one. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to create or update - VpnServerConfiguration. Required. - :type vpn_server_configuration_parameters: IO[bytes] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str + :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. + :type route_map_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The - VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] + :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -71590,43 +78619,45 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.VpnServerConfiguration, JSON, IO[bytes]], + virtual_hub_name: str, + route_map_name: str, + route_map_parameters: Union[_models.RouteMap, _types.RouteMap, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VpnServerConfiguration]: - """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing - VpnServerConfiguration. + ) -> AsyncLROPoller[_models.RouteMap]: + """Creates a RouteMap if it doesn't exist else updates the existing one. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to create or update - VpnServerConfiguration. Is one of the following types: VpnServerConfiguration, JSON, IO[bytes] - Required. - :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.VpnServerConfiguration or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnServerConfiguration. The - VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnServerConfiguration] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str + :param route_map_parameters: Parameters supplied to create or update a RouteMap. Is either a + RouteMap type or a IO[bytes] type. Required. + :type route_map_parameters: ~azure.mgmt.network.models.RouteMap or + ~azure.mgmt.network.types.RouteMap or IO[bytes] + :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with + MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) + cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, - vpn_server_configuration_parameters=vpn_server_configuration_parameters, + virtual_hub_name=virtual_hub_name, + route_map_name=route_map_name, + route_map_parameters=route_map_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -71639,7 +78670,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) + deserialized = _deserialize(_models.RouteMap, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -71657,198 +78688,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnServerConfiguration].from_continuation_token( + return AsyncLROPoller[_models.RouteMap].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnServerConfiguration]( + return AsyncLROPoller[_models.RouteMap]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnServerConfiguration: - """Updates VpnServerConfiguration tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to update - VpnServerConfiguration tags. Required. - :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnServerConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnServerConfiguration: - """Updates VpnServerConfiguration tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to update - VpnServerConfiguration tags. Required. - :type vpn_server_configuration_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnServerConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update_tags( - self, - resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.VpnServerConfiguration: - """Updates VpnServerConfiguration tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to update - VpnServerConfiguration tags. Required. - :type vpn_server_configuration_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnServerConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update_tags( - self, - resource_group_name: str, - vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.TagsObject, JSON, IO[bytes]], - **kwargs: Any - ) -> _models.VpnServerConfiguration: - """Updates VpnServerConfiguration tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :param vpn_server_configuration_parameters: Parameters supplied to update - VpnServerConfiguration tags. Is one of the following types: TagsObject, JSON, IO[bytes] - Required. - :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject or JSON or - IO[bytes] - :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnServerConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(vpn_server_configuration_parameters, (IOBase, bytes)): - _content = vpn_server_configuration_parameters - else: - _content = json.dumps(vpn_server_configuration_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_vpn_server_configurations_update_tags_request( - resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnServerConfiguration, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -71861,12 +78712,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_vpn_server_configurations_delete_request( + _request = build_route_maps_delete_request( resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, + virtual_hub_name=virtual_hub_name, + route_map_name=route_map_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -71911,16 +78763,18 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a VpnServerConfiguration. + """Deletes a RouteMap. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_map_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_map_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -71928,7 +78782,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -71936,7 +78790,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, + virtual_hub_name=virtual_hub_name, + route_map_name=route_map_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -71972,24 +78827,25 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.VpnServerConfiguration"]: - """Lists all the vpnServerConfigurations in a resource group. + def list( + self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.RouteMap"]: + """Retrieves the details of all RouteMaps. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VpnServerConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnServerConfiguration] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :return: An iterator like instance of RouteMap + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteMap] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.RouteMap]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -72002,8 +78858,9 @@ def list_by_resource_group( def prepare_request(next_link=None): if not next_link: - _request = build_vpn_server_configurations_list_by_resource_group_request( + _request = build_route_maps_list_request( resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -72030,88 +78887,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VpnServerConfiguration], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnServerConfiguration"]: - """Lists all the VpnServerConfigurations in a subscription. - - :return: An iterator like instance of VpnServerConfiguration - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnServerConfiguration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_vpn_server_configurations_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnServerConfiguration], + List[_models.RouteMap], deserialized.get("value", []), ) if cls: @@ -72139,90 +78915,15 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - @distributed_trace_async - async def list_radius_secrets( - self, resource_group_name: str, vpn_server_configuration_name: str, **kwargs: Any - ) -> _models.RadiusAuthServerListResult: - """List all Radius servers with respective radius secrets from VpnServerConfiguration. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param vpn_server_configuration_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type vpn_server_configuration_name: str - :return: RadiusAuthServerListResult. The RadiusAuthServerListResult is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.RadiusAuthServerListResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) - - _request = build_vpn_server_configurations_list_radius_secrets_request( - resource_group_name=resource_group_name, - vpn_server_configuration_name=vpn_server_configuration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.RadiusAuthServerListResult, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - -class VirtualHubsOperations: +class VpnGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_hubs` attribute. + :attr:`vpn_gateways` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -72233,16 +78934,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> _models.VirtualHub: - """Retrieves the details of a VirtualHub. + async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _models.VpnGateway: + """Retrieves the details of a virtual wan vpn gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :return: VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualHub + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :return: VpnGateway. The VpnGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -72256,12 +78957,12 @@ async def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) - _request = build_virtual_hubs_get_request( + _request = build_vpn_gateways_get_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -72296,7 +78997,7 @@ async def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: A if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualHub, response.json()) + deserialized = _deserialize(_models.VpnGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -72306,8 +79007,8 @@ async def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: A async def _create_or_update_initial( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: Union[_models.VirtualHub, JSON, IO[bytes]], + gateway_name: str, + vpn_gateway_parameters: Union[_models.VpnGateway, _types.VpnGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -72321,20 +79022,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(virtual_hub_parameters, (IOBase, bytes)): - _content = virtual_hub_parameters + if isinstance(vpn_gateway_parameters, (IOBase, bytes)): + _content = vpn_gateway_parameters else: - _content = json.dumps(virtual_hub_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_hubs_create_or_update_request( + _request = build_vpn_gateways_create_or_update_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -72385,27 +79086,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: _models.VirtualHub, + gateway_name: str, + vpn_gateway_parameters: _models.VpnGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHub]: - """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn + gateway. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -72413,27 +79115,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: JSON, + gateway_name: str, + vpn_gateway_parameters: _types.VpnGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHub]: - """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. - :type virtual_hub_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn + gateway. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.types.VpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -72441,27 +79144,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: IO[bytes], + gateway_name: str, + vpn_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHub]: - """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. - :type virtual_hub_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn + gateway. Required. + :type vpn_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -72469,39 +79173,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: Union[_models.VirtualHub, JSON, IO[bytes]], + gateway_name: str, + vpn_gateway_parameters: Union[_models.VpnGateway, _types.VpnGateway, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHub]: - """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Is one of - the following types: VirtualHub, JSON, IO[bytes] Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualHub. The VirtualHub is compatible + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn + gateway. Is either a VpnGateway type or a IO[bytes] type. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway or + ~azure.mgmt.network.types.VpnGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHub] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) + cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - virtual_hub_parameters=virtual_hub_parameters, + gateway_name=gateway_name, + vpn_gateway_parameters=vpn_gateway_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -72514,7 +79219,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualHub, response.json()) + deserialized = _deserialize(_models.VpnGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -72532,190 +79237,260 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualHub].from_continuation_token( + return AsyncLROPoller[_models.VpnGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualHub]( + return AsyncLROPoller[_models.VpnGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + async def _update_tags_initial( + self, + resource_group_name: str, + gateway_name: str, + vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(vpn_gateway_parameters, (IOBase, bytes)): + _content = vpn_gateway_parameters + else: + _content = json.dumps(vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_vpn_gateways_update_tags_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: _models.TagsObject, + gateway_name: str, + vpn_gateway_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualHub: - """Updates VirtualHub tags. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Updates virtual wan vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. + Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualHub + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: JSON, + gateway_name: str, + vpn_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualHub: - """Updates VirtualHub tags. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Updates virtual wan vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. - :type virtual_hub_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. + Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualHub + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: IO[bytes], + gateway_name: str, + vpn_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualHub: - """Updates VirtualHub tags. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Updates virtual wan vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. - :type virtual_hub_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. + Required. + :type vpn_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualHub + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - virtual_hub_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + gateway_name: str, + vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.VirtualHub: - """Updates VirtualHub tags. + ) -> AsyncLROPoller[_models.VpnGateway]: + """Updates virtual wan vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VirtualHub. The VirtualHub is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualHub + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. Is + either a TagsObject type or a IO[bytes] type. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) + cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_tags_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + vpn_gateway_parameters=vpn_gateway_parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - content_type = content_type or "application/json" - _content = None - if isinstance(virtual_hub_parameters, (IOBase, bytes)): - _content = virtual_hub_parameters - else: - _content = json.dumps(virtual_hub_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VpnGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - _request = build_virtual_hubs_update_tags_request( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: - deserialized = _deserialize(_models.VirtualHub, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VpnGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VpnGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _delete_initial( - self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + async def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -72727,12 +79502,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_hubs_delete_request( + _request = build_vpn_gateways_delete_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -72776,16 +79551,14 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a VirtualHub. + async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes a virtual wan vpn gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -72793,7 +79566,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -72801,7 +79574,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -72837,21 +79610,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualHub"]: - """Lists all the VirtualHubs in a resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VpnGateway"]: + """Lists all the VpnGateways in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualHub - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualHub] + :return: An iterator like instance of VpnGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -72864,7 +79637,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - _request = build_virtual_hubs_list_by_resource_group_request( + _request = build_vpn_gateways_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -72892,7 +79665,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualHub], + List[_models.VpnGateway], deserialized.get("value", []), ) if cls: @@ -72921,18 +79694,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualHub"]: - """Lists all the VirtualHubs in a subscription. + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnGateway"]: + """Lists all the VpnGateways in a subscription. - :return: An iterator like instance of VirtualHub - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualHub] + :return: An iterator like instance of VpnGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -72945,7 +79718,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualHub"]: def prepare_request(next_link=None): if not next_link: - _request = build_virtual_hubs_list_request( + _request = build_vpn_gateways_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -72972,7 +79745,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualHub], + List[_models.VpnGateway], deserialized.get("value", []), ) if cls: @@ -72996,15 +79769,153 @@ async def get_next(next_link=None): ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return pipeline_response + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + async def _reset_initial( + self, resource_group_name: str, gateway_name: str, *, ip_configuration_id: Optional[str] = None, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_vpn_gateways_reset_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + subscription_id=self._config.subscription_id, + ip_configuration_id=ip_configuration_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_reset( + self, resource_group_name: str, gateway_name: str, *, ip_configuration_id: Optional[str] = None, **kwargs: Any + ) -> AsyncLROPoller[_models.VpnGateway]: + """Resets the primary of the vpn gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :keyword ip_configuration_id: VpnGateway ipConfigurationId to specify the gateway instance. + Default value is None. + :paramtype ip_configuration_id: str + :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible + with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._reset_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + ip_configuration_id=ip_configuration_id, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.VpnGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - return AsyncItemPaged(get_next, extract_data) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - async def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too-long + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.VpnGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.VpnGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _start_packet_capture_initial( self, resource_group_name: str, - virtual_hub_name: str, - effective_routes_parameters: Optional[Union[_models.EffectiveRoutesParameters, JSON, IO[bytes]]] = None, + gateway_name: str, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStartParameters, _types.VpnGatewayPacketCaptureStartParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -73018,24 +79929,24 @@ async def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if effective_routes_parameters else None + content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if effective_routes_parameters else None + content_type = content_type or "application/json" if parameters else None _content = None - if isinstance(effective_routes_parameters, (IOBase, bytes)): - _content = effective_routes_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - if effective_routes_parameters is not None: - _content = json.dumps(effective_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore else: _content = None - _request = build_virtual_hubs_get_effective_virtual_hub_routes_request( + _request = build_vpn_gateways_start_packet_capture_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -73081,136 +79992,132 @@ async def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too return deserialized # type: ignore @overload - async def begin_get_effective_virtual_hub_routes( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - effective_routes_parameters: Optional[_models.EffectiveRoutesParameters] = None, + gateway_name: str, + parameters: Optional[_models.VpnGatewayPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: - """Gets the effective routes configured for the Virtual Hub resource or the specified resource . + ) -> AsyncLROPoller[str]: + """Starts packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param effective_routes_parameters: Parameters supplied to get the effective routes for a - specific resource. Default value is None. - :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on + vpn gateway. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The - VirtualHubEffectiveRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_effective_virtual_hub_routes( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - effective_routes_parameters: Optional[JSON] = None, + gateway_name: str, + parameters: Optional[_types.VpnGatewayPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: - """Gets the effective routes configured for the Virtual Hub resource or the specified resource . + ) -> AsyncLROPoller[str]: + """Starts packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param effective_routes_parameters: Parameters supplied to get the effective routes for a - specific resource. Default value is None. - :type effective_routes_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on + vpn gateway. Default value is None. + :type parameters: ~azure.mgmt.network.types.VpnGatewayPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The - VirtualHubEffectiveRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_effective_virtual_hub_routes( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - effective_routes_parameters: Optional[IO[bytes]] = None, + gateway_name: str, + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: - """Gets the effective routes configured for the Virtual Hub resource or the specified resource . + ) -> AsyncLROPoller[str]: + """Starts packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param effective_routes_parameters: Parameters supplied to get the effective routes for a - specific resource. Default value is None. - :type effective_routes_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on + vpn gateway. Default value is None. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The - VirtualHubEffectiveRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_effective_virtual_hub_routes( + async def begin_start_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - effective_routes_parameters: Optional[Union[_models.EffectiveRoutesParameters, JSON, IO[bytes]]] = None, + gateway_name: str, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStartParameters, _types.VpnGatewayPacketCaptureStartParameters, IO[bytes] + ] + ] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualHubEffectiveRouteList]: - """Gets the effective routes configured for the Virtual Hub resource or the specified resource . + ) -> AsyncLROPoller[str]: + """Starts packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param effective_routes_parameters: Parameters supplied to get the effective routes for a - specific resource. Is one of the following types: EffectiveRoutesParameters, JSON, IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on + vpn gateway. Is either a VpnGatewayPacketCaptureStartParameters type or a IO[bytes] type. Default value is None. - :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters or JSON - or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualHubEffectiveRouteList. The - VirtualHubEffectiveRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnGatewayPacketCaptureStartParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if effective_routes_parameters else None - cls: ClsType[_models.VirtualHubEffectiveRouteList] = kwargs.pop("cls", None) + content_type = content_type if parameters else None + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_effective_virtual_hub_routes_initial( + raw_result = await self._start_packet_capture_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - effective_routes_parameters=effective_routes_parameters, + gateway_name=gateway_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -73222,10 +80129,14 @@ async def begin_get_effective_virtual_hub_routes( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualHubEffectiveRouteList, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -73241,21 +80152,23 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VirtualHubEffectiveRouteList].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VirtualHubEffectiveRouteList]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_inbound_routes_initial( + async def _stop_packet_capture_initial( self, resource_group_name: str, - virtual_hub_name: str, - get_inbound_routes_parameters: Union[_models.GetInboundRoutesParameters, JSON, IO[bytes]], + gateway_name: str, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStopParameters, _types.VpnGatewayPacketCaptureStopParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -73269,20 +80182,24 @@ async def _get_inbound_routes_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" + content_type = content_type or "application/json" if parameters else None _content = None - if isinstance(get_inbound_routes_parameters, (IOBase, bytes)): - _content = get_inbound_routes_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(get_inbound_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None - _request = build_virtual_hubs_get_inbound_routes_request( + _request = build_vpn_gateways_stop_packet_capture_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -73328,135 +80245,132 @@ async def _get_inbound_routes_initial( return deserialized # type: ignore @overload - async def begin_get_inbound_routes( + async def begin_stop_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - get_inbound_routes_parameters: _models.GetInboundRoutesParameters, + gateway_name: str, + parameters: Optional[_models.VpnGatewayPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the inbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[str]: + """Stops packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a - connection resource. Required. - :type get_inbound_routes_parameters: ~azure.mgmt.network.models.GetInboundRoutesParameters + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn + gateway. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_inbound_routes( + async def begin_stop_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - get_inbound_routes_parameters: JSON, + gateway_name: str, + parameters: Optional[_types.VpnGatewayPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the inbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[str]: + """Stops packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a - connection resource. Required. - :type get_inbound_routes_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn + gateway. Default value is None. + :type parameters: ~azure.mgmt.network.types.VpnGatewayPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_inbound_routes( + async def begin_stop_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - get_inbound_routes_parameters: IO[bytes], + gateway_name: str, + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the inbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[str]: + """Stops packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a - connection resource. Required. - :type get_inbound_routes_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn + gateway. Default value is None. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_inbound_routes( + async def begin_stop_packet_capture( self, resource_group_name: str, - virtual_hub_name: str, - get_inbound_routes_parameters: Union[_models.GetInboundRoutesParameters, JSON, IO[bytes]], + gateway_name: str, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStopParameters, _types.VpnGatewayPacketCaptureStopParameters, IO[bytes] + ] + ] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the inbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[str]: + """Stops packet capture on vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a - connection resource. Is one of the following types: GetInboundRoutesParameters, JSON, IO[bytes] - Required. - :type get_inbound_routes_parameters: ~azure.mgmt.network.models.GetInboundRoutesParameters or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn + gateway. Is either a VpnGatewayPacketCaptureStopParameters type or a IO[bytes] type. Default + value is None. + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnGatewayPacketCaptureStopParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) + content_type = content_type if parameters else None + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_inbound_routes_initial( + raw_result = await self._stop_packet_capture_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - get_inbound_routes_parameters=get_inbound_routes_parameters, + gateway_name=gateway_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -73468,10 +80382,14 @@ async def begin_get_inbound_routes( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.EffectiveRouteMapRouteList, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -73487,21 +80405,210 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.EffectiveRouteMapRouteList].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.EffectiveRouteMapRouteList]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class VpnSiteLinkConnectionsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`vpn_site_link_connections` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + gateway_name: str, + connection_name: str, + link_connection_name: str, + **kwargs: Any + ) -> _models.VpnSiteLinkConnection: + """Retrieves the details of a vpn site link connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the vpn gateway. Required. + :type gateway_name: str + :param connection_name: The name of the vpn connection. Required. + :type connection_name: str + :param link_connection_name: The name of the vpn link connection. Required. + :type link_connection_name: str + :return: VpnSiteLinkConnection. The VpnSiteLinkConnection is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VpnSiteLinkConnection + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VpnSiteLinkConnection] = kwargs.pop("cls", None) + + _request = build_vpn_site_link_connections_get_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + connection_name=connection_name, + link_connection_name=link_connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - async def _get_outbound_routes_initial( + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VpnSiteLinkConnection, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class P2SVpnGatewaysOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`p2_svpn_gateways` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _models.P2SVpnGateway: + """Retrieves the details of a virtual wan p2s vpn gateway. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :return: P2SVpnGateway. The P2SVpnGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.P2SVpnGateway + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) + + _request = build_p2_svpn_gateways_get_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.P2SVpnGateway, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - virtual_hub_name: str, - get_outbound_routes_parameters: Union[_models.GetOutboundRoutesParameters, JSON, IO[bytes]], + gateway_name: str, + p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, _types.P2SVpnGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -73515,20 +80622,20 @@ async def _get_outbound_routes_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(get_outbound_routes_parameters, (IOBase, bytes)): - _content = get_outbound_routes_parameters + if isinstance(p2_s_vpn_gateway_parameters, (IOBase, bytes)): + _content = p2_s_vpn_gateway_parameters else: - _content = json.dumps(get_outbound_routes_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(p2_s_vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_hubs_get_outbound_routes_request( + _request = build_p2_svpn_gateways_create_or_update_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -73549,7 +80656,7 @@ async def _get_outbound_routes_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -73562,8 +80669,10 @@ async def _get_outbound_routes_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -73574,135 +80683,130 @@ async def _get_outbound_routes_initial( return deserialized # type: ignore @overload - async def begin_get_outbound_routes( + async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - get_outbound_routes_parameters: _models.GetOutboundRoutesParameters, + gateway_name: str, + p2_s_vpn_gateway_parameters: _models.P2SVpnGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the outbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a - connection resource. Required. - :type get_outbound_routes_parameters: ~azure.mgmt.network.models.GetOutboundRoutesParameters + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s + vpn gateway. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_outbound_routes( + async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - get_outbound_routes_parameters: JSON, + gateway_name: str, + p2_s_vpn_gateway_parameters: _types.P2SVpnGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the outbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a - connection resource. Required. - :type get_outbound_routes_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s + vpn gateway. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.types.P2SVpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_get_outbound_routes( + async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - get_outbound_routes_parameters: IO[bytes], + gateway_name: str, + p2_s_vpn_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the outbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a - connection resource. Required. - :type get_outbound_routes_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s + vpn gateway. Required. + :type p2_s_vpn_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_get_outbound_routes( + async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - get_outbound_routes_parameters: Union[_models.GetOutboundRoutesParameters, JSON, IO[bytes]], + gateway_name: str, + p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, _types.P2SVpnGateway, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.EffectiveRouteMapRouteList]: - """Gets the outbound routes configured for the Virtual Hub on a particular connection. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a - connection resource. Is one of the following types: GetOutboundRoutesParameters, JSON, - IO[bytes] Required. - :type get_outbound_routes_parameters: ~azure.mgmt.network.models.GetOutboundRoutesParameters or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns EffectiveRouteMapRouteList. The - EffectiveRouteMapRouteList is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s + vpn gateway. Is either a P2SVpnGateway type or a IO[bytes] type. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway or + ~azure.mgmt.network.types.P2SVpnGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) + cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_outbound_routes_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - get_outbound_routes_parameters=get_outbound_routes_parameters, + gateway_name=gateway_name, + p2_s_vpn_gateway_parameters=p2_s_vpn_gateway_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -73715,7 +80819,7 @@ async def begin_get_outbound_routes( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.EffectiveRouteMapRouteList, response.json()) + deserialized = _deserialize(_models.P2SVpnGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -73733,117 +80837,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.EffectiveRouteMapRouteList].from_continuation_token( + return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.EffectiveRouteMapRouteList]( + return AsyncLROPoller[_models.P2SVpnGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - -class RouteMapsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`route_maps` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any - ) -> _models.RouteMap: - """Retrieves the details of a RouteMap. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str - :return: RouteMap. The RouteMap is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.RouteMap - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) - - _request = build_route_maps_get_request( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_map_name=route_map_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.RouteMap, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( + async def _update_tags_initial( self, resource_group_name: str, - virtual_hub_name: str, - route_map_name: str, - route_map_parameters: Union[_models.RouteMap, JSON, IO[bytes]], + gateway_name: str, + p2_s_vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -73857,21 +80865,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(route_map_parameters, (IOBase, bytes)): - _content = route_map_parameters + if isinstance(p2_s_vpn_gateway_parameters, (IOBase, bytes)): + _content = p2_s_vpn_gateway_parameters else: - _content = json.dumps(route_map_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(p2_s_vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_route_maps_create_or_update_request( + _request = build_p2_svpn_gateways_update_tags_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_map_name=route_map_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -73892,7 +80899,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -73905,7 +80912,7 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: + if response.status_code == 202: response_headers["Azure-AsyncOperation"] = self._deserialize( "str", response.headers.get("Azure-AsyncOperation") ) @@ -73919,143 +80926,130 @@ async def _create_or_update_initial( return deserialized # type: ignore @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - route_map_name: str, - route_map_parameters: _models.RouteMap, + gateway_name: str, + p2_s_vpn_gateway_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteMap]: - """Creates a RouteMap if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Updates virtual wan p2s vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str - :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. - :type route_map_parameters: ~azure.mgmt.network.models.RouteMap + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway + tags. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - route_map_name: str, - route_map_parameters: JSON, + gateway_name: str, + p2_s_vpn_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteMap]: - """Creates a RouteMap if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Updates virtual wan p2s vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str - :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. - :type route_map_parameters: JSON + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway + tags. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - route_map_name: str, - route_map_parameters: IO[bytes], + gateway_name: str, + p2_s_vpn_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.RouteMap]: - """Creates a RouteMap if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Updates virtual wan p2s vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str - :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. - :type route_map_parameters: IO[bytes] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway + tags. Required. + :type p2_s_vpn_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def begin_update_tags( self, resource_group_name: str, - virtual_hub_name: str, - route_map_name: str, - route_map_parameters: Union[_models.RouteMap, JSON, IO[bytes]], + gateway_name: str, + p2_s_vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.RouteMap]: - """Creates a RouteMap if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Updates virtual wan p2s vpn gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str - :param route_map_parameters: Parameters supplied to create or update a RouteMap. Is one of the - following types: RouteMap, JSON, IO[bytes] Required. - :type route_map_parameters: ~azure.mgmt.network.models.RouteMap or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns RouteMap. The RouteMap is compatible with - MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteMap] + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway + tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) + cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._update_tags_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_map_name=route_map_name, - route_map_parameters=route_map_parameters, + gateway_name=gateway_name, + p2_s_vpn_gateway_parameters=p2_s_vpn_gateway_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -74068,7 +81062,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.RouteMap, response.json()) + deserialized = _deserialize(_models.P2SVpnGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -74086,19 +81080,17 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.RouteMap].from_continuation_token( + return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.RouteMap]( + return AsyncLROPoller[_models.P2SVpnGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial( - self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + async def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -74110,13 +81102,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_route_maps_delete_request( + _request = build_p2_svpn_gateways_delete_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_map_name=route_map_name, + gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -74160,19 +81151,14 @@ async def _delete_initial( return deserialized # type: ignore @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_hub_name: str, route_map_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a RouteMap. + async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes a virtual wan p2s vpn gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_map_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_map_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -74180,7 +81166,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -74188,8 +81174,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_map_name=route_map_name, + gateway_name=gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -74225,25 +81210,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list( - self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.RouteMap"]: - """Retrieves the details of all RouteMaps. + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.P2SVpnGateway"]: + """Lists all the P2SVpnGateways in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :return: An iterator like instance of RouteMap - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.RouteMap] + :return: An iterator like instance of P2SVpnGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.RouteMap]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -74256,9 +81239,8 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_route_maps_list_request( + _request = build_p2_svpn_gateways_list_by_resource_group_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -74285,7 +81267,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.RouteMap], + List[_models.P2SVpnGateway], deserialized.get("value", []), ) if cls: @@ -74313,37 +81295,20 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.P2SVpnGateway"]: + """Lists all the P2SVpnGateways in a subscription. -class VpnGatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`vpn_gateways` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _models.VpnGateway: - """Retrieves the details of a virtual wan vpn gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :return: VpnGateway. The VpnGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnGateway + :return: An iterator like instance of P2SVpnGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -74352,63 +81317,65 @@ async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + _request = build_p2_svpn_gateways_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_vpn_gateways_get_request( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + return _request - response = pipeline_response.http_response + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.P2SVpnGateway], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response = pipeline_response.http_response - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnGateway, response.json()) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return pipeline_response - return deserialized # type: ignore + return AsyncItemPaged(get_next, extract_data) - async def _create_or_update_initial( - self, - resource_group_name: str, - gateway_name: str, - vpn_gateway_parameters: Union[_models.VpnGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: + async def _reset_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -74417,27 +81384,17 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(vpn_gateway_parameters, (IOBase, bytes)): - _content = vpn_gateway_parameters - else: - _content = json.dumps(vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_vpn_gateways_create_or_update_request( + _request = build_p2_svpn_gateways_reset_request( resource_group_name=resource_group_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -74454,7 +81411,7 @@ async def _create_or_update_initial( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -74467,10 +81424,8 @@ async def _create_or_update_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -74480,132 +81435,35 @@ async def _create_or_update_initial( return deserialized # type: ignore - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - vpn_gateway_parameters: _models.VpnGateway, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn - gateway. Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - vpn_gateway_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn - gateway. Required. - :type vpn_gateway_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - vpn_gateway_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn - gateway. Required. - :type vpn_gateway_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - vpn_gateway_parameters: Union[_models.VpnGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + async def begin_reset( + self, resource_group_name: str, gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Resets the primary of the p2s vpn gateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn - gateway. Is one of the following types: VpnGateway, JSON, IO[bytes] Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._create_or_update_initial( + raw_result = await self._reset_initial( resource_group_name=resource_group_name, gateway_name=gateway_name, - vpn_gateway_parameters=vpn_gateway_parameters, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -74616,7 +81474,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnGateway, response.json()) + deserialized = _deserialize(_models.P2SVpnGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -74634,21 +81492,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnGateway].from_continuation_token( + return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnGateway]( + return AsyncLROPoller[_models.P2SVpnGateway]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _update_tags_initial( + async def _generate_vpn_profile_initial( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.P2SVpnProfileParameters, _types.P2SVpnProfileParameters, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -74662,18 +81520,18 @@ async def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(vpn_gateway_parameters, (IOBase, bytes)): - _content = vpn_gateway_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_gateways_update_tags_request( + _request = build_p2_svpn_gateways_generate_vpn_profile_request( resource_group_name=resource_group_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, @@ -74710,9 +81568,7 @@ async def _update_tags_initial( response_headers = {} if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -74723,129 +81579,130 @@ async def _update_tags_initial( return deserialized # type: ignore @overload - async def begin_update_tags( + async def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: _models.TagsObject, + parameters: _models.P2SVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Updates virtual wan vpn gateway tags. + ) -> AsyncLROPoller[_models.VpnProfileResponse]: + """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. - Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject + :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package + operation. Required. + :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + parameters: _types.P2SVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Updates virtual wan vpn gateway tags. + ) -> AsyncLROPoller[_models.VpnProfileResponse]: + """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. - Required. - :type vpn_gateway_parameters: JSON + :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package + operation. Required. + :type parameters: ~azure.mgmt.network.types.P2SVpnProfileParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: IO[bytes], + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Updates virtual wan vpn gateway tags. + ) -> AsyncLROPoller[_models.VpnProfileResponse]: + """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. - Required. - :type vpn_gateway_parameters: IO[bytes] + :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package + operation. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_update_tags( + async def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.P2SVpnProfileParameters, _types.P2SVpnProfileParameters, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Updates virtual wan vpn gateway tags. + ) -> AsyncLROPoller[_models.VpnProfileResponse]: + """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. Is - one of the following types: TagsObject, JSON, IO[bytes] Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package + operation. Is either a P2SVpnProfileParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters or + ~azure.mgmt.network.types.P2SVpnProfileParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse + is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.VpnProfileResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_tags_initial( + raw_result = await self._generate_vpn_profile_initial( resource_group_name=resource_group_name, gateway_name=gateway_name, - vpn_gateway_parameters=vpn_gateway_parameters, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -74858,7 +81715,7 @@ async def begin_update_tags( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnGateway, response.json()) + deserialized = _deserialize(_models.VpnProfileResponse, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -74876,17 +81733,19 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnGateway].from_continuation_token( + return AsyncLROPoller[_models.VpnProfileResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnGateway]( + return AsyncLROPoller[_models.VpnProfileResponse]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + async def _get_p2_s_vpn_connection_health_initial( + self, resource_group_name: str, gateway_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -74898,10 +81757,10 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_vpn_gateways_delete_request( + _request = build_p2_svpn_gateways_get_p2_s_vpn_connection_health_request( resource_group_name=resource_group_name, gateway_name=gateway_name, subscription_id=self._config.subscription_id, @@ -74922,7 +81781,7 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -74947,28 +81806,32 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes a virtual wan vpn gateway. + async def begin_get_p2_s_vpn_connection_health( + self, resource_group_name: str, gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnGateway]: + """Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified + resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_p2_s_vpn_connection_health_initial( resource_group_name=resource_group_name, gateway_name=gateway_name, api_version=api_version, @@ -74980,9 +81843,12 @@ async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwar await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.P2SVpnGateway, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -74997,31 +81863,23 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VpnGateway"]: - """Lists all the VpnGateways in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of VpnGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) + return AsyncLROPoller[_models.P2SVpnGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + async def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + gateway_name: str, + request: Union[_models.P2SVpnConnectionHealthRequest, _types.P2SVpnConnectionHealthRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -75030,147 +81888,242 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_vpn_gateways_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - return _request + _request = build_p2_svpn_gateways_get_p2_s_vpn_connection_health_detailed_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - return pipeline_response + deserialized = response.iter_bytes() if _decompress else response.iter_raw() - return AsyncItemPaged(get_next, extract_data) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.VpnGateway"]: - """Lists all the VpnGateways in a subscription. + return deserialized # type: ignore + + @overload + async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long + self, + resource_group_name: str, + gateway_name: str, + request: _models.P2SVpnConnectionHealthRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: + """Gets the sas url to get the connection health detail of P2S clients of the virtual wan + P2SVpnGateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param request: Request parameters supplied to get p2s vpn connections detailed health. + Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The + P2SVpnConnectionHealth is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long + self, + resource_group_name: str, + gateway_name: str, + request: _types.P2SVpnConnectionHealthRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: + """Gets the sas url to get the connection health detail of P2S clients of the virtual wan + P2SVpnGateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param request: Request parameters supplied to get p2s vpn connections detailed health. + Required. + :type request: ~azure.mgmt.network.types.P2SVpnConnectionHealthRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The + P2SVpnConnectionHealth is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long + self, + resource_group_name: str, + gateway_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: + """Gets the sas url to get the connection health detail of P2S clients of the virtual wan + P2SVpnGateway in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param request: Request parameters supplied to get p2s vpn connections detailed health. + Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The + P2SVpnConnectionHealth is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long + self, + resource_group_name: str, + gateway_name: str, + request: Union[_models.P2SVpnConnectionHealthRequest, _types.P2SVpnConnectionHealthRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: + """Gets the sas url to get the connection health detail of P2S clients of the virtual wan + P2SVpnGateway in the specified resource group. - :return: An iterator like instance of VpnGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VpnGateway] + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the gateway. Required. + :type gateway_name: str + :param request: Request parameters supplied to get p2s vpn connections detailed health. Is + either a P2SVpnConnectionHealthRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest or + ~azure.mgmt.network.types.P2SVpnConnectionHealthRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The + P2SVpnConnectionHealth is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_vpn_gateways_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.VpnGateway], - deserialized.get("value", []), + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.P2SVpnConnectionHealth] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._get_p2_s_vpn_connection_health_detailed_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + request=request, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + def get_long_running_output(pipeline_response): response = pipeline_response.http_response + deserialized = _deserialize(_models.P2SVpnConnectionHealth, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - return AsyncItemPaged(get_next, extract_data) + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.P2SVpnConnectionHealth].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.P2SVpnConnectionHealth]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _reset_initial( - self, resource_group_name: str, gateway_name: str, *, ip_configuration_id: Optional[str] = None, **kwargs: Any + async def _disconnect_p2_s_vpn_connections_initial( + self, + resource_group_name: str, + p2_s_vpn_gateway_name: str, + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], + **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -75180,18 +82133,27 @@ async def _reset_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_vpn_gateways_reset_request( + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_p2_svpn_gateways_disconnect_p2_s_vpn_connections_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + p2_s_vpn_gateway_name=p2_s_vpn_gateway_name, subscription_id=self._config.subscription_id, - ip_configuration_id=ip_configuration_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -75222,8 +82184,8 @@ async def _reset_initial( response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -75232,39 +82194,130 @@ async def _reset_initial( return deserialized # type: ignore + @overload + async def begin_disconnect_p2_s_vpn_connections( + self, + resource_group_name: str, + p2_s_vpn_gateway_name: str, + request: _models.P2SVpnConnectionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. + :type p2_s_vpn_gateway_name: str + :param request: The parameters are supplied to disconnect p2s vpn connections. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_disconnect_p2_s_vpn_connections( + self, + resource_group_name: str, + p2_s_vpn_gateway_name: str, + request: _types.P2SVpnConnectionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. + :type p2_s_vpn_gateway_name: str + :param request: The parameters are supplied to disconnect p2s vpn connections. Required. + :type request: ~azure.mgmt.network.types.P2SVpnConnectionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_disconnect_p2_s_vpn_connections( + self, + resource_group_name: str, + p2_s_vpn_gateway_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. + :type p2_s_vpn_gateway_name: str + :param request: The parameters are supplied to disconnect p2s vpn connections. Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + @distributed_trace_async - async def begin_reset( - self, resource_group_name: str, gateway_name: str, *, ip_configuration_id: Optional[str] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.VpnGateway]: - """Resets the primary of the vpn gateway in the specified resource group. + async def begin_disconnect_p2_s_vpn_connections( + self, + resource_group_name: str, + p2_s_vpn_gateway_name: str, + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource + group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :keyword ip_configuration_id: VpnGateway ipConfigurationId to specify the gateway instance. - Default value is None. - :paramtype ip_configuration_id: str - :return: An instance of AsyncLROPoller that returns VpnGateway. The VpnGateway is compatible - with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGateway] + :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. + :type p2_s_vpn_gateway_name: str + :param request: The parameters are supplied to disconnect p2s vpn connections. Is either a + P2SVpnConnectionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or + ~azure.mgmt.network.types.P2SVpnConnectionRequest or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._reset_initial( + raw_result = await self._disconnect_p2_s_vpn_connections_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - ip_configuration_id=ip_configuration_id, + p2_s_vpn_gateway_name=p2_s_vpn_gateway_name, + request=request, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -75273,12 +82326,9 @@ async def begin_reset( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnGateway, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -75293,21 +82343,110 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.VpnGateway].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.VpnGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ExpressRouteGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`express_route_gateways` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any + ) -> _models.ExpressRouteGateway: + """Fetches the details of a ExpressRoute gateway in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :return: ExpressRouteGateway. The ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteGateway + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) + + _request = build_express_route_gateways_get_request( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - async def _start_packet_capture_initial( + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + express_route_gateway_name: str, + put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, _types.ExpressRouteGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -75321,24 +82460,20 @@ async def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if parameters else None + content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(put_express_route_gateway_parameters, (IOBase, bytes)): + _content = put_express_route_gateway_parameters else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + _content = json.dumps(put_express_route_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_gateways_start_packet_capture_request( + _request = build_express_route_gateways_create_or_update_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -75359,7 +82494,7 @@ async def _start_packet_capture_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -75372,8 +82507,10 @@ async def _start_packet_capture_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -75384,128 +82521,130 @@ async def _start_packet_capture_initial( return deserialized # type: ignore @overload - async def begin_start_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[_models.VpnGatewayPacketCaptureStartParameters] = None, + express_route_gateway_name: str, + put_express_route_gateway_parameters: _models.ExpressRouteGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Creates or updates a ExpressRoute gateway in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on - vpn gateway. Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT + operation. Required. + :type put_express_route_gateway_parameters: ~azure.mgmt.network.models.ExpressRouteGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_start_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[JSON] = None, + express_route_gateway_name: str, + put_express_route_gateway_parameters: _types.ExpressRouteGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Creates or updates a ExpressRoute gateway in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on - vpn gateway. Default value is None. - :type parameters: JSON + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT + operation. Required. + :type put_express_route_gateway_parameters: ~azure.mgmt.network.types.ExpressRouteGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_start_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[IO[bytes]] = None, + express_route_gateway_name: str, + put_express_route_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Creates or updates a ExpressRoute gateway in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on - vpn gateway. Default value is None. - :type parameters: IO[bytes] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT + operation. Required. + :type put_express_route_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_start_packet_capture( + async def begin_create_or_update( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + express_route_gateway_name: str, + put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, _types.ExpressRouteGateway, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Creates or updates a ExpressRoute gateway in a specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on - vpn gateway. Is one of the following types: VpnGatewayPacketCaptureStartParameters, JSON, - IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT + operation. Is either a ExpressRouteGateway type or a IO[bytes] type. Required. + :type put_express_route_gateway_parameters: ~azure.mgmt.network.models.ExpressRouteGateway or + ~azure.mgmt.network.types.ExpressRouteGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[str] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._start_packet_capture_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - parameters=parameters, + express_route_gateway_name=express_route_gateway_name, + put_express_route_gateway_parameters=put_express_route_gateway_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -75517,14 +82656,10 @@ async def begin_start_packet_capture( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -75540,19 +82675,21 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[_models.ExpressRouteGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.ExpressRouteGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - async def _stop_packet_capture_initial( + async def _update_tags_initial( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + express_route_gateway_name: str, + express_route_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -75566,24 +82703,20 @@ async def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" if parameters else None + content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(express_route_gateway_parameters, (IOBase, bytes)): + _content = express_route_gateway_parameters else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None + _content = json.dumps(express_route_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_vpn_gateways_stop_packet_capture_request( + _request = build_express_route_gateways_update_tags_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -75618,7 +82751,9 @@ async def _stop_packet_capture_initial( response_headers = {} if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -75629,128 +82764,130 @@ async def _stop_packet_capture_initial( return deserialized # type: ignore @overload - async def begin_stop_packet_capture( + async def begin_update_tags( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[_models.VpnGatewayPacketCaptureStopParameters] = None, + express_route_gateway_name: str, + express_route_gateway_parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Updates express route gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn - gateway. Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express + route gateway tags. Required. + :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_update_tags( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[JSON] = None, + express_route_gateway_name: str, + express_route_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Updates express route gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn - gateway. Default value is None. - :type parameters: JSON + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express + route gateway tags. Required. + :type express_route_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_packet_capture( + async def begin_update_tags( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[IO[bytes]] = None, + express_route_gateway_name: str, + express_route_gateway_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Updates express route gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn - gateway. Default value is None. - :type parameters: IO[bytes] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express + route gateway tags. Required. + :type express_route_gateway_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_stop_packet_capture( + async def begin_update_tags( self, resource_group_name: str, - gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + express_route_gateway_name: str, + express_route_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops packet capture on vpn gateway in the specified resource group. + ) -> AsyncLROPoller[_models.ExpressRouteGateway]: + """Updates express route gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn - gateway. Is one of the following types: VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes] - Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express + route gateway tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] + :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The + ExpressRouteGateway is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[str] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._stop_packet_capture_initial( + raw_result = await self._update_tags_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - parameters=parameters, + express_route_gateway_name=express_route_gateway_name, + express_route_gateway_parameters=express_route_gateway_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -75762,14 +82899,10 @@ async def begin_stop_packet_capture( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -75785,56 +82918,19 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[_models.ExpressRouteGateway].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - -class VpnSiteLinkConnectionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`vpn_site_link_connections` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - gateway_name: str, - connection_name: str, - link_connection_name: str, - **kwargs: Any - ) -> _models.VpnSiteLinkConnection: - """Retrieves the details of a vpn site link connection. + return AsyncLROPoller[_models.ExpressRouteGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the vpn gateway. Required. - :type gateway_name: str - :param connection_name: The name of the vpn connection. Required. - :type connection_name: str - :param link_connection_name: The name of the vpn link connection. Required. - :type link_connection_name: str - :return: VpnSiteLinkConnection. The VpnSiteLinkConnection is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VpnSiteLinkConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ + async def _delete_initial( + self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -75846,14 +82942,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VpnSiteLinkConnection] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_vpn_site_link_connections_get_request( + _request = build_express_route_gateways_delete_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, - connection_name=connection_name, - link_connection_name=link_connection_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -75865,19 +82959,18 @@ async def get( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -75885,45 +82978,89 @@ async def get( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VpnSiteLinkConnection, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway + resource can only be deleted when there are no connection subresources. -class P2SVpnGatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`p2_svpn_gateways` attribute. - """ + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace_async - async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _models.P2SVpnGateway: - """Retrieves the details of a virtual wan p2s vpn gateway. + async def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> _models.ExpressRouteGatewayList: + """Lists ExpressRoute gateways in a given resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :return: P2SVpnGateway. The P2SVpnGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.P2SVpnGateway + :return: ExpressRouteGatewayList. The ExpressRouteGatewayList is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteGatewayList :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -75937,12 +83074,11 @@ async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) - _request = build_p2_svpn_gateways_get_request( + _request = build_express_route_gateways_list_by_resource_group_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -75977,20 +83113,21 @@ async def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.P2SVpnGateway, response.json()) + deserialized = _deserialize(_models.ExpressRouteGatewayList, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def list_by_subscription(self, **kwargs: Any) -> _models.ExpressRouteGatewayList: + """Lists ExpressRoute gateways under a given subscription. + + :return: ExpressRouteGatewayList. The ExpressRouteGatewayList is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteGatewayList + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -75999,239 +83136,76 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(p2_s_vpn_gateway_parameters, (IOBase, bytes)): - _content = p2_s_vpn_gateway_parameters - else: - _content = json.dumps(p2_s_vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) - _request = build_p2_svpn_gateways_create_or_update_request( - resource_group_name=resource_group_name, - gateway_name=gateway_name, + _request = build_express_route_gateways_list_by_subscription_request( subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: _models.P2SVpnGateway, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s - vpn gateway. Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s - vpn gateway. Required. - :type p2_s_vpn_gateway_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s - vpn gateway. Required. - :type p2_s_vpn_gateway_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s - vpn gateway. Is one of the following types: P2SVpnGateway, JSON, IO[bytes] Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - p2_s_vpn_gateway_parameters=p2_s_vpn_gateway_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.P2SVpnGateway, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - + api_version=api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.P2SVpnGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.ExpressRouteGatewayList, response.json()) - async def _update_tags_initial( + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "type", + "fetch_latest", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _get_failover_all_tests_details_initial( self, resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + type: Optional[str] = None, + fetch_latest: Optional[bool] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -76242,27 +83216,19 @@ async def _update_tags_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(p2_s_vpn_gateway_parameters, (IOBase, bytes)): - _content = p2_s_vpn_gateway_parameters - else: - _content = json.dumps(p2_s_vpn_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_p2_svpn_gateways_update_tags_request( + _request = build_express_route_gateways_get_failover_all_tests_details_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, + type=type, + fetch_latest=fetch_latest, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -76293,9 +83259,7 @@ async def _update_tags_initial( response_headers = {} if response.status_code == 202: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -76305,132 +83269,64 @@ async def _update_tags_initial( return deserialized # type: ignore - @overload - async def begin_update_tags( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: _models.TagsObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Updates virtual wan p2s vpn gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway - tags. Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_tags( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Updates virtual wan p2s vpn gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway - tags. Required. - :type p2_s_vpn_gateway_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_tags( - self, - resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Updates virtual wan p2s vpn gateway tags. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway - tags. Required. - :type p2_s_vpn_gateway_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_update_tags( + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "type", + "fetch_latest", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_get_failover_all_tests_details( self, resource_group_name: str, - gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + type: Optional[str] = None, + fetch_latest: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Updates virtual wan p2s vpn gateway tags. + ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]: + """Retrieves the details of all the failover tests performed on the ExpressRoute gateway for + different peering locations. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway - tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :keyword type: The type of failover test. Default value is None. + :paramtype type: str + :keyword fetch_latest: Fetch only the latest tests for each peering location. Default value is + None. + :paramtype fetch_latest: bool + :return: An instance of AsyncLROPoller that returns list of ExpressRouteFailoverTestDetails + :rtype: + ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverTestDetails]] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_tags_initial( + raw_result = await self._get_failover_all_tests_details_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - p2_s_vpn_gateway_parameters=p2_s_vpn_gateway_parameters, + express_route_gateway_name=express_route_gateway_name, + type=type, + fetch_latest=fetch_latest, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -76440,10 +83336,14 @@ async def begin_update_tags( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.P2SVpnGateway, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(List[_models.ExpressRouteFailoverTestDetails], response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -76459,17 +83359,40 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( + return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.P2SVpnGateway]( + return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "peering_location", + "failover_test_id", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _get_failover_single_test_details_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + express_route_gateway_name: str, + *, + peering_location: str, + failover_test_id: str, + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -76481,13 +83404,15 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_p2_svpn_gateways_delete_request( + _request = build_express_route_gateways_get_failover_single_test_details_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, + peering_location=peering_location, + failover_test_id=failover_test_id, api_version=api_version, headers=_headers, params=_params, @@ -76505,7 +83430,7 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -76530,30 +83455,62 @@ async def _delete_initial(self, resource_group_name: str, gateway_name: str, **k return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes a virtual wan p2s vpn gateway. + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "peering_location", + "failover_test_id", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_get_failover_single_test_details( + self, + resource_group_name: str, + express_route_gateway_name: str, + *, + peering_location: str, + failover_test_id: str, + **kwargs: Any + ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]: + """Retrieves the details of a particular failover test performed on the ExpressRoute gateway based + on the test Guid. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :keyword peering_location: Peering location of the test. Required. + :paramtype peering_location: str + :keyword failover_test_id: The unique Guid value which identifies the test. Required. + :paramtype failover_test_id: str + :return: An instance of AsyncLROPoller that returns list of + ExpressRouteFailoverSingleTestDetails + :rtype: + ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverSingleTestDetails]] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._get_failover_single_test_details_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, + peering_location=peering_location, + failover_test_id=failover_test_id, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -76563,198 +83520,57 @@ async def begin_delete(self, resource_group_name: str, gateway_name: str, **kwar await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.P2SVpnGateway"]: - """Lists all the P2SVpnGateways in a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :return: An iterator like instance of P2SVpnGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_p2_svpn_gateways_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.P2SVpnGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.P2SVpnGateway"]: - """Lists all the P2SVpnGateways in a subscription. - - :return: An iterator like instance of P2SVpnGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_p2_svpn_gateways_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.P2SVpnGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response + deserialized = _deserialize(List[_models.ExpressRouteFailoverSingleTestDetails], response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized - return AsyncItemPaged(get_next, extract_data) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - async def _reset_initial(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "peering_location", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _start_site_failover_test_initial( + self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -76766,13 +83582,14 @@ async def _reset_initial(self, resource_group_name: str, gateway_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_p2_svpn_gateways_reset_request( + _request = build_express_route_gateways_start_site_failover_test_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, + peering_location=peering_location, api_version=api_version, headers=_headers, params=_params, @@ -76815,33 +83632,49 @@ async def _reset_initial(self, resource_group_name: str, gateway_name: str, **kw return deserialized # type: ignore @distributed_trace_async - async def begin_reset( - self, resource_group_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Resets the primary of the p2s vpn gateway in the specified resource group. + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "peering_location", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_start_site_failover_test( + self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any + ) -> AsyncLROPoller[str]: + """Starts failover simulation on the ExpressRoute gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :keyword peering_location: Peering location of the test. Required. + :paramtype peering_location: str + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._reset_initial( + raw_result = await self._start_site_failover_test_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, + peering_location=peering_location, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -76852,10 +83685,14 @@ async def begin_reset( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.P2SVpnGateway, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -76871,21 +83708,35 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.P2SVpnGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _generate_vpn_profile_initial( + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _stop_site_failover_test_initial( self, resource_group_name: str, - gateway_name: str, - parameters: Union[_models.P2SVpnProfileParameters, JSON, IO[bytes]], + express_route_gateway_name: str, + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -76899,20 +83750,20 @@ async def _generate_vpn_profile_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(stop_parameters, (IOBase, bytes)): + _content = stop_parameters else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(stop_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_p2_svpn_gateways_generate_vpn_profile_request( + _request = build_express_route_gateways_stop_site_failover_test_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -76958,129 +83809,143 @@ async def _generate_vpn_profile_initial( return deserialized # type: ignore @overload - async def begin_generate_vpn_profile( + async def begin_stop_site_failover_test( self, resource_group_name: str, - gateway_name: str, - parameters: _models.P2SVpnProfileParameters, + express_route_gateway_name: str, + stop_parameters: _models.ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnProfileResponse]: - """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. + ) -> AsyncLROPoller[str]: + """Stops failover simulation on the ExpressRoute gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package - operation. Required. - :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param stop_parameters: Parameters supplied to stop the failover simulation on the express + route gateway. Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_generate_vpn_profile( + async def begin_stop_site_failover_test( self, resource_group_name: str, - gateway_name: str, - parameters: JSON, + express_route_gateway_name: str, + stop_parameters: _types.ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnProfileResponse]: - """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. + ) -> AsyncLROPoller[str]: + """Stops failover simulation on the ExpressRoute gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package - operation. Required. - :type parameters: JSON + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param stop_parameters: Parameters supplied to stop the failover simulation on the express + route gateway. Required. + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_generate_vpn_profile( + async def begin_stop_site_failover_test( self, resource_group_name: str, - gateway_name: str, - parameters: IO[bytes], + express_route_gateway_name: str, + stop_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VpnProfileResponse]: - """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. + ) -> AsyncLROPoller[str]: + """Stops failover simulation on the ExpressRoute gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package - operation. Required. - :type parameters: IO[bytes] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param stop_parameters: Parameters supplied to stop the failover simulation on the express + route gateway. Required. + :type stop_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_generate_vpn_profile( + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_stop_site_failover_test( self, resource_group_name: str, - gateway_name: str, - parameters: Union[_models.P2SVpnProfileParameters, JSON, IO[bytes]], + express_route_gateway_name: str, + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any - ) -> AsyncLROPoller[_models.VpnProfileResponse]: - """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. + ) -> AsyncLROPoller[str]: + """Stops failover simulation on the ExpressRoute gateway for the specified peering location. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package - operation. Is one of the following types: P2SVpnProfileParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse - is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :param stop_parameters: Parameters supplied to stop the failover simulation on the express + route gateway. Is either a ExpressRouteFailoverStopApiParameters type or a IO[bytes] type. + Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or + ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns str + :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VpnProfileResponse] = kwargs.pop("cls", None) + cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._generate_vpn_profile_initial( + raw_result = await self._stop_site_failover_test_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - parameters=parameters, + express_route_gateway_name=express_route_gateway_name, + stop_parameters=stop_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -77092,140 +83957,14 @@ async def begin_generate_vpn_profile( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.VpnProfileResponse, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VpnProfileResponse].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VpnProfileResponse]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _get_p2_s_vpn_connection_health_initial( - self, resource_group_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_p2_svpn_gateways_get_p2_s_vpn_connection_health_request( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_get_p2_s_vpn_connection_health( - self, resource_group_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnGateway]: - """Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified - resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns P2SVpnGateway. The P2SVpnGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_p2_s_vpn_connection_health_initial( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.P2SVpnGateway, response.json()) + deserialized = _deserialize(str, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -77241,21 +83980,34 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.P2SVpnGateway].from_continuation_token( + return AsyncLROPoller[str].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.P2SVpnGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - async def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=name-too-long + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "attempt_refresh", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _get_routes_information_initial( self, resource_group_name: str, - gateway_name: str, - request: Union[_models.P2SVpnConnectionHealthRequest, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -77266,27 +84018,18 @@ async def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=n } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_p2_svpn_gateways_get_p2_s_vpn_connection_health_detailed_request( + _request = build_express_route_gateways_get_routes_information_request( resource_group_name=resource_group_name, - gateway_name=gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -77327,136 +84070,59 @@ async def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=n return deserialized # type: ignore - @overload - async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long - self, - resource_group_name: str, - gateway_name: str, - request: _models.P2SVpnConnectionHealthRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: - """Gets the sas url to get the connection health detail of P2S clients of the virtual wan - P2SVpnGateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param request: Request parameters supplied to get p2s vpn connections detailed health. - Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The - P2SVpnConnectionHealth is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long - self, - resource_group_name: str, - gateway_name: str, - request: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: - """Gets the sas url to get the connection health detail of P2S clients of the virtual wan - P2SVpnGateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param request: Request parameters supplied to get p2s vpn connections detailed health. - Required. - :type request: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The - P2SVpnConnectionHealth is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long - self, - resource_group_name: str, - gateway_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: - """Gets the sas url to get the connection health detail of P2S clients of the virtual wan - P2SVpnGateway in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param request: Request parameters supplied to get p2s vpn connections detailed health. - Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The - P2SVpnConnectionHealth is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-long + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "attempt_refresh", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_get_routes_information( self, resource_group_name: str, - gateway_name: str, - request: Union[_models.P2SVpnConnectionHealthRequest, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[_models.P2SVpnConnectionHealth]: - """Gets the sas url to get the connection health detail of P2S clients of the virtual wan - P2SVpnGateway in the specified resource group. + ) -> AsyncLROPoller[_models.GatewayRouteSetsInformation]: + """Retrieves the route sets information for the ExpressRoute gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param gateway_name: The name of the gateway. Required. - :type gateway_name: str - :param request: Request parameters supplied to get p2s vpn connections detailed health. Is one - of the following types: P2SVpnConnectionHealthRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns P2SVpnConnectionHealth. The - P2SVpnConnectionHealth is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :keyword attempt_refresh: Whether to attempt a refresh of the route sets. Default value is + None. + :paramtype attempt_refresh: bool + :return: An instance of AsyncLROPoller that returns GatewayRouteSetsInformation. The + GatewayRouteSetsInformation is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteSetsInformation] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.P2SVpnConnectionHealth] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_p2_s_vpn_connection_health_detailed_initial( + raw_result = await self._get_routes_information_initial( resource_group_name=resource_group_name, - gateway_name=gateway_name, - request=request, + express_route_gateway_name=express_route_gateway_name, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -77466,10 +84132,14 @@ async def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): + response_headers = {} response = pipeline_response.http_response - deserialized = _deserialize(_models.P2SVpnConnectionHealth, response.json()) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.GatewayRouteSetsInformation, response.json()) if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized path_format_arguments = { @@ -77485,21 +84155,36 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.P2SVpnConnectionHealth].from_continuation_token( + return AsyncLROPoller[_models.GatewayRouteSetsInformation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.P2SVpnConnectionHealth]( + return AsyncLROPoller[_models.GatewayRouteSetsInformation]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _disconnect_p2_s_vpn_connections_initial( + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "attempt_refresh", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def _get_resiliency_information_initial( self, resource_group_name: str, - p2_s_vpn_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -77510,27 +84195,18 @@ async def _disconnect_p2_s_vpn_connections_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(request, (IOBase, bytes)): - _content = request - else: - _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_p2_svpn_gateways_disconnect_p2_s_vpn_connections_request( + _request = build_express_route_gateways_get_resiliency_information_request( resource_group_name=resource_group_name, - p2_s_vpn_gateway_name=p2_s_vpn_gateway_name, + express_route_gateway_name=express_route_gateway_name, subscription_id=self._config.subscription_id, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -77561,8 +84237,8 @@ async def _disconnect_p2_s_vpn_connections_initial( response_headers = {} if response.status_code == 202: - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -77571,129 +84247,59 @@ async def _disconnect_p2_s_vpn_connections_initial( return deserialized # type: ignore - @overload - async def begin_disconnect_p2_s_vpn_connections( - self, - resource_group_name: str, - p2_s_vpn_gateway_name: str, - request: _models.P2SVpnConnectionRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource - group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. - :type p2_s_vpn_gateway_name: str - :param request: The parameters are supplied to disconnect p2s vpn connections. Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disconnect_p2_s_vpn_connections( - self, - resource_group_name: str, - p2_s_vpn_gateway_name: str, - request: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource - group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. - :type p2_s_vpn_gateway_name: str - :param request: The parameters are supplied to disconnect p2s vpn connections. Required. - :type request: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disconnect_p2_s_vpn_connections( - self, - resource_group_name: str, - p2_s_vpn_gateway_name: str, - request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource - group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. - :type p2_s_vpn_gateway_name: str - :param request: The parameters are supplied to disconnect p2s vpn connections. Required. - :type request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_disconnect_p2_s_vpn_connections( + @api_version_validation( + method_added_on="2025-07-01", + params_added_on={ + "2025-07-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "express_route_gateway_name", + "attempt_refresh", + "accept", + ] + }, + api_versions_list=["2025-07-01", "2025-09-01"], + ) + async def begin_get_resiliency_information( self, resource_group_name: str, - p2_s_vpn_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + express_route_gateway_name: str, + *, + attempt_refresh: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource - group. + ) -> AsyncLROPoller[_models.GatewayResiliencyInformation]: + """Retrieves the resiliency information for the ExpressRoute gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. - :type p2_s_vpn_gateway_name: str - :param request: The parameters are supplied to disconnect p2s vpn connections. Is one of the - following types: P2SVpnConnectionRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. + :type express_route_gateway_name: str + :keyword attempt_refresh: Whether to attempt a refresh of the resiliency information. Default + value is None. + :paramtype attempt_refresh: bool + :return: An instance of AsyncLROPoller that returns GatewayResiliencyInformation. The + GatewayResiliencyInformation is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayResiliencyInformation] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._disconnect_p2_s_vpn_connections_initial( + raw_result = await self._get_resiliency_information_initial( resource_group_name=resource_group_name, - p2_s_vpn_gateway_name=p2_s_vpn_gateway_name, - request=request, + express_route_gateway_name=express_route_gateway_name, + attempt_refresh=attempt_refresh, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -77702,9 +84308,16 @@ async def begin_disconnect_p2_s_vpn_connections( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.GatewayResiliencyInformation, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -77719,23 +84332,25 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.GatewayResiliencyInformation].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.GatewayResiliencyInformation]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) -class ExpressRouteGatewaysOperations: # pylint: disable=too-many-public-methods +class HubRouteTablesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`express_route_gateways` attribute. + :attr:`hub_route_tables` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -77747,17 +84362,20 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any - ) -> _models.ExpressRouteGateway: - """Fetches the details of a ExpressRoute gateway in a resource group. + self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any + ) -> _models.HubRouteTable: + """Retrieves the details of a RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :return: ExpressRouteGateway. The ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ExpressRouteGateway + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str + :return: HubRouteTable. The HubRouteTable is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.HubRouteTable :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -77771,12 +84389,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) - _request = build_express_route_gateways_get_request( + _request = build_hub_route_tables_get_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -77806,266 +84425,24 @@ async def get( _models.CloudError, response, ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - express_route_gateway_name: str, - put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(put_express_route_gateway_parameters, (IOBase, bytes)): - _content = put_express_route_gateway_parameters - else: - _content = json.dumps(put_express_route_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_express_route_gateways_create_or_update_request( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - express_route_gateway_name: str, - put_express_route_gateway_parameters: _models.ExpressRouteGateway, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Creates or updates a ExpressRoute gateway in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT - operation. Required. - :type put_express_route_gateway_parameters: ~azure.mgmt.network.models.ExpressRouteGateway - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - express_route_gateway_name: str, - put_express_route_gateway_parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Creates or updates a ExpressRoute gateway in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT - operation. Required. - :type put_express_route_gateway_parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - express_route_gateway_name: str, - put_express_route_gateway_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Creates or updates a ExpressRoute gateway in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT - operation. Required. - :type put_express_route_gateway_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - express_route_gateway_name: str, - put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Creates or updates a ExpressRoute gateway in a specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT - operation. Is one of the following types: ExpressRouteGateway, JSON, IO[bytes] Required. - :type put_express_route_gateway_parameters: ~azure.mgmt.network.models.ExpressRouteGateway or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - put_express_route_gateway_parameters=put_express_route_gateway_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ExpressRouteGateway].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ExpressRouteGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - async def _update_tags_initial( + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.HubRouteTable, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - express_route_gateway_name: str, - express_route_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_hub_name: str, + route_table_name: str, + route_table_parameters: Union[_models.HubRouteTable, _types.HubRouteTable, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -78079,20 +84456,21 @@ async def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(express_route_gateway_parameters, (IOBase, bytes)): - _content = express_route_gateway_parameters + if isinstance(route_table_parameters, (IOBase, bytes)): + _content = route_table_parameters else: - _content = json.dumps(express_route_gateway_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(route_table_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_express_route_gateways_update_tags_request( + _request = build_hub_route_tables_create_or_update_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -78113,7 +84491,7 @@ async def _update_tags_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -78126,7 +84504,7 @@ async def _update_tags_initial( raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: + if response.status_code == 201: response_headers["Azure-AsyncOperation"] = self._deserialize( "str", response.headers.get("Azure-AsyncOperation") ) @@ -78140,130 +84518,144 @@ async def _update_tags_initial( return deserialized # type: ignore @overload - async def begin_update_tags( + async def begin_create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - express_route_gateway_parameters: _models.TagsObject, + virtual_hub_name: str, + route_table_name: str, + route_table_parameters: _models.HubRouteTable, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Updates express route gateway tags. + ) -> AsyncLROPoller[_models.HubRouteTable]: + """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express - route gateway tags. Required. - :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str + :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. + :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] + :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - express_route_gateway_parameters: JSON, + virtual_hub_name: str, + route_table_name: str, + route_table_parameters: _types.HubRouteTable, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Updates express route gateway tags. + ) -> AsyncLROPoller[_models.HubRouteTable]: + """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express - route gateway tags. Required. - :type express_route_gateway_parameters: JSON + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str + :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. + :type route_table_parameters: ~azure.mgmt.network.types.HubRouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] + :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_update_tags( + async def begin_create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - express_route_gateway_parameters: IO[bytes], + virtual_hub_name: str, + route_table_name: str, + route_table_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Updates express route gateway tags. + ) -> AsyncLROPoller[_models.HubRouteTable]: + """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express - route gateway tags. Required. - :type express_route_gateway_parameters: IO[bytes] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str + :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. + :type route_table_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] + :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_update_tags( + async def begin_create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - express_route_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_hub_name: str, + route_table_name: str, + route_table_parameters: Union[_models.HubRouteTable, _types.HubRouteTable, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ExpressRouteGateway]: - """Updates express route gateway tags. + ) -> AsyncLROPoller[_models.HubRouteTable]: + """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express - route gateway tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns ExpressRouteGateway. The - ExpressRouteGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteGateway] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str + :param route_table_parameters: Parameters supplied to create or update RouteTable. Is either a + HubRouteTable type or a IO[bytes] type. Required. + :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable or + ~azure.mgmt.network.types.HubRouteTable or IO[bytes] + :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_tags_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - express_route_gateway_parameters=express_route_gateway_parameters, + virtual_hub_name=virtual_hub_name, + route_table_name=route_table_name, + route_table_parameters=route_table_parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -78276,7 +84668,7 @@ async def begin_update_tags( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ExpressRouteGateway, response.json()) + deserialized = _deserialize(_models.HubRouteTable, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -78294,18 +84686,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.ExpressRouteGateway].from_continuation_token( + return AsyncLROPoller[_models.HubRouteTable].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.ExpressRouteGateway]( + return AsyncLROPoller[_models.HubRouteTable]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) async def _delete_initial( - self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -78318,12 +84710,13 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_express_route_gateways_delete_request( + _request = build_hub_route_tables_delete_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + route_table_name=route_table_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -78368,16 +84761,18 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, express_route_gateway_name: str, **kwargs: Any + self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway - resource can only be deleted when there are no connection subresources. + """Deletes a RouteTable. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param route_table_name: The name of the resource that is unique within a resource group. This + name can be used to access the resource. Required. + :type route_table_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -78385,7 +84780,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -78393,7 +84788,8 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + route_table_name=route_table_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -78428,82 +84824,27 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace_async - async def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> _models.ExpressRouteGatewayList: - """Lists ExpressRoute gateways in a given resource group. + @distributed_trace + def list( + self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.HubRouteTable"]: + """Retrieves the details of all RouteTables. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: ExpressRouteGatewayList. The ExpressRouteGatewayList is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ExpressRouteGatewayList + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :return: An iterator like instance of HubRouteTable + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.HubRouteTable] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) - - _request = build_express_route_gateways_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.ExpressRouteGatewayList, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_by_subscription(self, **kwargs: Any) -> _models.ExpressRouteGatewayList: - """Lists ExpressRoute gateways under a given subscription. + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.HubRouteTable]] = kwargs.pop("cls", None) - :return: ExpressRouteGatewayList. The ExpressRouteGatewayList is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ExpressRouteGatewayList - :raises ~azure.core.exceptions.HttpResponseError: - """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -78512,261 +84853,167 @@ async def list_by_subscription(self, **kwargs: Any) -> _models.ExpressRouteGatew } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) + def prepare_request(next_link=None): + if not next_link: - _request = build_express_route_gateways_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_hub_route_tables_list_request( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - response = pipeline_response.http_response + return _request - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.HubRouteTable], + deserialized.get("value", []), ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.ExpressRouteGatewayList, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "type", - "fetch_latest", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _get_failover_all_tests_details_initial( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - type: Optional[str] = None, - fetch_latest: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + async def get_next(next_link=None): + _request = prepare_request(next_link) - _request = build_express_route_gateways_get_failover_all_tests_details_request( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - subscription_id=self._config.subscription_id, - type=type, - fetch_latest=fetch_latest, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response = pipeline_response.http_response + return pipeline_response - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + return AsyncItemPaged(get_next, extract_data) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() +class ConnectionPoliciesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`connection_policies` attribute. + """ - return deserialized # type: ignore + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "type", - "fetch_latest", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_get_failover_all_tests_details( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - type: Optional[str] = None, - fetch_latest: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]: - """Retrieves the details of all the failover tests performed on the ExpressRoute gateway for - different peering locations. + async def get( + self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any + ) -> _models.ConnectionPolicy: + """Retrieves the details of a ConnectionPolicy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :keyword type: The type of failover test. Default value is None. - :paramtype type: str - :keyword fetch_latest: Fetch only the latest tests for each peering location. Default value is - None. - :paramtype fetch_latest: bool - :return: An instance of AsyncLROPoller that returns list of ExpressRouteFailoverTestDetails - :rtype: - ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverTestDetails]] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :return: ConnectionPolicy. The ConnectionPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionPolicy :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_failover_all_tests_details_initial( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - type=type, - fetch_latest=fetch_latest, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - deserialized = _deserialize(List[_models.ExpressRouteFailoverTestDetails], response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) + _request = build_connection_policies_get_request( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + connection_policy_name=connection_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[List[_models.ExpressRouteFailoverTestDetails]]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.ConnectionPolicy, response.json()) - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "peering_location", - "failover_test_id", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _get_failover_single_test_details_initial( # pylint: disable=name-too-long + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( self, resource_group_name: str, - express_route_gateway_name: str, - *, - peering_location: str, - failover_test_id: str, + virtual_hub_name: str, + connection_policy_name: str, + resource: Union[_models.ConnectionPolicy, _types.ConnectionPolicy, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -78777,19 +85024,28 @@ async def _get_failover_single_test_details_initial( # pylint: disable=name-too } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_express_route_gateways_get_failover_single_test_details_request( + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_connection_policies_create_or_update_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + connection_policy_name=connection_policy_name, subscription_id=self._config.subscription_id, - peering_location=peering_location, - failover_test_id=failover_test_id, api_version=api_version, + content_type=content_type, + content=_content, headers=_headers, params=_params, ) @@ -78806,7 +85062,7 @@ async def _get_failover_single_test_details_initial( # pylint: disable=name-too response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -78819,8 +85075,10 @@ async def _get_failover_single_test_details_initial( # pylint: disable=name-too raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) deserialized = response.iter_bytes() if _decompress else response.iter_raw() @@ -78830,64 +85088,147 @@ async def _get_failover_single_test_details_initial( # pylint: disable=name-too return deserialized # type: ignore - @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "peering_location", - "failover_test_id", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_get_failover_single_test_details( + @overload + async def begin_create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, + virtual_hub_name: str, + connection_policy_name: str, + resource: _models.ConnectionPolicy, *, - peering_location: str, - failover_test_id: str, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]: - """Retrieves the details of a particular failover test performed on the ExpressRoute gateway based - on the test Guid. + ) -> AsyncLROPoller[_models.ConnectionPolicy]: + """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :keyword peering_location: Peering location of the test. Required. - :paramtype peering_location: str - :keyword failover_test_id: The unique Guid value which identifies the test. Required. - :paramtype failover_test_id: str - :return: An instance of AsyncLROPoller that returns list of - ExpressRouteFailoverSingleTestDetails - :rtype: - ~azure.core.polling.AsyncLROPoller[list[~azure.mgmt.network.models.ExpressRouteFailoverSingleTestDetails]] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. + :type resource: ~azure.mgmt.network.models.ConnectionPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_hub_name: str, + connection_policy_name: str, + resource: _types.ConnectionPolicy, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectionPolicy]: + """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. + :type resource: ~azure.mgmt.network.types.ConnectionPolicy + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_hub_name: str, + connection_policy_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectionPolicy]: + """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + virtual_hub_name: str, + connection_policy_name: str, + resource: Union[_models.ConnectionPolicy, _types.ConnectionPolicy, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.ConnectionPolicy]: + """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :param resource: Parameters supplied to create or update a ConnectionPolicy. Is either a + ConnectionPolicy type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.ConnectionPolicy or + ~azure.mgmt.network.types.ConnectionPolicy or IO[bytes] + :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_failover_single_test_details_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - peering_location=peering_location, - failover_test_id=failover_test_id, + virtual_hub_name=virtual_hub_name, + connection_policy_name=connection_policy_name, + resource=resource, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -78897,14 +85238,10 @@ async def begin_get_failover_single_test_details( kwargs.pop("error_map", None) def get_long_running_output(pipeline_response): - response_headers = {} response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(List[_models.ExpressRouteFailoverSingleTestDetails], response.json()) + deserialized = _deserialize(_models.ConnectionPolicy, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized path_format_arguments = { @@ -78920,32 +85257,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]].from_continuation_token( + return AsyncLROPoller[_models.ConnectionPolicy].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[List[_models.ExpressRouteFailoverSingleTestDetails]]( + return AsyncLROPoller[_models.ConnectionPolicy]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "peering_location", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _start_site_failover_test_initial( - self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any + async def _delete_initial( + self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -78958,14 +85281,14 @@ async def _start_site_failover_test_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_express_route_gateways_start_site_failover_test_request( + _request = build_connection_policies_delete_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + virtual_hub_name=virtual_hub_name, + connection_policy_name=connection_policy_name, subscription_id=self._config.subscription_id, - peering_location=peering_location, api_version=api_version, headers=_headers, params=_params, @@ -78983,7 +85306,7 @@ async def _start_site_failover_test_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -79008,49 +85331,36 @@ async def _start_site_failover_test_initial( return deserialized # type: ignore @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "peering_location", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_start_site_failover_test( - self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any - ) -> AsyncLROPoller[str]: - """Starts failover simulation on the ExpressRoute gateway for the specified peering location. + async def begin_delete( + self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a ConnectionPolicy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :keyword peering_location: Peering location of the test. Required. - :paramtype peering_location: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :param connection_policy_name: The name of the ConnectionPolicy that is unique within a + VirtualHub. This name can be used to access the resource. Required. + :type connection_policy_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[str] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._start_site_failover_test_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - peering_location=peering_location, + virtual_hub_name=virtual_hub_name, + connection_policy_name=connection_policy_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -79060,16 +85370,9 @@ async def begin_start_site_failover_test( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -79084,35 +85387,35 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[str].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ConnectionPolicy"]: + """Retrieves the details of all ConnectionPolicies. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. Required. + :type virtual_hub_name: str + :return: An iterator like instance of ConnectionPolicy + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ConnectionPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ConnectionPolicy]] = kwargs.pop("cls", None) - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _stop_site_failover_test_initial( - self, - resource_group_name: str, - express_route_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -79121,27 +85424,119 @@ async def _stop_site_failover_test_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + def prepare_request(next_link=None): + if not next_link: - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + _request = build_connection_policies_list_request( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - content_type = content_type or "application/json" - _content = None - if isinstance(stop_parameters, (IOBase, bytes)): - _content = stop_parameters - else: - _content = json.dumps(stop_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _request = build_express_route_gateways_stop_site_failover_test_request( + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectionPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class WebApplicationFirewallPoliciesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`web_application_firewall_policies` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, policy_name: str, **kwargs: Any + ) -> _models.WebApplicationFirewallPolicy: + """Retrieve protection policy with specified name within a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param policy_name: The name of the policy. Required. + :type policy_name: str + :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) + + _request = build_web_application_firewall_policies_get_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + policy_name=policy_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -79151,18 +85546,19 @@ async def _stop_site_failover_test_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -79170,218 +85566,193 @@ async def _stop_site_failover_test_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.WebApplicationFirewallPolicy, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - async def begin_stop_site_failover_test( + async def create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - stop_parameters: _models.ExpressRouteFailoverStopApiParameters, + policy_name: str, + parameters: _models.WebApplicationFirewallPolicy, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops failover simulation on the ExpressRoute gateway for the specified peering location. + ) -> _models.WebApplicationFirewallPolicy: + """Creates or update policy with specified rule set name within a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param stop_parameters: Parameters supplied to stop the failover simulation on the express - route gateway. Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters + :param policy_name: The name of the policy. Required. + :type policy_name: str + :param parameters: Policy to be created. Required. + :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_site_failover_test( + async def create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - stop_parameters: JSON, + policy_name: str, + parameters: _types.WebApplicationFirewallPolicy, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops failover simulation on the ExpressRoute gateway for the specified peering location. + ) -> _models.WebApplicationFirewallPolicy: + """Creates or update policy with specified rule set name within a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param stop_parameters: Parameters supplied to stop the failover simulation on the express - route gateway. Required. - :type stop_parameters: JSON + :param policy_name: The name of the policy. Required. + :type policy_name: str + :param parameters: Policy to be created. Required. + :type parameters: ~azure.mgmt.network.types.WebApplicationFirewallPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_stop_site_failover_test( + async def create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - stop_parameters: IO[bytes], + policy_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops failover simulation on the ExpressRoute gateway for the specified peering location. + ) -> _models.WebApplicationFirewallPolicy: + """Creates or update policy with specified rule set name within a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param stop_parameters: Parameters supplied to stop the failover simulation on the express - route gateway. Required. - :type stop_parameters: IO[bytes] + :param policy_name: The name of the policy. Required. + :type policy_name: str + :param parameters: Policy to be created. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "content_type", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_stop_site_failover_test( + async def create_or_update( self, resource_group_name: str, - express_route_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + policy_name: str, + parameters: Union[_models.WebApplicationFirewallPolicy, _types.WebApplicationFirewallPolicy, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[str]: - """Stops failover simulation on the ExpressRoute gateway for the specified peering location. + ) -> _models.WebApplicationFirewallPolicy: + """Creates or update policy with specified rule set name within a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :param stop_parameters: Parameters supplied to stop the failover simulation on the express - route gateway. Is one of the following types: ExpressRouteFailoverStopApiParameters, JSON, - IO[bytes] Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or JSON - or IO[bytes] - :return: An instance of AsyncLROPoller that returns str - :rtype: ~azure.core.polling.AsyncLROPoller[str] + :param policy_name: The name of the policy. Required. + :type policy_name: str + :param parameters: Policy to be created. Is either a WebApplicationFirewallPolicy type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy or + ~azure.mgmt.network.types.WebApplicationFirewallPolicy or IO[bytes] + :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with + MutableMapping + :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[str] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_site_failover_test_initial( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - stop_parameters=stop_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) - deserialized = _deserialize(str, response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_web_application_firewall_policies_create_or_update_request( + resource_group_name=resource_group_name, + policy_name=policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[str].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + deserialized = _deserialize(_models.WebApplicationFirewallPolicy, response.json()) - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "attempt_refresh", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _get_routes_information_initial( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _delete_initial(self, resource_group_name: str, policy_name: str, **kwargs: Any) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -79393,14 +85764,13 @@ async def _get_routes_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_express_route_gateways_get_routes_information_request( + _request = build_web_application_firewall_policies_delete_request( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, + policy_name=policy_name, subscription_id=self._config.subscription_id, - attempt_refresh=attempt_refresh, api_version=api_version, headers=_headers, params=_params, @@ -79418,7 +85788,7 @@ async def _get_routes_information_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200, 202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -79443,57 +85813,30 @@ async def _get_routes_information_initial( return deserialized # type: ignore @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "attempt_refresh", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_get_routes_information( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteSetsInformation]: - """Retrieves the route sets information for the ExpressRoute gateway. + async def begin_delete(self, resource_group_name: str, policy_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Deletes Policy. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :keyword attempt_refresh: Whether to attempt a refresh of the route sets. Default value is - None. - :paramtype attempt_refresh: bool - :return: An instance of AsyncLROPoller that returns GatewayRouteSetsInformation. The - GatewayRouteSetsInformation is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayRouteSetsInformation] + :param policy_name: The name of the policy. Required. + :type policy_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._get_routes_information_initial( + raw_result = await self._delete_initial( resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - attempt_refresh=attempt_refresh, + policy_name=policy_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -79503,16 +85846,9 @@ async def begin_get_routes_information( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(_models.GatewayRouteSetsInformation, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -79527,38 +85863,32 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.GatewayRouteSetsInformation].from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.GatewayRouteSetsInformation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.WebApplicationFirewallPolicy"]: + """Lists all of the protection policies within a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of WebApplicationFirewallPolicy + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.WebApplicationFirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "attempt_refresh", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def _get_resiliency_information_initial( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -79567,162 +85897,155 @@ async def _get_resiliency_information_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + def prepare_request(next_link=None): + if not next_link: - _request = build_express_route_gateways_get_resiliency_information_request( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - subscription_id=self._config.subscription_id, - attempt_refresh=attempt_refresh, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _request = build_web_application_firewall_policies_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - response = pipeline_response.http_response + return _request - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WebApplicationFirewallPolicy], + deserialized.get("value", []), ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + async def get_next(next_link=None): + _request = prepare_request(next_link) - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return deserialized # type: ignore + return pipeline_response - @distributed_trace_async - @api_version_validation( - method_added_on="2025-07-01", - params_added_on={ - "2025-07-01": [ - "api_version", - "subscription_id", - "resource_group_name", - "express_route_gateway_name", - "attempt_refresh", - "accept", - ] - }, - api_versions_list=["2025-07-01"], - ) - async def begin_get_resiliency_information( - self, - resource_group_name: str, - express_route_gateway_name: str, - *, - attempt_refresh: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResiliencyInformation]: - """Retrieves the resiliency information for the ExpressRoute gateway. + return AsyncItemPaged(get_next, extract_data) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. - :type express_route_gateway_name: str - :keyword attempt_refresh: Whether to attempt a refresh of the resiliency information. Default - value is None. - :paramtype attempt_refresh: bool - :return: An instance of AsyncLROPoller that returns GatewayResiliencyInformation. The - GatewayResiliencyInformation is compatible with MutableMapping + @distributed_trace + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.WebApplicationFirewallPolicy"]: + """Gets all the WAF policies in a subscription. + + :return: An iterator like instance of WebApplicationFirewallPolicy :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.GatewayResiliencyInformation] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.WebApplicationFirewallPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_resiliency_information_initial( - resource_group_name=resource_group_name, - express_route_gateway_name=express_route_gateway_name, - attempt_refresh=attempt_refresh, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_web_application_firewall_policies_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.WebApplicationFirewallPolicy], + deserialized.get("value", []), ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - def get_long_running_output(pipeline_response): - response_headers = {} + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - deserialized = _deserialize(_models.GatewayResiliencyInformation, response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + return pipeline_response - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResiliencyInformation].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResiliencyInformation]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return AsyncItemPaged(get_next, extract_data) -class HubRouteTablesOperations: +class VirtualNetworkAppliancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`hub_route_tables` attribute. + :attr:`virtual_network_appliances` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -79734,20 +86057,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any - ) -> _models.HubRouteTable: - """Retrieves the details of a RouteTable. + self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any + ) -> _models.VirtualNetworkAppliance: + """Gets information about the specified virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str - :return: HubRouteTable. The HubRouteTable is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.HubRouteTable + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -79761,13 +86081,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) - _request = build_hub_route_tables_get_request( + _request = build_virtual_network_appliances_get_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_table_name=route_table_name, + virtual_network_appliance_name=virtual_network_appliance_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -79802,7 +86121,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.HubRouteTable, response.json()) + deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -79812,9 +86131,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_hub_name: str, - route_table_name: str, - route_table_parameters: Union[_models.HubRouteTable, JSON, IO[bytes]], + virtual_network_appliance_name: str, + parameters: Union[_models.VirtualNetworkAppliance, _types.VirtualNetworkAppliance, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -79828,21 +86146,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(route_table_parameters, (IOBase, bytes)): - _content = route_table_parameters + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(route_table_parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_hub_route_tables_create_or_update_request( + _request = build_virtual_network_appliances_create_or_update_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_table_name=route_table_name, + virtual_network_appliance_name=virtual_network_appliance_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -79893,31 +86210,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - route_table_name: str, - route_table_parameters: _models.HubRouteTable, + virtual_network_appliance_name: str, + parameters: _models.VirtualNetworkAppliance, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.HubRouteTable]: - """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: + """Creates or updates a virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str - :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. - :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to the create or update virtual network appliance + operation. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] + :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The + VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -79925,31 +86239,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - route_table_name: str, - route_table_parameters: JSON, + virtual_network_appliance_name: str, + parameters: _types.VirtualNetworkAppliance, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.HubRouteTable]: - """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: + """Creates or updates a virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str - :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. - :type route_table_parameters: JSON + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to the create or update virtual network appliance + operation. Required. + :type parameters: ~azure.mgmt.network.types.VirtualNetworkAppliance :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] + :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The + VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -79957,31 +86268,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - route_table_name: str, - route_table_parameters: IO[bytes], + virtual_network_appliance_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.HubRouteTable]: - """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: + """Creates or updates a virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str - :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. - :type route_table_parameters: IO[bytes] + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to the create or update virtual network appliance + operation. Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] + :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The + VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -79989,44 +86297,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - route_table_name: str, - route_table_parameters: Union[_models.HubRouteTable, JSON, IO[bytes]], + virtual_network_appliance_name: str, + parameters: Union[_models.VirtualNetworkAppliance, _types.VirtualNetworkAppliance, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.HubRouteTable]: - """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. + ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: + """Creates or updates a virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str - :param route_table_parameters: Parameters supplied to create or update RouteTable. Is one of - the following types: HubRouteTable, JSON, IO[bytes] Required. - :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns HubRouteTable. The HubRouteTable is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubRouteTable] + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to the create or update virtual network appliance + operation. Is either a VirtualNetworkAppliance type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance or + ~azure.mgmt.network.types.VirtualNetworkAppliance or IO[bytes] + :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The + VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) + cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_table_name=route_table_name, - route_table_parameters=route_table_parameters, + virtual_network_appliance_name=virtual_network_appliance_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -80039,7 +86343,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.HubRouteTable, response.json()) + deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -80057,18 +86361,190 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.HubRouteTable].from_continuation_token( + return AsyncLROPoller[_models.VirtualNetworkAppliance].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.HubRouteTable]( + return AsyncLROPoller[_models.VirtualNetworkAppliance]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @overload + async def update_tags( + self, + resource_group_name: str, + virtual_network_appliance_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkAppliance: + """Updates a virtual network appliance tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to update virtual network appliance tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + virtual_network_appliance_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkAppliance: + """Updates a virtual network appliance tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to update virtual network appliance tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_tags( + self, + resource_group_name: str, + virtual_network_appliance_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.VirtualNetworkAppliance: + """Updates a virtual network appliance tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to update virtual network appliance tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_tags( + self, + resource_group_name: str, + virtual_network_appliance_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.VirtualNetworkAppliance: + """Updates a virtual network appliance tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str + :param parameters: Parameters supplied to update virtual network appliance tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_network_appliances_update_tags_request( + resource_group_name=resource_group_name, + virtual_network_appliance_name=virtual_network_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + async def _delete_initial( - self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any + self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -80081,13 +86557,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_hub_route_tables_delete_request( + _request = build_virtual_network_appliances_delete_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_table_name=route_table_name, + virtual_network_appliance_name=virtual_network_appliance_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -80106,7 +86581,7 @@ async def _delete_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -80132,18 +86607,15 @@ async def _delete_initial( @distributed_trace_async async def begin_delete( - self, resource_group_name: str, virtual_hub_name: str, route_table_name: str, **kwargs: Any + self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Deletes a RouteTable. + """Deletes the specified virtual network appliance. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param route_table_name: The name of the resource that is unique within a resource group. This - name can be used to access the resource. Required. - :type route_table_name: str + :param virtual_network_appliance_name: The name of the virtual network appliance. Required. + :type virtual_network_appliance_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -80151,7 +86623,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -80159,8 +86631,7 @@ async def begin_delete( if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - route_table_name=route_table_name, + virtual_network_appliance_name=virtual_network_appliance_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -80174,47 +86645,126 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- if cls: return cls(pipeline_response, None, {}) # type: ignore - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkAppliance"]: + """Gets all virtual network appliances in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of VirtualNetworkAppliance + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkAppliance] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_network_appliances_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.VirtualNetworkAppliance], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list( - self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.HubRouteTable"]: - """Retrieves the details of all RouteTables. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkAppliance"]: + """Gets all virtual network appliances in a subscription. - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :return: An iterator like instance of HubRouteTable - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.HubRouteTable] + :return: An iterator like instance of VirtualNetworkAppliance + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkAppliance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.HubRouteTable]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -80227,9 +86777,7 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_hub_route_tables_list_request( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, + _request = build_virtual_network_appliances_list_all_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -80256,7 +86804,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.HubRouteTable], + List[_models.VirtualNetworkAppliance], deserialized.get("value", []), ) if cls: @@ -80285,14 +86833,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ConnectionPoliciesOperations: +class ServiceGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`connection_policies` attribute. + :attr:`service_gateways` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -80303,21 +86851,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any - ) -> _models.ConnectionPolicy: - """Retrieves the details of a ConnectionPolicy. + async def get(self, resource_group_name: str, service_gateway_name: str, **kwargs: Any) -> _models.ServiceGateway: + """Gets the specified service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :return: ConnectionPolicy. The ConnectionPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ConnectionPolicy + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -80331,13 +86874,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) - _request = build_connection_policies_get_request( + _request = build_service_gateways_get_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - connection_policy_name=connection_policy_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -80372,7 +86914,7 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ConnectionPolicy, response.json()) + deserialized = _deserialize(_models.ServiceGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -80382,9 +86924,8 @@ async def get( async def _create_or_update_initial( self, resource_group_name: str, - virtual_hub_name: str, - connection_policy_name: str, - resource: Union[_models.ConnectionPolicy, JSON, IO[bytes]], + service_gateway_name: str, + parameters: Union[_models.ServiceGateway, _types.ServiceGateway, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -80398,21 +86939,20 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource + if isinstance(parameters, (IOBase, bytes)): + _content = parameters else: - _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_connection_policies_create_or_update_request( + _request = build_service_gateways_create_or_update_request( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - connection_policy_name=connection_policy_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -80463,31 +87003,28 @@ async def _create_or_update_initial( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - connection_policy_name: str, - resource: _models.ConnectionPolicy, + service_gateway_name: str, + parameters: _models.ServiceGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionPolicy]: - """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.ServiceGateway]: + """Creates or updates a service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. - :type resource: ~azure.mgmt.network.models.ConnectionPolicy + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to the create or update service gateway operation. + Required. + :type parameters: ~azure.mgmt.network.models.ServiceGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -80495,31 +87032,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - connection_policy_name: str, - resource: JSON, + service_gateway_name: str, + parameters: _types.ServiceGateway, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionPolicy]: - """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.ServiceGateway]: + """Creates or updates a service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. - :type resource: JSON + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to the create or update service gateway operation. + Required. + :type parameters: ~azure.mgmt.network.types.ServiceGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -80527,31 +87061,28 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - connection_policy_name: str, - resource: IO[bytes], + service_gateway_name: str, + parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionPolicy]: - """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.ServiceGateway]: + """Creates or updates a service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. - :type resource: IO[bytes] + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to the create or update service gateway operation. + Required. + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -80559,44 +87090,40 @@ async def begin_create_or_update( async def begin_create_or_update( self, resource_group_name: str, - virtual_hub_name: str, - connection_policy_name: str, - resource: Union[_models.ConnectionPolicy, JSON, IO[bytes]], + service_gateway_name: str, + parameters: Union[_models.ServiceGateway, _types.ServiceGateway, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ConnectionPolicy]: - """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. + ) -> AsyncLROPoller[_models.ServiceGateway]: + """Creates or updates a service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :param resource: Parameters supplied to create or update a ConnectionPolicy. Is one of the - following types: ConnectionPolicy, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.network.models.ConnectionPolicy or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ConnectionPolicy. The ConnectionPolicy is + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to the create or update service gateway operation. Is + either a ServiceGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceGateway or + ~azure.mgmt.network.types.ServiceGateway or IO[bytes] + :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ConnectionPolicy] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - connection_policy_name=connection_policy_name, - resource=resource, + service_gateway_name=service_gateway_name, + parameters=parameters, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -80609,448 +87136,136 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.ConnectionPolicy, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConnectionPolicy].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConnectionPolicy]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_connection_policies_delete_request( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - connection_policy_name=connection_policy_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes a ConnectionPolicy. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :param connection_policy_name: The name of the ConnectionPolicy that is unique within a - VirtualHub. This name can be used to access the resource. Required. - :type connection_policy_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - connection_policy_name=connection_policy_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ConnectionPolicy"]: - """Retrieves the details of all ConnectionPolicies. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_hub_name: The name of the VirtualHub. Required. - :type virtual_hub_name: str - :return: An iterator like instance of ConnectionPolicy - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ConnectionPolicy] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ConnectionPolicy]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_connection_policies_list_request( - resource_group_name=resource_group_name, - virtual_hub_name=virtual_hub_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ConnectionPolicy], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - -class WebApplicationFirewallPoliciesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`web_application_firewall_policies` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, policy_name: str, **kwargs: Any - ) -> _models.WebApplicationFirewallPolicy: - """Retrieve protection policy with specified name within a resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str - :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) - - _request = build_web_application_firewall_policies_get_request( - resource_group_name=resource_group_name, - policy_name=policy_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.WebApplicationFirewallPolicy, response.json()) + deserialized = _deserialize(_models.ServiceGateway, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } - return deserialized # type: ignore + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.ServiceGateway].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.ServiceGateway]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - policy_name: str, - parameters: _models.WebApplicationFirewallPolicy, + service_gateway_name: str, + parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.WebApplicationFirewallPolicy: - """Creates or update policy with specified rule set name within a resource group. + ) -> _models.ServiceGateway: + """Updates a service gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str - :param parameters: Policy to be created. Required. - :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to update service gateway tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - policy_name: str, - parameters: JSON, + service_gateway_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.WebApplicationFirewallPolicy: - """Creates or update policy with specified rule set name within a resource group. + ) -> _models.ServiceGateway: + """Updates a service gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str - :param parameters: Policy to be created. Required. - :type parameters: JSON + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to update service gateway tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def update_tags( self, resource_group_name: str, - policy_name: str, + service_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.WebApplicationFirewallPolicy: - """Creates or update policy with specified rule set name within a resource group. + ) -> _models.ServiceGateway: + """Updates a service gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str - :param parameters: Policy to be created. Required. + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to update service gateway tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def update_tags( self, resource_group_name: str, - policy_name: str, - parameters: Union[_models.WebApplicationFirewallPolicy, JSON, IO[bytes]], + service_gateway_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.WebApplicationFirewallPolicy: - """Creates or update policy with specified rule set name within a resource group. + ) -> _models.ServiceGateway: + """Updates a service gateway tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str - :param parameters: Policy to be created. Is one of the following types: - WebApplicationFirewallPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy or JSON or IO[bytes] - :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with - MutableMapping - :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to update service gateway tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -81064,9 +87279,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -81075,9 +87290,9 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_web_application_firewall_policies_create_or_update_request( + _request = build_service_gateways_update_tags_request( resource_group_name=resource_group_name, - policy_name=policy_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -81098,7 +87313,7 @@ async def create_or_update( response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200]: if _stream: try: await response.read() # Load the body in memory and close the socket @@ -81114,14 +87329,16 @@ async def create_or_update( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.WebApplicationFirewallPolicy, response.json()) + deserialized = _deserialize(_models.ServiceGateway, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial(self, resource_group_name: str, policy_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + async def _delete_initial( + self, resource_group_name: str, service_gateway_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -81133,12 +87350,12 @@ async def _delete_initial(self, resource_group_name: str, policy_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_web_application_firewall_policies_delete_request( + _request = build_service_gateways_delete_request( resource_group_name=resource_group_name, - policy_name=policy_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -81157,7 +87374,7 @@ async def _delete_initial(self, resource_group_name: str, policy_name: str, **kw response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -81182,14 +87399,16 @@ async def _delete_initial(self, resource_group_name: str, policy_name: str, **kw return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, policy_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Deletes Policy. + async def begin_delete( + self, resource_group_name: str, service_gateway_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param policy_name: The name of the policy. Required. - :type policy_name: str + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -81197,7 +87416,7 @@ async def begin_delete(self, resource_group_name: str, policy_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -81205,7 +87424,7 @@ async def begin_delete(self, resource_group_name: str, policy_name: str, **kwarg if cont_token is None: raw_result = await self._delete_initial( resource_group_name=resource_group_name, - policy_name=policy_name, + service_gateway_name=service_gateway_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -81241,22 +87460,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.WebApplicationFirewallPolicy"]: - """Lists all of the protection policies within a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.ServiceGateway"]: + """Gets all the service gateways in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of WebApplicationFirewallPolicy - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.WebApplicationFirewallPolicy] + :return: An iterator like instance of ServiceGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -81269,7 +87487,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_web_application_firewall_policies_list_request( + _request = build_service_gateways_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -81297,7 +87515,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.WebApplicationFirewallPolicy], + List[_models.ServiceGateway], deserialized.get("value", []), ) if cls: @@ -81326,19 +87544,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.WebApplicationFirewallPolicy"]: - """Gets all the WAF policies in a subscription. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.ServiceGateway"]: + """Gets all the service gateways in a subscription. - :return: An iterator like instance of WebApplicationFirewallPolicy - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.WebApplicationFirewallPolicy] + :return: An iterator like instance of ServiceGateway + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGateway] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -81351,7 +87568,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.WebApplicationFirew def prepare_request(next_link=None): if not next_link: - _request = build_web_application_firewall_policies_list_all_request( + _request = build_service_gateways_list_all_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -81378,7 +87595,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.WebApplicationFirewallPolicy], + List[_models.ServiceGateway], deserialized.get("value", []), ) if cls: @@ -81406,440 +87623,393 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - -class VirtualNetworkAppliancesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`virtual_network_appliances` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any - ) -> _models.VirtualNetworkAppliance: - """Gets information about the specified virtual network appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) - - _request = build_virtual_network_appliances_get_request( - resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( + @overload + async def update_address_locations( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: Union[_models.VirtualNetworkAppliance, JSON, IO[bytes]], + service_gateway_name: str, + parameters: _models.ServiceGatewayUpdateAddressLocationsRequest, + *, + content_type: str = "application/json", **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_virtual_network_appliances_create_or_update_request( - resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates or updates address locations within the service gateway. - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + The request supports both full and partial update modes at two levels: location and address. - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + Full update replaces all existing data. - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + Partial update modifies only the specified entries: - return deserialized # type: ignore + For location-level partial updates, if no address is provided, the existing address will be + deleted. - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - virtual_network_appliance_name: str, - parameters: _models.VirtualNetworkAppliance, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: - """Creates or updates a virtual network appliance. + For address-level partial updates, if no services are provided, the existing services will be + considered for deletion. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to the create or update virtual network appliance + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update address locations in service gateway operation. Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance + :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The - VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def update_address_locations( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: JSON, + service_gateway_name: str, + parameters: _types.ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: - """Creates or updates a virtual network appliance. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates or updates address locations within the service gateway. + + The request supports both full and partial update modes at two levels: location and address. + + Full update replaces all existing data. + + Partial update modifies only the specified entries: + + For location-level partial updates, if no address is provided, the existing address will be + deleted. + + For address-level partial updates, if no services are provided, the existing services will be + considered for deletion. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to the create or update virtual network appliance + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update address locations in service gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ServiceGatewayUpdateAddressLocationsRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The - VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def update_address_locations( self, resource_group_name: str, - virtual_network_appliance_name: str, + service_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: - """Creates or updates a virtual network appliance. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates or updates address locations within the service gateway. + + The request supports both full and partial update modes at two levels: location and address. + + Full update replaces all existing data. + + Partial update modifies only the specified entries: + + For location-level partial updates, if no address is provided, the existing address will be + deleted. + + For address-level partial updates, if no services are provided, the existing services will be + considered for deletion. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to the create or update virtual network appliance + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update address locations in service gateway operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The - VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "service_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def update_address_locations( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: Union[_models.VirtualNetworkAppliance, JSON, IO[bytes]], + service_gateway_name: str, + parameters: Union[ + _models.ServiceGatewayUpdateAddressLocationsRequest, + _types.ServiceGatewayUpdateAddressLocationsRequest, + IO[bytes], + ], **kwargs: Any - ) -> AsyncLROPoller[_models.VirtualNetworkAppliance]: - """Creates or updates a virtual network appliance. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates or updates address locations within the service gateway. + + The request supports both full and partial update modes at two levels: location and address. + + Full update replaces all existing data. + + Partial update modifies only the specified entries: + + For location-level partial updates, if no address is provided, the existing address will be + deleted. + + For address-level partial updates, if no services are provided, the existing services will be + considered for deletion. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to the create or update virtual network appliance - operation. Is one of the following types: VirtualNetworkAppliance, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns VirtualNetworkAppliance. The - VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update address locations in service gateway + operation. Is either a ServiceGatewayUpdateAddressLocationsRequest type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest or + ~azure.mgmt.network.types.ServiceGatewayUpdateAddressLocationsRequest or IO[bytes] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.ServiceGatewayActionOkResponseBody] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_service_gateways_update_address_locations_request( + resource_group_name=resource_group_name, + service_gateway_name=service_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + response = pipeline_response.http_response - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.VirtualNetworkAppliance].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.VirtualNetworkAppliance]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.ServiceGatewayActionOkResponseBody, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload - async def update_tags( + async def update_services( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: _models.TagsObject, + service_gateway_name: str, + parameters: _models.ServiceGatewayUpdateServicesRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkAppliance: - """Updates a virtual network appliance tags. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates, updates, or deletes services within the service gateway. + The request supports both full and partial update modes at the service level. + + Full update replaces all existing services with the new list provided in the request. + Partial update modifies only the specified services. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to update virtual network appliance tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update services in service gateway + operation. Required. + :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update_services( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: JSON, + service_gateway_name: str, + parameters: _types.ServiceGatewayUpdateServicesRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkAppliance: - """Updates a virtual network appliance tags. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates, updates, or deletes services within the service gateway. + The request supports both full and partial update modes at the service level. + + Full update replaces all existing services with the new list provided in the request. + Partial update modifies only the specified services. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to update virtual network appliance tags. Required. - :type parameters: JSON + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update services in service gateway + operation. Required. + :type parameters: ~azure.mgmt.network.types.ServiceGatewayUpdateServicesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def update_services( self, resource_group_name: str, - virtual_network_appliance_name: str, + service_gateway_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.VirtualNetworkAppliance: - """Updates a virtual network appliance tags. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates, updates, or deletes services within the service gateway. + The request supports both full and partial update modes at the service level. + + Full update replaces all existing services with the new list provided in the request. + Partial update modifies only the specified services. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to update virtual network appliance tags. Required. + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update services in service gateway + operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "service_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + async def update_services( self, resource_group_name: str, - virtual_network_appliance_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + service_gateway_name: str, + parameters: Union[ + _models.ServiceGatewayUpdateServicesRequest, _types.ServiceGatewayUpdateServicesRequest, IO[bytes] + ], **kwargs: Any - ) -> _models.VirtualNetworkAppliance: - """Updates a virtual network appliance tags. + ) -> _models.ServiceGatewayActionOkResponseBody: + """Creates, updates, or deletes services within the service gateway. + The request supports both full and partial update modes at the service level. + + Full update replaces all existing services with the new list provided in the request. + Partial update modifies only the specified services. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to update virtual network appliance tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :param parameters: Parameters supplied to create or update services in service gateway + operation. Is either a ServiceGatewayUpdateServicesRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest or + ~azure.mgmt.network.types.ServiceGatewayUpdateServicesRequest or IO[bytes] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -81853,9 +88023,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceGatewayActionOkResponseBody] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -81864,9 +88034,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_virtual_network_appliances_update_tags_request( + _request = build_service_gateways_update_services_request( resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -81903,153 +88073,34 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.VirtualNetworkAppliance, response.json()) + deserialized = _deserialize(_models.ServiceGatewayActionOkResponseBody, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_virtual_network_appliances_delete_request( - resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, virtual_network_appliance_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified virtual network appliance. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param virtual_network_appliance_name: The name of the virtual network appliance. Required. - :type virtual_network_appliance_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - virtual_network_appliance_name=virtual_network_appliance_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkAppliance"]: - """Gets all virtual network appliances in a resource group. + def get_address_locations( + self, resource_group_name: str, service_gateway_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ServiceGatewayAddressLocationResponse"]: + """Get address locations in service gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of VirtualNetworkAppliance + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :return: An iterator like instance of ServiceGatewayAddressLocationResponse :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkAppliance] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGatewayAddressLocationResponse] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceGatewayAddressLocationResponse]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -82062,8 +88113,9 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_appliances_list_request( + _request = build_service_gateways_get_address_locations_request( resource_group_name=resource_group_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -82090,7 +88142,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkAppliance], + List[_models.ServiceGatewayAddressLocationResponse], deserialized.get("value", []), ) if cls: @@ -82119,19 +88171,26 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkAppliance"]: - """Gets all virtual network appliances in a subscription. + def get_services( + self, resource_group_name: str, service_gateway_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ServiceGatewayService"]: + """Get Services in service gateway. - :return: An iterator like instance of VirtualNetworkAppliance + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param service_gateway_name: The name of the service gateway. Required. + :type service_gateway_name: str + :return: An iterator like instance of ServiceGatewayService :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.VirtualNetworkAppliance] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGatewayService] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ServiceGatewayService]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -82144,7 +88203,9 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.VirtualNetworkAppli def prepare_request(next_link=None): if not next_link: - _request = build_virtual_network_appliances_list_all_request( + _request = build_service_gateways_get_services_request( + resource_group_name=resource_group_name, + service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -82171,7 +88232,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.VirtualNetworkAppliance], + List[_models.ServiceGatewayService], deserialized.get("value", []), ) if cls: @@ -82200,14 +88261,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ServiceGatewaysOperations: +class InterconnectGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`service_gateways` attribute. + :attr:`interconnect_groups` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -82218,16 +88279,18 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace_async - async def get(self, resource_group_name: str, service_gateway_name: str, **kwargs: Any) -> _models.ServiceGateway: - """Gets the specified service gateway. + async def get( + self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any + ) -> _models.InterconnectGroup: + """Gets information about the specified interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceGateway + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -82241,12 +88304,12 @@ async def get(self, resource_group_name: str, service_gateway_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) - _request = build_service_gateways_get_request( + _request = build_interconnect_groups_get_request( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, + interconnect_group_name=interconnect_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -82281,279 +88344,212 @@ async def get(self, resource_group_name: str, service_gateway_name: str, **kwarg if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ServiceGateway, response.json()) + deserialized = _deserialize(_models.InterconnectGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _create_or_update_initial( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGateway, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_service_gateways_create_or_update_request( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 201: - response_headers["Azure-AsyncOperation"] = self._deserialize( - "str", response.headers.get("Azure-AsyncOperation") - ) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - service_gateway_name: str, - parameters: _models.ServiceGateway, + interconnect_group_name: str, + parameters: _models.InterconnectGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceGateway]: - """Creates or updates a service gateway. + ) -> _models.InterconnectGroup: + """Creates or updates an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or update service gateway operation. + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to the create or update interconnect group operation. Required. - :type parameters: ~azure.mgmt.network.models.ServiceGateway + :type parameters: ~azure.mgmt.network.models.InterconnectGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - service_gateway_name: str, - parameters: JSON, + interconnect_group_name: str, + parameters: _types.InterconnectGroup, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceGateway]: - """Creates or updates a service gateway. + ) -> _models.InterconnectGroup: + """Creates or updates an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or update service gateway operation. + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to the create or update interconnect group operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.InterconnectGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - service_gateway_name: str, + interconnect_group_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceGateway]: - """Creates or updates a service gateway. + ) -> _models.InterconnectGroup: + """Creates or updates an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or update service gateway operation. + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to the create or update interconnect group operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def begin_create_or_update( + async def create_or_update( self, resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGateway, JSON, IO[bytes]], + interconnect_group_name: str, + parameters: Union[_models.InterconnectGroup, _types.InterconnectGroup, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceGateway]: - """Creates or updates a service gateway. + ) -> _models.InterconnectGroup: + """Creates or updates an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or update service gateway operation. Is - one of the following types: ServiceGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ServiceGateway or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns ServiceGateway. The ServiceGateway is - compatible with MutableMapping - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ServiceGateway] + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to the create or update interconnect group operation. Is + either a InterconnectGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.InterconnectGroup or + ~azure.mgmt.network.types.InterconnectGroup or IO[bytes] + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.ServiceGateway, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_interconnect_groups_create_or_update_request( + resource_group_name=resource_group_name, + interconnect_group_name=interconnect_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceGateway].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceGateway]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + deserialized = _deserialize(_models.InterconnectGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @overload async def update_tags( self, resource_group_name: str, - service_gateway_name: str, + interconnect_group_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceGateway: - """Updates a service gateway tags. + ) -> _models.InterconnectGroup: + """Updates interconnect group tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to update service gateway tags. Required. + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to update interconnect group tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceGateway + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -82561,26 +88557,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - service_gateway_name: str, - parameters: JSON, + interconnect_group_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceGateway: - """Updates a service gateway tags. + ) -> _models.InterconnectGroup: + """Updates interconnect group tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to update service gateway tags. Required. - :type parameters: JSON + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to update interconnect group tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceGateway + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -82588,26 +88584,26 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - service_gateway_name: str, + interconnect_group_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ServiceGateway: - """Updates a service gateway tags. + ) -> _models.InterconnectGroup: + """Updates interconnect group tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to update service gateway tags. Required. + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to update interconnect group tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceGateway + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -82615,22 +88611,23 @@ async def update_tags( async def update_tags( self, resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + interconnect_group_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.ServiceGateway: - """Updates a service gateway tags. + ) -> _models.InterconnectGroup: + """Updates interconnect group tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to update service gateway tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.ServiceGateway + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param parameters: Parameters supplied to update interconnect group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -82644,9 +88641,9 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) + cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -82655,9 +88652,9 @@ async def update_tags( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_service_gateways_update_tags_request( + _request = build_interconnect_groups_update_tags_request( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, + interconnect_group_name=interconnect_group_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -82694,16 +88691,26 @@ async def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.ServiceGateway, response.json()) + deserialized = _deserialize(_models.InterconnectGroup, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - async def _delete_initial( - self, resource_group_name: str, service_gateway_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: + @distributed_trace_async + async def delete(self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any) -> None: + """Deletes the specified interconnect group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -82715,12 +88722,12 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) - _request = build_service_gateways_delete_request( + _request = build_interconnect_groups_delete_request( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, + interconnect_group_name=interconnect_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -82731,19 +88738,14 @@ async def _delete_initial( } _request.url = self._client.format_url(_request.url, **path_format_arguments) - _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -82751,95 +88753,25 @@ async def _delete_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Deletes the specified service gateway. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.ServiceGateway"]: - """Gets all the service gateways in a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.InterconnectGroup"]: + """Gets all interconnect groups in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of ServiceGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGateway] + :return: An iterator like instance of InterconnectGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InterconnectGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -82852,7 +88784,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_service_gateways_list_request( + _request = build_interconnect_groups_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -82880,7 +88812,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ServiceGateway], + List[_models.InterconnectGroup], deserialized.get("value", []), ) if cls: @@ -82909,372 +88841,87 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.ServiceGateway"]: - """Gets all the service gateways in a subscription. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.InterconnectGroup"]: + """Gets all interconnect groups in a subscription. - :return: An iterator like instance of ServiceGateway - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGateway] + :return: An iterator like instance of InterconnectGroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InterconnectGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_service_gateways_list_all_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request - - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ServiceGateway], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) - async def _update_address_locations_initial( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateAddressLocationsRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_service_gateways_update_address_locations_request( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_address_locations( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: _models.ServiceGatewayUpdateAddressLocationsRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates or updates address locations within the service gateway. - - The request supports both full and partial update modes at two levels: location and address. - - Full update replaces all existing data. - - Partial update modifies only the specified entries: - - For location-level partial updates, if no address is provided, the existing address will be - deleted. - - For address-level partial updates, if no services are provided, the existing services will be - considered for deletion. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. - :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_address_locations( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates or updates address locations within the service gateway. - - The request supports both full and partial update modes at two levels: location and address. - - Full update replaces all existing data. - - Partial update modifies only the specified entries: - - For location-level partial updates, if no address is provided, the existing address will be - deleted. - - For address-level partial updates, if no services are provided, the existing services will be - considered for deletion. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_address_locations( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates or updates address locations within the service gateway. - - The request supports both full and partial update modes at two levels: location and address. - - Full update replaces all existing data. - - Partial update modifies only the specified entries: - - For location-level partial updates, if no address is provided, the existing address will be - deleted. - - For address-level partial updates, if no services are provided, the existing services will be - considered for deletion. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_address_locations( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateAddressLocationsRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates or updates address locations within the service gateway. + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) - The request supports both full and partial update modes at two levels: location and address. + def prepare_request(next_link=None): + if not next_link: - Full update replaces all existing data. + _request = build_interconnect_groups_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - Partial update modifies only the specified entries: + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - For location-level partial updates, if no address is provided, the existing address will be - deleted. + return _request - For address-level partial updates, if no services are provided, the existing services will be - considered for deletion. + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.InterconnectGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Is one of the following types: ServiceGatewayUpdateAddressLocationsRequest, - JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest or - JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + async def get_next(next_link=None): + _request = prepare_request(next_link) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_address_locations_initial( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + response = pipeline_response.http_response - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } + return pipeline_response - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncItemPaged(get_next, extract_data) - async def _update_services_initial( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateServicesRequest, JSON, IO[bytes]], - **kwargs: Any + async def _get_node_availability_initial( + self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -83284,27 +88931,17 @@ async def _update_services_initial( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_service_gateways_update_services_request( + _request = build_interconnect_groups_get_node_availability_request( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, + interconnect_group_name=interconnect_group_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -83321,7 +88958,7 @@ async def _update_services_initial( response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202]: try: await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -83345,146 +88982,36 @@ async def _update_services_initial( return deserialized # type: ignore - @overload - async def begin_update_services( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: _models.ServiceGatewayUpdateServicesRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates, updates, or deletes services within the service gateway. - The request supports both full and partial update modes at the service level. - - Full update replaces all existing services with the new list provided in the request. - Partial update modifies only the specified services. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway - operation. Required. - :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_services( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates, updates, or deletes services within the service gateway. - The request supports both full and partial update modes at the service level. - - Full update replaces all existing services with the new list provided in the request. - Partial update modifies only the specified services. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway - operation. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_services( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates, updates, or deletes services within the service gateway. - The request supports both full and partial update modes at the service level. - - Full update replaces all existing services with the new list provided in the request. - Partial update modifies only the specified services. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway - operation. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async - async def begin_update_services( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateServicesRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Creates, updates, or deletes services within the service gateway. - The request supports both full and partial update modes at the service level. - - Full update replaces all existing services with the new list provided in the request. - Partial update modifies only the specified services. + async def begin_get_node_availability( + self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any + ) -> AsyncLROPoller[_models.InterconnectGroupNodeAvailability]: + """Gets node availability for all subgroups in the specified interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway - operation. Is one of the following types: ServiceGatewayUpdateServicesRequest, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns None - :rtype: ~azure.core.polling.AsyncLROPoller[None] + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :return: An instance of AsyncLROPoller that returns InterconnectGroupNodeAvailability. The + InterconnectGroupNodeAvailability is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InterconnectGroupNodeAvailability] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.InterconnectGroupNodeAvailability] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = await self._update_services_initial( + raw_result = await self._get_node_availability_initial( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - parameters=parameters, + interconnect_group_name=interconnect_group_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -83493,9 +89020,12 @@ async def begin_update_services( await raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.InterconnectGroupNodeAvailability, response.json()) if cls: - return cls(pipeline_response, None, {}) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -83510,36 +89040,51 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller[None].from_continuation_token( + return AsyncLROPoller[_models.InterconnectGroupNodeAvailability].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + return AsyncLROPoller[_models.InterconnectGroupNodeAvailability]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) - @distributed_trace - def get_address_locations( - self, resource_group_name: str, service_gateway_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ServiceGatewayAddressLocationResponse"]: - """Get address locations in service gateway. + +class SubgroupsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s + :attr:`subgroups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, interconnect_group_name: str, subgroup_name: str, **kwargs: Any + ) -> _models.Subgroup: + """Gets the specified subgroup in an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :return: An iterator like instance of ServiceGatewayAddressLocationResponse - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGatewayAddressLocationResponse] + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :param subgroup_name: The name of the subgroup. Required. + :type subgroup_name: str + :return: Subgroup. The Subgroup is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.Subgroup :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceGatewayAddressLocationResponse]] = kwargs.pop("cls", None) - error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -83548,87 +89093,77 @@ def get_address_locations( } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: - - _request = build_service_gateways_get_address_locations_request( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.Subgroup] = kwargs.pop("cls", None) - return _request + _request = build_subgroups_get_request( + resource_group_name=resource_group_name, + interconnect_group_name=interconnect_group_name, + subgroup_name=subgroup_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - async def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.ServiceGatewayAddressLocationResponse], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - async def get_next(next_link=None): - _request = prepare_request(next_link) + response = pipeline_response.http_response - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - response = pipeline_response.http_response + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Subgroup, response.json()) - return pipeline_response + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - return AsyncItemPaged(get_next, extract_data) + return deserialized # type: ignore @distributed_trace - def get_services( - self, resource_group_name: str, service_gateway_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ServiceGatewayService"]: - """Get Services in service gateway. + def list( + self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.Subgroup"]: + """Gets all subgroups in an interconnect group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param service_gateway_name: The name of the service gateway. Required. - :type service_gateway_name: str - :return: An iterator like instance of ServiceGatewayService - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.ServiceGatewayService] + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :return: An iterator like instance of Subgroup + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Subgroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.ServiceGatewayService]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.Subgroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -83641,9 +89176,9 @@ def get_services( def prepare_request(next_link=None): if not next_link: - _request = build_service_gateways_get_services_request( + _request = build_subgroups_list_request( resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, + interconnect_group_name=interconnect_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -83670,7 +89205,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.ServiceGatewayService], + List[_models.Subgroup], deserialized.get("value", []), ) if cls: @@ -83699,14 +89234,14 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class InterconnectGroupsOperations: +class FirstPartyServiceTagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`interconnect_groups` attribute. + :attr:`first_party_service_tags` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -83718,17 +89253,17 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any - ) -> _models.InterconnectGroup: - """Gets information about the specified interconnect group. + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> _models.FirstPartyServiceTag: + """Gets the specified first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :return: FirstPartyServiceTag. The FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirstPartyServiceTag :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -83742,12 +89277,12 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) - _request = build_interconnect_groups_get_request( + _request = build_first_party_service_tags_get_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, + first_party_service_tag_name=first_party_service_tag_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -83777,124 +89312,268 @@ async def get( _models.CloudError, response, ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.FirstPartyServiceTag, _types.FirstPartyServiceTag, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_first_party_service_tags_create_or_update_request( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.InterconnectGroup, response.json()) + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - interconnect_group_name: str, - parameters: _models.InterconnectGroup, + first_party_service_tag_name: str, + parameters: _models.FirstPartyServiceTag, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Creates or updates an interconnect group. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to the create or update interconnect group operation. - Required. - :type parameters: ~azure.mgmt.network.models.InterconnectGroup + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. + :type parameters: ~azure.mgmt.network.models.FirstPartyServiceTag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - interconnect_group_name: str, - parameters: JSON, + first_party_service_tag_name: str, + parameters: _types.FirstPartyServiceTag, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Creates or updates an interconnect group. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to the create or update interconnect group operation. - Required. - :type parameters: JSON + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. + :type parameters: ~azure.mgmt.network.types.FirstPartyServiceTag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - interconnect_group_name: str, + first_party_service_tag_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Creates or updates an interconnect group. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to the create or update interconnect group operation. - Required. + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def create_or_update( + async def begin_create_or_update( self, resource_group_name: str, - interconnect_group_name: str, - parameters: Union[_models.InterconnectGroup, JSON, IO[bytes]], + first_party_service_tag_name: str, + parameters: Union[_models.FirstPartyServiceTag, _types.FirstPartyServiceTag, IO[bytes]], **kwargs: Any - ) -> _models.InterconnectGroup: - """Creates or updates an interconnect group. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to the create or update interconnect group operation. Is - one of the following types: InterconnectGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.InterconnectGroup or JSON or IO[bytes] - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Is either a FirstPartyServiceTag type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirstPartyServiceTag or + ~azure.mgmt.network.types.FirstPartyServiceTag or IO[bytes] + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FirstPartyServiceTag].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FirstPartyServiceTag]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_tags_initial( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -83906,9 +89585,9 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -83917,9 +89596,9 @@ async def create_or_update( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_interconnect_groups_create_or_update_request( + _request = build_first_party_service_tags_update_tags_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, + first_party_service_tag_name=first_party_service_tag_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -83933,19 +89612,18 @@ async def create_or_update( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200, 201]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -83953,119 +89631,183 @@ async def create_or_update( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.InterconnectGroup, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - interconnect_group_name: str, + first_party_service_tag_name: str, parameters: _models.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Updates interconnect group tags. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to update interconnect group tags. Required. + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. :type parameters: ~azure.mgmt.network.models.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - interconnect_group_name: str, - parameters: JSON, + first_party_service_tag_name: str, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Updates interconnect group tags. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to update interconnect group tags. Required. - :type parameters: JSON + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - interconnect_group_name: str, + first_party_service_tag_name: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.InterconnectGroup: - """Updates interconnect group tags. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to update interconnect group tags. Required. + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def update_tags( + async def begin_update_tags( self, resource_group_name: str, - interconnect_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + first_party_service_tag_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any - ) -> _models.InterconnectGroup: - """Updates interconnect group tags. + ) -> AsyncLROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param parameters: Parameters supplied to update interconnect group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.InterconnectGroup + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: An instance of AsyncLROPoller that returns FirstPartyServiceTag. The + FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_tags_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.FirstPartyServiceTag].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.FirstPartyServiceTag]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -84074,27 +89816,17 @@ async def update_tags( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - _request = build_interconnect_groups_update_tags_request( + _request = build_first_party_service_tags_delete_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, + first_party_service_tag_name=first_party_service_tag_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - content=_content, headers=_headers, params=_params, ) @@ -84104,19 +89836,18 @@ async def update_tags( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = kwargs.pop("stream", False) + _stream = True pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [200]: - if _stream: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -84124,90 +89855,96 @@ async def update_tags( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if _stream: - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - else: - deserialized = _deserialize(_models.InterconnectGroup, response.json()) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore + return cls(pipeline_response, deserialized, response_headers) # type: ignore return deserialized # type: ignore @distributed_trace_async - async def delete(self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any) -> None: - """Deletes the specified interconnect group. + async def begin_delete( + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified first party service tag. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :return: None - :rtype: None + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore - _request = build_interconnect_groups_delete_request( - resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.InterconnectGroup"]: - """Gets all interconnect groups in a resource group. + def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.FirstPartyServiceTag"]: + """Gets all the first party service tags in a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of InterconnectGroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InterconnectGroup] + :return: An iterator like instance of FirstPartyServiceTag + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirstPartyServiceTag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -84220,7 +89957,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode def prepare_request(next_link=None): if not next_link: - _request = build_interconnect_groups_list_request( + _request = build_first_party_service_tags_list_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -84248,7 +89985,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.InterconnectGroup], + List[_models.FirstPartyServiceTag], deserialized.get("value", []), ) if cls: @@ -84277,18 +90014,19 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.InterconnectGroup"]: - """Gets all interconnect groups in a subscription. + def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.FirstPartyServiceTag"]: + """Gets all the first party service tags in a subscription. - :return: An iterator like instance of InterconnectGroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.InterconnectGroup] + :return: An iterator like instance of FirstPartyServiceTag + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.FirstPartyServiceTag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirstPartyServiceTag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -84301,7 +90039,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.InterconnectGroup"] def prepare_request(next_link=None): if not next_link: - _request = build_interconnect_groups_list_all_request( + _request = build_first_party_service_tags_list_all_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -84328,7 +90066,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.InterconnectGroup], + List[_models.FirstPartyServiceTag], deserialized.get("value", []), ) if cls: @@ -84356,145 +90094,15 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - async def _get_node_availability_initial( - self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_interconnect_groups_get_node_availability_request( - resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_get_node_availability( - self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.InterconnectGroupNodeAvailability]: - """Gets node availability for all subgroups in the specified interconnect group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :return: An instance of AsyncLROPoller that returns InterconnectGroupNodeAvailability. The - InterconnectGroupNodeAvailability is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InterconnectGroupNodeAvailability] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.InterconnectGroupNodeAvailability] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._get_node_availability_initial( - resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.InterconnectGroupNodeAvailability, response.json()) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.InterconnectGroupNodeAvailability].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.InterconnectGroupNodeAvailability]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - -class SubgroupsOperations: +class AddressPrefixSetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.aio.NetworkManagementClient`'s - :attr:`subgroups` attribute. + :attr:`address_prefix_sets` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -84506,19 +90114,23 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( - self, resource_group_name: str, interconnect_group_name: str, subgroup_name: str, **kwargs: Any - ) -> _models.Subgroup: - """Gets the specified subgroup in an interconnect group. + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> _models.AddressPrefixSet: + """Gets the specified address prefix set. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :param subgroup_name: The name of the subgroup. Required. - :type subgroup_name: str - :return: Subgroup. The Subgroup is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.Subgroup + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :return: AddressPrefixSet. The AddressPrefixSet is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AddressPrefixSet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -84532,13 +90144,13 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.Subgroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.AddressPrefixSet] = kwargs.pop("cls", None) - _request = build_subgroups_get_request( + _request = build_address_prefix_sets_get_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, - subgroup_name=subgroup_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -84573,33 +90185,426 @@ async def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.Subgroup, response.json()) + deserialized = _deserialize(_models.AddressPrefixSet, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + async def _create_or_update_initial( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: Union[_models.AddressPrefixSet, _types.AddressPrefixSet, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_address_prefix_sets_create_or_update_request( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: _models.AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: ~azure.mgmt.network.models.AddressPrefixSet + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: _types.AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: ~azure.mgmt.network.types.AddressPrefixSet + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: Union[_models.AddressPrefixSet, _types.AddressPrefixSet, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. Is + either a AddressPrefixSet type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.AddressPrefixSet or + ~azure.mgmt.network.types.AddressPrefixSet or IO[bytes] + :return: An instance of AsyncLROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AddressPrefixSet] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + resource=resource, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.AddressPrefixSet, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.AddressPrefixSet].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.AddressPrefixSet]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_address_prefix_sets_delete_request( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes the specified address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @distributed_trace def list( - self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.Subgroup"]: - """Gets all subgroups in an interconnect group. + self, resource_group_name: str, application_security_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AddressPrefixSet"]: + """Gets all address prefix sets in an application security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :return: An iterator like instance of Subgroup - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.Subgroup] + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :return: An iterator like instance of AddressPrefixSet + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.AddressPrefixSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.Subgroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.AddressPrefixSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -84612,9 +90617,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_subgroups_list_request( + _request = build_address_prefix_sets_list_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, + application_security_group_name=application_security_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -84641,7 +90646,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.Subgroup], + List[_models.AddressPrefixSet], deserialized.get("value", []), ) if cls: @@ -84670,7 +90675,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ApplicationGatewayPrivateLinkResourcesOperations: # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -84706,7 +90711,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayPrivateLinkResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -84778,7 +90783,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ApplicationGatewayWafDynamicManifestsDefaultOperations: # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestsDefaultOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -84817,7 +90822,7 @@ async def get(self, location: str, **kwargs: Any) -> _models.ApplicationGatewayW _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayWafDynamicManifestResult] = kwargs.pop("cls", None) _request = build_application_gateway_waf_dynamic_manifests_default_get_request( @@ -84864,7 +90869,7 @@ async def get(self, location: str, **kwargs: Any) -> _models.ApplicationGatewayW return deserialized # type: ignore -class ApplicationGatewayWafDynamicManifestsOperations: # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -84895,7 +90900,7 @@ def get(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Applicati _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayWafDynamicManifestResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -84966,7 +90971,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class WebCategoriesOperations: +class WebCategoriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -85007,7 +91012,7 @@ async def get(self, name: str, *, expand: Optional[str] = None, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.AzureWebCategory] = kwargs.pop("cls", None) _request = build_web_categories_get_request( @@ -85065,7 +91070,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.AzureWe _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureWebCategory]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -85135,7 +91140,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteProviderPortsLocationOperations: # pylint: disable=name-too-long +class ExpressRouteProviderPortsLocationOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -85175,7 +91180,7 @@ async def list(self, *, filter: Optional[str] = None, **kwargs: Any) -> _models. _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteProviderPortListResult] = kwargs.pop("cls", None) _request = build_express_route_provider_ports_location_list_request( @@ -85222,7 +91227,7 @@ async def list(self, *, filter: Optional[str] = None, **kwargs: Any) -> _models. return deserialized # type: ignore -class NetworkInterfaceLoadBalancersOperations: +class NetworkInterfaceLoadBalancersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -85257,7 +91262,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -85329,7 +91334,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VipSwapOperations: +class VipSwapOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -85370,7 +91375,7 @@ async def get(self, group_name: str, resource_name: str, **kwargs: Any) -> _mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") cls: ClsType[_models.SwapResource] = kwargs.pop("cls", None) @@ -85423,7 +91428,7 @@ async def _create_initial( self, group_name: str, resource_name: str, - parameters: Union[_models.SwapResource, JSON, IO[bytes]], + parameters: Union[_models.SwapResource, _types.SwapResource, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -85437,7 +91442,7 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -85529,7 +91534,7 @@ async def begin_create( self, group_name: str, resource_name: str, - parameters: JSON, + parameters: _types.SwapResource, *, content_type: str = "application/json", **kwargs: Any @@ -85542,7 +91547,7 @@ async def begin_create( :type resource_name: str :param parameters: SwapResource object where slot type should be the target slot after vip swap for the specified cloud service. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SwapResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -85583,7 +91588,7 @@ async def begin_create( self, group_name: str, resource_name: str, - parameters: Union[_models.SwapResource, JSON, IO[bytes]], + parameters: Union[_models.SwapResource, _types.SwapResource, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[None]: """Performs vip swap operation on swappable cloud services. @@ -85593,9 +91598,9 @@ async def begin_create( :param resource_name: The name of the cloud service. Required. :type resource_name: str :param parameters: SwapResource object where slot type should be the target slot after vip swap - for the specified cloud service. Is one of the following types: SwapResource, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.SwapResource or JSON or IO[bytes] + for the specified cloud service. Is either a SwapResource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SwapResource or + ~azure.mgmt.network.types.SwapResource or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -85603,7 +91608,7 @@ async def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -85675,7 +91680,7 @@ async def list(self, group_name: str, resource_name: str, **kwargs: Any) -> _mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SwapResourceListResult] = kwargs.pop("cls", None) _request = build_vip_swap_list_request( @@ -85723,7 +91728,7 @@ async def list(self, group_name: str, resource_name: str, **kwargs: Any) -> _mod return deserialized # type: ignore -class CustomIPPrefixesOperations: +class CustomIPPrefixesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -85768,7 +91773,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) _request = build_custom_ip_prefixes_get_request( @@ -85820,7 +91825,7 @@ async def _create_or_update_initial( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.CustomIpPrefix, JSON, IO[bytes]], + parameters: Union[_models.CustomIpPrefix, _types.CustomIpPrefix, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -85834,7 +91839,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -85926,7 +91931,7 @@ async def begin_create_or_update( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: _types.CustomIpPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -85940,7 +91945,7 @@ async def begin_create_or_update( :type custom_ip_prefix_name: str :param parameters: Parameters supplied to the create or update custom IP prefix operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.CustomIpPrefix :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -85984,7 +91989,7 @@ async def begin_create_or_update( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.CustomIpPrefix, JSON, IO[bytes]], + parameters: Union[_models.CustomIpPrefix, _types.CustomIpPrefix, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CustomIpPrefix]: """Creates or updates a custom IP prefix. @@ -85995,8 +92000,9 @@ async def begin_create_or_update( :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str :param parameters: Parameters supplied to the create or update custom IP prefix operation. Is - one of the following types: CustomIpPrefix, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CustomIpPrefix or JSON or IO[bytes] + either a CustomIpPrefix type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CustomIpPrefix or + ~azure.mgmt.network.types.CustomIpPrefix or IO[bytes] :return: An instance of AsyncLROPoller that returns CustomIpPrefix. The CustomIpPrefix is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.CustomIpPrefix] @@ -86005,7 +92011,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -86088,7 +92094,7 @@ async def update_tags( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -86101,7 +92107,7 @@ async def update_tags( :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str :param parameters: Parameters supplied to update custom IP prefix tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -86142,7 +92148,7 @@ async def update_tags( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.CustomIpPrefix: """Updates custom IP prefix tags. @@ -86152,9 +92158,10 @@ async def update_tags( :type resource_group_name: str :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str - :param parameters: Parameters supplied to update custom IP prefix tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update custom IP prefix tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: CustomIpPrefix. The CustomIpPrefix is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.CustomIpPrefix :raises ~azure.core.exceptions.HttpResponseError: @@ -86170,7 +92177,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) @@ -86241,7 +92248,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_custom_ip_prefixes_delete_request( @@ -86307,7 +92314,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -86364,7 +92371,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.CustomIpPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -86445,7 +92452,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.CustomIpPrefix"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.CustomIpPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -86515,7 +92522,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DscpConfigurationOperations: +class DscpConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -86558,7 +92565,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DscpConfiguration] = kwargs.pop("cls", None) _request = build_dscp_configuration_get_request( @@ -86609,7 +92616,7 @@ async def _create_or_update_initial( self, resource_group_name: str, dscp_configuration_name: str, - parameters: Union[_models.DscpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.DscpConfiguration, _types.DscpConfiguration, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -86623,7 +92630,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -86715,7 +92722,7 @@ async def begin_create_or_update( self, resource_group_name: str, dscp_configuration_name: str, - parameters: JSON, + parameters: _types.DscpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -86729,7 +92736,7 @@ async def begin_create_or_update( :type dscp_configuration_name: str :param parameters: Parameters supplied to the create or update DscpConfiguration operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DscpConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -86773,7 +92780,7 @@ async def begin_create_or_update( self, resource_group_name: str, dscp_configuration_name: str, - parameters: Union[_models.DscpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.DscpConfiguration, _types.DscpConfiguration, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.DscpConfiguration]: """Creates or updates a DSCP Configuration. @@ -86784,8 +92791,9 @@ async def begin_create_or_update( :param dscp_configuration_name: The name of the resource. Required. :type dscp_configuration_name: str :param parameters: Parameters supplied to the create or update DscpConfiguration operation. Is - one of the following types: DscpConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DscpConfiguration or JSON or IO[bytes] + either a DscpConfiguration type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DscpConfiguration or + ~azure.mgmt.network.types.DscpConfiguration or IO[bytes] :return: An instance of AsyncLROPoller that returns DscpConfiguration. The DscpConfiguration is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.DscpConfiguration] @@ -86794,7 +92802,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DscpConfiguration] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -86859,7 +92867,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dscp_configuration_delete_request( @@ -86925,7 +92933,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -86982,7 +92990,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged["_mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DscpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -87063,7 +93071,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.DscpConfiguration"] _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DscpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -87133,7 +93141,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteCrossConnectionPeeringsOperations: # pylint: disable=name-too-long +class ExpressRouteCrossConnectionPeeringsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -87170,7 +93178,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnectionPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -87255,7 +93263,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connection_peerings_delete_request( @@ -87324,7 +93332,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -87397,7 +93405,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnectionPeering] = kwargs.pop("cls", None) _request = build_express_route_cross_connection_peerings_get_request( @@ -87450,7 +93458,9 @@ async def _create_or_update_initial( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCrossConnectionPeering, JSON, IO[bytes]], + peering_parameters: Union[ + _models.ExpressRouteCrossConnectionPeering, _types.ExpressRouteCrossConnectionPeering, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -87464,7 +93474,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -87564,7 +93574,7 @@ async def begin_create_or_update( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: _types.ExpressRouteCrossConnectionPeering, *, content_type: str = "application/json", **kwargs: Any @@ -87580,7 +93590,7 @@ async def begin_create_or_update( :type peering_name: str :param peering_parameters: Parameters supplied to the create or update ExpressRouteCrossConnection peering operation. Required. - :type peering_parameters: JSON + :type peering_parameters: ~azure.mgmt.network.types.ExpressRouteCrossConnectionPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -87630,7 +93640,9 @@ async def begin_create_or_update( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCrossConnectionPeering, JSON, IO[bytes]], + peering_parameters: Union[ + _models.ExpressRouteCrossConnectionPeering, _types.ExpressRouteCrossConnectionPeering, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteCrossConnectionPeering]: """Creates or updates a peering in the specified ExpressRouteCrossConnection. @@ -87643,10 +93655,10 @@ async def begin_create_or_update( :param peering_name: The name of the peering. Required. :type peering_name: str :param peering_parameters: Parameters supplied to the create or update - ExpressRouteCrossConnection peering operation. Is one of the following types: - ExpressRouteCrossConnectionPeering, JSON, IO[bytes] Required. - :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnectionPeering or JSON - or IO[bytes] + ExpressRouteCrossConnection peering operation. Is either a ExpressRouteCrossConnectionPeering + type or a IO[bytes] type. Required. + :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnectionPeering or + ~azure.mgmt.network.types.ExpressRouteCrossConnectionPeering or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteCrossConnectionPeering. The ExpressRouteCrossConnectionPeering is compatible with MutableMapping :rtype: @@ -87656,7 +93668,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnectionPeering] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -87709,7 +93721,7 @@ def get_long_running_output(pipeline_response): ) -class ExpressRouteLinksOperations: +class ExpressRouteLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -87754,7 +93766,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteLink] = kwargs.pop("cls", None) _request = build_express_route_links_get_request( @@ -87820,7 +93832,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLink]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -87892,7 +93904,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class FirewallPolicyIdpsSignaturesOperations: +class FirewallPolicyIdpsSignaturesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -87942,7 +93954,7 @@ async def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.IDPSQueryObject, *, content_type: str = "application/json", **kwargs: Any @@ -87956,7 +93968,7 @@ async def list( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.IDPSQueryObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -87998,7 +94010,7 @@ async def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.IDPSQueryObject, JSON, IO[bytes]], + parameters: Union[_models.IDPSQueryObject, _types.IDPSQueryObject, IO[bytes]], **kwargs: Any ) -> _models.QueryResults: """Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of @@ -88009,8 +94021,9 @@ async def list( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Is one of the following types: IDPSQueryObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IDPSQueryObject or JSON or IO[bytes] + :param parameters: Is either a IDPSQueryObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IDPSQueryObject or + ~azure.mgmt.network.types.IDPSQueryObject or IO[bytes] :return: QueryResults. The QueryResults is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.QueryResults :raises ~azure.core.exceptions.HttpResponseError: @@ -88026,7 +94039,7 @@ async def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.QueryResults] = kwargs.pop("cls", None) @@ -88084,7 +94097,7 @@ async def list( return deserialized # type: ignore -class FirewallPolicyIdpsSignaturesFilterValuesOperations: # pylint: disable=name-too-long +class FirewallPolicyIdpsSignaturesFilterValuesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -88134,7 +94147,7 @@ async def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.SignatureOverridesFilterValuesQuery, *, content_type: str = "application/json", **kwargs: Any @@ -88147,7 +94160,7 @@ async def list( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SignatureOverridesFilterValuesQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -88190,7 +94203,9 @@ async def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignatureOverridesFilterValuesQuery, JSON, IO[bytes]], + parameters: Union[ + _models.SignatureOverridesFilterValuesQuery, _types.SignatureOverridesFilterValuesQuery, IO[bytes] + ], **kwargs: Any ) -> _models.SignatureOverridesFilterValuesResponse: """Retrieves the current filter values for the signatures overrides. @@ -88200,10 +94215,10 @@ async def list( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Is one of the following types: SignatureOverridesFilterValuesQuery, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignatureOverridesFilterValuesQuery or JSON or - IO[bytes] + :param parameters: Is either a SignatureOverridesFilterValuesQuery type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.SignatureOverridesFilterValuesQuery or + ~azure.mgmt.network.types.SignatureOverridesFilterValuesQuery or IO[bytes] :return: SignatureOverridesFilterValuesResponse. The SignatureOverridesFilterValuesResponse is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SignatureOverridesFilterValuesResponse @@ -88220,7 +94235,7 @@ async def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SignatureOverridesFilterValuesResponse] = kwargs.pop("cls", None) @@ -88278,7 +94293,7 @@ async def list( return deserialized # type: ignore -class FirewallPolicyDeploymentsOperations: +class FirewallPolicyDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -88309,7 +94324,7 @@ async def _deploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_firewall_policy_deployments_deploy_request( @@ -88377,7 +94392,7 @@ async def begin_deploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -88421,7 +94436,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class NetworkManagerCommitsOperations: +class NetworkManagerCommitsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -88442,7 +94457,7 @@ async def _post_initial( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerCommit, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerCommit, _types.NetworkManagerCommit, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -88456,7 +94471,7 @@ async def _post_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -88547,7 +94562,7 @@ async def begin_post( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.NetworkManagerCommit, *, content_type: str = "application/json", **kwargs: Any @@ -88560,7 +94575,7 @@ async def begin_post( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network commit is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerCommit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -88603,7 +94618,7 @@ async def begin_post( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerCommit, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerCommit, _types.NetworkManagerCommit, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.NetworkManagerCommit]: """Post a Network Manager Commit. @@ -88613,9 +94628,10 @@ async def begin_post( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Parameters supplied to specify which Managed Network commit is. Is one of - the following types: NetworkManagerCommit, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerCommit or JSON or IO[bytes] + :param parameters: Parameters supplied to specify which Managed Network commit is. Is either a + NetworkManagerCommit type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerCommit or + ~azure.mgmt.network.types.NetworkManagerCommit or IO[bytes] :return: An instance of AsyncLROPoller that returns NetworkManagerCommit. The NetworkManagerCommit is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NetworkManagerCommit] @@ -88624,7 +94640,7 @@ async def begin_post( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerCommit] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -88676,7 +94692,7 @@ def get_long_running_output(pipeline_response): ) -class NetworkManagerDeploymentStatusOperations: +class NetworkManagerDeploymentStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -88731,7 +94747,7 @@ async def list( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.NetworkManagerDeploymentStatusParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -88746,7 +94762,7 @@ async def list( :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network deployment status is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerDeploymentStatusParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -88797,7 +94813,9 @@ async def list( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerDeploymentStatusParameter, JSON, IO[bytes]], + parameters: Union[ + _models.NetworkManagerDeploymentStatusParameter, _types.NetworkManagerDeploymentStatusParameter, IO[bytes] + ], *, top: Optional[int] = None, **kwargs: Any @@ -88810,10 +94828,9 @@ async def list( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network deployment status is. - Is one of the following types: NetworkManagerDeploymentStatusParameter, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerDeploymentStatusParameter or JSON or - IO[bytes] + Is either a NetworkManagerDeploymentStatusParameter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerDeploymentStatusParameter or + ~azure.mgmt.network.types.NetworkManagerDeploymentStatusParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -88833,7 +94850,7 @@ async def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerDeploymentStatusListResult] = kwargs.pop("cls", None) @@ -88892,7 +94909,7 @@ async def list( return deserialized # type: ignore -class LoadBalancerNetworkInterfacesOperations: +class LoadBalancerNetworkInterfacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -88927,7 +94944,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -88999,7 +95016,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LoadBalancerBackendAddressPoolsOperations: # pylint: disable=name-too-long +class LoadBalancerBackendAddressPoolsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -89044,7 +95061,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BackendAddressPool] = kwargs.pop("cls", None) _request = build_load_balancer_backend_address_pools_get_request( @@ -89097,7 +95114,7 @@ async def _create_or_update_initial( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: Union[_models.BackendAddressPool, JSON, IO[bytes]], + parameters: Union[_models.BackendAddressPool, _types.BackendAddressPool, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -89111,7 +95128,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -89210,7 +95227,7 @@ async def begin_create_or_update( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: JSON, + parameters: _types.BackendAddressPool, *, content_type: str = "application/json", **kwargs: Any @@ -89226,7 +95243,7 @@ async def begin_create_or_update( :type backend_address_pool_name: str :param parameters: Parameters supplied to the create or update load balancer backend address pool operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BackendAddressPool :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -89274,7 +95291,7 @@ async def begin_create_or_update( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: Union[_models.BackendAddressPool, JSON, IO[bytes]], + parameters: Union[_models.BackendAddressPool, _types.BackendAddressPool, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BackendAddressPool]: """Creates or updates a load balancer backend address pool. @@ -89287,8 +95304,9 @@ async def begin_create_or_update( :param backend_address_pool_name: The name of the backend address pool. Required. :type backend_address_pool_name: str :param parameters: Parameters supplied to the create or update load balancer backend address - pool operation. Is one of the following types: BackendAddressPool, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BackendAddressPool or JSON or IO[bytes] + pool operation. Is either a BackendAddressPool type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.BackendAddressPool or + ~azure.mgmt.network.types.BackendAddressPool or IO[bytes] :return: An instance of AsyncLROPoller that returns BackendAddressPool. The BackendAddressPool is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BackendAddressPool] @@ -89297,7 +95315,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BackendAddressPool] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -89363,7 +95381,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_load_balancer_backend_address_pools_delete_request( @@ -89432,7 +95450,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -89494,7 +95512,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BackendAddressPool]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -89566,7 +95584,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LoadBalancerFrontendIPConfigurationsOperations: # pylint: disable=name-too-long +class LoadBalancerFrontendIPConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -89613,7 +95631,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.FrontendIPConfiguration] = kwargs.pop("cls", None) _request = build_load_balancer_frontend_ip_configurations_get_request( @@ -89680,7 +95698,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.FrontendIPConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -89752,7 +95770,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LoadBalancerLoadBalancingRulesOperations: +class LoadBalancerLoadBalancingRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -89797,7 +95815,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LoadBalancingRule] = kwargs.pop("cls", None) _request = build_load_balancer_load_balancing_rules_get_request( @@ -89863,7 +95881,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancingRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -89948,7 +95966,7 @@ async def _health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_load_balancer_load_balancing_rules_health_request( @@ -90018,7 +96036,7 @@ async def begin_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LoadBalancerHealthPerRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -90068,7 +96086,7 @@ def get_long_running_output(pipeline_response): ) -class LoadBalancerOutboundRulesOperations: +class LoadBalancerOutboundRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -90113,7 +96131,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.OutboundRule] = kwargs.pop("cls", None) _request = build_load_balancer_outbound_rules_get_request( @@ -90179,7 +96197,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.OutboundRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90251,7 +96269,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class LoadBalancerProbesOperations: +class LoadBalancerProbesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -90296,7 +96314,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Probe] = kwargs.pop("cls", None) _request = build_load_balancer_probes_get_request( @@ -90360,7 +96378,7 @@ def list(self, resource_group_name: str, load_balancer_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Probe]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90432,7 +96450,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SubscriptionNetworkManagerConnectionsOperations: # pylint: disable=name-too-long +class SubscriptionNetworkManagerConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -90471,7 +96489,7 @@ async def get(self, network_manager_connection_name: str, **kwargs: Any) -> _mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) _request = build_subscription_network_manager_connections_get_request( @@ -90545,7 +96563,7 @@ async def create_or_update( async def create_or_update( self, network_manager_connection_name: str, - parameters: JSON, + parameters: _types.NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -90555,7 +96573,7 @@ async def create_or_update( :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str :param parameters: Network manager connection to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -90593,16 +96611,17 @@ async def create_or_update( async def create_or_update( self, network_manager_connection_name: str, - parameters: Union[_models.NetworkManagerConnection, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerConnection, _types.NetworkManagerConnection, IO[bytes]], **kwargs: Any ) -> _models.NetworkManagerConnection: """Create a network manager connection on this subscription. :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Is one of the following - types: NetworkManagerConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or JSON or IO[bytes] + :param parameters: Network manager connection to be created/updated. Is either a + NetworkManagerConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or + ~azure.mgmt.network.types.NetworkManagerConnection or IO[bytes] :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManagerConnection @@ -90619,7 +96638,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) @@ -90696,7 +96715,7 @@ async def delete(self, network_manager_connection_name: str, **kwargs: Any) -> N _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_subscription_network_manager_connections_delete_request( @@ -90751,7 +96770,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManagerConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90823,7 +96842,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AdminRulesOperations: +class AdminRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -90879,7 +96898,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BaseAdminRule] = kwargs.pop("cls", None) _request = build_admin_rules_get_request( @@ -90974,7 +96993,7 @@ async def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: JSON, + admin_rule: _types.BaseAdminRule, *, content_type: str = "application/json", **kwargs: Any @@ -90994,7 +97013,7 @@ async def create_or_update( :param rule_name: The name of the rule. Required. :type rule_name: str :param admin_rule: The admin rule to create or update. Required. - :type admin_rule: JSON + :type admin_rule: ~azure.mgmt.network.types.BaseAdminRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -91048,7 +97067,7 @@ async def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: Union[_models.BaseAdminRule, JSON, IO[bytes]], + admin_rule: Union[_models.BaseAdminRule, _types.BaseAdminRule, IO[bytes]], **kwargs: Any ) -> _models.BaseAdminRule: """Creates or updates an admin rule. @@ -91065,9 +97084,10 @@ async def create_or_update( :type rule_collection_name: str :param rule_name: The name of the rule. Required. :type rule_name: str - :param admin_rule: The admin rule to create or update. Is one of the following types: - BaseAdminRule, JSON, IO[bytes] Required. - :type admin_rule: ~azure.mgmt.network.models.BaseAdminRule or JSON or IO[bytes] + :param admin_rule: The admin rule to create or update. Is either a BaseAdminRule type or a + IO[bytes] type. Required. + :type admin_rule: ~azure.mgmt.network.models.BaseAdminRule or + ~azure.mgmt.network.types.BaseAdminRule or IO[bytes] :return: BaseAdminRule. The BaseAdminRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.BaseAdminRule :raises ~azure.core.exceptions.HttpResponseError: @@ -91083,7 +97103,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BaseAdminRule] = kwargs.pop("cls", None) @@ -91165,7 +97185,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_admin_rules_delete_request( @@ -91254,7 +97274,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -91340,7 +97360,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BaseAdminRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -91416,7 +97436,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterProfilesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterProfilesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -91461,7 +97481,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspProfile] = kwargs.pop("cls", None) _request = build_network_security_perimeter_profiles_get_request( @@ -91546,7 +97566,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: JSON, + parameters: _types.NspProfile, *, content_type: str = "application/json", **kwargs: Any @@ -91562,7 +97582,7 @@ async def create_or_update( :type profile_name: str :param parameters: Parameters that hold the NspProfile resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -91608,7 +97628,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: Union[_models.NspProfile, JSON, IO[bytes]], + parameters: Union[_models.NspProfile, _types.NspProfile, IO[bytes]], **kwargs: Any ) -> _models.NspProfile: """Creates or updates a network profile. @@ -91620,9 +97640,10 @@ async def create_or_update( :type network_security_perimeter_name: str :param profile_name: The name of the NSP profile. Required. :type profile_name: str - :param parameters: Parameters that hold the NspProfile resource to be created/updated. Is one - of the following types: NspProfile, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspProfile or JSON or IO[bytes] + :param parameters: Parameters that hold the NspProfile resource to be created/updated. Is + either a NspProfile type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspProfile or ~azure.mgmt.network.types.NspProfile + or IO[bytes] :return: NspProfile. The NspProfile is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -91638,7 +97659,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspProfile] = kwargs.pop("cls", None) @@ -91724,7 +97745,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_profiles_delete_request( @@ -91791,7 +97812,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -91865,7 +97886,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterAccessRulesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAccessRulesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -91917,7 +97938,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspAccessRule] = kwargs.pop("cls", None) _request = build_network_security_perimeter_access_rules_get_request( @@ -92007,7 +98028,7 @@ async def create_or_update( network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: JSON, + parameters: _types.NspAccessRule, *, content_type: str = "application/json", **kwargs: Any @@ -92025,7 +98046,7 @@ async def create_or_update( :type access_rule_name: str :param parameters: Parameters that hold the NspAccessRule resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspAccessRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -92075,7 +98096,7 @@ async def create_or_update( network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: Union[_models.NspAccessRule, JSON, IO[bytes]], + parameters: Union[_models.NspAccessRule, _types.NspAccessRule, IO[bytes]], **kwargs: Any ) -> _models.NspAccessRule: """Creates or updates a network access rule. @@ -92090,8 +98111,9 @@ async def create_or_update( :param access_rule_name: The name of the NSP access rule. Required. :type access_rule_name: str :param parameters: Parameters that hold the NspAccessRule resource to be created/updated. Is - one of the following types: NspAccessRule, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspAccessRule or JSON or IO[bytes] + either a NspAccessRule type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspAccessRule or + ~azure.mgmt.network.types.NspAccessRule or IO[bytes] :return: NspAccessRule. The NspAccessRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspAccessRule :raises ~azure.core.exceptions.HttpResponseError: @@ -92107,7 +98129,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspAccessRule] = kwargs.pop("cls", None) @@ -92201,7 +98223,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_access_rules_delete_request( @@ -92272,7 +98294,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspAccessRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -92384,7 +98406,7 @@ async def reconcile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json")) cls: ClsType[Any] = kwargs.pop("cls", None) @@ -92439,7 +98461,7 @@ async def reconcile( return deserialized # type: ignore -class NetworkSecurityPerimeterAssociationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAssociationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -92484,7 +98506,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspAssociation] = kwargs.pop("cls", None) _request = build_network_security_perimeter_associations_get_request( @@ -92537,7 +98559,7 @@ async def _create_or_update_initial( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: Union[_models.NspAssociation, JSON, IO[bytes]], + parameters: Union[_models.NspAssociation, _types.NspAssociation, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -92551,7 +98573,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -92653,7 +98675,7 @@ async def begin_create_or_update( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: JSON, + parameters: _types.NspAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -92669,7 +98691,7 @@ async def begin_create_or_update( :type association_name: str :param parameters: Parameters that hold the NspAssociation resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspAssociation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -92717,7 +98739,7 @@ async def begin_create_or_update( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: Union[_models.NspAssociation, JSON, IO[bytes]], + parameters: Union[_models.NspAssociation, _types.NspAssociation, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.NspAssociation]: """Creates or updates a NSP resource association. @@ -92730,8 +98752,9 @@ async def begin_create_or_update( :param association_name: The name of the NSP association. Required. :type association_name: str :param parameters: Parameters that hold the NspAssociation resource to be created/updated. Is - one of the following types: NspAssociation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspAssociation or JSON or IO[bytes] + either a NspAssociation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspAssociation or + ~azure.mgmt.network.types.NspAssociation or IO[bytes] :return: An instance of AsyncLROPoller that returns NspAssociation. The NspAssociation is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.NspAssociation] @@ -92740,7 +98763,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspAssociation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -92806,7 +98829,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_associations_delete_request( @@ -92877,7 +98900,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -92953,7 +98976,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspAssociation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93061,7 +99084,7 @@ async def reconcile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json")) cls: ClsType[Any] = kwargs.pop("cls", None) @@ -93115,7 +99138,7 @@ async def reconcile( return deserialized # type: ignore -class NetworkSecurityPerimeterLinksOperations: +class NetworkSecurityPerimeterLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -93160,7 +99183,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLink] = kwargs.pop("cls", None) _request = build_network_security_perimeter_links_get_request( @@ -93244,7 +99267,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: JSON, + parameters: _types.NspLink, *, content_type: str = "application/json", **kwargs: Any @@ -93259,7 +99282,7 @@ async def create_or_update( :param link_name: The name of the NSP link. Required. :type link_name: str :param parameters: Parameters that hold the NspLink resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspLink :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -93304,7 +99327,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: Union[_models.NspLink, JSON, IO[bytes]], + parameters: Union[_models.NspLink, _types.NspLink, IO[bytes]], **kwargs: Any ) -> _models.NspLink: """Creates or updates NSP link resource. @@ -93316,9 +99339,10 @@ async def create_or_update( :type network_security_perimeter_name: str :param link_name: The name of the NSP link. Required. :type link_name: str - :param parameters: Parameters that hold the NspLink resource to be created/updated. Is one of - the following types: NspLink, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspLink or JSON or IO[bytes] + :param parameters: Parameters that hold the NspLink resource to be created/updated. Is either a + NspLink type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspLink or ~azure.mgmt.network.types.NspLink or + IO[bytes] :return: NspLink. The NspLink is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspLink :raises ~azure.core.exceptions.HttpResponseError: @@ -93334,7 +99358,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspLink] = kwargs.pop("cls", None) @@ -93406,7 +99430,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_links_delete_request( @@ -93475,7 +99499,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -93551,7 +99575,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLink]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93625,7 +99649,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterLinkReferencesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterLinkReferencesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -93670,7 +99694,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLinkReference] = kwargs.pop("cls", None) _request = build_network_security_perimeter_link_references_get_request( @@ -93732,7 +99756,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_link_references_delete_request( @@ -93801,7 +99825,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -93877,7 +99901,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLinkReference]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93951,7 +99975,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterLoggingConfigurationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterLoggingConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -94001,7 +100025,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLoggingConfiguration] = kwargs.pop("cls", None) _request = build_network_security_perimeter_logging_configurations_get_request( @@ -94087,7 +100111,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: JSON, + parameters: _types.NspLoggingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -94104,7 +100128,7 @@ async def create_or_update( :type logging_configuration_name: str :param parameters: Parameters that hold the NspLoggingConfiguration to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspLoggingConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -94151,7 +100175,7 @@ async def create_or_update( resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: Union[_models.NspLoggingConfiguration, JSON, IO[bytes]], + parameters: Union[_models.NspLoggingConfiguration, _types.NspLoggingConfiguration, IO[bytes]], **kwargs: Any ) -> _models.NspLoggingConfiguration: """Creates or updates NSP logging configuration. @@ -94165,8 +100189,9 @@ async def create_or_update( 'instance' as name. Required. :type logging_configuration_name: str :param parameters: Parameters that hold the NspLoggingConfiguration to be created/updated. Is - one of the following types: NspLoggingConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspLoggingConfiguration or JSON or IO[bytes] + either a NspLoggingConfiguration type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspLoggingConfiguration or + ~azure.mgmt.network.types.NspLoggingConfiguration or IO[bytes] :return: NspLoggingConfiguration. The NspLoggingConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspLoggingConfiguration :raises ~azure.core.exceptions.HttpResponseError: @@ -94182,7 +100207,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspLoggingConfiguration] = kwargs.pop("cls", None) @@ -94273,7 +100298,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_logging_configurations_delete_request( @@ -94327,7 +100352,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLoggingConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -94399,7 +100424,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualApplianceSkusOperations: +class VirtualApplianceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -94438,7 +100463,7 @@ async def get(self, sku_name: str, **kwargs: Any) -> _models.NetworkVirtualAppli _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkVirtualApplianceSku] = kwargs.pop("cls", None) _request = build_virtual_appliance_skus_get_request( @@ -94496,7 +100521,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.NetworkVirtualAppliance _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkVirtualApplianceSku]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -94566,7 +100591,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class InboundSecurityRuleOperations: +class InboundSecurityRuleOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -94612,7 +100637,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.InboundSecurityRule] = kwargs.pop("cls", None) _request = build_inbound_security_rule_get_request( @@ -94665,7 +100690,7 @@ async def _create_or_update_initial( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: Union[_models.InboundSecurityRule, JSON, IO[bytes]], + parameters: Union[_models.InboundSecurityRule, _types.InboundSecurityRule, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -94679,7 +100704,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -94779,7 +100804,7 @@ async def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: JSON, + parameters: _types.InboundSecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -94796,7 +100821,7 @@ async def begin_create_or_update( :type rule_collection_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.InboundSecurityRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -94845,7 +100870,7 @@ async def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: Union[_models.InboundSecurityRule, JSON, IO[bytes]], + parameters: Union[_models.InboundSecurityRule, _types.InboundSecurityRule, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.InboundSecurityRule]: """Creates or updates the specified Network Virtual Appliance Inbound Security Rules. @@ -94859,9 +100884,10 @@ async def begin_create_or_update( This name can be used to access the resource. Required. :type rule_collection_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance - Inbound Security Rules operation. Is one of the following types: InboundSecurityRule, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.InboundSecurityRule or JSON or IO[bytes] + Inbound Security Rules operation. Is either a InboundSecurityRule type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.InboundSecurityRule or + ~azure.mgmt.network.types.InboundSecurityRule or IO[bytes] :return: An instance of AsyncLROPoller that returns InboundSecurityRule. The InboundSecurityRule is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.InboundSecurityRule] @@ -94870,7 +100896,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InboundSecurityRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -94923,7 +100949,7 @@ def get_long_running_output(pipeline_response): ) -class PacketCapturesOperations: +class PacketCapturesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -94945,7 +100971,7 @@ async def _create_initial( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: Union[_models.PacketCapture, JSON, IO[bytes]], + parameters: Union[_models.PacketCapture, _types.PacketCapture, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -94959,7 +100985,7 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -95056,7 +101082,7 @@ async def begin_create( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: JSON, + parameters: _types.PacketCapture, *, content_type: str = "application/json", **kwargs: Any @@ -95071,7 +101097,7 @@ async def begin_create( :param packet_capture_name: The name of the packet capture session. Required. :type packet_capture_name: str :param parameters: Parameters that define the create packet capture operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PacketCapture :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -95118,7 +101144,7 @@ async def begin_create( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: Union[_models.PacketCapture, JSON, IO[bytes]], + parameters: Union[_models.PacketCapture, _types.PacketCapture, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.PacketCaptureResult]: """Create and start a packet capture on the specified VM. @@ -95130,9 +101156,10 @@ async def begin_create( :type network_watcher_name: str :param packet_capture_name: The name of the packet capture session. Required. :type packet_capture_name: str - :param parameters: Parameters that define the create packet capture operation. Is one of the - following types: PacketCapture, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PacketCapture or JSON or IO[bytes] + :param parameters: Parameters that define the create packet capture operation. Is either a + PacketCapture type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PacketCapture or + ~azure.mgmt.network.types.PacketCapture or IO[bytes] :return: An instance of AsyncLROPoller that returns PacketCaptureResult. The PacketCaptureResult is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PacketCaptureResult] @@ -95141,7 +101168,7 @@ async def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PacketCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -95227,7 +101254,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PacketCaptureResult] = kwargs.pop("cls", None) _request = build_packet_captures_get_request( @@ -95289,7 +101316,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_delete_request( @@ -95358,7 +101385,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -95416,7 +101443,7 @@ async def _stop_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_stop_request( @@ -95485,7 +101512,7 @@ async def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -95543,7 +101570,7 @@ async def _get_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_get_status_request( @@ -95614,7 +101641,7 @@ async def begin_get_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PacketCaptureQueryStatusResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -95681,7 +101708,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PacketCaptureResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -95753,7 +101780,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ConnectionMonitorsOperations: +class ConnectionMonitorsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -95798,7 +101825,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) _request = build_connection_monitors_get_request( @@ -95851,7 +101878,7 @@ async def _create_or_update_initial( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.ConnectionMonitor, JSON, IO[bytes]], + parameters: Union[_models.ConnectionMonitor, _types.ConnectionMonitor, IO[bytes]], *, migrate: Optional[str] = None, **kwargs: Any @@ -95867,7 +101894,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -95971,7 +101998,7 @@ async def begin_create_or_update( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: _types.ConnectionMonitor, *, migrate: Optional[str] = None, content_type: str = "application/json", @@ -95988,7 +102015,7 @@ async def begin_create_or_update( :type connection_monitor_name: str :param parameters: Parameters that define the operation to create a connection monitor. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ConnectionMonitor :keyword migrate: Value indicating whether connection monitor V1 should be migrated to V2 format. Default value is None. :paramtype migrate: str @@ -96043,7 +102070,7 @@ async def begin_create_or_update( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.ConnectionMonitor, JSON, IO[bytes]], + parameters: Union[_models.ConnectionMonitor, _types.ConnectionMonitor, IO[bytes]], *, migrate: Optional[str] = None, **kwargs: Any @@ -96057,9 +102084,10 @@ async def begin_create_or_update( :type network_watcher_name: str :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str - :param parameters: Parameters that define the operation to create a connection monitor. Is one - of the following types: ConnectionMonitor, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionMonitor or JSON or IO[bytes] + :param parameters: Parameters that define the operation to create a connection monitor. Is + either a ConnectionMonitor type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionMonitor or + ~azure.mgmt.network.types.ConnectionMonitor or IO[bytes] :keyword migrate: Value indicating whether connection monitor V1 should be migrated to V2 format. Default value is None. :paramtype migrate: str @@ -96071,7 +102099,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -96160,7 +102188,7 @@ async def update_tags( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -96175,7 +102203,7 @@ async def update_tags( :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str :param parameters: Parameters supplied to update connection monitor tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -96220,7 +102248,7 @@ async def update_tags( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ConnectionMonitorResult: """Update tags of the specified connection monitor. @@ -96232,9 +102260,10 @@ async def update_tags( :type network_watcher_name: str :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str - :param parameters: Parameters supplied to update connection monitor tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update connection monitor tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ConnectionMonitorResult. The ConnectionMonitorResult is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ConnectionMonitorResult :raises ~azure.core.exceptions.HttpResponseError: @@ -96250,7 +102279,7 @@ async def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) @@ -96322,7 +102351,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_connection_monitors_delete_request( @@ -96391,7 +102420,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -96454,7 +102483,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectionMonitorResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -96539,7 +102568,7 @@ async def _stop_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_connection_monitors_stop_request( @@ -96608,7 +102637,7 @@ async def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -96653,7 +102682,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class PrivateDnsZoneGroupsOperations: +class PrivateDnsZoneGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -96684,7 +102713,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_private_dns_zone_groups_delete_request( @@ -96753,7 +102782,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -96825,7 +102854,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateDnsZoneGroup] = kwargs.pop("cls", None) _request = build_private_dns_zone_groups_get_request( @@ -96878,7 +102907,7 @@ async def _create_or_update_initial( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: Union[_models.PrivateDnsZoneGroup, JSON, IO[bytes]], + parameters: Union[_models.PrivateDnsZoneGroup, _types.PrivateDnsZoneGroup, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -96892,7 +102921,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -96991,7 +103020,7 @@ async def begin_create_or_update( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: JSON, + parameters: _types.PrivateDnsZoneGroup, *, content_type: str = "application/json", **kwargs: Any @@ -97007,7 +103036,7 @@ async def begin_create_or_update( :type private_dns_zone_group_name: str :param parameters: Parameters supplied to the create or update private dns zone group operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PrivateDnsZoneGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -97055,7 +103084,7 @@ async def begin_create_or_update( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: Union[_models.PrivateDnsZoneGroup, JSON, IO[bytes]], + parameters: Union[_models.PrivateDnsZoneGroup, _types.PrivateDnsZoneGroup, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.PrivateDnsZoneGroup]: """Creates or updates a private dns zone group in the specified private endpoint. @@ -97068,8 +103097,9 @@ async def begin_create_or_update( :param private_dns_zone_group_name: The name of the private endpoint. Required. :type private_dns_zone_group_name: str :param parameters: Parameters supplied to the create or update private dns zone group - operation. Is one of the following types: PrivateDnsZoneGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateDnsZoneGroup or JSON or IO[bytes] + operation. Is either a PrivateDnsZoneGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateDnsZoneGroup or + ~azure.mgmt.network.types.PrivateDnsZoneGroup or IO[bytes] :return: An instance of AsyncLROPoller that returns PrivateDnsZoneGroup. The PrivateDnsZoneGroup is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.PrivateDnsZoneGroup] @@ -97078,7 +103108,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateDnsZoneGroup] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -97148,7 +103178,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateDnsZoneGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -97220,7 +103250,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RouteFilterRulesOperations: +class RouteFilterRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -97251,7 +103281,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_route_filter_rules_delete_request( @@ -97323,7 +103353,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -97395,7 +103425,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RouteFilterRule] = kwargs.pop("cls", None) _request = build_route_filter_rules_get_request( @@ -97448,7 +103478,7 @@ async def _create_or_update_initial( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: Union[_models.RouteFilterRule, JSON, IO[bytes]], + route_filter_rule_parameters: Union[_models.RouteFilterRule, _types.RouteFilterRule, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -97462,7 +103492,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -97561,7 +103591,7 @@ async def begin_create_or_update( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: JSON, + route_filter_rule_parameters: _types.RouteFilterRule, *, content_type: str = "application/json", **kwargs: Any @@ -97577,7 +103607,7 @@ async def begin_create_or_update( :type rule_name: str :param route_filter_rule_parameters: Parameters supplied to the create or update route filter rule operation. Required. - :type route_filter_rule_parameters: JSON + :type route_filter_rule_parameters: ~azure.mgmt.network.types.RouteFilterRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -97625,7 +103655,7 @@ async def begin_create_or_update( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: Union[_models.RouteFilterRule, JSON, IO[bytes]], + route_filter_rule_parameters: Union[_models.RouteFilterRule, _types.RouteFilterRule, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.RouteFilterRule]: """Creates or updates a route in the specified route filter. @@ -97638,9 +103668,9 @@ async def begin_create_or_update( :param rule_name: The name of the route filter rule. Required. :type rule_name: str :param route_filter_rule_parameters: Parameters supplied to the create or update route filter - rule operation. Is one of the following types: RouteFilterRule, JSON, IO[bytes] Required. - :type route_filter_rule_parameters: ~azure.mgmt.network.models.RouteFilterRule or JSON or - IO[bytes] + rule operation. Is either a RouteFilterRule type or a IO[bytes] type. Required. + :type route_filter_rule_parameters: ~azure.mgmt.network.models.RouteFilterRule or + ~azure.mgmt.network.types.RouteFilterRule or IO[bytes] :return: An instance of AsyncLROPoller that returns RouteFilterRule. The RouteFilterRule is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RouteFilterRule] @@ -97649,7 +103679,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteFilterRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -97719,7 +103749,7 @@ def list_by_route_filter( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteFilterRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -97791,7 +103821,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ResourceNavigationLinksOperations: +class ResourceNavigationLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -97837,7 +103867,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ResourceNavigationLinksListResult] = kwargs.pop("cls", None) _request = build_resource_navigation_links_list_request( @@ -97886,7 +103916,7 @@ async def list( return deserialized # type: ignore -class ServiceAssociationLinksOperations: +class ServiceAssociationLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -97932,7 +103962,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceAssociationLinksListResult] = kwargs.pop("cls", None) _request = build_service_association_links_list_request( @@ -97981,7 +104011,7 @@ async def list( return deserialized # type: ignore -class VpnSitesConfigurationOperations: +class VpnSitesConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -98002,7 +104032,7 @@ async def _download_initial( self, resource_group_name: str, virtual_wan_name: str, - request: Union[_models.GetVpnSitesConfigurationRequest, JSON, IO[bytes]], + request: Union[_models.GetVpnSitesConfigurationRequest, _types.GetVpnSitesConfigurationRequest, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -98016,7 +104046,7 @@ async def _download_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -98106,7 +104136,7 @@ async def begin_download( self, resource_group_name: str, virtual_wan_name: str, - request: JSON, + request: _types.GetVpnSitesConfigurationRequest, *, content_type: str = "application/json", **kwargs: Any @@ -98119,7 +104149,7 @@ async def begin_download( :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str :param request: Parameters supplied to download vpn-sites configuration. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.GetVpnSitesConfigurationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -98160,7 +104190,7 @@ async def begin_download( self, resource_group_name: str, virtual_wan_name: str, - request: Union[_models.GetVpnSitesConfigurationRequest, JSON, IO[bytes]], + request: Union[_models.GetVpnSitesConfigurationRequest, _types.GetVpnSitesConfigurationRequest, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[None]: """Gives the sas-url to download the configurations for vpn-sites in a resource group. @@ -98170,9 +104200,10 @@ async def begin_download( :type resource_group_name: str :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str - :param request: Parameters supplied to download vpn-sites configuration. Is one of the - following types: GetVpnSitesConfigurationRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.GetVpnSitesConfigurationRequest or JSON or IO[bytes] + :param request: Parameters supplied to download vpn-sites configuration. Is either a + GetVpnSitesConfigurationRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.GetVpnSitesConfigurationRequest or + ~azure.mgmt.network.types.GetVpnSitesConfigurationRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -98180,7 +104211,7 @@ async def begin_download( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -98227,7 +104258,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VpnServerConfigurationsAssociatedWithVirtualWanOperations: # pylint: disable=name-too-long +class VpnServerConfigurationsAssociatedWithVirtualWanOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -98258,7 +104289,7 @@ async def _list_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_server_configurations_associated_with_virtual_wan_list_request( @@ -98326,7 +104357,7 @@ async def begin_list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnServerConfigurationsResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -98375,7 +104406,7 @@ def get_long_running_output(pipeline_response): ) -class ConfigurationPolicyGroupsOperations: +class ConfigurationPolicyGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -98427,7 +104458,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnServerConfigurationPolicyGroup] = kwargs.pop("cls", None) _request = build_configuration_policy_groups_get_request( @@ -98481,7 +104512,7 @@ async def _create_or_update_initial( vpn_server_configuration_name: str, configuration_policy_group_name: str, vpn_server_configuration_policy_group_parameters: Union[ - _models.VpnServerConfigurationPolicyGroup, JSON, IO[bytes] + _models.VpnServerConfigurationPolicyGroup, _types.VpnServerConfigurationPolicyGroup, IO[bytes] ], **kwargs: Any ) -> AsyncIterator[bytes]: @@ -98496,7 +104527,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -98599,7 +104630,7 @@ async def begin_create_or_update( resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, - vpn_server_configuration_policy_group_parameters: JSON, + vpn_server_configuration_policy_group_parameters: _types.VpnServerConfigurationPolicyGroup, *, content_type: str = "application/json", **kwargs: Any @@ -98617,7 +104648,8 @@ async def begin_create_or_update( :type configuration_policy_group_name: str :param vpn_server_configuration_policy_group_parameters: Parameters supplied to create or update a VpnServerConfiguration PolicyGroup. Required. - :type vpn_server_configuration_policy_group_parameters: JSON + :type vpn_server_configuration_policy_group_parameters: + ~azure.mgmt.network.types.VpnServerConfigurationPolicyGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -98670,7 +104702,7 @@ async def begin_create_or_update( vpn_server_configuration_name: str, configuration_policy_group_name: str, vpn_server_configuration_policy_group_parameters: Union[ - _models.VpnServerConfigurationPolicyGroup, JSON, IO[bytes] + _models.VpnServerConfigurationPolicyGroup, _types.VpnServerConfigurationPolicyGroup, IO[bytes] ], **kwargs: Any ) -> AsyncLROPoller[_models.VpnServerConfigurationPolicyGroup]: @@ -98686,10 +104718,11 @@ async def begin_create_or_update( resource group. This name can be used to access the resource. Required. :type configuration_policy_group_name: str :param vpn_server_configuration_policy_group_parameters: Parameters supplied to create or - update a VpnServerConfiguration PolicyGroup. Is one of the following types: - VpnServerConfigurationPolicyGroup, JSON, IO[bytes] Required. + update a VpnServerConfiguration PolicyGroup. Is either a VpnServerConfigurationPolicyGroup type + or a IO[bytes] type. Required. :type vpn_server_configuration_policy_group_parameters: - ~azure.mgmt.network.models.VpnServerConfigurationPolicyGroup or JSON or IO[bytes] + ~azure.mgmt.network.models.VpnServerConfigurationPolicyGroup or + ~azure.mgmt.network.types.VpnServerConfigurationPolicyGroup or IO[bytes] :return: An instance of AsyncLROPoller that returns VpnServerConfigurationPolicyGroup. The VpnServerConfigurationPolicyGroup is compatible with MutableMapping :rtype: @@ -98699,7 +104732,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnServerConfigurationPolicyGroup] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -98769,7 +104802,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_configuration_policy_groups_delete_request( @@ -98844,7 +104877,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -98908,7 +104941,7 @@ def list_by_vpn_server_configuration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnServerConfigurationPolicyGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -98980,7 +105013,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class HubVirtualNetworkConnectionsOperations: +class HubVirtualNetworkConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -99002,7 +105035,9 @@ async def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: Union[_models.HubVirtualNetworkConnection, JSON, IO[bytes]], + hub_virtual_network_connection_parameters: Union[ + _models.HubVirtualNetworkConnection, _types.HubVirtualNetworkConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -99016,7 +105051,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -99117,7 +105152,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: JSON, + hub_virtual_network_connection_parameters: _types.HubVirtualNetworkConnection, *, content_type: str = "application/json", **kwargs: Any @@ -99133,7 +105168,8 @@ async def begin_create_or_update( :type connection_name: str :param hub_virtual_network_connection_parameters: Parameters supplied to create or update a hub virtual network connection. Required. - :type hub_virtual_network_connection_parameters: JSON + :type hub_virtual_network_connection_parameters: + ~azure.mgmt.network.types.HubVirtualNetworkConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -99183,7 +105219,9 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: Union[_models.HubVirtualNetworkConnection, JSON, IO[bytes]], + hub_virtual_network_connection_parameters: Union[ + _models.HubVirtualNetworkConnection, _types.HubVirtualNetworkConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.HubVirtualNetworkConnection]: """Creates a hub virtual network connection if it doesn't exist else updates the existing one. @@ -99196,10 +105234,11 @@ async def begin_create_or_update( :param connection_name: Required. :type connection_name: str :param hub_virtual_network_connection_parameters: Parameters supplied to create or update a hub - virtual network connection. Is one of the following types: HubVirtualNetworkConnection, JSON, - IO[bytes] Required. + virtual network connection. Is either a HubVirtualNetworkConnection type or a IO[bytes] type. + Required. :type hub_virtual_network_connection_parameters: - ~azure.mgmt.network.models.HubVirtualNetworkConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.HubVirtualNetworkConnection or + ~azure.mgmt.network.types.HubVirtualNetworkConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns HubVirtualNetworkConnection. The HubVirtualNetworkConnection is compatible with MutableMapping :rtype: @@ -99209,7 +105248,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HubVirtualNetworkConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -99275,7 +105314,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_hub_virtual_network_connections_delete_request( @@ -99344,7 +105383,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -99417,7 +105456,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.HubVirtualNetworkConnection] = kwargs.pop("cls", None) _request = build_hub_virtual_network_connections_get_request( @@ -99484,7 +105523,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.HubVirtualNetworkConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -99556,7 +105595,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VirtualHubRouteTableV2SOperations: +class VirtualHubRouteTableV2SOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -99601,7 +105640,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualHubRouteTableV2] = kwargs.pop("cls", None) _request = build_virtual_hub_route_table_v2_s_get_request( @@ -99654,7 +105693,9 @@ async def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: Union[_models.VirtualHubRouteTableV2, JSON, IO[bytes]], + virtual_hub_route_table_v2_parameters: Union[ + _models.VirtualHubRouteTableV2, _types.VirtualHubRouteTableV2, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -99668,7 +105709,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -99768,7 +105809,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: JSON, + virtual_hub_route_table_v2_parameters: _types.VirtualHubRouteTableV2, *, content_type: str = "application/json", **kwargs: Any @@ -99785,7 +105826,7 @@ async def begin_create_or_update( :type route_table_name: str :param virtual_hub_route_table_v2_parameters: Parameters supplied to create or update VirtualHubRouteTableV2. Required. - :type virtual_hub_route_table_v2_parameters: JSON + :type virtual_hub_route_table_v2_parameters: ~azure.mgmt.network.types.VirtualHubRouteTableV2 :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -99834,7 +105875,9 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: Union[_models.VirtualHubRouteTableV2, JSON, IO[bytes]], + virtual_hub_route_table_v2_parameters: Union[ + _models.VirtualHubRouteTableV2, _types.VirtualHubRouteTableV2, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.VirtualHubRouteTableV2]: """Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing @@ -99848,10 +105891,9 @@ async def begin_create_or_update( :param route_table_name: The name of the VirtualHubRouteTableV2. Required. :type route_table_name: str :param virtual_hub_route_table_v2_parameters: Parameters supplied to create or update - VirtualHubRouteTableV2. Is one of the following types: VirtualHubRouteTableV2, JSON, IO[bytes] - Required. + VirtualHubRouteTableV2. Is either a VirtualHubRouteTableV2 type or a IO[bytes] type. Required. :type virtual_hub_route_table_v2_parameters: ~azure.mgmt.network.models.VirtualHubRouteTableV2 - or JSON or IO[bytes] + or ~azure.mgmt.network.types.VirtualHubRouteTableV2 or IO[bytes] :return: An instance of AsyncLROPoller that returns VirtualHubRouteTableV2. The VirtualHubRouteTableV2 is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VirtualHubRouteTableV2] @@ -99860,7 +105902,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualHubRouteTableV2] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -99926,7 +105968,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_route_table_v2_s_delete_request( @@ -99995,7 +106037,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -100058,7 +106100,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualHubRouteTableV2]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -100130,7 +106172,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VpnConnectionsOperations: +class VpnConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -100175,7 +106217,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnConnection] = kwargs.pop("cls", None) _request = build_vpn_connections_get_request( @@ -100228,7 +106270,7 @@ async def _create_or_update_initial( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: Union[_models.VpnConnection, JSON, IO[bytes]], + vpn_connection_parameters: Union[_models.VpnConnection, _types.VpnConnection, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -100242,7 +106284,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -100342,7 +106384,7 @@ async def begin_create_or_update( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: JSON, + vpn_connection_parameters: _types.VpnConnection, *, content_type: str = "application/json", **kwargs: Any @@ -100359,7 +106401,7 @@ async def begin_create_or_update( :type connection_name: str :param vpn_connection_parameters: Parameters supplied to create or Update a VPN Connection. Required. - :type vpn_connection_parameters: JSON + :type vpn_connection_parameters: ~azure.mgmt.network.types.VpnConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -100408,7 +106450,7 @@ async def begin_create_or_update( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: Union[_models.VpnConnection, JSON, IO[bytes]], + vpn_connection_parameters: Union[_models.VpnConnection, _types.VpnConnection, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.VpnConnection]: """Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the @@ -100422,8 +106464,9 @@ async def begin_create_or_update( :param connection_name: The name of the vpn connection. Required. :type connection_name: str :param vpn_connection_parameters: Parameters supplied to create or Update a VPN Connection. Is - one of the following types: VpnConnection, JSON, IO[bytes] Required. - :type vpn_connection_parameters: ~azure.mgmt.network.models.VpnConnection or JSON or IO[bytes] + either a VpnConnection type or a IO[bytes] type. Required. + :type vpn_connection_parameters: ~azure.mgmt.network.models.VpnConnection or + ~azure.mgmt.network.types.VpnConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns VpnConnection. The VpnConnection is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnConnection] @@ -100432,7 +106475,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -100498,7 +106541,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_connections_delete_request( @@ -100567,7 +106610,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -100616,7 +106659,13 @@ async def _start_packet_capture_initial( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStartParameters, + _types.VpnConnectionPacketCaptureStartParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -100630,7 +106679,7 @@ async def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -100730,7 +106779,7 @@ async def begin_start_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnConnectionPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -100746,7 +106795,7 @@ async def begin_start_packet_capture( :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on gateway connection. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnConnectionPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -100792,7 +106841,13 @@ async def begin_start_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStartParameters, + _types.VpnConnectionPacketCaptureStartParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncLROPoller[str]: """Starts packet capture on Vpn connection in the specified resource group. @@ -100805,10 +106860,10 @@ async def begin_start_packet_capture( :param vpn_connection_name: The name of the vpn connection. Required. :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on - gateway connection. Is one of the following types: VpnConnectionPacketCaptureStartParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters or JSON - or IO[bytes] + gateway connection. Is either a VpnConnectionPacketCaptureStartParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnConnectionPacketCaptureStartParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns str :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -100816,7 +106871,7 @@ async def begin_start_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -100876,7 +106931,13 @@ async def _stop_packet_capture_initial( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStopParameters, + _types.VpnConnectionPacketCaptureStopParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -100890,7 +106951,7 @@ async def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -100990,7 +107051,7 @@ async def begin_stop_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnConnectionPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -101006,7 +107067,7 @@ async def begin_stop_packet_capture( :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnConnectionPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -101052,7 +107113,13 @@ async def begin_stop_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStopParameters, + _types.VpnConnectionPacketCaptureStopParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> AsyncLROPoller[str]: """Stops packet capture on Vpn connection in the specified resource group. @@ -101065,10 +107132,10 @@ async def begin_stop_packet_capture( :param vpn_connection_name: The name of the vpn connection. Required. :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to stop packet capture on - gateway connection. Is one of the following types: VpnConnectionPacketCaptureStopParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStopParameters or JSON - or IO[bytes] + gateway connection. Is either a VpnConnectionPacketCaptureStopParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnConnectionPacketCaptureStopParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns str :rtype: ~azure.core.polling.AsyncLROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -101076,7 +107143,7 @@ async def begin_stop_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -101149,7 +107216,7 @@ def list_by_vpn_gateway( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -101221,7 +107288,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VpnLinkConnectionsOperations: +class VpnLinkConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -101274,7 +107341,7 @@ async def get_default_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) _request = build_vpn_link_connections_get_default_shared_key_request( @@ -101329,7 +107396,9 @@ async def _set_or_init_default_shared_key_initial( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: Union[_models.ConnectionSharedKeyResult, JSON, IO[bytes]], + connection_shared_key_parameters: Union[ + _models.ConnectionSharedKeyResult, _types.ConnectionSharedKeyResult, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -101343,7 +107412,7 @@ async def _set_or_init_default_shared_key_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -101450,7 +107519,7 @@ async def begin_set_or_init_default_shared_key( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: JSON, + connection_shared_key_parameters: _types.ConnectionSharedKeyResult, *, content_type: str = "application/json", **kwargs: Any @@ -101470,7 +107539,7 @@ async def begin_set_or_init_default_shared_key( :type link_connection_name: str :param connection_shared_key_parameters: Parameters supplied to set or auto generate the shared key for the vpn link connection. Required. - :type connection_shared_key_parameters: JSON + :type connection_shared_key_parameters: ~azure.mgmt.network.types.ConnectionSharedKeyResult :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -101526,7 +107595,9 @@ async def begin_set_or_init_default_shared_key( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: Union[_models.ConnectionSharedKeyResult, JSON, IO[bytes]], + connection_shared_key_parameters: Union[ + _models.ConnectionSharedKeyResult, _types.ConnectionSharedKeyResult, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ConnectionSharedKeyResult]: """Sets or auto generates the shared key based on the user input. If users give a shared key @@ -101543,10 +107614,10 @@ async def begin_set_or_init_default_shared_key( :param link_connection_name: The name of the vpn link connection. Required. :type link_connection_name: str :param connection_shared_key_parameters: Parameters supplied to set or auto generate the shared - key for the vpn link connection. Is one of the following types: ConnectionSharedKeyResult, - JSON, IO[bytes] Required. + key for the vpn link connection. Is either a ConnectionSharedKeyResult type or a IO[bytes] + type. Required. :type connection_shared_key_parameters: ~azure.mgmt.network.models.ConnectionSharedKeyResult or - JSON or IO[bytes] + ~azure.mgmt.network.types.ConnectionSharedKeyResult or IO[bytes] :return: An instance of AsyncLROPoller that returns ConnectionSharedKeyResult. The ConnectionSharedKeyResult is compatible with MutableMapping :rtype: @@ -101556,7 +107627,7 @@ async def begin_set_or_init_default_shared_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -101637,7 +107708,7 @@ def get_all_shared_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectionSharedKeyResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -101746,7 +107817,7 @@ async def list_default_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) _request = build_vpn_link_connections_list_default_shared_key_request( @@ -101817,7 +107888,7 @@ def list_by_vpn_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnSiteLinkConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -101908,7 +107979,7 @@ async def _reset_connection_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_link_connections_reset_connection_request( @@ -101984,7 +108055,7 @@ async def begin_reset_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102048,7 +108119,7 @@ async def _get_ike_sas_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_link_connections_get_ike_sas_request( @@ -102125,7 +108196,7 @@ async def begin_get_ike_sas( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102178,7 +108249,7 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class NatRulesOperations: +class NatRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -102224,7 +108295,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnGatewayNatRule] = kwargs.pop("cls", None) _request = build_nat_rules_get_request( @@ -102277,7 +108348,7 @@ async def _create_or_update_initial( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VpnGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[_models.VpnGatewayNatRule, _types.VpnGatewayNatRule, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -102291,7 +108362,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -102391,7 +108462,7 @@ async def begin_create_or_update( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: _types.VpnGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -102408,7 +108479,7 @@ async def begin_create_or_update( name can be used to access the resource. Required. :type nat_rule_name: str :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: JSON + :type nat_rule_parameters: ~azure.mgmt.network.types.VpnGatewayNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -102457,7 +108528,7 @@ async def begin_create_or_update( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VpnGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[_models.VpnGatewayNatRule, _types.VpnGatewayNatRule, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.VpnGatewayNatRule]: """Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat @@ -102471,9 +108542,10 @@ async def begin_create_or_update( :param nat_rule_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is one of the - following types: VpnGatewayNatRule, JSON, IO[bytes] Required. - :type nat_rule_parameters: ~azure.mgmt.network.models.VpnGatewayNatRule or JSON or IO[bytes] + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is either a + VpnGatewayNatRule type or a IO[bytes] type. Required. + :type nat_rule_parameters: ~azure.mgmt.network.models.VpnGatewayNatRule or + ~azure.mgmt.network.types.VpnGatewayNatRule or IO[bytes] :return: An instance of AsyncLROPoller that returns VpnGatewayNatRule. The VpnGatewayNatRule is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnGatewayNatRule] @@ -102482,7 +108554,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnGatewayNatRule] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -102548,7 +108620,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_nat_rules_delete_request( @@ -102618,7 +108690,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102680,7 +108752,7 @@ def list_by_vpn_gateway( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnGatewayNatRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -102752,7 +108824,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteConnectionsOperations: +class ExpressRouteConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -102774,7 +108846,9 @@ async def _create_or_update_initial( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: Union[_models.ExpressRouteConnection, JSON, IO[bytes]], + put_express_route_connection_parameters: Union[ + _models.ExpressRouteConnection, _types.ExpressRouteConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -102788,7 +108862,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -102888,7 +108962,7 @@ async def begin_create_or_update( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: JSON, + put_express_route_connection_parameters: _types.ExpressRouteConnection, *, content_type: str = "application/json", **kwargs: Any @@ -102904,7 +108978,7 @@ async def begin_create_or_update( :type connection_name: str :param put_express_route_connection_parameters: Parameters required in an ExpressRouteConnection PUT operation. Required. - :type put_express_route_connection_parameters: JSON + :type put_express_route_connection_parameters: ~azure.mgmt.network.types.ExpressRouteConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -102952,7 +109026,9 @@ async def begin_create_or_update( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: Union[_models.ExpressRouteConnection, JSON, IO[bytes]], + put_express_route_connection_parameters: Union[ + _models.ExpressRouteConnection, _types.ExpressRouteConnection, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.ExpressRouteConnection]: """Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. @@ -102965,10 +109041,11 @@ async def begin_create_or_update( :param connection_name: The name of the express route connection. Required. :type connection_name: str :param put_express_route_connection_parameters: Parameters required in an - ExpressRouteConnection PUT operation. Is one of the following types: ExpressRouteConnection, - JSON, IO[bytes] Required. + ExpressRouteConnection PUT operation. Is either a ExpressRouteConnection type or a IO[bytes] + type. Required. :type put_express_route_connection_parameters: - ~azure.mgmt.network.models.ExpressRouteConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.ExpressRouteConnection or + ~azure.mgmt.network.types.ExpressRouteConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns ExpressRouteConnection. The ExpressRouteConnection is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.ExpressRouteConnection] @@ -102977,7 +109054,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -103057,7 +109134,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteConnection] = kwargs.pop("cls", None) _request = build_express_route_connections_get_request( @@ -103119,7 +109196,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_connections_delete_request( @@ -103188,7 +109265,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -103259,7 +109336,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteConnectionList] = kwargs.pop("cls", None) _request = build_express_route_connections_list_request( @@ -103307,7 +109384,7 @@ async def list( return deserialized # type: ignore -class VirtualHubBgpConnectionOperations: +class VirtualHubBgpConnectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -103352,7 +109429,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BgpConnection] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connection_get_request( @@ -103405,7 +109482,7 @@ async def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: Union[_models.BgpConnection, JSON, IO[bytes]], + parameters: Union[_models.BgpConnection, _types.BgpConnection, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -103419,7 +109496,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -103518,7 +109595,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: JSON, + parameters: _types.BgpConnection, *, content_type: str = "application/json", **kwargs: Any @@ -103534,7 +109611,7 @@ async def begin_create_or_update( :param connection_name: The name of the connection. Required. :type connection_name: str :param parameters: Parameters of Bgp connection. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BgpConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -103582,7 +109659,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: Union[_models.BgpConnection, JSON, IO[bytes]], + parameters: Union[_models.BgpConnection, _types.BgpConnection, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.BgpConnection]: """Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing @@ -103595,9 +109672,10 @@ async def begin_create_or_update( :type virtual_hub_name: str :param connection_name: The name of the connection. Required. :type connection_name: str - :param parameters: Parameters of Bgp connection. Is one of the following types: BgpConnection, - JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BgpConnection or JSON or IO[bytes] + :param parameters: Parameters of Bgp connection. Is either a BgpConnection type or a IO[bytes] + type. Required. + :type parameters: ~azure.mgmt.network.models.BgpConnection or + ~azure.mgmt.network.types.BgpConnection or IO[bytes] :return: An instance of AsyncLROPoller that returns BgpConnection. The BgpConnection is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.BgpConnection] @@ -103606,7 +109684,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BgpConnection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -103672,7 +109750,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connection_delete_request( @@ -103741,7 +109819,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -103786,7 +109864,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VirtualHubBgpConnectionsOperations: +class VirtualHubBgpConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -103821,7 +109899,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BgpConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -103906,7 +109984,7 @@ async def _list_learned_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connections_list_learned_routes_request( @@ -103976,7 +110054,7 @@ async def begin_list_learned_routes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[dict[str, List[_models.PeerRoute]]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -104039,7 +110117,7 @@ async def _list_advertised_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connections_list_advertised_routes_request( @@ -104109,7 +110187,7 @@ async def begin_list_advertised_routes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[dict[str, List[_models.PeerRoute]]] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -104159,7 +110237,7 @@ def get_long_running_output(pipeline_response): ) -class VirtualHubIpConfigurationOperations: +class VirtualHubIpConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -104205,7 +110283,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.HubIpConfiguration] = kwargs.pop("cls", None) _request = build_virtual_hub_ip_configuration_get_request( @@ -104258,7 +110336,7 @@ async def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: Union[_models.HubIpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.HubIpConfiguration, _types.HubIpConfiguration, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -104272,7 +110350,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -104372,7 +110450,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: JSON, + parameters: _types.HubIpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -104389,7 +110467,7 @@ async def begin_create_or_update( name can be used to access the resource. Required. :type ip_config_name: str :param parameters: Hub Ip Configuration parameters. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.HubIpConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -104438,7 +110516,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: Union[_models.HubIpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.HubIpConfiguration, _types.HubIpConfiguration, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.HubIpConfiguration]: """Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing @@ -104452,9 +110530,10 @@ async def begin_create_or_update( :param ip_config_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type ip_config_name: str - :param parameters: Hub Ip Configuration parameters. Is one of the following types: - HubIpConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.HubIpConfiguration or JSON or IO[bytes] + :param parameters: Hub Ip Configuration parameters. Is either a HubIpConfiguration type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.HubIpConfiguration or + ~azure.mgmt.network.types.HubIpConfiguration or IO[bytes] :return: An instance of AsyncLROPoller that returns HubIpConfiguration. The HubIpConfiguration is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.HubIpConfiguration] @@ -104463,7 +110542,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HubIpConfiguration] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -104529,7 +110608,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_ip_configuration_delete_request( @@ -104599,7 +110678,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -104661,7 +110740,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.HubIpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -104733,7 +110812,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RoutingIntentOperations: +class RoutingIntentOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -104779,7 +110858,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RoutingIntent] = kwargs.pop("cls", None) _request = build_routing_intent_get_request( @@ -104832,7 +110911,7 @@ async def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: Union[_models.RoutingIntent, JSON, IO[bytes]], + routing_intent_parameters: Union[_models.RoutingIntent, _types.RoutingIntent, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -104846,7 +110925,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -104946,7 +111025,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: JSON, + routing_intent_parameters: _types.RoutingIntent, *, content_type: str = "application/json", **kwargs: Any @@ -104963,7 +111042,7 @@ async def begin_create_or_update( :type routing_intent_name: str :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Required. - :type routing_intent_parameters: JSON + :type routing_intent_parameters: ~azure.mgmt.network.types.RoutingIntent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -105012,7 +111091,7 @@ async def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: Union[_models.RoutingIntent, JSON, IO[bytes]], + routing_intent_parameters: Union[_models.RoutingIntent, _types.RoutingIntent, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.RoutingIntent]: """Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. @@ -105025,9 +111104,10 @@ async def begin_create_or_update( :param routing_intent_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type routing_intent_name: str - :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Is one - of the following types: RoutingIntent, JSON, IO[bytes] Required. - :type routing_intent_parameters: ~azure.mgmt.network.models.RoutingIntent or JSON or IO[bytes] + :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Is + either a RoutingIntent type or a IO[bytes] type. Required. + :type routing_intent_parameters: ~azure.mgmt.network.models.RoutingIntent or + ~azure.mgmt.network.types.RoutingIntent or IO[bytes] :return: An instance of AsyncLROPoller that returns RoutingIntent. The RoutingIntent is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.RoutingIntent] @@ -105036,7 +111116,7 @@ async def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RoutingIntent] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -105102,7 +111182,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_routing_intent_delete_request( @@ -105172,7 +111252,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -105234,7 +111314,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RoutingIntent]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105306,7 +111386,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AvailableDelegationsOperations: +class AvailableDelegationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -105336,7 +111416,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Availabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableDelegation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105407,7 +111487,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AvailableResourceGroupDelegationsOperations: # pylint: disable=name-too-long +class AvailableResourceGroupDelegationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -105442,7 +111522,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableDelegation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105514,7 +111594,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AvailableServiceAliasesOperations: +class AvailableServiceAliasesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -105545,7 +111625,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Availabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableServiceAlias]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105634,7 +111714,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableServiceAlias]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105706,7 +111786,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AzureFirewallFqdnTagsOperations: +class AzureFirewallFqdnTagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -105735,7 +111815,7 @@ def list_all(self, **kwargs: Any) -> AsyncItemPaged["_models.AzureFirewallFqdnTa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewallFqdnTag]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105805,7 +111885,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AvailableEndpointServicesOperations: +class AvailableEndpointServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -105836,7 +111916,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Endpoint _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.EndpointServiceResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105907,7 +111987,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ExpressRouteServiceProvidersOperations: +class ExpressRouteServiceProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -105936,7 +112016,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.ExpressRouteServiceProv _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteServiceProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106006,7 +112086,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterAssociableResourceTypesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAssociableResourceTypesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -106038,7 +112118,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Perimete _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PerimeterAssociableResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106109,7 +112189,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterOperationStatusesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterOperationStatusesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -106149,7 +112229,7 @@ async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models. _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None) _request = build_network_security_perimeter_operation_statuses_get_request( @@ -106197,7 +112277,7 @@ async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models. return deserialized # type: ignore -class NetworkSecurityPerimeterServiceTagsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterServiceTagsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -106229,7 +112309,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.NspServi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspServiceTagsResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106300,7 +112380,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class AvailablePrivateEndpointTypesOperations: +class AvailablePrivateEndpointTypesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106332,7 +112412,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Availabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailablePrivateEndpointType]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106422,7 +112502,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailablePrivateEndpointType]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106494,7 +112574,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class BgpServiceCommunitiesOperations: +class BgpServiceCommunitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106522,7 +112602,7 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.BgpServiceCommunity"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BgpServiceCommunity]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106592,7 +112672,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ServiceTagsOperations: +class ServiceTagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106630,7 +112710,7 @@ async def list(self, location: str, **kwargs: Any) -> _models.ServiceTagsListRes _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceTagsListResult] = kwargs.pop("cls", None) _request = build_service_tags_list_request( @@ -106677,7 +112757,7 @@ async def list(self, location: str, **kwargs: Any) -> _models.ServiceTagsListRes return deserialized # type: ignore -class ServiceTagInformationOperations: +class ServiceTagInformationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106720,7 +112800,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceTagInformation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106793,7 +112873,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106823,7 +112903,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Usage"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106910,13 +112990,13 @@ class _NetworkManagementClientOperationsMixin( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _put_bastion_shareable_link_initial( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -106930,7 +113010,7 @@ async def _put_bastion_shareable_link_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -107023,7 +113103,7 @@ async def begin_put_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -107037,7 +113117,7 @@ async def begin_put_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -107091,13 +113171,13 @@ async def begin_put_bastion_shareable_link( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_put_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.BastionShareableLink"]]: """Creates a Bastion Shareable Links for all the VMs specified in the request. @@ -107107,10 +113187,10 @@ async def begin_put_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An instance of LROPoller that returns an iterator like instance of list of BastionShareableLink :rtype: @@ -107121,7 +113201,7 @@ async def begin_put_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionShareableLink]] = kwargs.pop("cls", None) @@ -107253,13 +113333,13 @@ async def internal_get_next(next_link=None): params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _delete_bastion_shareable_link_initial( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -107273,7 +113353,7 @@ async def _delete_bastion_shareable_link_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -107364,7 +113444,7 @@ async def begin_delete_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -107378,7 +113458,7 @@ async def begin_delete_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -107421,13 +113501,13 @@ async def begin_delete_bastion_shareable_link( params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_delete_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the Bastion Shareable Links for all the VMs specified in the request. @@ -107437,10 +113517,10 @@ async def begin_delete_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -107448,7 +113528,7 @@ async def begin_delete_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -107499,13 +113579,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _delete_bastion_shareable_link_by_token_initial( # pylint: disable=name-too-long self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: Union[_models.BastionShareableLinkTokenListRequest, JSON, IO[bytes]], + bsl_token_request: Union[ + _models.BastionShareableLinkTokenListRequest, _types.BastionShareableLinkTokenListRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -107519,7 +113601,7 @@ async def _delete_bastion_shareable_link_by_token_initial( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -107609,7 +113691,7 @@ async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name- self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: JSON, + bsl_token_request: _types.BastionShareableLinkTokenListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -107623,7 +113705,7 @@ async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name- :type bastion_host_name: str :param bsl_token_request: Post request for Delete Bastion Shareable Link By Token endpoint. Required. - :type bsl_token_request: JSON + :type bsl_token_request: ~azure.mgmt.network.types.BastionShareableLinkTokenListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -107666,13 +113748,15 @@ async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name- params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-long self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: Union[_models.BastionShareableLinkTokenListRequest, JSON, IO[bytes]], + bsl_token_request: Union[ + _models.BastionShareableLinkTokenListRequest, _types.BastionShareableLinkTokenListRequest, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the Bastion Shareable Links for all the tokens specified in the request. @@ -107683,9 +113767,9 @@ async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name- :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param bsl_token_request: Post request for Delete Bastion Shareable Link By Token endpoint. Is - one of the following types: BastionShareableLinkTokenListRequest, JSON, IO[bytes] Required. + either a BastionShareableLinkTokenListRequest type or a IO[bytes] type. Required. :type bsl_token_request: ~azure.mgmt.network.models.BastionShareableLinkTokenListRequest or - JSON or IO[bytes] + ~azure.mgmt.network.types.BastionShareableLinkTokenListRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -107693,7 +113777,7 @@ async def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -107773,7 +113857,7 @@ def get_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -107787,7 +113871,7 @@ def get_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -107839,13 +113923,13 @@ def get_bastion_shareable_link( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def get_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> AsyncItemPaged["_models.BastionShareableLink"]: """Return the Bastion Shareable Links for all the VMs specified in the request. @@ -107855,10 +113939,10 @@ def get_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An iterator like instance of BastionShareableLink :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.BastionShareableLink] @@ -107867,7 +113951,7 @@ def get_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionShareableLink]] = kwargs.pop("cls", None) @@ -107952,7 +114036,7 @@ async def get_next(next_link=None): params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _get_active_sessions_initial( self, resource_group_name: str, bastion_host_name: str, **kwargs: Any @@ -107968,7 +114052,7 @@ async def _get_active_sessions_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_network_management_get_active_sessions_request( @@ -108022,7 +114106,7 @@ async def _get_active_sessions_initial( params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_get_active_sessions( self, resource_group_name: str, bastion_host_name: str, **kwargs: Any @@ -108044,7 +114128,7 @@ async def begin_get_active_sessions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionActiveSession]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -108192,7 +114276,7 @@ def disconnect_active_sessions( self, resource_group_name: str, bastion_host_name: str, - session_ids: JSON, + session_ids: _types.SessionIds, *, content_type: str = "application/json", **kwargs: Any @@ -108205,7 +114289,7 @@ def disconnect_active_sessions( :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param session_ids: The list of sessionids to disconnect. Required. - :type session_ids: JSON + :type session_ids: ~azure.mgmt.network.types.SessionIds :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -108254,13 +114338,13 @@ def disconnect_active_sessions( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def disconnect_active_sessions( self, resource_group_name: str, bastion_host_name: str, - session_ids: Union[_models.SessionIds, JSON, IO[bytes]], + session_ids: Union[_models.SessionIds, _types.SessionIds, IO[bytes]], **kwargs: Any ) -> AsyncItemPaged["_models.BastionSessionState"]: """Returns the list of currently active sessions on the Bastion. @@ -108270,9 +114354,10 @@ def disconnect_active_sessions( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param session_ids: The list of sessionids to disconnect. Is one of the following types: - SessionIds, JSON, IO[bytes] Required. - :type session_ids: ~azure.mgmt.network.models.SessionIds or JSON or IO[bytes] + :param session_ids: The list of sessionids to disconnect. Is either a SessionIds type or a + IO[bytes] type. Required. + :type session_ids: ~azure.mgmt.network.models.SessionIds or + ~azure.mgmt.network.types.SessionIds or IO[bytes] :return: An iterator like instance of BastionSessionState :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.network.models.BastionSessionState] :raises ~azure.core.exceptions.HttpResponseError: @@ -108280,7 +114365,7 @@ def disconnect_active_sessions( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionSessionState]] = kwargs.pop("cls", None) @@ -108364,7 +114449,7 @@ async def get_next(next_link=None): @api_version_validation( method_added_on="2025-05-01", params_added_on={"2025-05-01": ["api_version", "subscription_id", "providerport", "accept"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def express_route_provider_port(self, providerport: str, **kwargs: Any) -> _models.ExpressRouteProviderPort: """Retrieves detail of a provider port. @@ -108387,7 +114472,7 @@ async def express_route_provider_port(self, providerport: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteProviderPort] = kwargs.pop("cls", None) _request = build_network_management_express_route_provider_port_request( @@ -108470,7 +114555,7 @@ async def list_active_connectivity_configurations( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.ActiveConfigurationParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -108484,7 +114569,7 @@ async def list_active_connectivity_configurations( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Active Configuration Parameter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ActiveConfigurationParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108543,13 +114628,13 @@ async def list_active_connectivity_configurations( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def list_active_connectivity_configurations( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.ActiveConfigurationParameter, JSON, IO[bytes]], + parameters: Union[_models.ActiveConfigurationParameter, _types.ActiveConfigurationParameter, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -108561,9 +114646,10 @@ async def list_active_connectivity_configurations( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Active Configuration Parameter. Is one of the following types: - ActiveConfigurationParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or JSON or IO[bytes] + :param parameters: Active Configuration Parameter. Is either a ActiveConfigurationParameter + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or + ~azure.mgmt.network.types.ActiveConfigurationParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108583,7 +114669,7 @@ async def list_active_connectivity_configurations( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActiveConnectivityConfigurationsListResult] = kwargs.pop("cls", None) @@ -108678,7 +114764,7 @@ async def list_active_security_admin_rules( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.ActiveConfigurationParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -108692,7 +114778,7 @@ async def list_active_security_admin_rules( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Active Configuration Parameter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ActiveConfigurationParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108751,13 +114837,13 @@ async def list_active_security_admin_rules( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def list_active_security_admin_rules( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.ActiveConfigurationParameter, JSON, IO[bytes]], + parameters: Union[_models.ActiveConfigurationParameter, _types.ActiveConfigurationParameter, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -108769,9 +114855,10 @@ async def list_active_security_admin_rules( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Active Configuration Parameter. Is one of the following types: - ActiveConfigurationParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or JSON or IO[bytes] + :param parameters: Active Configuration Parameter. Is either a ActiveConfigurationParameter + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or + ~azure.mgmt.network.types.ActiveConfigurationParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108791,7 +114878,7 @@ async def list_active_security_admin_rules( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActiveSecurityAdminRulesListResult] = kwargs.pop("cls", None) @@ -108886,7 +114973,7 @@ async def list_network_manager_effective_connectivity_configurations( # pylint: self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.QueryRequestOptions, *, top: Optional[int] = None, content_type: str = "application/json", @@ -108900,7 +114987,7 @@ async def list_network_manager_effective_connectivity_configurations( # pylint: :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to list correct page. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryRequestOptions :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108959,13 +115046,13 @@ async def list_network_manager_effective_connectivity_configurations( # pylint: "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def list_network_manager_effective_connectivity_configurations( # pylint: disable=name-too-long self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.QueryRequestOptions, JSON, IO[bytes]], + parameters: Union[_models.QueryRequestOptions, _types.QueryRequestOptions, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -108977,9 +115064,10 @@ async def list_network_manager_effective_connectivity_configurations( # pylint: :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :param parameters: Parameters supplied to list correct page. Is one of the following types: - QueryRequestOptions, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or JSON or IO[bytes] + :param parameters: Parameters supplied to list correct page. Is either a QueryRequestOptions + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or + ~azure.mgmt.network.types.QueryRequestOptions or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -108999,7 +115087,7 @@ async def list_network_manager_effective_connectivity_configurations( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerEffectiveConnectivityConfigurationListResult] = kwargs.pop("cls", None) @@ -109096,7 +115184,7 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.QueryRequestOptions, *, top: Optional[int] = None, content_type: str = "application/json", @@ -109110,7 +115198,7 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to list correct page. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryRequestOptions :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -109169,13 +115257,13 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def list_network_manager_effective_security_admin_rules( # pylint: disable=name-too-long self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.QueryRequestOptions, JSON, IO[bytes]], + parameters: Union[_models.QueryRequestOptions, _types.QueryRequestOptions, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -109187,9 +115275,10 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :param parameters: Parameters supplied to list correct page. Is one of the following types: - QueryRequestOptions, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or JSON or IO[bytes] + :param parameters: Parameters supplied to list correct page. Is either a QueryRequestOptions + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or + ~azure.mgmt.network.types.QueryRequestOptions or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -109209,7 +115298,7 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerEffectiveSecurityAdminRulesListResult] = kwargs.pop("cls", None) @@ -109273,7 +115362,7 @@ async def list_network_manager_effective_security_admin_rules( # pylint: disabl params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "virtual_wan_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def supported_security_providers( self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any @@ -109301,7 +115390,7 @@ async def supported_security_providers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualWanSecurityProviders] = kwargs.pop("cls", None) _request = build_network_management_supported_security_providers_request( @@ -109360,13 +115449,15 @@ async def supported_security_providers( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def _generatevirtualwanvpnserverconfigurationvpnprofile_initial( # pylint: disable=name-too-long self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: Union[_models.VirtualWanVpnProfileParameters, JSON, IO[bytes]], + vpn_client_params: Union[ + _models.VirtualWanVpnProfileParameters, _types.VirtualWanVpnProfileParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -109380,7 +115471,7 @@ async def _generatevirtualwanvpnserverconfigurationvpnprofile_initial( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -109473,7 +115564,7 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: d self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: JSON, + vpn_client_params: _types.VirtualWanVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -109488,7 +115579,7 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: d :type virtual_wan_name: str :param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation operation. Required. - :type vpn_client_params: JSON + :type vpn_client_params: ~azure.mgmt.network.types.VirtualWanVpnProfileParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -109541,13 +115632,15 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: d "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable=name-too-long self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: Union[_models.VirtualWanVpnProfileParameters, JSON, IO[bytes]], + vpn_client_params: Union[ + _models.VirtualWanVpnProfileParameters, _types.VirtualWanVpnProfileParameters, IO[bytes] + ], **kwargs: Any ) -> AsyncLROPoller[_models.VpnProfileResponse]: """Generates a unique VPN profile for P2S clients for VirtualWan and associated @@ -109559,10 +115652,9 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: d :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str :param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation - operation. Is one of the following types: VirtualWanVpnProfileParameters, JSON, IO[bytes] - Required. - :type vpn_client_params: ~azure.mgmt.network.models.VirtualWanVpnProfileParameters or JSON or - IO[bytes] + operation. Is either a VirtualWanVpnProfileParameters type or a IO[bytes] type. Required. + :type vpn_client_params: ~azure.mgmt.network.models.VirtualWanVpnProfileParameters or + ~azure.mgmt.network.types.VirtualWanVpnProfileParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns VpnProfileResponse. The VpnProfileResponse is compatible with MutableMapping :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.network.models.VpnProfileResponse] @@ -109571,7 +115663,7 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnProfileResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -109626,7 +115718,7 @@ def get_long_running_output(pipeline_response): @api_version_validation( method_added_on="2025-05-01", params_added_on={"2025-05-01": ["api_version", "subscription_id", "location", "domain_name_label", "accept"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) async def check_dns_name_availability( self, location: str, *, domain_name_label: str, **kwargs: Any @@ -109654,7 +115746,7 @@ async def check_dns_name_availability( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DnsNameAvailabilityResult] = kwargs.pop("cls", None) _request = build_network_management_check_dns_name_availability_request( diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_patch.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_patch.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py index b4ec8bc1524b..f28474530f73 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py @@ -25,6 +25,8 @@ ActiveSecurityAdminRule, ActiveSecurityAdminRulesListResult, AddressPrefixItem, + AddressPrefixSet, + AddressPrefixSetPropertiesFormat, AddressSpace, AdminPropertiesFormat, AdminRule, @@ -209,6 +211,10 @@ CommonResource, CommonTrackedResource, ConfigurationGroup, + ConnectionAnalyzer, + ConnectionAnalyzerEndpoint, + ConnectionAnalyzerProperties, + ConnectionAnalyzerQueryStatusResult, ConnectionMonitor, ConnectionMonitorDestination, ConnectionMonitorEndpoint, @@ -234,6 +240,7 @@ ConnectionResetSharedKey, ConnectionSharedKey, ConnectionSharedKeyResult, + ConnectivityCheckSettings, ConnectivityConfiguration, ConnectivityConfigurationProperties, ConnectivityConfigurationPropertiesConnectivityCapabilities, @@ -271,6 +278,8 @@ DelegationProperties, DeviceProperties, DhcpOptions, + DiagnosticOperationResult, + DiagnosticOperationsSettings, Dimension, DisassociateCloudServicePublicIpRequest, DnsNameAvailabilityResult, @@ -331,6 +340,7 @@ ExpressRouteCrossConnectionProperties, ExpressRouteCrossConnectionRoutesTableSummary, ExpressRouteCrossConnectionsRoutesTableSummaryListResult, + ExpressRouteDiagnosticsSettings, ExpressRouteFailoverCircuitResourceDetails, ExpressRouteFailoverConnectionResourceDetails, ExpressRouteFailoverRedundantRoute, @@ -342,6 +352,13 @@ ExpressRouteGatewayProperties, ExpressRouteGatewayPropertiesAutoScaleConfiguration, ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, + ExpressRouteLag, + ExpressRouteLagLink, + ExpressRouteLagLinkPropertiesFormat, + ExpressRouteLagMember, + ExpressRouteLagMemberPropertiesFormat, + ExpressRouteLagPropertiesFormat, + ExpressRouteLagUpdateTagsOrIdentityRequest, ExpressRouteLink, ExpressRouteLinkFailoverAllTestsDetails, ExpressRouteLinkFailoverRoute, @@ -380,6 +397,8 @@ FirewallPolicyIntrusionDetectionBypassTrafficSpecifications, FirewallPolicyIntrusionDetectionConfiguration, FirewallPolicyIntrusionDetectionSignatureSpecification, + FirewallPolicyKubeSelectorGroup, + FirewallPolicyKubeSelectorGroupProperties, FirewallPolicyLogAnalyticsResources, FirewallPolicyLogAnalyticsWorkspace, FirewallPolicyNatRuleCollection, @@ -397,6 +416,8 @@ FirewallPolicySku, FirewallPolicyThreatIntelWhitelist, FirewallPolicyTransportSecurity, + FirstPartyServiceTag, + FirstPartyServiceTagPropertiesFormat, FlowLog, FlowLogFormatParameters, FlowLogInformation, @@ -406,6 +427,8 @@ FrontendIPConfiguration, FrontendIPConfigurationPropertiesFormat, GatewayCustomBgpIpAddressIpConfiguration, + GatewayEffectiveRoute, + GatewayEffectiveRouteListResult, GatewayLoadBalancerTunnelInterface, GatewayResiliencyInformation, GatewayResiliencyRecommendation, @@ -413,6 +436,8 @@ GatewayRouteListResult, GatewayRouteSet, GatewayRouteSetsInformation, + GenerateExpressRouteLagsLOARequest, + GenerateExpressRouteLagsLOAResult, GenerateExpressRoutePortsLOARequest, GenerateExpressRoutePortsLOAResult, GetInboundRoutesParameters, @@ -472,6 +497,8 @@ IpsecPolicy, Ipv6CircuitConnectionConfig, Ipv6ExpressRouteCircuitPeeringConfig, + KubeLabelSelector, + LabelSelectorExpression, LoadBalancer, LoadBalancerBackendAddress, LoadBalancerBackendAddressPropertiesFormat, @@ -500,6 +527,9 @@ MetricSpecification, MigrateLoadBalancerToIpBasedRequest, MigratedPools, + MoveIpConfigurationItem, + MoveIpConfigurationResourceReference, + MoveIpConfigurationsRequest, NatGateway, NatGatewayPropertiesFormat, NatGatewaySku, @@ -548,10 +578,17 @@ NetworkSecurityRulesEvaluationResult, NetworkVirtualAppliance, NetworkVirtualApplianceBootDiagnosticParameters, + NetworkVirtualApplianceCommitMigrationProperties, + NetworkVirtualApplianceCommitMigrationRequest, NetworkVirtualApplianceConnection, NetworkVirtualApplianceConnectionProperties, + NetworkVirtualApplianceExecuteMigrationProperties, + NetworkVirtualApplianceExecuteMigrationRequest, NetworkVirtualApplianceInstanceId, NetworkVirtualApplianceInstanceIds, + NetworkVirtualApplianceMigrationStatus, + NetworkVirtualAppliancePrepareMigrationProperties, + NetworkVirtualAppliancePrepareMigrationRequest, NetworkVirtualAppliancePropertiesFormat, NetworkVirtualAppliancePropertiesFormatNetworkProfile, NetworkVirtualApplianceSku, @@ -587,6 +624,7 @@ OrderBy, OutboundRule, OutboundRulePropertiesFormat, + OutputSettings, OwaspCrsExclusionEntry, P2SConnectionConfiguration, P2SConnectionConfigurationProperties, @@ -643,6 +681,7 @@ ProbePropertiesFormat, PropagatedRouteTable, ProtocolConfiguration, + ProtocolSettings, ProxyResource, ProxyResourceWithReadOnlyID, ProxyResourceWithSettableId, @@ -736,6 +775,7 @@ ServiceEndpointPolicyPropertiesFormat, ServiceEndpointPropertiesFormat, ServiceGateway, + ServiceGatewayActionOkResponseBody, ServiceGatewayAddress, ServiceGatewayAddressLocation, ServiceGatewayAddressLocationResponse, @@ -766,6 +806,7 @@ StaticRoutesConfig, StopCircuitLinkFailoverTestParameterBody, StopSiteFailoverTestParameterBody, + StorageAccountSettings, SubResource, SubResourceModel, Subgroup, @@ -987,6 +1028,8 @@ ConfigurationType, ConnectedGroupAddressOverlap, ConnectedGroupPrivateEndpointsScale, + ConnectionAnalyzerEndpointType, + ConnectionAnalyzerStatus, ConnectionAuthenticationType, ConnectionMonitorEndpointFilterItemType, ConnectionMonitorEndpointFilterType, @@ -1005,6 +1048,7 @@ DeploymentStatus, DestinationPortBehavior, DhGroup, + DiagnosticOperation, Direction, DisableBgpRoutePropagation, DisablePeeringRoute, @@ -1012,6 +1056,7 @@ EffectiveRouteSource, EffectiveRouteState, EffectiveSecurityRuleProtocol, + EnableOnlyIpv6PeeringState, EndpointType, ExceptionEntryMatchVariable, ExceptionEntrySelectorMatchOperator, @@ -1022,6 +1067,9 @@ ExpressRouteCircuitSkuTier, ExpressRouteFailoverBgpStatusAddressFamily, ExpressRouteFailoverLinkType, + ExpressRouteLagBillingType, + ExpressRouteLagEncapsulation, + ExpressRouteLagLacpTimer, ExpressRouteLinkAdminState, ExpressRouteLinkConnectorType, ExpressRouteLinkFailoverBgpStatus, @@ -1052,6 +1100,7 @@ FirewallPolicyRuleType, FirewallPolicySkuTier, FlowLogFormatType, + GatewayEffectiveRouteNextHopType, GatewayLoadBalancerTunnelInterfaceType, GatewayLoadBalancerTunnelProtocol, Geo, @@ -1077,8 +1126,10 @@ IsRollback, IsWorkloadProtected, IssueType, + LabelSelectorOperator, LoadBalancerBackendAddressAdminState, LoadBalancerDetailLevel, + LoadBalancerMode, LoadBalancerOutboundRuleProtocol, LoadBalancerScope, LoadBalancerSkuName, @@ -1086,6 +1137,7 @@ LoadDistribution, MaintenanceTestCategory, ManagedRuleEnabledState, + MigrationType, Nat64State, NatGatewaySkuName, NetworkIntentPolicyBasedService, @@ -1131,6 +1183,7 @@ PublicIPPrefixSkuName, PublicIPPrefixSkuTier, PublicIpAddressDnsSettingsDomainNameLabelScope, + ResiliencyLevel, ResiliencyModel, ResourceIdentityType, RouteFilterRuleType, @@ -1224,6 +1277,8 @@ "ActiveSecurityAdminRule", "ActiveSecurityAdminRulesListResult", "AddressPrefixItem", + "AddressPrefixSet", + "AddressPrefixSetPropertiesFormat", "AddressSpace", "AdminPropertiesFormat", "AdminRule", @@ -1408,6 +1463,10 @@ "CommonResource", "CommonTrackedResource", "ConfigurationGroup", + "ConnectionAnalyzer", + "ConnectionAnalyzerEndpoint", + "ConnectionAnalyzerProperties", + "ConnectionAnalyzerQueryStatusResult", "ConnectionMonitor", "ConnectionMonitorDestination", "ConnectionMonitorEndpoint", @@ -1433,6 +1492,7 @@ "ConnectionResetSharedKey", "ConnectionSharedKey", "ConnectionSharedKeyResult", + "ConnectivityCheckSettings", "ConnectivityConfiguration", "ConnectivityConfigurationProperties", "ConnectivityConfigurationPropertiesConnectivityCapabilities", @@ -1470,6 +1530,8 @@ "DelegationProperties", "DeviceProperties", "DhcpOptions", + "DiagnosticOperationResult", + "DiagnosticOperationsSettings", "Dimension", "DisassociateCloudServicePublicIpRequest", "DnsNameAvailabilityResult", @@ -1530,6 +1592,7 @@ "ExpressRouteCrossConnectionProperties", "ExpressRouteCrossConnectionRoutesTableSummary", "ExpressRouteCrossConnectionsRoutesTableSummaryListResult", + "ExpressRouteDiagnosticsSettings", "ExpressRouteFailoverCircuitResourceDetails", "ExpressRouteFailoverConnectionResourceDetails", "ExpressRouteFailoverRedundantRoute", @@ -1541,6 +1604,13 @@ "ExpressRouteGatewayProperties", "ExpressRouteGatewayPropertiesAutoScaleConfiguration", "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds", + "ExpressRouteLag", + "ExpressRouteLagLink", + "ExpressRouteLagLinkPropertiesFormat", + "ExpressRouteLagMember", + "ExpressRouteLagMemberPropertiesFormat", + "ExpressRouteLagPropertiesFormat", + "ExpressRouteLagUpdateTagsOrIdentityRequest", "ExpressRouteLink", "ExpressRouteLinkFailoverAllTestsDetails", "ExpressRouteLinkFailoverRoute", @@ -1579,6 +1649,8 @@ "FirewallPolicyIntrusionDetectionBypassTrafficSpecifications", "FirewallPolicyIntrusionDetectionConfiguration", "FirewallPolicyIntrusionDetectionSignatureSpecification", + "FirewallPolicyKubeSelectorGroup", + "FirewallPolicyKubeSelectorGroupProperties", "FirewallPolicyLogAnalyticsResources", "FirewallPolicyLogAnalyticsWorkspace", "FirewallPolicyNatRuleCollection", @@ -1596,6 +1668,8 @@ "FirewallPolicySku", "FirewallPolicyThreatIntelWhitelist", "FirewallPolicyTransportSecurity", + "FirstPartyServiceTag", + "FirstPartyServiceTagPropertiesFormat", "FlowLog", "FlowLogFormatParameters", "FlowLogInformation", @@ -1605,6 +1679,8 @@ "FrontendIPConfiguration", "FrontendIPConfigurationPropertiesFormat", "GatewayCustomBgpIpAddressIpConfiguration", + "GatewayEffectiveRoute", + "GatewayEffectiveRouteListResult", "GatewayLoadBalancerTunnelInterface", "GatewayResiliencyInformation", "GatewayResiliencyRecommendation", @@ -1612,6 +1688,8 @@ "GatewayRouteListResult", "GatewayRouteSet", "GatewayRouteSetsInformation", + "GenerateExpressRouteLagsLOARequest", + "GenerateExpressRouteLagsLOAResult", "GenerateExpressRoutePortsLOARequest", "GenerateExpressRoutePortsLOAResult", "GetInboundRoutesParameters", @@ -1671,6 +1749,8 @@ "IpsecPolicy", "Ipv6CircuitConnectionConfig", "Ipv6ExpressRouteCircuitPeeringConfig", + "KubeLabelSelector", + "LabelSelectorExpression", "LoadBalancer", "LoadBalancerBackendAddress", "LoadBalancerBackendAddressPropertiesFormat", @@ -1699,6 +1779,9 @@ "MetricSpecification", "MigrateLoadBalancerToIpBasedRequest", "MigratedPools", + "MoveIpConfigurationItem", + "MoveIpConfigurationResourceReference", + "MoveIpConfigurationsRequest", "NatGateway", "NatGatewayPropertiesFormat", "NatGatewaySku", @@ -1747,10 +1830,17 @@ "NetworkSecurityRulesEvaluationResult", "NetworkVirtualAppliance", "NetworkVirtualApplianceBootDiagnosticParameters", + "NetworkVirtualApplianceCommitMigrationProperties", + "NetworkVirtualApplianceCommitMigrationRequest", "NetworkVirtualApplianceConnection", "NetworkVirtualApplianceConnectionProperties", + "NetworkVirtualApplianceExecuteMigrationProperties", + "NetworkVirtualApplianceExecuteMigrationRequest", "NetworkVirtualApplianceInstanceId", "NetworkVirtualApplianceInstanceIds", + "NetworkVirtualApplianceMigrationStatus", + "NetworkVirtualAppliancePrepareMigrationProperties", + "NetworkVirtualAppliancePrepareMigrationRequest", "NetworkVirtualAppliancePropertiesFormat", "NetworkVirtualAppliancePropertiesFormatNetworkProfile", "NetworkVirtualApplianceSku", @@ -1786,6 +1876,7 @@ "OrderBy", "OutboundRule", "OutboundRulePropertiesFormat", + "OutputSettings", "OwaspCrsExclusionEntry", "P2SConnectionConfiguration", "P2SConnectionConfigurationProperties", @@ -1842,6 +1933,7 @@ "ProbePropertiesFormat", "PropagatedRouteTable", "ProtocolConfiguration", + "ProtocolSettings", "ProxyResource", "ProxyResourceWithReadOnlyID", "ProxyResourceWithSettableId", @@ -1935,6 +2027,7 @@ "ServiceEndpointPolicyPropertiesFormat", "ServiceEndpointPropertiesFormat", "ServiceGateway", + "ServiceGatewayActionOkResponseBody", "ServiceGatewayAddress", "ServiceGatewayAddressLocation", "ServiceGatewayAddressLocationResponse", @@ -1965,6 +2058,7 @@ "StaticRoutesConfig", "StopCircuitLinkFailoverTestParameterBody", "StopSiteFailoverTestParameterBody", + "StorageAccountSettings", "SubResource", "SubResourceModel", "Subgroup", @@ -2183,6 +2277,8 @@ "ConfigurationType", "ConnectedGroupAddressOverlap", "ConnectedGroupPrivateEndpointsScale", + "ConnectionAnalyzerEndpointType", + "ConnectionAnalyzerStatus", "ConnectionAuthenticationType", "ConnectionMonitorEndpointFilterItemType", "ConnectionMonitorEndpointFilterType", @@ -2201,6 +2297,7 @@ "DeploymentStatus", "DestinationPortBehavior", "DhGroup", + "DiagnosticOperation", "Direction", "DisableBgpRoutePropagation", "DisablePeeringRoute", @@ -2208,6 +2305,7 @@ "EffectiveRouteSource", "EffectiveRouteState", "EffectiveSecurityRuleProtocol", + "EnableOnlyIpv6PeeringState", "EndpointType", "ExceptionEntryMatchVariable", "ExceptionEntrySelectorMatchOperator", @@ -2218,6 +2316,9 @@ "ExpressRouteCircuitSkuTier", "ExpressRouteFailoverBgpStatusAddressFamily", "ExpressRouteFailoverLinkType", + "ExpressRouteLagBillingType", + "ExpressRouteLagEncapsulation", + "ExpressRouteLagLacpTimer", "ExpressRouteLinkAdminState", "ExpressRouteLinkConnectorType", "ExpressRouteLinkFailoverBgpStatus", @@ -2248,6 +2349,7 @@ "FirewallPolicyRuleType", "FirewallPolicySkuTier", "FlowLogFormatType", + "GatewayEffectiveRouteNextHopType", "GatewayLoadBalancerTunnelInterfaceType", "GatewayLoadBalancerTunnelProtocol", "Geo", @@ -2273,8 +2375,10 @@ "IsRollback", "IsWorkloadProtected", "IssueType", + "LabelSelectorOperator", "LoadBalancerBackendAddressAdminState", "LoadBalancerDetailLevel", + "LoadBalancerMode", "LoadBalancerOutboundRuleProtocol", "LoadBalancerScope", "LoadBalancerSkuName", @@ -2282,6 +2386,7 @@ "LoadDistribution", "MaintenanceTestCategory", "ManagedRuleEnabledState", + "MigrationType", "Nat64State", "NatGatewaySkuName", "NetworkIntentPolicyBasedService", @@ -2327,6 +2432,7 @@ "PublicIPPrefixSkuName", "PublicIPPrefixSkuTier", "PublicIpAddressDnsSettingsDomainNameLabelScope", + "ResiliencyLevel", "ResiliencyModel", "ResourceIdentityType", "RouteFilterRuleType", diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_enums.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_enums.py index 8a4dd63dd433..36505ce6d398 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_enums.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_enums.py @@ -817,6 +817,35 @@ class ConnectedGroupPrivateEndpointsScale(str, Enum, metaclass=CaseInsensitiveEn """Allows for up to 20K private endpoints in the connected group.""" +class ConnectionAnalyzerEndpointType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The endpoint type for a connection analyzer source or destination.""" + + VM = "VM" + """An Azure virtual machine endpoint, identified by its ARM resource ID.""" + VMSS = "VMSS" + """An Azure virtual machine scale set (or scale set instance) endpoint, identified by its ARM + resource ID.""" + EXTERNAL_ADDRESS = "ExternalAddress" + """An external endpoint reachable from outside Azure, identified by an IP address or FQDN.""" + BASTION_HOST = "BastionHost" + """An Azure Bastion host endpoint, identified by its ARM resource ID.""" + APPLICATION_GATEWAY = "ApplicationGateway" + """An Application Gateway endpoint, identified by its ARM resource ID.""" + + +class ConnectionAnalyzerStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Current execution status of the connection analyzer.""" + + NOT_STARTED = "NotStarted" + """The connection analyzer has been created but execution has not yet begun.""" + RUNNING = "Running" + """The connection analyzer is currently running its diagnostic operations.""" + SUCCEEDED = "Succeeded" + """The connection analyzer completed all diagnostic operations successfully.""" + FAILED = "Failed" + """The connection analyzer failed to complete its diagnostic operations.""" + + class ConnectionAuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Gateway connection authentication type.""" @@ -1015,6 +1044,21 @@ class DhGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta): """DHGroup24.""" +class DiagnosticOperation(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type of diagnostic operation to run on a connection analyzer.""" + + NEXT_HOP = "NextHop" + """Determines the next hop for traffic from the source to the destination.""" + NSG = "NSG" + """Evaluates the network security group rules that apply to the traffic.""" + PORT_SCAN = "PortScan" + """Scans the destination ports to determine their reachability.""" + CONNECTIVITY_CHECK = "ConnectivityCheck" + """Performs an end-to-end connectivity check between the source and destination.""" + EXPRESS_ROUTE_DIAGNOSTIC = "ExpressRouteDiagnostic" + """Runs Express Route specific diagnostics for the connection.""" + + class Direction(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The direction of the traffic.""" @@ -1084,6 +1128,15 @@ class EffectiveSecurityRuleProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta """All.""" +class EnableOnlyIpv6PeeringState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The state of IPv6 peering.""" + + ENABLED = "Enabled" + """IPv6 peering is enabled.""" + DISABLED = "Disabled" + """IPv6 peering is disabled.""" + + class EndpointType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The endpoint type.""" @@ -1192,6 +1245,8 @@ class ExpressRouteCircuitSkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Basic.""" LOCAL = "Local" """Local.""" + MULTI_CLOUD = "MultiCloud" + """MultiCloud tier for cross-cloud connectivity.""" class ExpressRouteFailoverBgpStatusAddressFamily( # pylint: disable=name-too-long @@ -1214,6 +1269,33 @@ class ExpressRouteFailoverLinkType(str, Enum, metaclass=CaseInsensitiveEnumMeta) """Secondary link.""" +class ExpressRouteLagBillingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The billing type of the ExpressRouteLag resource.""" + + METERED_DATA = "MeteredData" + """Metered data transfer billing.""" + UNLIMITED_DATA = "UnlimitedData" + """Unlimited data transfer billing.""" + + +class ExpressRouteLagEncapsulation(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Encapsulation method on LAG.""" + + DOT1_Q = "Dot1Q" + """IEEE 802.1Q encapsulation.""" + QIN_Q = "QinQ" + """IEEE 802.1ad encapsulation.""" + + +class ExpressRouteLagLacpTimer(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """LACP timer configuration.""" + + FAST = "Fast" + """Fast LACP timer (30 seconds).""" + SLOW = "Slow" + """Slow LACP timer (90 seconds).""" + + class ExpressRouteLinkAdminState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Administrative state of the physical port.""" @@ -1568,6 +1650,17 @@ class FlowLogFormatType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """JSON.""" +class GatewayEffectiveRouteNextHopType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The next hop type of a gateway effective route.""" + + TUNNEL = "Tunnel" + """The next hop is a VPN tunnel.""" + VIRTUAL_NETWORK = "VirtualNetwork" + """The next hop is within the local virtual network.""" + UNKNOWN = "Unknown" + """The next hop type could not be determined.""" + + class GatewayLoadBalancerTunnelInterfaceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Traffic type of gateway load balancer tunnel interface.""" @@ -1871,6 +1964,19 @@ class IsWorkloadProtected(str, Enum, metaclass=CaseInsensitiveEnumMeta): """True.""" +class LabelSelectorOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """operator represents a Kubernetes label selector requirement's relationship to a set of values.""" + + IN = "In" + """The label value must be in the supplied set of values.""" + NOT_IN = "NotIn" + """The label value must not be in the supplied set of values.""" + EXISTS = "Exists" + """The label key must exist, regardless of its value.""" + DOES_NOT_EXIST = "DoesNotExist" + """The label key must not exist.""" + + class LoadBalancerBackendAddressAdminState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing @@ -1892,6 +1998,15 @@ class LoadBalancerDetailLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """When set to 'Reduced', read-only reference collections may be omitted.""" +class LoadBalancerMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The load balancer mode. Set to ``Advanced`` to enable additional capabilities on a Standard SKU + load balancer. Advanced mode must be specified at creation and cannot be changed afterward. + """ + + ADVANCED = "Advanced" + """Advanced mode, which enables additional capabilities on a Standard SKU load balancer.""" + + class LoadBalancerOutboundRuleProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The protocol for the outbound rule in load balancer.""" @@ -1921,6 +2036,8 @@ class LoadBalancerSkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Standard.""" GATEWAY = "Gateway" """Gateway.""" + SERVICE = "Service" + """Service load balancer SKU.""" class LoadBalancerSkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -1961,6 +2078,15 @@ class ManagedRuleEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enabled.""" +class MigrationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The type of migration workflow performed on a Network Virtual Appliance.""" + + MIGRATE_TO_NEW_OS_VERSION = "MigrateToNewOSVersion" + """Migrate the Network Virtual Appliance to a new OS / marketplace image version.""" + MIGRATE_TO_NEW_ILB_ARCHITECTURE = "MigrateToNewILBArchitecture" + """Migrate the Network Virtual Appliance to the new internal load balancer architecture.""" + + class Nat64State(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Whether Nat64 is enabled for the NAT gateway resource.""" @@ -2553,6 +2679,17 @@ class PublicIPPrefixSkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Global.""" +class ResiliencyLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The resiliency level of the ExpressRoute circuit.""" + + STANDARD = "Standard" + """Standard resiliency level.""" + HIGH = "High" + """High resiliency level.""" + MAXIMUM = "Maximum" + """Maximum resiliency level.""" + + class ResiliencyModel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed. @@ -2875,6 +3012,8 @@ class ServiceProviderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumM """Provisioned.""" DEPROVISIONING = "Deprovisioning" """Deprovisioning.""" + DE_PROVISIONED = "DeProvisioned" + """DeProvisioned State.""" class ServiceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models.py index 4636560e2eb1..633954dda3e1 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models.py @@ -18,7 +18,7 @@ from .. import models as _models -class AadAuthenticationParameters(_Model): +class AadAuthenticationParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AAD Vpn authentication type related parameters. :ivar aad_tenant: AAD Vpn authentication parameter AAD tenant. @@ -58,7 +58,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Action(_Model): +class Action(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Action to be taken on a route matching a RouteMap criterion. :ivar type: Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and @@ -101,7 +101,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ActiveBaseSecurityAdminRule(_Model): +class ActiveBaseSecurityAdminRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network base admin rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -180,7 +180,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ActiveConfigurationParameter(_Model): +class ActiveConfigurationParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Effective Virtual Networks Parameter. :ivar regions: List of regions. @@ -215,7 +215,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveConnectivityConfiguration(_Model): +class EffectiveConnectivityConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The network manager effective connectivity configuration. :ivar id: Connectivity configuration ID. @@ -287,7 +287,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ActiveConnectivityConfiguration(EffectiveConnectivityConfiguration): +class ActiveConnectivityConfiguration( + EffectiveConnectivityConfiguration +): # pylint: disable=docstring-keyword-should-match-keyword-only """Active connectivity configuration. :ivar id: Connectivity configuration ID. @@ -361,7 +363,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ActiveConnectivityConfigurationsListResult(_Model): # pylint: disable=name-too-long +class ActiveConnectivityConfigurationsListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Result of the request to list active connectivity configurations. It contains a list of active connectivity configurations and a skiptoken to get the next set of results. @@ -399,7 +403,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ActiveDefaultSecurityAdminRule(ActiveBaseSecurityAdminRule, discriminator="Default"): +class ActiveDefaultSecurityAdminRule( + ActiveBaseSecurityAdminRule, discriminator="Default" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network default admin rule. :ivar id: Resource ID. @@ -488,7 +494,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ActiveSecurityAdminRule(ActiveBaseSecurityAdminRule, discriminator="Custom"): +class ActiveSecurityAdminRule( + ActiveBaseSecurityAdminRule, discriminator="Custom" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network admin rule. :ivar id: Resource ID. @@ -576,7 +584,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ActiveSecurityAdminRulesListResult(_Model): +class ActiveSecurityAdminRulesListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results. @@ -614,7 +622,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AddressPrefixItem(_Model): +class AddressPrefixItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Address prefix item. :ivar address_prefix: Address prefix. @@ -652,7 +660,126 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AddressSpace(_Model): +class ProxyResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Proxy resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource ID.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Resource name.""" + type: Optional[str] = rest_field(visibility=["read"]) + """Resource type.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AddressPrefixSet(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only + """Address prefix set child resource of an application security group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Properties of the address prefix set. + :vartype properties: ~azure.mgmt.network.models.AddressPrefixSetPropertiesFormat + """ + + properties: Optional["_models.AddressPrefixSetPropertiesFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the address prefix set.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + properties: Optional["_models.AddressPrefixSetPropertiesFormat"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AddressPrefixSetPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Properties of address prefix set. + + :ivar address_prefixes: The list of address prefixes in CIDR notation. Supports both IPv4 and + IPv6 CIDR notation (e.g. '10.0.0.0/16', '2001:db8::/32'). Required. + :vartype address_prefixes: list[str] + :ivar provisioning_state: The provisioning state of the address prefix set resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + """ + + address_prefixes: list[str] = rest_field( + name="addressPrefixes", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of address prefixes in CIDR notation. Supports both IPv4 and IPv6 CIDR notation (e.g. + '10.0.0.0/16', '2001:db8::/32'). Required.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the address prefix set resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + @overload + def __init__( + self, + *, + address_prefixes: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AddressSpace(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network. @@ -692,7 +819,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdminPropertiesFormat(_Model): +class AdminPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Security admin rule resource. :ivar description: A description for this rule. Restricted to 140 chars. @@ -819,7 +946,7 @@ class ChildResource(_Model): """A unique read-only string that changes whenever the resource is updated.""" -class BaseAdminRule(ChildResource): +class BaseAdminRule(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network base admin rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -864,7 +991,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdminRule(BaseAdminRule, discriminator="Custom"): +class AdminRule(BaseAdminRule, discriminator="Custom"): # pylint: disable=docstring-keyword-should-match-keyword-only """Network admin rule. :ivar id: Resource ID. @@ -940,7 +1067,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AdminRuleCollection(ChildResource): +class AdminRuleCollection(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the admin rule collection. :ivar id: Resource ID. @@ -1002,7 +1129,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AdminRuleCollectionPropertiesFormat(_Model): +class AdminRuleCollectionPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the admin rule collection properties. :ivar description: A description of the admin rule collection. @@ -1049,7 +1176,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdvertisedPublicPrefixProperties(_Model): +class AdvertisedPublicPrefixProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Prefix properties required to perform validation using openssl signature. :ivar prefix: Advertised Public Prefix. @@ -1116,7 +1243,7 @@ class AfcConfiguration(_Model): """The endpoint URL of the AFC control plane associated with this Azure Firewall.""" -class Resource(_Model): +class Resource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common resource representation. :ivar id: Resource ID. @@ -1162,7 +1289,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGateway(Resource): +class ApplicationGateway(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Application gateway resource. :ivar id: Resource ID. @@ -1279,7 +1406,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SubResource(_Model): +class SubResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to another subresource. :ivar id: Resource ID. @@ -1307,7 +1434,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayAuthenticationCertificate(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayAuthenticationCertificate( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Authentication certificates of an application gateway. :ivar id: Resource ID. @@ -1375,7 +1504,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayAuthenticationCertificatePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayAuthenticationCertificatePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Authentication certificates properties of an application gateway. :ivar data: Certificate public data. @@ -1411,7 +1542,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayAutoscaleConfiguration(_Model): +class ApplicationGatewayAutoscaleConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Application Gateway autoscale configuration. :ivar min_capacity: Lower bound on number of Application Gateway capacity. Required. @@ -1446,7 +1577,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayAvailableSslOptions(Resource): +class ApplicationGatewayAvailableSslOptions(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for ApplicationGatewayAvailableSslOptions API service call. :ivar id: Resource ID. @@ -1510,7 +1641,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayAvailableSslOptionsPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayAvailableSslOptionsPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of ApplicationGatewayAvailableSslOptions. :ivar predefined_policies: List of available Ssl predefined policy. @@ -1567,7 +1700,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayAvailableWafRuleSetsResult(_Model): # pylint: disable=name-too-long +class ApplicationGatewayAvailableWafRuleSetsResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Response for ApplicationGatewayAvailableWafRuleSets API service call. :ivar value: The list of application gateway rule sets. @@ -1597,7 +1732,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendAddress(_Model): +class ApplicationGatewayBackendAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Backend address of an application gateway. :ivar fqdn: Fully qualified domain name (FQDN). @@ -1630,7 +1765,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendAddressPool(SubResource): +class ApplicationGatewayBackendAddressPool(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Backend Address Pool of an application gateway. :ivar id: Resource ID. @@ -1697,7 +1832,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayBackendAddressPoolPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayBackendAddressPoolPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Backend Address Pool of an application gateway. :ivar backend_ip_configurations: Collection of references to IPs defined in network interfaces. @@ -1742,7 +1879,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHealth(_Model): +class ApplicationGatewayBackendHealth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for ApplicationGatewayBackendHealth API service call. :ivar backend_address_pools: A list of ApplicationGatewayBackendHealthPool resources. @@ -1773,7 +1910,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHealthHttpSettings(_Model): # pylint: disable=name-too-long +class ApplicationGatewayBackendHealthHttpSettings( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Application gateway BackendHealthHttp settings. :ivar backend_http_settings: Reference to an ApplicationGatewayBackendHttpSettings resource. @@ -1811,7 +1950,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHealthOnDemand(_Model): +class ApplicationGatewayBackendHealthOnDemand(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Result of on demand test probe. :ivar backend_address_pool: Reference to an ApplicationGatewayBackendAddressPool resource. @@ -1849,7 +1988,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHealthPool(_Model): +class ApplicationGatewayBackendHealthPool(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Application gateway BackendHealth pool. :ivar backend_address_pool: Reference to an ApplicationGatewayBackendAddressPool resource. @@ -1888,7 +2027,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHealthServer(_Model): +class ApplicationGatewayBackendHealthServer(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Application gateway backendhealth http settings. :ivar address: IP address or FQDN of backend server. @@ -1939,7 +2078,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendHttpSettings(SubResource): +class ApplicationGatewayBackendHttpSettings(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Backend address pool settings of an application gateway. :ivar id: Resource ID. @@ -2025,7 +2164,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayBackendHttpSettingsPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayBackendHttpSettingsPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Backend address pool settings of an application gateway. :ivar port: The destination port on the backend. @@ -2186,7 +2327,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayBackendSettings(SubResource): +class ApplicationGatewayBackendSettings(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Backend address pool settings of an application gateway. :ivar id: Resource ID. @@ -2263,7 +2404,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayBackendSettingsPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayBackendSettingsPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Backend address pool settings of an application gateway. :ivar port: The destination port on the backend. @@ -2352,7 +2495,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayClientAuthConfiguration(_Model): # pylint: disable=name-too-long +class ApplicationGatewayClientAuthConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Application gateway client authentication configuration. :ivar verify_client_cert_issuer_dn: Verify client certificate issuer name on the application @@ -2401,7 +2546,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayConnectionDraining(_Model): +class ApplicationGatewayConnectionDraining(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connection draining allows open connections to a backend server to be active for a specified time after the backend server got removed from the configuration. @@ -2439,7 +2584,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayCustomError(_Model): +class ApplicationGatewayCustomError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Custom error of an application gateway. :ivar status_code: Status code of the application gateway custom error. Known values are: @@ -2480,7 +2625,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayEntraJWTValidationConfig(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayEntraJWTValidationConfig( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Entra JWT Validation Configuration of an application gateway. :ivar id: Resource ID. @@ -2544,7 +2691,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayEntraJWTValidationConfigPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayEntraJWTValidationConfigPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of entra jwt validation configuration of the application gateway. :ivar un_authorized_request_action: Unauthorized request action. Known values are: "Deny" and @@ -2604,7 +2753,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallDisabledRuleGroup(_Model): # pylint: disable=name-too-long +class ApplicationGatewayFirewallDisabledRuleGroup( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Allows to disable rules within a rule group or an entire rule group. :ivar rule_group_name: The name of the rule group that will be disabled. Required. @@ -2638,7 +2789,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallExclusion(_Model): +class ApplicationGatewayFirewallExclusion(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Allow to exclude some variable satisfy the condition for the WAF check. :ivar match_variable: The variable to be excluded. Required. @@ -2682,7 +2833,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallManifestRuleSet(_Model): # pylint: disable=name-too-long +class ApplicationGatewayFirewallManifestRuleSet( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the web application firewall rule set. :ivar rule_set_type: The type of the web application firewall rule set. Required. @@ -2739,7 +2892,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallRule(_Model): +class ApplicationGatewayFirewallRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A web application firewall rule. :ivar rule_id: The identifier of the web application firewall rule. Required. @@ -2808,7 +2961,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallRuleGroup(_Model): +class ApplicationGatewayFirewallRuleGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A web application firewall rule group. :ivar rule_group_name: The name of the web application firewall rule group. Required. @@ -2848,7 +3001,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFirewallRuleSet(Resource): +class ApplicationGatewayFirewallRuleSet(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A web application firewall rule set. :ivar id: Resource ID. @@ -2912,7 +3065,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayFirewallRuleSetPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayFirewallRuleSetPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the web application firewall rule set. :ivar provisioning_state: The provisioning state of the web application firewall rule set. @@ -2969,7 +3124,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayForContainersReferenceDefinition(_Model): # pylint: disable=name-too-long +class ApplicationGatewayForContainersReferenceDefinition( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines an application gateway for containers reference. :ivar id: Resource Id of the application gateway for containers. Required. @@ -2997,7 +3154,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFrontendIPConfiguration(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayFrontendIPConfiguration( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Frontend IP configuration of an application gateway. :ivar id: Resource ID. @@ -3071,7 +3230,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayFrontendIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayFrontendIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Frontend IP configuration of an application gateway. :ivar private_ip_address: PrivateIPAddress of the network interface IP Configuration. @@ -3137,7 +3298,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayFrontendPort(SubResource): +class ApplicationGatewayFrontendPort(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Frontend port of an application gateway. :ivar id: Resource ID. @@ -3203,7 +3364,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayFrontendPortPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayFrontendPortPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Frontend port of an application gateway. :ivar port: Frontend port. @@ -3239,13 +3402,15 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayGlobalConfiguration(_Model): +class ApplicationGatewayGlobalConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Application Gateway global configuration. :ivar enable_request_buffering: Enable request buffering. :vartype enable_request_buffering: bool :ivar enable_response_buffering: Enable response buffering. :vartype enable_response_buffering: bool + :ivar disable_default_server_header_in_response: Disable default server header in response. + :vartype disable_default_server_header_in_response: bool """ enable_request_buffering: Optional[bool] = rest_field( @@ -3256,6 +3421,10 @@ class ApplicationGatewayGlobalConfiguration(_Model): name="enableResponseBuffering", visibility=["read", "create", "update", "delete", "query"] ) """Enable response buffering.""" + disable_default_server_header_in_response: Optional[bool] = rest_field( + name="disableDefaultServerHeaderInResponse", visibility=["read", "create", "update", "delete", "query"] + ) + """Disable default server header in response.""" @overload def __init__( @@ -3263,6 +3432,7 @@ def __init__( *, enable_request_buffering: Optional[bool] = None, enable_response_buffering: Optional[bool] = None, + disable_default_server_header_in_response: Optional[bool] = None, ) -> None: ... @overload @@ -3276,7 +3446,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayHeaderConfiguration(_Model): +class ApplicationGatewayHeaderConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Header configuration of the Actions set in Application Gateway. :ivar header_name: Header name of the header configuration. @@ -3326,7 +3496,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayHttpListener(SubResource): +class ApplicationGatewayHttpListener(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Http listener of an application gateway. :ivar id: Resource ID. @@ -3404,7 +3574,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayHttpListenerPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayHttpListenerPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of HTTP listener of an application gateway. :ivar frontend_ip_configuration: Frontend IP configuration resource of an application gateway. @@ -3507,7 +3679,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayIPConfiguration(SubResource): +class ApplicationGatewayIPConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed. @@ -3575,7 +3747,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of IP configuration of an application gateway. :ivar subnet: Reference to the subnet resource. A subnet from where application gateway gets @@ -3614,7 +3788,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayListener(SubResource): +class ApplicationGatewayListener(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Listener of an application gateway. :ivar id: Resource ID. @@ -3688,7 +3862,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayListenerPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayListenerPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of listener of an application gateway. :ivar frontend_ip_configuration: Frontend IP configuration resource of an application gateway. @@ -3763,7 +3939,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayLoadDistributionPolicy(SubResource): +class ApplicationGatewayLoadDistributionPolicy( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Load Distribution Policy of an application gateway. :ivar id: Resource ID. @@ -3830,7 +4008,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayLoadDistributionPolicyPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayLoadDistributionPolicyPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Load Distribution Policy of an application gateway. :ivar load_distribution_targets: Load Distribution Targets resource of an application gateway. @@ -3879,7 +4059,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayLoadDistributionTarget(SubResource): +class ApplicationGatewayLoadDistributionTarget( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Load Distribution Target of an application gateway. :ivar id: Resource ID. @@ -3946,7 +4128,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayLoadDistributionTargetPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayLoadDistributionTargetPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ApplicationGatewayLoadDistributionTargetPropertiesFormat. :ivar weight_per_server: Weight per server. Range between 1 and 100. @@ -3983,7 +4167,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayManagedHsm(_Model): +class ApplicationGatewayManagedHsm(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed HSM properties of an application gateway. :ivar key_id: Key identifier of a key stored in Managed HSM. @@ -4018,7 +4202,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayOnDemandProbe(_Model): +class ApplicationGatewayOnDemandProbe(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of on demand test probe request. :ivar protocol: The protocol used for the probe. Known values are: "Http", "Https", "Tcp", and @@ -4109,7 +4293,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPathRule(SubResource): +class ApplicationGatewayPathRule(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Path rule of URL path map of an application gateway. :ivar id: Resource ID. @@ -4184,7 +4368,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayPathRulePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayPathRulePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of path rule of an application gateway. :ivar paths: Path rules of URL path map. @@ -4262,7 +4448,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubResourceModel(SubResource): +class SubResourceModel(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to another subresource. :ivar id: Resource ID. @@ -4297,7 +4483,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPrivateEndpointConnection(SubResourceModel): # pylint: disable=name-too-long +class ApplicationGatewayPrivateEndpointConnection( + SubResourceModel +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Private Endpoint connection on an application gateway. :ivar id: Resource ID. @@ -4365,7 +4553,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayPrivateEndpointConnectionProperties(_Model): # pylint: disable=name-too-long +class ApplicationGatewayPrivateEndpointConnectionProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Private Link Resource of an application gateway. :ivar private_endpoint: The resource of private end point. @@ -4416,7 +4606,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPrivateLinkConfiguration(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkConfiguration( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Private Link Configuration on an application gateway. :ivar id: Resource ID. @@ -4484,7 +4676,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayPrivateLinkConfigurationProperties(_Model): # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of private link configuration on an application gateway. :ivar ip_configurations: An array of application gateway private link ip configurations. @@ -4524,7 +4718,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPrivateLinkIpConfiguration(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkIpConfiguration( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The application gateway private link ip configuration. :ivar id: Resource ID. @@ -4597,7 +4793,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayPrivateLinkIpConfigurationProperties(_Model): # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkIpConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of an application gateway private link IP configuration. :ivar private_ip_address: The private IP address of the IP configuration. @@ -4654,7 +4852,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPrivateLinkResource(SubResource): +class ApplicationGatewayPrivateLinkResource(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """PrivateLink Resource of an application gateway. :ivar id: Resource ID. @@ -4720,7 +4918,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayPrivateLinkResourceProperties(_Model): # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkResourceProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of a private link resource. :ivar group_id: Group identifier of private link resource. @@ -4758,7 +4958,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayProbe(SubResource): +class ApplicationGatewayProbe(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Probe of the application gateway. :ivar id: Resource ID. @@ -4838,7 +5038,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayProbeHealthResponseMatch(_Model): # pylint: disable=name-too-long +class ApplicationGatewayProbeHealthResponseMatch( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Application gateway probe health response match. :ivar body: Body that must be contained in the health response. Default value is empty. @@ -4874,7 +5076,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayProbePropertiesFormat(_Model): +class ApplicationGatewayProbePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of probe of an application gateway. :ivar protocol: The protocol used for the probe. Known values are: "Http", "Https", "Tcp", and @@ -5000,7 +5202,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayPropertiesFormat(_Model): +class ApplicationGatewayPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the application gateway. :ivar sku: SKU of the application gateway resource. @@ -5375,7 +5577,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRedirectConfiguration(SubResource): +class ApplicationGatewayRedirectConfiguration( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Redirect configuration of an application gateway. :ivar id: Resource ID. @@ -5451,7 +5655,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayRedirectConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayRedirectConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of redirect configuration of the application gateway. :ivar redirect_type: HTTP redirection type. Known values are: "Permanent", "Found", "SeeOther", @@ -5530,7 +5736,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRequestRoutingRule(SubResource): +class ApplicationGatewayRequestRoutingRule(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Request routing rule of an application gateway. :ivar id: Resource ID. @@ -5609,7 +5815,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayRequestRoutingRulePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayRequestRoutingRulePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of request routing rule of the application gateway. :ivar rule_type: Rule type. Known values are: "Basic" and "PathBasedRouting". @@ -5709,7 +5917,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRewriteRule(_Model): +class ApplicationGatewayRewriteRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Rewrite rule of an application gateway. :ivar name: Name of the rewrite rule that is unique within an Application Gateway. @@ -5760,7 +5968,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRewriteRuleActionSet(_Model): +class ApplicationGatewayRewriteRuleActionSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Set of actions in the Rewrite Rule in Application Gateway. :ivar request_header_configurations: Request Header Actions in the Action Set. @@ -5806,7 +6014,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRewriteRuleCondition(_Model): +class ApplicationGatewayRewriteRuleCondition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Set of conditions in the Rewrite Rule in Application Gateway. :ivar variable: The condition parameter of the RewriteRuleCondition. @@ -5857,7 +6065,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRewriteRuleSet(SubResource): +class ApplicationGatewayRewriteRuleSet(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Rewrite rule set of an application gateway. :ivar id: Resource ID. @@ -5920,7 +6128,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayRewriteRuleSetPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayRewriteRuleSetPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of rewrite rule set of the application gateway. :ivar rewrite_rules: Rewrite rules in the rewrite rule set. @@ -5958,7 +6168,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayRoutingRule(SubResource): +class ApplicationGatewayRoutingRule(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Routing rule of an application gateway. :ivar id: Resource ID. @@ -6031,7 +6241,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayRoutingRulePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayRoutingRulePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of routing rule of the application gateway. :ivar rule_type: Rule type. Known values are: "Basic" and "PathBasedRouting". @@ -6093,7 +6305,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewaySku(_Model): +class ApplicationGatewaySku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of an application gateway. :ivar name: Name of an application gateway SKU. Known values are: "Standard_Small", @@ -6148,7 +6360,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewaySslCertificate(SubResource): +class ApplicationGatewaySslCertificate(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """SSL certificates of an application gateway. :ivar id: Resource ID. @@ -6215,7 +6427,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewaySslCertificatePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewaySslCertificatePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of SSL certificates of an application gateway. :ivar data: Base-64 encoded pfx certificate. Only applicable in PUT Request. @@ -6278,7 +6492,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewaySslPolicy(_Model): +class ApplicationGatewaySslPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Application Gateway Ssl policy. :ivar disabled_ssl_protocols: Ssl protocols to be disabled on application gateway. @@ -6346,7 +6560,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewaySslPredefinedPolicy(SubResource): +class ApplicationGatewaySslPredefinedPolicy(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """An Ssl predefined policy. :ivar id: Resource ID. @@ -6405,7 +6619,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewaySslPredefinedPolicyPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewaySslPredefinedPolicyPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of ApplicationGatewaySslPredefinedPolicy. :ivar cipher_suites: Ssl cipher suites to be enabled in the specified order for application @@ -6446,7 +6662,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewaySslProfile(SubResource): +class ApplicationGatewaySslProfile(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """SSL profile of an application gateway. :ivar id: Resource ID. @@ -6512,7 +6728,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewaySslProfilePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewaySslProfilePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of SSL profile of an application gateway. :ivar trusted_client_certificates: Array of references to application gateway trusted client @@ -6567,7 +6785,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayTrustedClientCertificate(SubResource): # pylint: disable=name-too-long +class ApplicationGatewayTrustedClientCertificate( + SubResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Trusted client certificates of an application gateway. :ivar id: Resource ID. @@ -6635,7 +6855,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayTrustedClientCertificatePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayTrustedClientCertificatePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Trusted client certificates properties of an application gateway. :ivar data: Certificate public data. @@ -6679,7 +6901,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayTrustedRootCertificate(SubResource): +class ApplicationGatewayTrustedRootCertificate( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Trusted Root certificates of an application gateway. :ivar id: Resource ID. @@ -6746,7 +6970,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayTrustedRootCertificatePropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayTrustedRootCertificatePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Trusted Root certificates properties of an application gateway. :ivar data: Certificate public data. @@ -6791,7 +7017,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayUrlConfiguration(_Model): +class ApplicationGatewayUrlConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Url configuration of the Actions set in Application Gateway. :ivar modified_path: Url path which user has provided for url rewrite. Null means no path will @@ -6839,7 +7065,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayUrlPathMap(SubResource): +class ApplicationGatewayUrlPathMap(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """UrlPathMaps give a url path to the backend mapping information for PathBasedRouting. :ivar id: Resource ID. @@ -6913,7 +7139,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ApplicationGatewayUrlPathMapPropertiesFormat(_Model): # pylint: disable=name-too-long +class ApplicationGatewayUrlPathMapPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of UrlPathMap of the application gateway. :ivar default_backend_address_pool: Default backend address pool resource of URL path map. @@ -6987,7 +7215,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayWafDynamicManifestPropertiesResult(_Model): # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestPropertiesResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of ApplicationGatewayWafDynamicManifest. :ivar default_rule_set: The default ruleset. @@ -7045,7 +7275,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ProxyResourceWithSettableId(_Model): +class ProxyResourceWithSettableId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Proxy resource representation. :ivar id: Resource ID. @@ -7081,7 +7311,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayWafDynamicManifestResult(ProxyResourceWithSettableId): # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestResult( + ProxyResourceWithSettableId +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Response for ApplicationGatewayWafDynamicManifest API service call. :ivar id: Resource ID. @@ -7119,7 +7351,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationGatewayWebApplicationFirewallConfiguration(_Model): # pylint: disable=name-too-long +class ApplicationGatewayWebApplicationFirewallConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Application gateway web application firewall configuration. :ivar enabled: Whether the web application firewall is enabled or not. Required. @@ -7211,7 +7445,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyRule(_Model): +class FirewallPolicyRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -7254,7 +7488,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ApplicationRule(FirewallPolicyRule, discriminator="ApplicationRule"): +class ApplicationRule( + FirewallPolicyRule, discriminator="ApplicationRule" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule of type application. :ivar name: Name of the rule. @@ -7275,6 +7511,8 @@ class ApplicationRule(FirewallPolicyRule, discriminator="ApplicationRule"): :vartype fqdn_tags: list[str] :ivar source_ip_groups: List of source IpGroups for this rule. :vartype source_ip_groups: list[str] + :ivar source_kube_selector_groups: List of source Kubernetes Selector Groups for this rule. + :vartype source_kube_selector_groups: list[str] :ivar terminate_tls: Terminate TLS connections for this rule. :vartype terminate_tls: bool :ivar web_categories: List of destination azure web categories. @@ -7314,6 +7552,10 @@ class ApplicationRule(FirewallPolicyRule, discriminator="ApplicationRule"): name="sourceIpGroups", visibility=["read", "create", "update", "delete", "query"] ) """List of source IpGroups for this rule.""" + source_kube_selector_groups: Optional[list[str]] = rest_field( + name="sourceKubeSelectorGroups", visibility=["read", "create", "update", "delete", "query"] + ) + """List of source Kubernetes Selector Groups for this rule.""" terminate_tls: Optional[bool] = rest_field( name="terminateTLS", visibility=["read", "create", "update", "delete", "query"] ) @@ -7342,6 +7584,7 @@ def __init__( target_urls: Optional[list[str]] = None, fqdn_tags: Optional[list[str]] = None, source_ip_groups: Optional[list[str]] = None, + source_kube_selector_groups: Optional[list[str]] = None, terminate_tls: Optional[bool] = None, web_categories: Optional[list[str]] = None, http_headers_to_insert: Optional[list["_models.FirewallPolicyHttpHeaderToInsert"]] = None, @@ -7359,7 +7602,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.rule_type = FirewallPolicyRuleType.APPLICATION_RULE # type: ignore -class ApplicationSecurityGroup(Resource): +class ApplicationSecurityGroup(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """An application security group in a resource group. :ivar id: Resource ID. @@ -7449,7 +7692,7 @@ class ApplicationSecurityGroupPropertiesFormat(_Model): \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" -class AuthorizationPropertiesFormat(_Model): +class AuthorizationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ExpressRouteCircuitAuthorization. :ivar authorization_key: The authorization key. @@ -7500,7 +7743,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AutoApprovedPrivateLinkService(_Model): +class AutoApprovedPrivateLinkService(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The information of an AutoApprovedPrivateLinkService. :ivar private_link_service: The id of the private link service resource. @@ -7530,7 +7773,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Availability(_Model): +class Availability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Availability of the metric. :ivar time_grain: The time grain of the availability. @@ -7570,7 +7813,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableDelegation(_Model): +class AvailableDelegation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The serviceName of an AvailableDelegation indicates a possible delegation for a subnet. :ivar name: The name of the AvailableDelegation resource. @@ -7620,7 +7863,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailablePrivateEndpointType(_Model): +class AvailablePrivateEndpointType(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The information of an AvailablePrivateEndpointType. :ivar name: The name of the service and resource. @@ -7672,7 +7915,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableProvidersList(_Model): +class AvailableProvidersList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of available countries with details. :ivar countries: List of available countries. Required. @@ -7702,7 +7945,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableProvidersListCity(_Model): +class AvailableProvidersListCity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """City or town details. :ivar city_name: The city or town name. @@ -7735,7 +7978,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableProvidersListCountry(_Model): +class AvailableProvidersListCountry(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Country details. :ivar country_name: The country name. @@ -7777,7 +8020,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableProvidersListParameters(_Model): +class AvailableProvidersListParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Constraints that determine the list of available Internet service providers. :ivar azure_locations: A list of Azure regions. @@ -7822,7 +8065,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableProvidersListState(_Model): +class AvailableProvidersListState(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """State details. :ivar state_name: The state name. @@ -7862,7 +8105,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AvailableServiceAlias(_Model): +class AvailableServiceAlias(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The available service alias. :ivar name: The name of the service alias. @@ -7907,7 +8150,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewall(Resource): +class AzureFirewall(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Firewall resource. :ivar id: Resource ID. @@ -8002,7 +8245,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AzureFirewallApplicationRule(_Model): +class AzureFirewallApplicationRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of an application rule. :ivar name: Name of the application rule. @@ -8070,7 +8313,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallApplicationRuleCollection(SubResource): +class AzureFirewallApplicationRuleCollection( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Application rule collection resource. :ivar id: Resource ID. @@ -8135,7 +8380,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AzureFirewallApplicationRuleCollectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class AzureFirewallApplicationRuleCollectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the application rule collection. :ivar priority: Priority of the application rule collection resource. @@ -8185,7 +8432,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallApplicationRuleProtocol(_Model): +class AzureFirewallApplicationRuleProtocol(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the application rule protocol. :ivar protocol_type: Protocol type. Known values are: "Http", "Https", and "Mssql". @@ -8221,7 +8468,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallAutoscaleConfiguration(_Model): +class AzureFirewallAutoscaleConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Firewall Autoscale Configuration parameters. :ivar min_capacity: The minimum number of capacity units for this azure firewall. Use null to @@ -8262,7 +8509,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallFqdnTag(Resource): +class AzureFirewallFqdnTag(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Firewall FQDN Tag Resource. :ivar id: Resource ID. @@ -8348,7 +8595,7 @@ class AzureFirewallFqdnTagPropertiesFormat(_Model): """The name of this FQDN Tag.""" -class AzureFirewallIPConfiguration(SubResource): +class AzureFirewallIPConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration of an Azure Firewall. :ivar id: Resource ID. @@ -8416,7 +8663,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AzureFirewallIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class AzureFirewallIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of IP configuration of an Azure Firewall. :ivar private_ip_address: The Firewall Internal Load Balancer IP to be used as the next hop in @@ -8483,7 +8732,7 @@ class AzureFirewallIpGroups(_Model): """The iteration number.""" -class AzureFirewallNatRCAction(_Model): +class AzureFirewallNatRCAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AzureFirewall NAT Rule Collection Action. :ivar type: The type of action. Known values are: "Snat" and "Dnat". @@ -8513,7 +8762,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallNatRule(_Model): +class AzureFirewallNatRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a NAT rule. :ivar name: Name of the NAT rule. @@ -8603,7 +8852,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallNatRuleCollection(SubResource): +class AzureFirewallNatRuleCollection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """NAT rule collection resource. :ivar id: Resource ID. @@ -8667,7 +8916,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AzureFirewallNatRuleCollectionProperties(_Model): +class AzureFirewallNatRuleCollectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the NAT rule collection. :ivar priority: Priority of the NAT rule collection resource. @@ -8717,7 +8966,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallNetworkRule(_Model): +class AzureFirewallNetworkRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the network rule. :ivar name: Name of the network rule. @@ -8799,7 +9048,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallNetworkRuleCollection(SubResource): +class AzureFirewallNetworkRuleCollection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network rule collection resource. :ivar id: Resource ID. @@ -8864,7 +9113,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class AzureFirewallNetworkRuleCollectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class AzureFirewallNetworkRuleCollectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the network rule collection. :ivar priority: Priority of the network rule collection resource. @@ -8914,7 +9165,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallPacketCaptureFlags(_Model): +class AzureFirewallPacketCaptureFlags(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the AzureFirewallRCAction. :ivar type: Flags to capture. Known values are: "fin", "syn", "rst", "push", "ack", and "urg". @@ -8944,7 +9195,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallPacketCaptureResponse(_Model): +class AzureFirewallPacketCaptureResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response of an Azure Firewall Packet Capture Operation. :ivar status_code: The response code of the performed packet capture operation. Known values @@ -8990,7 +9241,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallPacketCaptureRule(_Model): +class AzureFirewallPacketCaptureRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Group of src/dest ips and ports to be captured. :ivar sources: List of source IP addresses/subnets to be captured. @@ -9030,7 +9281,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallPropertiesFormat(_Model): +class AzureFirewallPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Azure Firewall. :ivar application_rule_collections: Collection of application rule collections used by Azure @@ -9159,7 +9410,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallPublicIPAddress(_Model): +class AzureFirewallPublicIPAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP Address associated with azure firewall. :ivar address: Public IP Address value. @@ -9187,7 +9438,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallRCAction(_Model): +class AzureFirewallRCAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the AzureFirewallRCAction. :ivar type: The type of action. Known values are: "Allow" and "Deny". @@ -9217,7 +9468,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureFirewallSku(_Model): +class AzureFirewallSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of an Azure Firewall. :ivar name: Name of an Azure Firewall SKU. Known values are: "AZFW_VNet" and "AZFW_Hub". @@ -9254,7 +9505,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureReachabilityReport(_Model): +class AzureReachabilityReport(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure reachability report details. :ivar aggregation_level: The aggregation level of Azure reachability report. Can be Country, @@ -9299,7 +9550,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureReachabilityReportItem(_Model): +class AzureReachabilityReportItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure reachability report details for a given provider location. :ivar provider: The Internet service provider. @@ -9341,7 +9592,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureReachabilityReportLatencyInfo(_Model): +class AzureReachabilityReportLatencyInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details on latency for a time series. :ivar time_stamp: The time stamp. @@ -9377,7 +9628,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureReachabilityReportLocation(_Model): +class AzureReachabilityReportLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define a geographic location. :ivar country: The name of the country. Required. @@ -9415,7 +9666,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureReachabilityReportParameters(_Model): +class AzureReachabilityReportParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Geographic and time constraints for Azure reachability report. :ivar provider_location: Parameters that define a geographic location. Required. @@ -9471,47 +9722,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProxyResource(_Model): - """Proxy resource representation. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar etag: A unique read-only string that changes whenever the resource is updated. - :vartype etag: str - """ - - id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Resource ID.""" - name: Optional[str] = rest_field(visibility=["read"]) - """Resource name.""" - type: Optional[str] = rest_field(visibility=["read"]) - """Resource type.""" - etag: Optional[str] = rest_field(visibility=["read"]) - """A unique read-only string that changes whenever the resource is updated.""" - - @overload - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - - -class AzureWebCategory(ProxyResource): +class AzureWebCategory(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Web Category Resource. :ivar id: Resource ID. @@ -9581,7 +9792,7 @@ class AzureWebCategoryPropertiesFormat(_Model): """The name of the group that the category belongs to.""" -class BackendAddressInboundNatRulePortMappings(_Model): +class BackendAddressInboundNatRulePortMappings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The response for a QueryInboundNatRulePortMapping API. :ivar inbound_nat_rule_port_mappings: Collection of inbound NAT rule port mappings. @@ -9612,7 +9823,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackendAddressPool(SubResourceModel): +class BackendAddressPool(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Pool of backend IP addresses. :ivar id: Resource ID. @@ -9687,7 +9898,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BackendAddressPoolPropertiesFormat(_Model): +class BackendAddressPoolPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the backend address pool. :ivar location: The location of the backend address pool. @@ -9842,7 +10053,7 @@ class BastionActiveSession(_Model): """Duration in mins the session has been active.""" -class BastionHost(Resource): +class BastionHost(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Bastion Host resource. :ivar id: Resource ID. @@ -9934,7 +10145,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BastionHostIPConfiguration(SubResource): +class BastionHostIPConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration of an Bastion Host. :ivar id: Resource ID. @@ -10002,7 +10213,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BastionHostIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class BastionHostIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of IP configuration of an Bastion Host. :ivar subnet: Reference of the subnet resource. Required. @@ -10053,7 +10266,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BastionHostPropertiesFormat(_Model): +class BastionHostPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Bastion Host. :ivar ip_configurations: IP configuration of the Bastion Host resource. @@ -10175,7 +10388,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BastionHostPropertiesFormatNetworkAcls(_Model): +class BastionHostPropertiesFormatNetworkAcls(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BastionHostPropertiesFormatNetworkAcls. :ivar ip_rules: Sets the IP ACL rules for Developer Bastion Host. @@ -10224,7 +10437,7 @@ class BastionSessionState(_Model): """The state of the session. Disconnected/Failed/NotFound.""" -class BastionShareableLink(_Model): +class BastionShareableLink(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Bastion Shareable Link. :ivar vm: Reference of the virtual machine resource. Required. @@ -10266,7 +10479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BastionShareableLinkListRequest(_Model): +class BastionShareableLinkListRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Post request for Create/Delete/Get Bastion Shareable Link endpoints. :ivar vms: List of VM references. @@ -10296,7 +10509,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BastionShareableLinkTokenListRequest(_Model): +class BastionShareableLinkTokenListRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Post request for Delete Bastion Shareable Link By Token endpoint. :ivar tokens: List of Bastion Shareable Link Token. @@ -10324,7 +10537,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BGPCommunity(_Model): +class BGPCommunity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains bgp community information offered in Service Community resources. :ivar service_supported_region: The region which the service support. e.g. For O365, region is @@ -10394,7 +10607,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BgpConnection(SubResourceModel): +class BgpConnection(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Appliance Site resource. :ivar id: Resource ID. @@ -10463,7 +10676,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BgpConnectionProperties(_Model): +class BgpConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the bgp connection. :ivar peer_asn: Peer ASN. @@ -10570,7 +10783,7 @@ class BgpPeerStatus(_Model): """The number of BGP messages received.""" -class BgpPeerStatusListResult(_Model): +class BgpPeerStatusListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for list BGP peer status API service call. :ivar value: List of BGP peers. @@ -10600,7 +10813,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BgpServiceCommunity(Resource): +class BgpServiceCommunity(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Service Community Properties. :ivar id: Resource ID. @@ -10663,7 +10876,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class BgpServiceCommunityPropertiesFormat(_Model): +class BgpServiceCommunityPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Service Community. :ivar service_name: The name of the bgp community. e.g. Skype. @@ -10700,7 +10913,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BgpSettings(_Model): +class BgpSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BGP settings details. :ivar asn: The BGP speaker's ASN. @@ -10751,7 +10964,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BreakOutCategoryPolicies(_Model): +class BreakOutCategoryPolicies(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Virtual Appliance Sku Properties. :ivar allow: Flag to control breakout of o365 allow category. @@ -10789,7 +11002,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CertificateAuthentication(_Model): +class CertificateAuthentication(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Certificate Authentication information for a certificate based authentication connection. :ivar outbound_auth_certificate: Keyvault secret ID for outbound authentication certificate. @@ -10833,7 +11046,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckPrivateLinkServiceVisibilityRequest(_Model): +class CheckPrivateLinkServiceVisibilityRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body of the CheckPrivateLinkServiceVisibility API service call. :ivar private_link_service_alias: The alias of the private link service. @@ -10863,7 +11076,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CircuitMetadataMap(_Model): +class CircuitMetadataMap(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CircuitMetadataMap. :ivar name: Express Route Circuit Name. @@ -10901,7 +11114,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CloudError(_Model): +class CloudError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An error response from the service. :ivar error: Cloud error body. @@ -10929,7 +11142,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CloudErrorBody(_Model): +class CloudErrorBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An error response from the service. :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed @@ -10978,7 +11191,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Commit(ChildResource): +class Commit(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The commit resource. :ivar id: Resource ID. @@ -11020,7 +11233,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CommitProperties(_Model): +class CommitProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of commit. :ivar description: A description of the commit. @@ -11139,7 +11352,7 @@ class CommonErrorDetail(_Model): """The error additional info.""" -class CommonErrorResponse(_Model): +class CommonErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -11214,7 +11427,7 @@ class CommonProxyResource(CommonResource): """ -class CommonTrackedResource(CommonResource): +class CommonTrackedResource(CommonResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -11258,7 +11471,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConfigurationGroup(_Model): +class ConfigurationGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The network configuration group resource. :ivar id: Network group ID. @@ -11313,7 +11526,299 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ConnectionMonitor(_Model): +class ConnectionAnalyzer(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Defines a connection analyzer resource. + + :ivar name: Name of the connection analyzer. + :vartype name: str + :ivar id: Resource ID of the connection analyzer. + :vartype id: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar location: Resource location. Required. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.network.models.SystemData + :ivar properties: Properties of the connection analyzer. Required. + :vartype properties: ~azure.mgmt.network.models.ConnectionAnalyzerProperties + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Name of the connection analyzer.""" + id: Optional[str] = rest_field(visibility=["read"]) + """Resource ID of the connection analyzer.""" + type: Optional[str] = rest_field(visibility=["read"]) + """Resource type.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + location: str = rest_field(visibility=["read", "create"]) + """Resource location. Required.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + properties: "_models.ConnectionAnalyzerProperties" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the connection analyzer. Required.""" + + @overload + def __init__( + self, + *, + location: str, + properties: "_models.ConnectionAnalyzerProperties", + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectionAnalyzerEndpoint(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Describes a source or destination endpoint of a connection analyzer. + + The schema is intentionally permissive (a flat object) because the set of + valid fields is determined by ``type`` and is enforced server-side by the + Network Resource Provider. The required and allowed fields per ``type`` are: + + + + * `VM`, `VMSS`, `BastionHost`, `ApplicationGateway`: `resourceId` is + required and must be the ARM resource ID of the corresponding resource + (a virtual machine, virtual machine scale set or VMSS instance, Azure + Bastion host, or Application Gateway, respectively); `address` is not + used; `port` is optional. + * `ExternalAddress`: `address` is required and must be an IP address or + FQDN reachable from outside Azure; `resourceId` is not used; `port` is + optional. + + Requests that supply fields not allowed for the chosen ``type``, or omit a + required field, are rejected by the service with a validation error. This + follows the same convention used by ``ConnectivitySource`` and + ``ConnectivityDestination`` on Network Watcher. + + :ivar type: The type of the endpoint. Determines which of ``resourceId`` and ``address`` are + required; see the model-level documentation for the per-type contract. Required. Known values + are: "VM", "VMSS", "ExternalAddress", "BastionHost", and "ApplicationGateway". + :vartype type: str or ~azure.mgmt.network.models.ConnectionAnalyzerEndpointType + :ivar resource_id: ARM resource ID of the endpoint resource. Required when ``type`` is ``VM``, + ``VMSS``, ``BastionHost``, or ``ApplicationGateway``. Not used when ``type`` is + ``ExternalAddress``. + :vartype resource_id: str + :ivar address: IP address or FQDN of the endpoint. Required when ``type`` is + ``ExternalAddress``. Not used for the resource-typed endpoint kinds (``VM``, ``VMSS``, + ``BastionHost``, ``ApplicationGateway``). + :vartype address: str + :ivar port: Port to use for the endpoint (0-65535). + :vartype port: int + """ + + type: Union[str, "_models.ConnectionAnalyzerEndpointType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of the endpoint. Determines which of ``resourceId`` and ``address`` are required; see + the model-level documentation for the per-type contract. Required. Known values are: \"VM\", + \"VMSS\", \"ExternalAddress\", \"BastionHost\", and \"ApplicationGateway\".""" + resource_id: Optional[str] = rest_field( + name="resourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """ARM resource ID of the endpoint resource. Required when ``type`` is ``VM``, ``VMSS``, + ``BastionHost``, or ``ApplicationGateway``. Not used when ``type`` is ``ExternalAddress``.""" + address: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """IP address or FQDN of the endpoint. Required when ``type`` is ``ExternalAddress``. Not used for + the resource-typed endpoint kinds (``VM``, ``VMSS``, ``BastionHost``, ``ApplicationGateway``).""" + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Port to use for the endpoint (0-65535).""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ConnectionAnalyzerEndpointType"], + resource_id: Optional[str] = None, + address: Optional[str] = None, + port: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectionAnalyzerProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Properties of a connection analyzer. + + :ivar source: Source endpoint of the connection analyzer. Required. + :vartype source: ~azure.mgmt.network.models.ConnectionAnalyzerEndpoint + :ivar destination: Destination endpoint of the connection analyzer. Required. + :vartype destination: ~azure.mgmt.network.models.ConnectionAnalyzerEndpoint + :ivar diagnostic_operations: List of diagnostic operations to run. Required. + :vartype diagnostic_operations: list[str or ~azure.mgmt.network.models.DiagnosticOperation] + :ivar protocol_settings: Protocol-level settings. + :vartype protocol_settings: ~azure.mgmt.network.models.ProtocolSettings + :ivar diagnostic_operations_settings: Per-operation diagnostic settings. + :vartype diagnostic_operations_settings: + ~azure.mgmt.network.models.DiagnosticOperationsSettings + :ivar expiry_in_days: Time-to-live (days) before the analyzer expires. + :vartype expiry_in_days: int + :ivar output_settings: Output settings (e.g. storage account). + :vartype output_settings: ~azure.mgmt.network.models.OutputSettings + :ivar request_time: UTC time when the connection analyzer request was received. + :vartype request_time: ~datetime.datetime + :ivar provisioning_state: The provisioning state of the connection analyzer resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + :ivar status: Current execution status of the connection analyzer. Known values are: + "NotStarted", "Running", "Succeeded", and "Failed". + :vartype status: str or ~azure.mgmt.network.models.ConnectionAnalyzerStatus + """ + + source: "_models.ConnectionAnalyzerEndpoint" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Source endpoint of the connection analyzer. Required.""" + destination: "_models.ConnectionAnalyzerEndpoint" = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Destination endpoint of the connection analyzer. Required.""" + diagnostic_operations: list[Union[str, "_models.DiagnosticOperation"]] = rest_field( + name="diagnosticOperations", visibility=["read", "create", "update", "delete", "query"] + ) + """List of diagnostic operations to run. Required.""" + protocol_settings: Optional["_models.ProtocolSettings"] = rest_field( + name="protocolSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Protocol-level settings.""" + diagnostic_operations_settings: Optional["_models.DiagnosticOperationsSettings"] = rest_field( + name="diagnosticOperationsSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Per-operation diagnostic settings.""" + expiry_in_days: Optional[int] = rest_field( + name="expiryInDays", visibility=["read", "create", "update", "delete", "query"] + ) + """Time-to-live (days) before the analyzer expires.""" + output_settings: Optional["_models.OutputSettings"] = rest_field( + name="outputSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Output settings (e.g. storage account).""" + request_time: Optional[datetime.datetime] = rest_field(name="requestTime", visibility=["read"], format="rfc3339") + """UTC time when the connection analyzer request was received.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the connection analyzer resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + status: Optional[Union[str, "_models.ConnectionAnalyzerStatus"]] = rest_field(visibility=["read"]) + """Current execution status of the connection analyzer. Known values are: \"NotStarted\", + \"Running\", \"Succeeded\", and \"Failed\".""" + + @overload + def __init__( + self, + *, + source: "_models.ConnectionAnalyzerEndpoint", + destination: "_models.ConnectionAnalyzerEndpoint", + diagnostic_operations: list[Union[str, "_models.DiagnosticOperation"]], + protocol_settings: Optional["_models.ProtocolSettings"] = None, + diagnostic_operations_settings: Optional["_models.DiagnosticOperationsSettings"] = None, + expiry_in_days: Optional[int] = None, + output_settings: Optional["_models.OutputSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectionAnalyzerQueryStatusResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Status result returned when querying a connection analyzer for its diagnostic results. + + :ivar id: Resource ID of the connection analyzer. + :vartype id: str + :ivar connection_analyzer_status: Current execution status of the connection analyzer. Known + values are: "NotStarted", "Running", "Succeeded", and "Failed". + :vartype connection_analyzer_status: str or ~azure.mgmt.network.models.ConnectionAnalyzerStatus + :ivar error: Error message if the connection analyzer operation failed. + :vartype error: str + :ivar output_storage_path: Storage path where the connection analyzer output is written. + :vartype output_storage_path: str + :ivar expiry_in_utc: UTC time when the connection analyzer expires. + :vartype expiry_in_utc: ~datetime.datetime + :ivar diagnostic_operation_results: Results of the individual diagnostic operations. + :vartype diagnostic_operation_results: + list[~azure.mgmt.network.models.DiagnosticOperationResult] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Resource ID of the connection analyzer.""" + connection_analyzer_status: Optional[Union[str, "_models.ConnectionAnalyzerStatus"]] = rest_field( + name="connectionAnalyzerStatus", visibility=["read", "create", "update", "delete", "query"] + ) + """Current execution status of the connection analyzer. Known values are: \"NotStarted\", + \"Running\", \"Succeeded\", and \"Failed\".""" + error: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error message if the connection analyzer operation failed.""" + output_storage_path: Optional[str] = rest_field( + name="outputStoragePath", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage path where the connection analyzer output is written.""" + expiry_in_utc: Optional[datetime.datetime] = rest_field( + name="expiryInUtc", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """UTC time when the connection analyzer expires.""" + diagnostic_operation_results: Optional[list["_models.DiagnosticOperationResult"]] = rest_field( + name="diagnosticOperationResults", visibility=["read", "create", "update", "delete", "query"] + ) + """Results of the individual diagnostic operations.""" + + @overload + def __init__( + self, + *, + connection_analyzer_status: Optional[Union[str, "_models.ConnectionAnalyzerStatus"]] = None, + error: Optional[str] = None, + output_storage_path: Optional[str] = None, + expiry_in_utc: Optional[datetime.datetime] = None, + diagnostic_operation_results: Optional[list["_models.DiagnosticOperationResult"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectionMonitor(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the operation to create a connection monitor. :ivar location: Connection monitor location. @@ -11383,7 +11888,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ConnectionMonitorDestination(_Model): +class ConnectionMonitorDestination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the destination of connection monitor. :ivar resource_id: The ID of the resource used as the destination by connection monitor. @@ -11423,7 +11928,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpoint(_Model): +class ConnectionMonitorEndpoint(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor endpoint. :ivar name: The name of the connection monitor endpoint. Required. @@ -11524,7 +12029,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpointFilter(_Model): +class ConnectionMonitorEndpointFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor endpoint filter. :ivar type: The behavior of the endpoint filter. Currently only 'Include' is supported. @@ -11562,7 +12067,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpointFilterItem(_Model): +class ConnectionMonitorEndpointFilterItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor endpoint filter item. :ivar type: The type of item included in the filter. Currently only 'AgentAddress' is @@ -11599,7 +12104,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpointLocationDetails(_Model): +class ConnectionMonitorEndpointLocationDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connection monitor endpoint location details only being used for 'AzureArcNetwork' type endpoints, which contains the region details. @@ -11628,7 +12133,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpointScope(_Model): +class ConnectionMonitorEndpointScope(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor endpoint scope. :ivar include: List of items which needs to be included to the endpoint scope. @@ -11665,7 +12170,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorEndpointScopeItem(_Model): +class ConnectionMonitorEndpointScopeItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor endpoint scope item. :ivar address: The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or @@ -11695,7 +12200,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorHttpConfiguration(_Model): +class ConnectionMonitorHttpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the HTTP configuration. :ivar port: The port to connect to. @@ -11759,7 +12264,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorIcmpConfiguration(_Model): +class ConnectionMonitorIcmpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the ICMP configuration. :ivar disable_trace_route: Value indicating whether path evaluation with trace route should be @@ -11790,7 +12295,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorOutput(_Model): +class ConnectionMonitorOutput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a connection monitor output destination. :ivar type: Connection monitor output destination type. Currently, only "Workspace" is @@ -11830,7 +12335,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorParameters(_Model): +class ConnectionMonitorParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the operation to create a connection monitor. :ivar source: Describes the source of connection monitor. @@ -11915,7 +12420,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResourceWithEtag(_Model): +class TrackedResourceWithEtag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked resource with optional location. :ivar id: ID of the connection monitor. @@ -11964,7 +12469,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorResult(TrackedResourceWithEtag): +class ConnectionMonitorResult(TrackedResourceWithEtag): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about the connection monitor. :ivar id: ID of the connection monitor. @@ -12042,7 +12547,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ConnectionMonitorResultProperties(ConnectionMonitorParameters): +class ConnectionMonitorResultProperties( + ConnectionMonitorParameters +): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the properties of a connection monitor. :ivar source: Describes the source of connection monitor. @@ -12117,7 +12624,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorSource(_Model): +class ConnectionMonitorSource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the source of connection monitor. :ivar resource_id: The ID of the resource used as the source by connection monitor. Required. @@ -12150,7 +12657,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorSuccessThreshold(_Model): +class ConnectionMonitorSuccessThreshold(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the threshold for declaring a test successful. :ivar checks_failed_percent: The maximum percentage of failed checks permitted for a test to @@ -12189,7 +12696,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorTcpConfiguration(_Model): +class ConnectionMonitorTcpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the TCP configuration. :ivar port: The port to connect to. @@ -12233,7 +12740,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorTestConfiguration(_Model): +class ConnectionMonitorTestConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a connection monitor test configuration. :ivar name: The name of the connection monitor test configuration. Required. @@ -12315,7 +12822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorTestGroup(_Model): +class ConnectionMonitorTestGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the connection monitor test group. :ivar name: The name of the connection monitor test group. Required. @@ -12365,7 +12872,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionMonitorWorkspaceSettings(_Model): +class ConnectionMonitorWorkspaceSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the settings for producing output into a log analytics workspace. :ivar workspace_resource_id: Log analytics workspace resource ID. @@ -12395,7 +12902,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionPolicy(ProxyResource): +class ConnectionPolicy(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ConnectionPolicy resource defined for VirtualHub. :ivar id: Resource ID. @@ -12434,7 +12941,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionPolicyProperties(_Model): +class ConnectionPolicyProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the ConnectionPolicy resource. :ivar enable_internet_security: Enable internet security. @@ -12490,7 +12997,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionResetSharedKey(_Model): +class ConnectionResetSharedKey(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The virtual network connection reset shared key. :ivar key_length: The virtual network connection reset shared key length, should between 1 and @@ -12519,7 +13026,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionSharedKey(SubResource): +class ConnectionSharedKey(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for GetConnectionSharedKey API service call. :ivar id: Resource ID. @@ -12550,7 +13057,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectionSharedKeyResult(SubResourceModel): +class ConnectionSharedKeyResult(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """SharedKey Resource . :ivar id: Resource ID. @@ -12588,7 +13095,46 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectivityConfiguration(ChildResource): +class ConnectivityCheckSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Settings that control how connectivity checks are performed by the connection analyzer. + + :ivar generate_path: Whether to generate a hop-by-hop path during the connectivity check. + Default value is true. + :vartype generate_path: bool + :ivar preferred_ip_version: Preferred IP version for the connectivity check. Known values are: + "IPv4" and "IPv6". + :vartype preferred_ip_version: str or ~azure.mgmt.network.models.PreferredIPVersion + """ + + generate_path: Optional[bool] = rest_field( + name="generatePath", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to generate a hop-by-hop path during the connectivity check. Default value is true.""" + preferred_ip_version: Optional[Union[str, "_models.PreferredIPVersion"]] = rest_field( + name="preferredIPVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Preferred IP version for the connectivity check. Known values are: \"IPv4\" and \"IPv6\".""" + + @overload + def __init__( + self, + *, + generate_path: Optional[bool] = None, + preferred_ip_version: Optional[Union[str, "_models.PreferredIPVersion"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectivityConfiguration(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The network manager connectivity configuration resource. :ivar id: Resource ID. @@ -12660,7 +13206,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ConnectivityConfigurationProperties(_Model): +class ConnectivityConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of network manager connectivity configuration. :ivar description: A description of the connectivity configuration. @@ -12747,7 +13293,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectivityConfigurationPropertiesConnectivityCapabilities(_Model): # pylint: disable=name-too-long +class ConnectivityConfigurationPropertiesConnectivityCapabilities( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Collection of additional settings to enhance specific topology behaviors of the connectivity configuration resource. @@ -12802,7 +13350,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectivityDestination(_Model): +class ConnectivityDestination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define destination of connection. :ivar resource_id: The ID of the resource to which a connection attempt will be made. @@ -12842,7 +13390,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectivityGroupItem(_Model): +class ConnectivityGroupItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connectivity group item. :ivar network_group_id: Network group Id. Required. @@ -13003,7 +13551,7 @@ class ConnectivityIssue(_Model): """Provides additional context on the issue.""" -class ConnectivityParameters(_Model): +class ConnectivityParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that determine how the connectivity check will be performed. :ivar source: The source of the connection. Required. @@ -13060,7 +13608,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectivitySource(_Model): +class ConnectivitySource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the source of the connection. :ivar resource_id: The ID of the resource from which a connectivity check will be initiated. @@ -13094,7 +13642,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Container(SubResource): +class Container(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to container resource in remote resource provider. :ivar id: Resource ID. @@ -13119,7 +13667,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContainerNetworkInterface(SubResource): +class ContainerNetworkInterface(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Container network interface child resource. :ivar id: Resource ID. @@ -13190,7 +13738,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ContainerNetworkInterfaceConfiguration(SubResource): +class ContainerNetworkInterfaceConfiguration( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """Container network interface configuration child resource. :ivar id: Resource ID. @@ -13257,7 +13807,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ContainerNetworkInterfaceConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class ContainerNetworkInterfaceConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Container network interface configuration properties. :ivar ip_configurations: A list of ip configurations of the container network interface @@ -13306,7 +13858,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ContainerNetworkInterfaceIpConfiguration(_Model): +class ContainerNetworkInterfaceIpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The ip configuration for a container network interface. :ivar properties: Properties of the container network interface IP configuration. @@ -13387,7 +13939,9 @@ class ContainerNetworkInterfaceIpConfigurationPropertiesFormat(_Model): # pylin \"Deleting\".""" -class ContainerNetworkInterfacePropertiesFormat(_Model): # pylint: disable=name-too-long +class ContainerNetworkInterfacePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of container network interface. :ivar container_network_interface_configuration: Container network interface configuration from @@ -13440,7 +13994,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Criterion(_Model): +class Criterion(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A matching criteria which matches routes based on route prefix, community, and AS path. :ivar route_prefix: List of route prefixes which this criteria matches. @@ -13508,7 +14062,7 @@ class CrossTenantScopes(_Model): """List of subscriptions.""" -class CustomDnsConfigPropertiesFormat(_Model): +class CustomDnsConfigPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains custom Dns resolution configuration from customer. :ivar fqdn: Fqdn that resolves to private endpoint ip address. @@ -13543,7 +14097,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomIpPrefix(Resource): +class CustomIpPrefix(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Custom IP prefix resource. :ivar id: Resource ID. @@ -13638,7 +14192,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CustomIpPrefixPropertiesFormat(_Model): +class CustomIpPrefixPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Custom IP prefix properties. :ivar asn: The ASN for CIDR advertising. Should be an integer as string. @@ -13760,7 +14314,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DdosCustomPolicy(Resource): +class DdosCustomPolicy(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A DDoS custom policy in a resource group. :ivar id: Resource ID. @@ -13833,7 +14387,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DdosCustomPolicyPropertiesFormat(_Model): +class DdosCustomPolicyPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DDoS custom policy properties. :ivar resource_guid: The resource GUID property of the DDoS custom policy resource. It uniquely @@ -13894,7 +14448,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DdosDetectionRule(SubResource): +class DdosDetectionRule(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A DDoS detection rule resource. :ivar name: The name of the DDoS detection rule. @@ -13959,7 +14513,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DdosDetectionRulePropertiesFormat(_Model): +class DdosDetectionRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DDoS detection rule properties. :ivar provisioning_state: The provisioning state of the DDoS detection rule. Known values are: @@ -14004,7 +14558,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DdosFrontendIpConfigurationSettings(_Model): +class DdosFrontendIpConfigurationSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DDoS protection settings for a frontend IP configuration. :ivar ddos_custom_policy: The reference to the DDoS Custom Policy resource. @@ -14034,7 +14588,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResourceWithOptionalLocation(_Model): +class TrackedResourceWithOptionalLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common resource representation. :ivar id: Resource ID. @@ -14079,7 +14633,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DdosProtectionPlan(TrackedResourceWithOptionalLocation): +class DdosProtectionPlan( + TrackedResourceWithOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """A DDoS protection plan in a resource group. :ivar id: Resource ID. @@ -14182,7 +14738,7 @@ class DdosProtectionPlanPropertiesFormat(_Model): read-only.""" -class DdosSettings(_Model): +class DdosSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the DDoS protection settings of the public IP. :ivar protection_mode: The DDoS protection mode of the public IP. Known values are: @@ -14230,7 +14786,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DefaultAdminPropertiesFormat(_Model): +class DefaultAdminPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Security default admin rule resource. :ivar description: A description for this rule. Restricted to 140 chars. @@ -14316,7 +14872,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DefaultAdminRule(BaseAdminRule, discriminator="Default"): +class DefaultAdminRule( + BaseAdminRule, discriminator="Default" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network default admin rule. :ivar id: Resource ID. @@ -14393,7 +14951,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DefaultRuleSetPropertyFormat(_Model): +class DefaultRuleSetPropertyFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """the default web application firewall rule set. :ivar rule_set_type: The type of the web application firewall rule set. @@ -14430,7 +14988,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Delegation(SubResource): +class Delegation(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Details the service to which the subnet is delegated. :ivar id: Resource ID. @@ -14499,7 +15057,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DelegationProperties(_Model): +class DelegationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the delegation. :ivar service_name: The service name to which the NVA is delegated. @@ -14537,7 +15095,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeviceProperties(_Model): +class DeviceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of properties of the device. :ivar device_vendor: Name of the device Vendor. @@ -14581,7 +15139,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DhcpOptions(_Model): +class DhcpOptions(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options. @@ -14612,7 +15170,98 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Dimension(_Model): +class DiagnosticOperationResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Result of an individual diagnostic operation run by a connection analyzer. + + :ivar diagnostic_operation: The diagnostic operation that was run. Required. Known values are: + "NextHop", "NSG", "PortScan", "ConnectivityCheck", and "ExpressRouteDiagnostic". + :vartype diagnostic_operation: str or ~azure.mgmt.network.models.DiagnosticOperation + :ivar error: Error encountered while running the diagnostic operation, if any. + :vartype error: str + :ivar result: The result of the diagnostic operation, serialized as a JSON string. + + The payload shape varies by ``diagnosticOperation``. For example, a + ``ConnectivityCheck`` operation returns a JSON object such as + ``{ "ConnectivityStatus": "Reachable" }``. Consumers should parse this + string as JSON according to the corresponding diagnostic operation. + :vartype result: str + """ + + diagnostic_operation: Union[str, "_models.DiagnosticOperation"] = rest_field( + name="diagnosticOperation", visibility=["read", "create", "update", "delete", "query"] + ) + """The diagnostic operation that was run. Required. Known values are: \"NextHop\", \"NSG\", + \"PortScan\", \"ConnectivityCheck\", and \"ExpressRouteDiagnostic\".""" + error: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error encountered while running the diagnostic operation, if any.""" + result: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The result of the diagnostic operation, serialized as a JSON string. + + The payload shape varies by ``diagnosticOperation``. For example, a + ``ConnectivityCheck`` operation returns a JSON object such as + ``{ \"ConnectivityStatus\": \"Reachable\" }``. Consumers should parse this + string as JSON according to the corresponding diagnostic operation.""" + + @overload + def __init__( + self, + *, + diagnostic_operation: Union[str, "_models.DiagnosticOperation"], + error: Optional[str] = None, + result: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DiagnosticOperationsSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Diagnostic settings to provide for the ConnectionAnalyzer operation. + + :ivar connectivity_check_settings: Settings for the ConnectivityCheck diagnostic operation. + :vartype connectivity_check_settings: ~azure.mgmt.network.models.ConnectivityCheckSettings + :ivar express_route_diagnostics_settings: Settings for the ExpressRouteDiagnostic diagnostic + operation. + :vartype express_route_diagnostics_settings: + ~azure.mgmt.network.models.ExpressRouteDiagnosticsSettings + """ + + connectivity_check_settings: Optional["_models.ConnectivityCheckSettings"] = rest_field( + name="connectivityCheckSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings for the ConnectivityCheck diagnostic operation.""" + express_route_diagnostics_settings: Optional["_models.ExpressRouteDiagnosticsSettings"] = rest_field( + name="expressRouteDiagnosticsSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings for the ExpressRouteDiagnostic diagnostic operation.""" + + @overload + def __init__( + self, + *, + connectivity_check_settings: Optional["_models.ConnectivityCheckSettings"] = None, + express_route_diagnostics_settings: Optional["_models.ExpressRouteDiagnosticsSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Dimension(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Dimension of the metric. :ivar name: The name of the dimension. @@ -14654,7 +15303,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DisassociateCloudServicePublicIpRequest(_Model): +class DisassociateCloudServicePublicIpRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The request for DisassociateCloudServicePublicIpOperation. :ivar public_ip_arm_id: ARM ID of the Standalone Public IP to associate. This is of the form : @@ -14686,7 +15335,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DnsNameAvailabilityResult(_Model): +class DnsNameAvailabilityResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for the CheckDnsNameAvailability API service call. :ivar available: Domain availability (True/False). @@ -14714,7 +15363,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DnsSettings(_Model): +class DnsSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DNS Proxy Settings in Firewall Policy. :ivar servers: List of Custom DNS Servers. @@ -14756,7 +15405,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DscpConfiguration(Resource): +class DscpConfiguration(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Differentiated Services Code Point configuration for any given network interface. :ivar id: Resource ID. @@ -14835,7 +15484,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class DscpConfigurationPropertiesFormat(_Model): +class DscpConfigurationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Differentiated Services Code Point configuration properties. :ivar markings: List of markings to be used in the configuration. @@ -14929,7 +15578,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveBaseSecurityAdminRule(_Model): +class EffectiveBaseSecurityAdminRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network base admin rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -14996,7 +15645,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveDefaultSecurityAdminRule(EffectiveBaseSecurityAdminRule, discriminator="Default"): +class EffectiveDefaultSecurityAdminRule( + EffectiveBaseSecurityAdminRule, discriminator="Default" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network default admin rule. :ivar id: Resource ID. @@ -15079,7 +15730,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class EffectiveNetworkSecurityGroup(_Model): +class EffectiveNetworkSecurityGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Effective network security group. :ivar network_security_group: The ID of network security group that is applied. @@ -15131,7 +15782,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveNetworkSecurityGroupAssociation(_Model): +class EffectiveNetworkSecurityGroupAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The effective network security group association. :ivar network_manager: The ID of the Azure network manager if assigned. @@ -15173,7 +15824,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveNetworkSecurityGroupListResult(_Model): +class EffectiveNetworkSecurityGroupListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for list effective network security groups API service call. :ivar value: The EffectiveNetworkSecurityGroup items on this page. Required. @@ -15207,7 +15858,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveNetworkSecurityRule(_Model): +class EffectiveNetworkSecurityRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Effective network security rules. :ivar name: The name of the security rule specified by the user (if created by the user). @@ -15343,7 +15994,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveRoute(_Model): +class EffectiveRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Effective Route. :ivar name: The name of the user defined route. This is optional. @@ -15420,7 +16071,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveRouteListResult(_Model): +class EffectiveRouteListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for list effective route API service call. :ivar value: The EffectiveRoute items on this page. Required. @@ -15452,7 +16103,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveRouteMapRoute(_Model): +class EffectiveRouteMapRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The effective RouteMap route configured on the connection resource. :ivar prefix: The address prefix of the route. @@ -15492,7 +16143,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveRouteMapRouteList(_Model): +class EffectiveRouteMapRouteList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """EffectiveRouteMapRoute List. :ivar value: The list of Effective RouteMap Routes configured on the connection resource. @@ -15522,7 +16173,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveRoutesParameters(_Model): +class EffectiveRoutesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters specifying the resource whose effective routes are being requested. :ivar resource_id: The resource whose effective routes are being requested. @@ -15561,7 +16212,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EffectiveSecurityAdminRule(EffectiveBaseSecurityAdminRule, discriminator="Custom"): +class EffectiveSecurityAdminRule( + EffectiveBaseSecurityAdminRule, discriminator="Custom" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Network admin rule. :ivar id: Resource ID. @@ -15643,7 +16296,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class EndpointServiceResult(SubResource): +class EndpointServiceResult(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Endpoint service. :ivar id: Resource ID. @@ -15677,7 +16330,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Error(_Model): +class Error(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common error representation. :ivar code: Error code. @@ -15773,7 +16426,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorDetails(_Model): +class ErrorDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common error details representation. :ivar code: Error code. @@ -15811,7 +16464,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The error object. :ivar error: Error. @@ -15839,7 +16492,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EvaluatedNetworkSecurityGroup(_Model): +class EvaluatedNetworkSecurityGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Results of network security group evaluation. :ivar network_security_group_id: Network security group ID. @@ -15888,7 +16541,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExceptionEntry(_Model): +class ExceptionEntry(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Adds exception to allow a request when the condition is satisfied. :ivar match_variable: The variable on which we evaluate the exception condition. Required. @@ -15963,7 +16616,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExclusionManagedRule(_Model): +class ExclusionManagedRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule to use for exclusion. :ivar rule_id: Identifier for the managed rule. Required. @@ -15991,7 +16644,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExclusionManagedRuleGroup(_Model): +class ExclusionManagedRuleGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule group to use for exclusion. :ivar rule_group_name: The managed rule group for exclusion. Required. @@ -16028,7 +16681,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExclusionManagedRuleSet(_Model): +class ExclusionManagedRuleSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule set for Exclusions. :ivar rule_set_type: Defines the rule set type to use. Required. @@ -16070,7 +16723,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExplicitProxy(_Model): +class ExplicitProxy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Explicit Proxy Settings in Firewall Policy. :ivar enable_explicit_proxy: When set to true, explicit proxy mode is enabled. @@ -16129,7 +16782,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuit(Resource): +class ExpressRouteCircuit(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteCircuit resource. :ivar id: Resource ID. @@ -16173,6 +16826,9 @@ class ExpressRouteCircuit(Resource): "express_route_port", "bandwidth_in_gbps", "stag", + "resiliency_level", + "partner_account_id", + "activation_key", "provisioning_state", "gateway_manager_etag", "global_reach_enabled", @@ -16221,7 +16877,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCircuitArpTable(_Model): +class ExpressRouteCircuitArpTable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The ARP table associated with the ExpressRouteCircuit. :ivar age: Entry age in minutes. @@ -16266,7 +16922,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitAuthorization(SubResourceModel): +class ExpressRouteCircuitAuthorization(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Authorization in an ExpressRouteCircuit resource. :ivar id: Resource ID. @@ -16333,7 +16989,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCircuitConnection(SubResourceModel): +class ExpressRouteCircuitConnection(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. :ivar id: Resource ID. @@ -16403,7 +17059,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCircuitConnectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class ExpressRouteCircuitConnectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the express route circuit connection. :ivar express_route_circuit_peering: Reference to Express Route Circuit Private Peering @@ -16482,7 +17140,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitPeering(SubResourceModel): +class ExpressRouteCircuitPeering(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Peering in an ExpressRouteCircuit resource. :ivar id: Resource ID. @@ -16565,7 +17223,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCircuitPeeringConfig(_Model): +class ExpressRouteCircuitPeeringConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies the peering configuration. :ivar advertised_public_prefixes: The reference to AdvertisedPublicPrefixes. @@ -16641,7 +17299,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitPeeringId(_Model): +class ExpressRouteCircuitPeeringId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute circuit peering identifier. :ivar id: The ID of the ExpressRoute circuit peering. @@ -16669,7 +17327,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitPeeringPropertiesFormat(_Model): # pylint: disable=name-too-long +class ExpressRouteCircuitPeeringPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the express route circuit peering. :ivar peering_type: The peering type. Known values are: "AzurePublicPeering", @@ -16825,7 +17485,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitPropertiesFormat(_Model): +class ExpressRouteCircuitPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ExpressRouteCircuit. :ivar allow_classic_operations: Allow classic operations. @@ -16833,8 +17493,8 @@ class ExpressRouteCircuitPropertiesFormat(_Model): :ivar circuit_provisioning_state: The CircuitProvisioningState state of the resource. :vartype circuit_provisioning_state: str :ivar service_provider_provisioning_state: The ServiceProviderProvisioningState state of the - resource. Known values are: "NotProvisioned", "Provisioning", "Provisioned", and - "Deprovisioning". + resource. Known values are: "NotProvisioned", "Provisioning", "Provisioned", "Deprovisioning", + and "DeProvisioned". :vartype service_provider_provisioning_state: str or ~azure.mgmt.network.models.ServiceProviderProvisioningState :ivar authorizations: The list of authorizations. @@ -16856,6 +17516,13 @@ class ExpressRouteCircuitPropertiesFormat(_Model): :vartype bandwidth_in_gbps: float :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ encapsulation. :vartype stag: int + :ivar resiliency_level: The resiliency level of the ExpressRoute circuit. Known values are: + "Standard", "High", and "Maximum". + :vartype resiliency_level: str or ~azure.mgmt.network.models.ResiliencyLevel + :ivar partner_account_id: Account ID of customer account on partner cloud provider. + :vartype partner_account_id: str + :ivar activation_key: Activation Key from partner cloud provider. + :vartype activation_key: str :ivar provisioning_state: The provisioning state of the express route circuit resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState @@ -16884,7 +17551,8 @@ class ExpressRouteCircuitPropertiesFormat(_Model): name="serviceProviderProvisioningState", visibility=["read", "create", "update", "delete", "query"] ) """The ServiceProviderProvisioningState state of the resource. Known values are: - \"NotProvisioned\", \"Provisioning\", \"Provisioned\", and \"Deprovisioning\".""" + \"NotProvisioned\", \"Provisioning\", \"Provisioned\", \"Deprovisioning\", and + \"DeProvisioned\".""" authorizations: Optional[list["_models.ExpressRouteCircuitAuthorization"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -16916,6 +17584,19 @@ class ExpressRouteCircuitPropertiesFormat(_Model): """The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource.""" stag: Optional[int] = rest_field(visibility=["read"]) """The identifier of the circuit traffic. Outer tag for QinQ encapsulation.""" + resiliency_level: Optional[Union[str, "_models.ResiliencyLevel"]] = rest_field( + name="resiliencyLevel", visibility=["read"] + ) + """The resiliency level of the ExpressRoute circuit. Known values are: \"Standard\", \"High\", and + \"Maximum\".""" + partner_account_id: Optional[str] = rest_field( + name="partnerAccountId", visibility=["read", "create", "update", "delete", "query"] + ) + """Account ID of customer account on partner cloud provider.""" + activation_key: Optional[str] = rest_field( + name="activationKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Activation Key from partner cloud provider.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -16954,6 +17635,8 @@ def __init__( service_provider_properties: Optional["_models.ExpressRouteCircuitServiceProviderProperties"] = None, express_route_port: Optional["_models.SubResource"] = None, bandwidth_in_gbps: Optional[float] = None, + partner_account_id: Optional[str] = None, + activation_key: Optional[str] = None, gateway_manager_etag: Optional[str] = None, global_reach_enabled: Optional[bool] = None, authorization_key: Optional[str] = None, @@ -16971,7 +17654,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitReference(_Model): +class ExpressRouteCircuitReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to an express route circuit. :ivar id: Corresponding Express Route Circuit Id. @@ -16999,7 +17682,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitRoutesTable(_Model): +class ExpressRouteCircuitRoutesTable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The routes table associated with the ExpressRouteCircuit. :ivar network: IP address of a network entity. @@ -17048,7 +17731,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitRoutesTableSummary(_Model): +class ExpressRouteCircuitRoutesTableSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The routes table associated with the ExpressRouteCircuit. :ivar neighbor: IP address of the neighbor. @@ -17102,7 +17785,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitsArpTableListResult(_Model): +class ExpressRouteCircuitsArpTableListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for ListArpTable associated with the Express Route Circuits API. :ivar value: The ExpressRouteCircuitArpTable items on this page. Required. @@ -17137,7 +17820,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitServiceProviderProperties(_Model): # pylint: disable=name-too-long +class ExpressRouteCircuitServiceProviderProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Contains ServiceProviderProperties in an ExpressRouteCircuit. :ivar service_provider_name: The serviceProviderName. @@ -17181,12 +17866,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitSku(_Model): +class ExpressRouteCircuitSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains SKU in an ExpressRouteCircuit. :ivar name: The name of the SKU. :vartype name: str - :ivar tier: The tier of the SKU. Known values are: "Standard", "Premium", "Basic", and "Local". + :ivar tier: The tier of the SKU. Known values are: "Standard", "Premium", "Basic", "Local", and + "MultiCloud". :vartype tier: str or ~azure.mgmt.network.models.ExpressRouteCircuitSkuTier :ivar family: The family of the SKU. Known values are: "UnlimitedData" and "MeteredData". :vartype family: str or ~azure.mgmt.network.models.ExpressRouteCircuitSkuFamily @@ -17197,7 +17883,8 @@ class ExpressRouteCircuitSku(_Model): tier: Optional[Union[str, "_models.ExpressRouteCircuitSkuTier"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The tier of the SKU. Known values are: \"Standard\", \"Premium\", \"Basic\", and \"Local\".""" + """The tier of the SKU. Known values are: \"Standard\", \"Premium\", \"Basic\", \"Local\", and + \"MultiCloud\".""" family: Optional[Union[str, "_models.ExpressRouteCircuitSkuFamily"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -17223,7 +17910,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitsRoutesTableListResult(_Model): # pylint: disable=name-too-long +class ExpressRouteCircuitsRoutesTableListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Response for ListRoutesTable associated with the Express Route Circuits API. :ivar value: The ExpressRouteCircuitRoutesTable items on this page. Required. @@ -17258,7 +17947,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitsRoutesTableSummaryListResult(_Model): # pylint: disable=name-too-long +class ExpressRouteCircuitsRoutesTableSummaryListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Response for ListRoutesTable associated with the Express Route Circuits API. :ivar value: The ExpressRouteCircuitRoutesTableSummary items on this page. Required. @@ -17293,7 +17984,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCircuitStats(_Model): +class ExpressRouteCircuitStats(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains stats associated with the peering. :ivar primarybytes_in: The Primary BytesIn of the peering. @@ -17344,7 +18035,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteConnection(SubResource): +class ExpressRouteConnection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteConnection resource. :ivar id: Resource ID. @@ -17422,7 +18113,7 @@ class ExpressRouteConnectionId(_Model): """The ID of the ExpressRouteConnection.""" -class ExpressRouteConnectionList(_Model): +class ExpressRouteConnectionList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteConnection list. :ivar value: The list of ExpressRoute connections. @@ -17452,7 +18143,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteConnectionProperties(_Model): +class ExpressRouteConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the ExpressRouteConnection subresource. :ivar provisioning_state: The provisioning state of the express route connection resource. @@ -17536,7 +18227,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCrossConnection(Resource): +class ExpressRouteCrossConnection(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteCrossConnection resource. :ivar id: Resource ID. @@ -17614,7 +18305,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCrossConnectionPeering(SubResource): +class ExpressRouteCrossConnectionPeering(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Peering in an ExpressRoute Cross Connection resource. :ivar id: Resource ID. @@ -17694,7 +18385,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteCrossConnectionPeeringProperties(_Model): # pylint: disable=name-too-long +class ExpressRouteCrossConnectionPeeringProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of express route cross connection peering. :ivar peering_type: The peering type. Known values are: "AzurePublicPeering", @@ -17808,7 +18501,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCrossConnectionProperties(_Model): +class ExpressRouteCrossConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ExpressRouteCrossConnection. :ivar primary_azure_port: The name of the primary port. @@ -17825,7 +18518,7 @@ class ExpressRouteCrossConnectionProperties(_Model): :vartype express_route_circuit: ~azure.mgmt.network.models.ExpressRouteCircuitReference :ivar service_provider_provisioning_state: The provisioning state of the circuit in the connectivity provider system. Known values are: "NotProvisioned", "Provisioning", - "Provisioned", and "Deprovisioning". + "Provisioned", "Deprovisioning", and "DeProvisioned". :vartype service_provider_provisioning_state: str or ~azure.mgmt.network.models.ServiceProviderProvisioningState :ivar service_provider_notes: Additional read only notes set by the connectivity provider. @@ -17856,7 +18549,8 @@ class ExpressRouteCrossConnectionProperties(_Model): name="serviceProviderProvisioningState", visibility=["read", "create", "update", "delete", "query"] ) """The provisioning state of the circuit in the connectivity provider system. Known values are: - \"NotProvisioned\", \"Provisioning\", \"Provisioned\", and \"Deprovisioning\".""" + \"NotProvisioned\", \"Provisioning\", \"Provisioned\", \"Deprovisioning\", and + \"DeProvisioned\".""" service_provider_notes: Optional[str] = rest_field( name="serviceProviderNotes", visibility=["read", "create", "update", "delete", "query"] ) @@ -17892,7 +18586,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCrossConnectionRoutesTableSummary(_Model): # pylint: disable=name-too-long +class ExpressRouteCrossConnectionRoutesTableSummary( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The routes table associated with the ExpressRouteCircuit. :ivar neighbor: IP address of Neighbor router. @@ -17941,7 +18637,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteCrossConnectionsRoutesTableSummaryListResult(_Model): # pylint: disable=name-too-long +class ExpressRouteCrossConnectionsRoutesTableSummaryListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Response for ListRoutesTable associated with the Express Route Cross Connections. :ivar value: The ExpressRouteCrossConnectionRoutesTableSummary items on this page. Required. @@ -17975,7 +18673,44 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverCircuitResourceDetails(_Model): # pylint: disable=name-too-long +class ExpressRouteDiagnosticsSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Settings that control how Express Route diagnostics are performed by the connection analyzer. + + :ivar er_circuit_resource_id: Resource ID of the Express Route circuit. + :vartype er_circuit_resource_id: str + :ivar bandwidth: Bandwidth (in Mbps) to use for the Express Route diagnostic. + :vartype bandwidth: float + """ + + er_circuit_resource_id: Optional[str] = rest_field( + name="erCircuitResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource ID of the Express Route circuit.""" + bandwidth: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Bandwidth (in Mbps) to use for the Express Route diagnostic.""" + + @overload + def __init__( + self, + *, + er_circuit_resource_id: Optional[str] = None, + bandwidth: Optional[float] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteFailoverCircuitResourceDetails( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ExpressRouteFailoverCircuitResourceDetails. :ivar nrp_resource_uri: NRP Resource URI of the circuit. @@ -18017,7 +18752,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverConnectionResourceDetails(_Model): # pylint: disable=name-too-long +class ExpressRouteFailoverConnectionResourceDetails( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ExpressRouteFailoverConnectionResourceDetails. :ivar nrp_resource_uri: NRP Resource URI of the connection. @@ -18067,7 +18804,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverRedundantRoute(_Model): +class ExpressRouteFailoverRedundantRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteFailoverRedundantRoute. :ivar peering_locations: A list of all the peering locations for the redundant routes. @@ -18102,7 +18839,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverSingleTestDetails(_Model): +class ExpressRouteFailoverSingleTestDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute failover single test details. :ivar peering_location: Peering location of the test. @@ -18187,7 +18924,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverStopApiParameters(_Model): +class ExpressRouteFailoverStopApiParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Start packet capture parameters on virtual network gateway. :ivar peering_location: Peering location of the test. @@ -18231,7 +18968,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteFailoverTestDetails(_Model): +class ExpressRouteFailoverTestDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute failover test details. :ivar peering_location: Peering location of the test. @@ -18314,7 +19051,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteGateway(Resource): +class ExpressRouteGateway(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute gateway resource. :ivar id: Resource ID. @@ -18387,7 +19124,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteGatewayList(_Model): +class ExpressRouteGatewayList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of ExpressRoute gateways. :ivar value: List of ExpressRoute gateways. @@ -18417,7 +19154,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteGatewayProperties(_Model): +class ExpressRouteGatewayProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute gateway resource properties. :ivar auto_scale_configuration: Configuration for auto scaling. @@ -18479,7 +19216,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteGatewayPropertiesAutoScaleConfiguration(_Model): # pylint: disable=name-too-long +class ExpressRouteGatewayPropertiesAutoScaleConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Configuration for auto scaling. :ivar bounds: Minimum and maximum number of scale units to deploy. @@ -18510,7 +19249,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds(_Model): # pylint: disable=name-too-long +class ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Minimum and maximum number of scale units to deploy. :ivar min: Minimum number of scale units deployed for ExpressRoute gateway. @@ -18543,7 +19284,424 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLink(SubResource): +class ExpressRouteLag(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRoute LAG. + + :ivar name: Resource name. + :vartype name: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: ExpressRouteLag properties. + :vartype properties: ~azure.mgmt.network.models.ExpressRouteLagPropertiesFormat + :ivar id: The unique identifier of the resource. + :vartype id: str + :ivar type: The type of the resource. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: The identity of ExpressRouteLag, if configured. + :vartype identity: ~azure.mgmt.network.models.ManagedServiceIdentity + """ + + properties: Optional["_models.ExpressRouteLagPropertiesFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ExpressRouteLag properties.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of ExpressRouteLag, if configured.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.ExpressRouteLagPropertiesFormat"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagLink(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRouteLagLink. + + :ivar properties: ExpressRouteLagLink properties. + :vartype properties: ~azure.mgmt.network.models.ExpressRouteLagLinkPropertiesFormat + :ivar id: The unique identifier of the resource. Required. + :vartype id: str + :ivar type: The type of the resource. Required. + :vartype type: str + :ivar name: Name of child link resource that is unique among child link resources of the + parent. Required. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Optional["_models.ExpressRouteLagLinkPropertiesFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ExpressRouteLagLink properties.""" + id: str = rest_field(visibility=["read"]) + """The unique identifier of the resource. Required.""" + type: str = rest_field(visibility=["read"]) + """The type of the resource. Required.""" + name: str = rest_field(visibility=["read"]) + """Name of child link resource that is unique among child link resources of the parent. Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ExpressRouteLagLinkPropertiesFormat"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagLinkPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRouteLagLink Resource Properties. + + :ivar router_name: Name of Azure router associated with link. + :vartype router_name: str + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar admin_state: Administrative state of the link. Known values are: "Enabled" and + "Disabled". + :vartype admin_state: str or ~azure.mgmt.network.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the express route LAG link resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + :ivar mac_sec_config: MacSec configuration. + :vartype mac_sec_config: ~azure.mgmt.network.models.ExpressRouteLinkMacSecConfig + :ivar members: ExpressRouteLagMember Sub-Resources. + :vartype members: list[~azure.mgmt.network.models.ExpressRouteLagMember] + """ + + router_name: Optional[str] = rest_field(name="routerName", visibility=["read"]) + """Name of Azure router associated with link.""" + interface_name: Optional[str] = rest_field(name="interfaceName", visibility=["read"]) + """Name of Azure router interface.""" + admin_state: Optional[Union[str, "_models.ExpressRouteLinkAdminState"]] = rest_field( + name="adminState", visibility=["read", "create", "update", "delete", "query"] + ) + """Administrative state of the link. Known values are: \"Enabled\" and \"Disabled\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the express route LAG link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + mac_sec_config: Optional["_models.ExpressRouteLinkMacSecConfig"] = rest_field( + name="macSecConfig", visibility=["read", "create", "update", "delete", "query"] + ) + """MacSec configuration.""" + members: Optional[list["_models.ExpressRouteLagMember"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ExpressRouteLagMember Sub-Resources.""" + + @overload + def __init__( + self, + *, + admin_state: Optional[Union[str, "_models.ExpressRouteLinkAdminState"]] = None, + mac_sec_config: Optional["_models.ExpressRouteLinkMacSecConfig"] = None, + members: Optional[list["_models.ExpressRouteLagMember"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagMember(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRouteLagMember. + + :ivar properties: ExpressRouteLagMember properties. + :vartype properties: ~azure.mgmt.network.models.ExpressRouteLagMemberPropertiesFormat + :ivar id: The unique identifier of the resource. Required. + :vartype id: str + :ivar type: The type of the resource. Required. + :vartype type: str + :ivar name: Name of child member resource that is unique among child member resources of the + parent. Required. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Optional["_models.ExpressRouteLagMemberPropertiesFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ExpressRouteLagMember properties.""" + id: str = rest_field(visibility=["read"]) + """The unique identifier of the resource. Required.""" + type: str = rest_field(visibility=["read"]) + """The type of the resource. Required.""" + name: str = rest_field(visibility=["read"]) + """Name of child member resource that is unique among child member resources of the parent. + Required.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ExpressRouteLagMemberPropertiesFormat"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagMemberPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRouteLagMember Resource Properties. + + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar patch_panel_id: Mapping between physical port to patch panel port. + :vartype patch_panel_id: str + :ivar rack_id: Mapping of physical patch panel to rack. + :vartype rack_id: str + :ivar colo_location: Cololocation for ExpressRoute member. + :vartype colo_location: str + :ivar connector_type: Physical fiber port type. Known values are: "LC" and "SC". + :vartype connector_type: str or ~azure.mgmt.network.models.ExpressRouteLinkConnectorType + :ivar admin_state: Administrative state of the member port. Known values are: "Enabled" and + "Disabled". + :vartype admin_state: str or ~azure.mgmt.network.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the express route LAG member resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + """ + + interface_name: Optional[str] = rest_field(name="interfaceName", visibility=["read"]) + """Name of Azure router interface.""" + patch_panel_id: Optional[str] = rest_field(name="patchPanelId", visibility=["read"]) + """Mapping between physical port to patch panel port.""" + rack_id: Optional[str] = rest_field(name="rackId", visibility=["read"]) + """Mapping of physical patch panel to rack.""" + colo_location: Optional[str] = rest_field(name="coloLocation", visibility=["read"]) + """Cololocation for ExpressRoute member.""" + connector_type: Optional[Union[str, "_models.ExpressRouteLinkConnectorType"]] = rest_field( + name="connectorType", visibility=["read"] + ) + """Physical fiber port type. Known values are: \"LC\" and \"SC\".""" + admin_state: Optional[Union[str, "_models.ExpressRouteLinkAdminState"]] = rest_field( + name="adminState", visibility=["read", "create", "update", "delete", "query"] + ) + """Administrative state of the member port. Known values are: \"Enabled\" and \"Disabled\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the express route LAG member resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + @overload + def __init__( + self, + *, + admin_state: Optional[Union[str, "_models.ExpressRouteLinkAdminState"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """ExpressRouteLag Resource Properties. + + :ivar peering_location: The name of the peering location that the ExpressRouteLag is mapped to + physically. + :vartype peering_location: str + :ivar bandwidth_in_gbps: Bandwidth of procured LAG in Gbps. + :vartype bandwidth_in_gbps: int + :ivar provisioned_bandwidth_in_gbps: Aggregate Gbps of associated circuit bandwidths. + :vartype provisioned_bandwidth_in_gbps: float + :ivar mtu: Maximum transmission unit of the LAG. + :vartype mtu: str + :ivar encapsulation: Encapsulation method on LAG. Known values are: "Dot1Q" and "QinQ". + :vartype encapsulation: str or ~azure.mgmt.network.models.ExpressRouteLagEncapsulation + :ivar ether_type: Ether type of the LAG. + :vartype ether_type: str + :ivar links: ExpressRouteLagLink Sub-Resources. + :vartype links: list[~azure.mgmt.network.models.ExpressRouteLagLink] + :ivar allocation_date: The date and time when the ExpressRouteLag was allocated. + :vartype allocation_date: str + :ivar provisioning_state: The provisioning state of the express route LAG resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + :ivar resource_guid: The resource GUID property of the express route LAG resource. + :vartype resource_guid: str + :ivar billing_type: The billing type of the ExpressRouteLag resource. Known values are: + "MeteredData" and "UnlimitedData". + :vartype billing_type: str or ~azure.mgmt.network.models.ExpressRouteLagBillingType + :ivar number_of_ports: Number of ports in the LAG. + :vartype number_of_ports: int + :ivar minimum_active_ports_required: Minimum number of active ports required for LAG. + :vartype minimum_active_ports_required: int + :ivar lacp_timer: LACP timer configuration. Known values are: "Fast" and "Slow". + :vartype lacp_timer: str or ~azure.mgmt.network.models.ExpressRouteLagLacpTimer + """ + + peering_location: Optional[str] = rest_field( + name="peeringLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """The name of the peering location that the ExpressRouteLag is mapped to physically.""" + bandwidth_in_gbps: Optional[int] = rest_field( + name="bandwidthInGbps", visibility=["read", "create", "update", "delete", "query"] + ) + """Bandwidth of procured LAG in Gbps.""" + provisioned_bandwidth_in_gbps: Optional[float] = rest_field(name="provisionedBandwidthInGbps", visibility=["read"]) + """Aggregate Gbps of associated circuit bandwidths.""" + mtu: Optional[str] = rest_field(visibility=["read"]) + """Maximum transmission unit of the LAG.""" + encapsulation: Optional[Union[str, "_models.ExpressRouteLagEncapsulation"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Encapsulation method on LAG. Known values are: \"Dot1Q\" and \"QinQ\".""" + ether_type: Optional[str] = rest_field(name="etherType", visibility=["read"]) + """Ether type of the LAG.""" + links: Optional[list["_models.ExpressRouteLagLink"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """ExpressRouteLagLink Sub-Resources.""" + allocation_date: Optional[str] = rest_field(name="allocationDate", visibility=["read"]) + """The date and time when the ExpressRouteLag was allocated.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the express route LAG resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resource_guid: Optional[str] = rest_field(name="resourceGuid", visibility=["read"]) + """The resource GUID property of the express route LAG resource.""" + billing_type: Optional[Union[str, "_models.ExpressRouteLagBillingType"]] = rest_field( + name="billingType", visibility=["read", "create", "update", "delete", "query"] + ) + """The billing type of the ExpressRouteLag resource. Known values are: \"MeteredData\" and + \"UnlimitedData\".""" + number_of_ports: Optional[int] = rest_field( + name="numberOfPorts", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of ports in the LAG.""" + minimum_active_ports_required: Optional[int] = rest_field( + name="minimumActivePortsRequired", visibility=["read", "create", "update", "delete", "query"] + ) + """Minimum number of active ports required for LAG.""" + lacp_timer: Optional[Union[str, "_models.ExpressRouteLagLacpTimer"]] = rest_field( + name="lacpTimer", visibility=["read", "create", "update", "delete", "query"] + ) + """LACP timer configuration. Known values are: \"Fast\" and \"Slow\".""" + + @overload + def __init__( + self, + *, + peering_location: Optional[str] = None, + bandwidth_in_gbps: Optional[int] = None, + encapsulation: Optional[Union[str, "_models.ExpressRouteLagEncapsulation"]] = None, + links: Optional[list["_models.ExpressRouteLagLink"]] = None, + billing_type: Optional[Union[str, "_models.ExpressRouteLagBillingType"]] = None, + number_of_ports: Optional[int] = None, + minimum_active_ports_required: Optional[int] = None, + lacp_timer: Optional[Union[str, "_models.ExpressRouteLagLacpTimer"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLagUpdateTagsOrIdentityRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """ExpressRouteLag Update Tags or Identity Request. + + :ivar identity: The identity of ExpressRouteLag, if configured. + :vartype identity: ~azure.mgmt.network.models.ManagedServiceIdentity + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The identity of ExpressRouteLag, if configured.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + + @overload + def __init__( + self, + *, + identity: Optional["_models.ManagedServiceIdentity"] = None, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExpressRouteLink(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteLink. :ivar id: Resource ID. @@ -18616,7 +19774,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteLinkFailoverAllTestsDetails(_Model): +class ExpressRouteLinkFailoverAllTestsDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute circuit link failover test details for all tests. :ivar status: The current status of the test. Known values are: "NotStarted", "Starting", @@ -18706,7 +19864,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkFailoverRoute(_Model): +class ExpressRouteLinkFailoverRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a failover route for an ExpressRoute link. :ivar route: The route. @@ -18753,7 +19911,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkFailoverRouteList(_Model): +class ExpressRouteLinkFailoverRouteList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a list of failover routes for an ExpressRoute link. :ivar before_simulation: The routes before the simulation. @@ -18790,7 +19948,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkFailoverSingleTestDetails(_Model): # pylint: disable=name-too-long +class ExpressRouteLinkFailoverSingleTestDetails( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ExpressRoute circuit link failover single test details. :ivar start_time_utc: Time when the test was started in UTC. @@ -18886,7 +20046,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkFailoverStopApiParameters(_Model): # pylint: disable=name-too-long +class ExpressRouteLinkFailoverStopApiParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Parameters for stopping an ExpressRoute circuit link failover test. :ivar circuit_test_category: The category of the circuit test. @@ -18935,7 +20097,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkFailoverTestBgpStatus(_Model): +class ExpressRouteLinkFailoverTestBgpStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the BGP status of an ExpressRoute link failover test. :ivar type: The address family type. Known values are: "IPv4" and "IPv6". @@ -18986,7 +20148,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkMacSecConfig(_Model): +class ExpressRouteLinkMacSecConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Definition of ExpressRouteLink Mac Security configuration. :ivar ckn_secret_identifier: Keyvault Secret Identifier URL containing Mac security CKN key. @@ -19039,7 +20201,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteLinkPropertiesFormat(_Model): +class ExpressRouteLinkPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteLink Resource Properties. :ivar router_name: Name of Azure router associated with physical port. @@ -19111,7 +20273,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRoutePort(Resource): +class ExpressRoutePort(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute Port. :ivar id: Resource ID. @@ -19198,7 +20360,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRoutePortAuthorization(SubResourceModel): +class ExpressRoutePortAuthorization(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoute Port Authorization. :ivar id: Resource ID. @@ -19292,7 +20454,7 @@ class ExpressRoutePortAuthorizationPropertiesFormat(_Model): # pylint: disable= \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" -class ExpressRoutePortPropertiesFormat(_Model): +class ExpressRoutePortPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoutePort Properties. :ivar peering_location: The name of the peering location that the ExpressRoutePort is mapped to @@ -19388,7 +20550,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRoutePortsLocation(Resource): +class ExpressRoutePortsLocation(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRoutePorts Peering Location. :ivar id: Resource ID. @@ -19466,7 +20628,9 @@ class ExpressRoutePortsLocationBandwidths(_Model): """Bandwidth value in Gbps.""" -class ExpressRoutePortsLocationPropertiesFormat(_Model): # pylint: disable=name-too-long +class ExpressRoutePortsLocationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """ExpressRoutePorts Location Properties. :ivar address: Address of peering location. @@ -19513,7 +20677,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteProviderPort(TrackedResourceWithOptionalLocation): +class ExpressRouteProviderPort( + TrackedResourceWithOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """ExpressRouteProviderPort resource. :ivar id: Resource ID. @@ -19588,7 +20754,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteProviderPortListResult(_Model): +class ExpressRouteProviderPortListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for ListExpressRouteProviderPort API service call. :ivar value: The ExpressRouteProviderPort items on this page. Required. @@ -19622,7 +20788,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteProviderPortProperties(_Model): +class ExpressRouteProviderPortProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ExpressRouteProviderPort. :ivar port_pair_descriptor: The name of the port pair. @@ -19692,7 +20858,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteServiceProvider(Resource): +class ExpressRouteServiceProvider(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A ExpressRouteResourceProvider object. :ivar id: Resource ID. @@ -19755,7 +20921,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ExpressRouteServiceProviderBandwidthsOffered(_Model): # pylint: disable=name-too-long +class ExpressRouteServiceProviderBandwidthsOffered( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Contains bandwidths offered in ExpressRouteServiceProvider resources. :ivar offer_name: The OfferName. @@ -19790,7 +20958,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExpressRouteServiceProviderPropertiesFormat(_Model): # pylint: disable=name-too-long +class ExpressRouteServiceProviderPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of ExpressRouteServiceProvider. :ivar peering_locations: A list of peering locations. @@ -19837,7 +21007,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ExtendedLocation(_Model): +class ExtendedLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ExtendedLocation complex type. :ivar name: The name of the extended location. @@ -19872,7 +21042,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FailoverConnectionDetails(_Model): +class FailoverConnectionDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """FailoverConnectionDetails. :ivar failover_connection_name: Name of the failover connection. @@ -19918,7 +21088,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FilterItems(_Model): +class FilterItems(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Will contain the filter name and values to operate on. :ivar field: The name of the field we would like to filter. @@ -19953,7 +21123,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPacketCaptureParameters(_Model): +class FirewallPacketCaptureParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Firewall Packet Capture Parameters. :ivar duration_in_seconds: Duration of packet capture in seconds. If the field is not provided, @@ -20040,7 +21210,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicy(Resource): +class FirewallPolicy(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """FirewallPolicy Resource. :ivar id: Resource ID. @@ -20075,6 +21245,7 @@ class FirewallPolicy(Resource): __flattened_items = [ "size", "rule_collection_groups", + "kube_selector_groups", "provisioning_state", "base_policy", "firewalls", @@ -20089,6 +21260,7 @@ class FirewallPolicy(Resource): "intrusion_detection", "transport_security", "sku", + "afc_managed", ] @overload @@ -20131,7 +21303,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FirewallPolicyCertificateAuthority(_Model): +class FirewallPolicyCertificateAuthority(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Trusted Root certificates properties for tls. :ivar key_vault_secret_id: Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or @@ -20168,7 +21340,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyDraft(Resource): +class FirewallPolicyDraft(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """FirewallPolicy Resource. :ivar id: Resource ID. @@ -20241,7 +21413,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FirewallPolicyDraftProperties(_Model): +class FirewallPolicyDraftProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """FirewallPolicyDraftProperties. :ivar base_policy: The parent firewall policy from which rules are inherited. @@ -20326,7 +21498,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyRuleCollection(_Model): +class FirewallPolicyRuleCollection(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the rule collection. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -20375,7 +21547,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class FirewallPolicyFilterRuleCollection( FirewallPolicyRuleCollection, discriminator="FirewallPolicyFilterRuleCollection" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Firewall Policy Filter Rule Collection. :ivar name: The name of the rule collection. @@ -20425,7 +21597,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.rule_collection_type = FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION # type: ignore -class FirewallPolicyFilterRuleCollectionAction(_Model): +class FirewallPolicyFilterRuleCollectionAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the FirewallPolicyFilterRuleCollectionAction. :ivar type: The type of action. Known values are: "Allow" and "Deny". @@ -20455,7 +21627,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyHttpHeaderToInsert(_Model): +class FirewallPolicyHttpHeaderToInsert(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """name and value of HTTP/S header to insert. :ivar header_name: Contains the name of the header. @@ -20492,7 +21664,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyInsights(_Model): +class FirewallPolicyInsights(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Firewall Policy Insights. :ivar is_enabled: A flag to indicate if the insights are enabled on the policy. @@ -20537,7 +21709,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyIntrusionDetection(_Model): +class FirewallPolicyIntrusionDetection(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration for intrusion detection mode and rules. :ivar mode: Intrusion detection general state. When attached to a parent policy, the firewall's @@ -20589,7 +21761,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications(_Model): # pylint: disable=name-too-long +class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Intrusion detection bypass traffic specification. :ivar name: Name of the bypass traffic rule. @@ -20664,7 +21838,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyIntrusionDetectionConfiguration(_Model): # pylint: disable=name-too-long +class FirewallPolicyIntrusionDetectionConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The operation for configuring intrusion detection. :ivar signature_overrides: List of specific signatures states. @@ -20717,7 +21893,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyIntrusionDetectionSignatureSpecification(_Model): # pylint: disable=name-too-long +class FirewallPolicyIntrusionDetectionSignatureSpecification( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Intrusion detection signatures specification states. :ivar id: Signature id. @@ -20752,7 +21930,98 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyLogAnalyticsResources(_Model): +class FirewallPolicyKubeSelectorGroup(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only + """Firewall Policy Kubernetes Selector Group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the firewall policy Kubernetes selector group. + :vartype properties: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroupProperties + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Optional["_models.FirewallPolicyKubeSelectorGroupProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The properties of the firewall policy Kubernetes selector group.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + properties: Optional["_models.FirewallPolicyKubeSelectorGroupProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FirewallPolicyKubeSelectorGroupProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Properties of the Kubernetes Selector Group. + + :ivar pod_selector: Kubernetes Pod selector for matching pods in the Kubernetes cluster. + :vartype pod_selector: ~azure.mgmt.network.models.KubeLabelSelector + :ivar namespace_selector: Kubernetes Namespace selector for matching namespaces in the + Kubernetes cluster. + :vartype namespace_selector: ~azure.mgmt.network.models.KubeLabelSelector + :ivar provisioning_state: The provisioning state of the firewall policy Kubernetes selector + group resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", + and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + """ + + pod_selector: Optional["_models.KubeLabelSelector"] = rest_field( + name="podSelector", visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes Pod selector for matching pods in the Kubernetes cluster.""" + namespace_selector: Optional["_models.KubeLabelSelector"] = rest_field( + name="namespaceSelector", visibility=["read", "create", "update", "delete", "query"] + ) + """Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the firewall policy Kubernetes selector group resource. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + @overload + def __init__( + self, + *, + pod_selector: Optional["_models.KubeLabelSelector"] = None, + namespace_selector: Optional["_models.KubeLabelSelector"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FirewallPolicyLogAnalyticsResources(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Log Analytics Resources for Firewall Policy Insights. :ivar workspaces: List of workspaces for Firewall Policy Insights. @@ -20789,7 +22058,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyLogAnalyticsWorkspace(_Model): +class FirewallPolicyLogAnalyticsWorkspace(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Log Analytics Workspace for Firewall Policy Insights. :ivar region: Region to configure the Workspace. @@ -20824,7 +22093,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyNatRuleCollection(FirewallPolicyRuleCollection, discriminator="FirewallPolicyNatRuleCollection"): +class FirewallPolicyNatRuleCollection( + FirewallPolicyRuleCollection, discriminator="FirewallPolicyNatRuleCollection" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Firewall Policy NAT Rule Collection. :ivar name: The name of the rule collection. @@ -20874,7 +22145,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.rule_collection_type = FirewallPolicyRuleCollectionType.FIREWALL_POLICY_NAT_RULE_COLLECTION # type: ignore -class FirewallPolicyNatRuleCollectionAction(_Model): +class FirewallPolicyNatRuleCollectionAction(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the FirewallPolicyNatRuleCollectionAction. :ivar type: The type of action. "DNAT" @@ -20904,7 +22175,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyPropertiesFormat(_Model): +class FirewallPolicyPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Firewall Policy definition. :ivar size: A read-only string that represents the size of the FirewallPolicyPropertiesFormat @@ -20912,6 +22183,8 @@ class FirewallPolicyPropertiesFormat(_Model): :vartype size: str :ivar rule_collection_groups: List of references to FirewallPolicyRuleCollectionGroups. :vartype rule_collection_groups: list[~azure.mgmt.network.models.SubResource] + :ivar kube_selector_groups: List of references to FirewallPolicyKubeSelectorGroups. + :vartype kube_selector_groups: list[~azure.mgmt.network.models.SubResource] :ivar provisioning_state: The provisioning state of the firewall policy resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState @@ -20943,6 +22216,10 @@ class FirewallPolicyPropertiesFormat(_Model): :vartype transport_security: ~azure.mgmt.network.models.FirewallPolicyTransportSecurity :ivar sku: The Firewall Policy SKU. :vartype sku: ~azure.mgmt.network.models.FirewallPolicySku + :ivar afc_managed: Indicates that the Firewall Policy is managed by AFC (Azure Firewall for + Containers). When set, the policy is treated as read-only for callers that do not supply the + AFC-managed sync marker on write operations. + :vartype afc_managed: bool """ size: Optional[str] = rest_field(visibility=["read"]) @@ -20952,6 +22229,10 @@ class FirewallPolicyPropertiesFormat(_Model): name="ruleCollectionGroups", visibility=["read"] ) """List of references to FirewallPolicyRuleCollectionGroups.""" + kube_selector_groups: Optional[list["_models.SubResource"]] = rest_field( + name="kubeSelectorGroups", visibility=["read"] + ) + """List of references to FirewallPolicyKubeSelectorGroups.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -21001,6 +22282,10 @@ class FirewallPolicyPropertiesFormat(_Model): """TLS Configuration definition.""" sku: Optional["_models.FirewallPolicySku"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The Firewall Policy SKU.""" + afc_managed: Optional[bool] = rest_field(name="afcManaged", visibility=["read"]) + """Indicates that the Firewall Policy is managed by AFC (Azure Firewall for Containers). When set, + the policy is treated as read-only for callers that do not supply the AFC-managed sync marker + on write operations.""" @overload def __init__( @@ -21030,7 +22315,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyRuleApplicationProtocol(_Model): +class FirewallPolicyRuleApplicationProtocol(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the application rule protocol. :ivar protocol_type: Protocol type. Known values are: "Http" and "Https". @@ -21066,7 +22351,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyRuleCollectionGroup(SubResourceModel): +class FirewallPolicyRuleCollectionGroup( + SubResourceModel +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule Collection Group resource. :ivar id: Resource ID. @@ -21128,7 +22415,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FirewallPolicyRuleCollectionGroupDraft(SubResourceModel): +class FirewallPolicyRuleCollectionGroupDraft( + SubResourceModel +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule Collection Group resource. :ivar id: Resource ID. @@ -21187,7 +22476,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FirewallPolicyRuleCollectionGroupDraftProperties(_Model): # pylint: disable=name-too-long +class FirewallPolicyRuleCollectionGroupDraftProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the rule collection group draft. :ivar size: A read-only string that represents the size of the @@ -21228,7 +22519,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyRuleCollectionGroupProperties(_Model): # pylint: disable=name-too-long +class FirewallPolicyRuleCollectionGroupProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the rule collection group. :ivar size: A read-only string that represents the size of the @@ -21278,7 +22571,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicySku(_Model): +class FirewallPolicySku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of Firewall policy. :ivar tier: Tier of Firewall Policy. Known values are: "Standard", "Premium", and "Basic". @@ -21308,7 +22601,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicySNAT(_Model): +class FirewallPolicySNAT(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The private IP addresses/IP ranges to which traffic will not be SNAT. :ivar private_ranges: List of private IP addresses/IP address ranges to not be SNAT. @@ -21348,7 +22641,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicySQL(_Model): +class FirewallPolicySQL(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SQL Settings in Firewall Policy. :ivar allow_sql_redirect: A flag to indicate if SQL Redirect traffic filtering is enabled. @@ -21380,7 +22673,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyThreatIntelWhitelist(_Model): +class FirewallPolicyThreatIntelWhitelist(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ThreatIntel Whitelist for Firewall Policy. :ivar ip_addresses: List of IP addresses for the ThreatIntel Whitelist. @@ -21415,7 +22708,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FirewallPolicyTransportSecurity(_Model): +class FirewallPolicyTransportSecurity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration needed to perform TLS termination & initiation. :ivar certificate_authority: The CA used for intermediate CA generation. @@ -21445,7 +22738,97 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FlowLog(Resource): +class FirstPartyServiceTag(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only + """First party service tag resource. + + :ivar name: Resource name. + :vartype name: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the first party service tag. + :vartype properties: ~azure.mgmt.network.models.FirstPartyServiceTagPropertiesFormat + :ivar id: The unique identifier of the resource. + :vartype id: str + :ivar type: The type of the resource. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Optional["_models.FirstPartyServiceTagPropertiesFormat"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the first party service tag.""" + etag: Optional[str] = rest_field(visibility=["read"]) + """A unique read-only string that changes whenever the resource is updated.""" + + @overload + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.FirstPartyServiceTagPropertiesFormat"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FirstPartyServiceTagPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Properties of the first party service tag. + + :ivar value: The value of the first party service tag. Required. + :vartype value: str + :ivar failed_reason: The reason for failure, if any. + :vartype failed_reason: str + :ivar resource_guid: The resource GUID property of the first party service tag resource. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the first party service tag resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState + """ + + value: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The value of the first party service tag. Required.""" + failed_reason: Optional[str] = rest_field(name="failedReason", visibility=["read"]) + """The reason for failure, if any.""" + resource_guid: Optional[str] = rest_field(name="resourceGuid", visibility=["read"]) + """The resource GUID property of the first party service tag resource.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The provisioning state of the first party service tag resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + @overload + def __init__( + self, + *, + value: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FlowLog(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A flow log resource. :ivar id: Resource ID. @@ -21530,7 +22913,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FlowLogFormatParameters(_Model): +class FlowLogFormatParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the flow log format. :ivar type: The file type of flow log. "JSON" @@ -21565,7 +22948,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FlowLogInformation(_Model): +class FlowLogInformation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information on the configuration of flow log and traffic analytics (optional) . :ivar target_resource_id: The ID of the resource to configure for flow log and traffic @@ -21643,7 +23026,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FlowLogProperties(_Model): +class FlowLogProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the configuration of flow log. :ivar storage_id: ID of the storage account which is used to store the flow log. Required. @@ -21716,7 +23099,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FlowLogPropertiesFormat(_Model): +class FlowLogPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the configuration of flow log. :ivar target_resource_id: ID of network security group to which flow log will be applied. @@ -21817,7 +23200,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FlowLogStatusParameters(_Model): +class FlowLogStatusParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define a resource to query flow log and traffic analytics (optional) status. :ivar target_resource_id: The target resource where getting the flow log and traffic analytics @@ -21849,7 +23232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FrontendIPConfiguration(SubResourceModel): +class FrontendIPConfiguration(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Frontend IP address of the load balancer. :ivar id: Resource ID. @@ -21890,6 +23273,7 @@ class FrontendIPConfiguration(SubResourceModel): "gateway_load_balancer", "provisioning_state", "ddos_settings", + "enable_connection_tracking", ] @overload @@ -21931,7 +23315,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class FrontendIPConfigurationPropertiesFormat(_Model): +class FrontendIPConfigurationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Frontend IP Configuration of the load balancer. :ivar inbound_nat_rules: An array of references to inbound rules that use this frontend IP. @@ -21965,6 +23349,11 @@ class FrontendIPConfigurationPropertiesFormat(_Model): :ivar ddos_settings: The DDoS protection settings associated with the frontend IP configuration. :vartype ddos_settings: ~azure.mgmt.network.models.DdosFrontendIpConfigurationSettings + :ivar enable_connection_tracking: Enables UDP flow tracking for traffic associated with the + frontend IP configuration. When enabled, packets belonging to the same UDP flow are + consistently directed to the same backend instance. This setting applies to all associated load + balancing rules and takes precedence over rule-level enableConnectionTracking settings. + :vartype enable_connection_tracking: bool """ inbound_nat_rules: Optional[list["_models.SubResource"]] = rest_field(name="inboundNatRules", visibility=["read"]) @@ -22013,6 +23402,13 @@ class FrontendIPConfigurationPropertiesFormat(_Model): name="ddosSettings", visibility=["read", "create", "update", "delete", "query"] ) """The DDoS protection settings associated with the frontend IP configuration.""" + enable_connection_tracking: Optional[bool] = rest_field( + name="enableConnectionTracking", visibility=["read", "create", "update", "delete", "query"] + ) + """Enables UDP flow tracking for traffic associated with the frontend IP configuration. When + enabled, packets belonging to the same UDP flow are consistently directed to the same backend + instance. This setting applies to all associated load balancing rules and takes precedence over + rule-level enableConnectionTracking settings.""" @overload def __init__( @@ -22026,6 +23422,7 @@ def __init__( public_ip_prefix: Optional["_models.SubResource"] = None, gateway_load_balancer: Optional["_models.SubResource"] = None, ddos_settings: Optional["_models.DdosFrontendIpConfigurationSettings"] = None, + enable_connection_tracking: Optional[bool] = None, ) -> None: ... @overload @@ -22039,7 +23436,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayCustomBgpIpAddressIpConfiguration(_Model): +class GatewayCustomBgpIpAddressIpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """GatewayCustomBgpIpAddressIpConfiguration for a virtual network gateway connection. :ivar ip_configuration_id: The IpconfigurationId of ipconfiguration which belongs to gateway. @@ -22078,7 +23475,64 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayLoadBalancerTunnelInterface(_Model): +class GatewayEffectiveRoute(_Model): + """Gateway effective routing details. + + :ivar local_address: The gateway's local address. + :vartype local_address: str + :ivar address_prefixes: The list of address prefixes for the effective route. + :vartype address_prefixes: list[str] + :ivar next_hop_ip_address: The IP address of the next hop for the effective route. + :vartype next_hop_ip_address: str + :ivar next_hop_type: The next hop type of the effective route. Known values are: "Tunnel", + "VirtualNetwork", and "Unknown". + :vartype next_hop_type: str or ~azure.mgmt.network.models.GatewayEffectiveRouteNextHopType + """ + + local_address: Optional[str] = rest_field(name="localAddress", visibility=["read"]) + """The gateway's local address.""" + address_prefixes: Optional[list[str]] = rest_field(name="addressPrefixes", visibility=["read"]) + """The list of address prefixes for the effective route.""" + next_hop_ip_address: Optional[str] = rest_field(name="nextHopIpAddress", visibility=["read"]) + """The IP address of the next hop for the effective route.""" + next_hop_type: Optional[Union[str, "_models.GatewayEffectiveRouteNextHopType"]] = rest_field( + name="nextHopType", visibility=["read"] + ) + """The next hop type of the effective route. Known values are: \"Tunnel\", \"VirtualNetwork\", and + \"Unknown\".""" + + +class GatewayEffectiveRouteListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """List of virtual network gateway effective routes. + + :ivar value: List of gateway effective routes. + :vartype value: list[~azure.mgmt.network.models.GatewayEffectiveRoute] + """ + + value: Optional[list["_models.GatewayEffectiveRoute"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of gateway effective routes.""" + + @overload + def __init__( + self, + *, + value: Optional[list["_models.GatewayEffectiveRoute"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GatewayLoadBalancerTunnelInterface(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gateway load balancer tunnel interface of a load balancer backend address pool. :ivar port: Port of gateway load balancer tunnel interface. @@ -22129,7 +23583,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayResiliencyInformation(_Model): +class GatewayResiliencyInformation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gateway Resiliency Information. :ivar overall_score: Current Resiliency Score for the gateway. @@ -22208,7 +23662,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayResiliencyRecommendation(_Model): +class GatewayResiliencyRecommendation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resiliency Recommendation details. :ivar recommendation_title: Recommendation Title. @@ -22306,7 +23760,7 @@ class GatewayRoute(_Model): """The route's weight.""" -class GatewayRouteListResult(_Model): +class GatewayRouteListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of virtual network gateway routes. :ivar value: List of gateway routes. @@ -22336,7 +23790,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayRouteSet(_Model): +class GatewayRouteSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """GatewayRouteSet. :ivar name: Route Set name. @@ -22376,7 +23830,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GatewayRouteSetsInformation(_Model): +class GatewayRouteSetsInformation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gateway Route Sets Information. :ivar last_computed_time: Timestamp denoting the last time when the route sets were computed @@ -22436,7 +23890,70 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GenerateExpressRoutePortsLOARequest(_Model): +class GenerateExpressRouteLagsLOARequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The customer name to be printed on a letter of authorization for ExpressRouteLag. + + :ivar customer_name: The customer name. Required. + :vartype customer_name: str + :ivar members: The list of member names for which LOA should be generated. + :vartype members: list[str] + """ + + customer_name: str = rest_field(name="customerName", visibility=["read", "create", "update", "delete", "query"]) + """The customer name. Required.""" + members: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The list of member names for which LOA should be generated.""" + + @overload + def __init__( + self, + *, + customer_name: str, + members: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GenerateExpressRouteLagsLOAResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Response for GenerateExpressRouteLagsLOA API service call. + + :ivar encoded_content: The content as a base64 encoded string. + :vartype encoded_content: str + """ + + encoded_content: Optional[str] = rest_field( + name="encodedContent", visibility=["read", "create", "update", "delete", "query"] + ) + """The content as a base64 encoded string.""" + + @overload + def __init__( + self, + *, + encoded_content: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GenerateExpressRoutePortsLOARequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The customer name to be printed on a letter of authorization. :ivar customer_name: The customer name. Required. @@ -22464,7 +23981,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GenerateExpressRoutePortsLOAResult(_Model): +class GenerateExpressRoutePortsLOAResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for GenerateExpressRoutePortsLOA API service call. :ivar encoded_content: The content as a base64 encoded string. @@ -22494,7 +24011,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GetInboundRoutesParameters(_Model): +class GetInboundRoutesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters specifying the connection resource whose inbound routes are being requested. :ivar resource_uri: The connection resource whose inbound routes are being requested. @@ -22533,7 +24050,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GetOutboundRoutesParameters(_Model): +class GetOutboundRoutesParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters specifying the connection resource whose outbound routes are being requested. :ivar resource_uri: The connection resource whose outbound routes are being requested. @@ -22572,7 +24089,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GetVpnSitesConfigurationRequest(_Model): +class GetVpnSitesConfigurationRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of Vpn-Sites. :ivar vpn_sites: List of resource-ids of the vpn-sites for which config is to be downloaded. @@ -22609,7 +24126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GroupByUserSession(_Model): +class GroupByUserSession(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Define user session identifier group by clauses. :ivar group_by_variables: List of group by clause variables. Required. @@ -22639,7 +24156,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class GroupByVariable(_Model): +class GroupByVariable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Define user session group by clause variables. :ivar variable_name: User Session clause variable. Required. Known values are: "ClientAddr", @@ -22672,7 +24189,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HeaderValueMatcher(_Model): +class HeaderValueMatcher(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit `https://aka.ms/appgwheadercrud @@ -22721,7 +24238,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HopLink(_Model): +class HopLink(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Hop link. :ivar next_hop_id: The ID of the next hop. @@ -22810,7 +24327,7 @@ class HopLinkProperties(_Model): """Maximum roundtrip time in milliseconds.""" -class HTTPConfiguration(_Model): +class HTTPConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """HTTP configuration of the connectivity check. :ivar method: HTTP method. "Get" @@ -22854,7 +24371,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HTTPHeader(_Model): +class HTTPHeader(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The HTTP header. :ivar name: The name in HTTP header. @@ -22887,7 +24404,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Hub(_Model): +class Hub(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Hub Item. :ivar resource_id: Resource Id. @@ -22924,7 +24441,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubIPAddresses(_Model): +class HubIPAddresses(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IP addresses associated with azure firewall. :ivar public_i_ps: Public IP addresses associated with azure firewall. @@ -22961,7 +24478,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubIpConfiguration(SubResourceModel): +class HubIpConfiguration(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """IpConfigurations. :ivar id: Resource ID. @@ -23029,7 +24546,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class HubIPConfigurationPropertiesFormat(_Model): +class HubIPConfigurationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of IP configuration. :ivar private_ip_address: The private IP address of the IP configuration. @@ -23087,7 +24604,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubPublicIPAddresses(_Model): +class HubPublicIPAddresses(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP addresses associated with azure firewall. :ivar addresses: The list of Public IP addresses associated with azure firewall or IP addresses @@ -23123,7 +24640,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubRoute(_Model): +class HubRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RouteTable route. :ivar name: The name of the Route that is unique within a RouteTable. This name can be used to @@ -23175,7 +24692,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubRouteTable(SubResourceModel): +class HubRouteTable(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """RouteTable resource in a virtual hub. :ivar id: Resource ID. @@ -23237,7 +24754,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class HubRouteTableProperties(_Model): +class HubRouteTableProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for RouteTable. :ivar routes: List of all routes. @@ -23286,7 +24803,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class HubVirtualNetworkConnection(SubResource): +class HubVirtualNetworkConnection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """HubVirtualNetworkConnection Resource. :ivar id: Resource ID. @@ -23317,6 +24834,7 @@ class HubVirtualNetworkConnection(SubResource): "connection_policy", "enable_internet_security", "routing_configuration", + "enable_only_ipv6_peering", "provisioning_state", ] @@ -23358,7 +24876,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class HubVirtualNetworkConnectionProperties(_Model): +class HubVirtualNetworkConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for HubVirtualNetworkConnection. :ivar remote_virtual_network: Reference to the remote virtual network. @@ -23377,6 +24895,9 @@ class HubVirtualNetworkConnectionProperties(_Model): :ivar routing_configuration: The Routing Configuration indicating the associated and propagated route tables on this connection. :vartype routing_configuration: ~azure.mgmt.network.models.RoutingConfiguration + :ivar enable_only_ipv6_peering: Enable Only IPv6 Peering for this connection. Known values are: + "Enabled" and "Disabled". + :vartype enable_only_ipv6_peering: str or ~azure.mgmt.network.models.EnableOnlyIpv6PeeringState :ivar provisioning_state: The provisioning state of the hub virtual network connection resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". @@ -23408,6 +24929,10 @@ class HubVirtualNetworkConnectionProperties(_Model): ) """The Routing Configuration indicating the associated and propagated route tables on this connection.""" + enable_only_ipv6_peering: Optional[Union[str, "_models.EnableOnlyIpv6PeeringState"]] = rest_field( + name="enableOnlyIpv6Peering", visibility=["read", "create"] + ) + """Enable Only IPv6 Peering for this connection. Known values are: \"Enabled\" and \"Disabled\".""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -23424,6 +24949,7 @@ def __init__( connection_policy: Optional["_models.SubResource"] = None, enable_internet_security: Optional[bool] = None, routing_configuration: Optional["_models.RoutingConfiguration"] = None, + enable_only_ipv6_peering: Optional[Union[str, "_models.EnableOnlyIpv6PeeringState"]] = None, ) -> None: ... @overload @@ -23437,7 +24963,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IDPSQueryObject(_Model): +class IDPSQueryObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Will describe the query to run against the IDPS signatures DB. :ivar filters: Contain all filters names and values. @@ -23491,7 +25017,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InboundNatPool(SubResource): +class InboundNatPool(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Inbound NAT pool of the load balancer. :ivar id: Resource ID. @@ -23569,7 +25095,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class InboundNatPoolPropertiesFormat(_Model): +class InboundNatPoolPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Inbound NAT pool. :ivar frontend_ip_configuration: A reference to frontend IP addresses. @@ -23674,7 +25200,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InboundNatRule(SubResourceModel): +class InboundNatRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Inbound NAT rule of the load balancer. :ivar id: Resource ID. @@ -23774,7 +25300,7 @@ class InboundNatRulePortMapping(_Model): """Backend port.""" -class InboundNatRulePropertiesFormat(_Model): +class InboundNatRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the inbound NAT rule. :ivar frontend_ip_configuration: A reference to frontend IP addresses. @@ -23911,7 +25437,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InboundSecurityRule(SubResourceModel): +class InboundSecurityRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """NVA Inbound Security Rule resource. :ivar id: Resource ID. @@ -23973,7 +25499,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class InboundSecurityRuleProperties(_Model): +class InboundSecurityRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Inbound Security Rules resource. :ivar rule_type: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule @@ -24022,7 +25548,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InboundSecurityRules(_Model): +class InboundSecurityRules(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Inbound Security Rules resource. :ivar name: Name of the rule. @@ -24090,7 +25616,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IntentContent(_Model): +class IntentContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Intent information. :ivar description: @@ -24138,7 +25664,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectGroup(Resource): +class InterconnectGroup(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """An interconnect group resource. :ivar id: Resource ID. @@ -24185,7 +25711,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectGroupNodeAvailability(_Model): +class InterconnectGroupNodeAvailability(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents node availability information for subgroups within an interconnect group. :ivar subgroups_node_availability: The list of subgroup node availability entries. @@ -24216,7 +25742,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InterconnectGroupPropertiesFormat(_Model): +class InterconnectGroupPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Interconnect group properties. :ivar scope: Scope of interconnect group resource. Known values are: "None" and "InfiniBand". @@ -24269,7 +25795,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InternetIngressPublicIpsProperties(_Model): +class InternetIngressPublicIpsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Internet Ingress Public Ip Properties. :ivar id: Resource Uri of Public Ip. @@ -24297,7 +25823,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPAddressAvailabilityResult(_Model): +class IPAddressAvailabilityResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for CheckIPAddressAvailability API service call. :ivar available: Private IP address availability. @@ -24340,7 +25866,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpAllocation(Resource): +class IpAllocation(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """IpAllocation resource. :ivar id: Resource ID. @@ -24416,7 +25942,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class IpAllocationPropertiesFormat(_Model): +class IpAllocationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the IpAllocation. :ivar subnet: The Subnet that using the prefix of this IpAllocation resource. @@ -24488,7 +26014,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpamPool(CommonTrackedResource): +class IpamPool(CommonTrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Instance of Pool resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -24538,7 +26064,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpamPoolPrefixAllocation(_Model): +class IpamPoolPrefixAllocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IpamPool prefix allocation reference. :ivar pool: @@ -24599,7 +26125,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class IpamPoolPrefixAllocationPool(_Model): +class IpamPoolPrefixAllocationPool(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IpamPoolPrefixAllocationPool. :ivar id: Resource id of the associated Azure IpamPool resource. @@ -24627,7 +26153,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpamPoolProperties(_Model): +class IpamPoolProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of IpamPool resource properties which are specific to the Pool resource. :ivar description: @@ -24690,7 +26216,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpamPoolUpdate(_Model): +class IpamPoolUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the IpamPool update API request interface. :ivar tags: Dictionary of . @@ -24725,7 +26251,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpamPoolUpdateProperties(_Model): +class IpamPoolUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the IpamPool update properties. :ivar description: @@ -24759,7 +26285,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPConfiguration(SubResource): +class IPConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration. :ivar id: Resource ID. @@ -24829,7 +26355,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class IPConfigurationBgpPeeringAddress(_Model): +class IPConfigurationBgpPeeringAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of IPConfigurationBgpPeeringAddress. :ivar ipconfiguration_id: The ID of IP configuration which belongs to gateway. @@ -24877,7 +26403,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPConfigurationProfile(SubResource): +class IPConfigurationProfile(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration profile child resource. :ivar id: Resource ID. @@ -24943,7 +26469,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class IPConfigurationProfilePropertiesFormat(_Model): +class IPConfigurationProfilePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration profile properties. :ivar subnet: The reference to the subnet resource to create a container network interface ip @@ -24980,7 +26506,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPConfigurationPropertiesFormat(_Model): +class IPConfigurationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of IP configuration. :ivar private_ip_address: The private IP address of the IP configuration. @@ -25038,7 +26564,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpGroup(Resource): +class IpGroup(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """The IpGroups resource information. :ivar id: Resource ID. @@ -25105,7 +26631,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class IpGroupPropertiesFormat(_Model): +class IpGroupPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The IpGroups property information. :ivar provisioning_state: The provisioning state of the IpGroups resource. Known values are: @@ -25153,7 +26679,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPPrefixesList(_Model): +class IPPrefixesList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of SNAT IP Prefixes learnt by firewall to not SNAT. :ivar ip_prefixes: IP Prefix value. @@ -25183,7 +26709,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPRule(_Model): +class IPRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IPRule. :ivar address_prefix: Specifies the IP or IP range in CIDR format. Only IPV4 address is @@ -25214,7 +26740,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpsecPolicy(_Model): +class IpsecPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An IPSec Policy configuration for a virtual network gateway connection. :ivar sa_life_time_seconds: The IPSec Security Association (also called Quick Mode or Phase 2 @@ -25312,13 +26838,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IpTag(_Model): +class IpTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains the IpTag associated with the object. :ivar ip_tag_type: The IP tag type. Example: FirstPartyUsage. :vartype ip_tag_type: str :ivar tag: The value of the IP tag associated with the public IP. Example: SQL. :vartype tag: str + :ivar first_party_service_tag_id: The resource ID of the first party service tag associated + with the IP tag. + :vartype first_party_service_tag_id: str """ ip_tag_type: Optional[str] = rest_field( @@ -25327,6 +26856,10 @@ class IpTag(_Model): """The IP tag type. Example: FirstPartyUsage.""" tag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The value of the IP tag associated with the public IP. Example: SQL.""" + first_party_service_tag_id: Optional[str] = rest_field( + name="firstPartyServiceTagId", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource ID of the first party service tag associated with the IP tag.""" @overload def __init__( @@ -25334,6 +26867,7 @@ def __init__( *, ip_tag_type: Optional[str] = None, tag: Optional[str] = None, + first_party_service_tag_id: Optional[str] = None, ) -> None: ... @overload @@ -25347,7 +26881,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IPTraffic(_Model): +class IPTraffic(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IP traffic information. :ivar source_ips: List of source IP addresses of the traffic.. Required. @@ -25401,7 +26935,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Ipv6CircuitConnectionConfig(_Model): +class Ipv6CircuitConnectionConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IPv6 Circuit Connection properties for global reach. :ivar address_prefix: /125 IP address space to carve out customer addresses for global reach. @@ -25439,7 +26973,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Ipv6ExpressRouteCircuitPeeringConfig(_Model): +class Ipv6ExpressRouteCircuitPeeringConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains IPv6 peering config. :ivar primary_peer_address_prefix: The primary address prefix. @@ -25497,7 +27031,100 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancer(Resource): +class KubeLabelSelector(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Kubernetes Label Selector for matching labels in Kubernetes Selector Groups. + + :ivar match_labels: matchLabels is a map of {key,value} pairs. A single {key,value} in the + matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + :vartype match_labels: dict[str, str] + :ivar match_expressions: matchExpressions is a list of label selector requirements. The + requirements are ANDed. + :vartype match_expressions: list[~azure.mgmt.network.models.LabelSelectorExpression] + """ + + match_labels: Optional[dict[str, str]] = rest_field( + name="matchLabels", visibility=["read", "create", "update", "delete", "query"] + ) + """matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is + equivalent to an element of matchExpressions, whose key field is \"key\", the operator is + \"In\", and the values array contains only \"value\". The requirements are ANDed.""" + match_expressions: Optional[list["_models.LabelSelectorExpression"]] = rest_field( + name="matchExpressions", visibility=["read", "create", "update", "delete", "query"] + ) + """matchExpressions is a list of label selector requirements. The requirements are ANDed.""" + + @overload + def __init__( + self, + *, + match_labels: Optional[dict[str, str]] = None, + match_expressions: Optional[list["_models.LabelSelectorExpression"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LabelSelectorExpression(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """A label selector requirement is a selector that contains values, a key, and an operator that + relates the key and values. + + :ivar key: key is a string of 63 characters or less, and must consist of alphanumeric + characters, '-', '_' or '.'. + :vartype key: str + :ivar operator: operator represents a key's relationship to a set of values. Valid operators + are In, NotIn, Exists and DoesNotExist. Known values are: "In", "NotIn", "Exists", and + "DoesNotExist". + :vartype operator: str or ~azure.mgmt.network.models.LabelSelectorOperator + :ivar values_property: values is an array of string values. If the operator is In or NotIn, the + values array must be non-empty. If the operator is Exists or DoesNotExist, the values array + must be empty. + :vartype values_property: list[str] + """ + + key: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """key is a string of 63 characters or less, and must consist of alphanumeric characters, '-', '_' + or '.'.""" + operator: Optional[Union[str, "_models.LabelSelectorOperator"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """operator represents a key's relationship to a set of values. Valid operators are In, NotIn, + Exists and DoesNotExist. Known values are: \"In\", \"NotIn\", \"Exists\", and \"DoesNotExist\".""" + values_property: Optional[list[str]] = rest_field( + name="values", visibility=["read", "create", "update", "delete", "query"], original_tsp_name="values" + ) + """values is an array of string values. If the operator is In or NotIn, the values array must be + non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.""" + + @overload + def __init__( + self, + *, + key: Optional[str] = None, + operator: Optional[Union[str, "_models.LabelSelectorOperator"]] = None, + values_property: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class LoadBalancer(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """LoadBalancer resource. :ivar id: Resource ID. @@ -25544,6 +27171,7 @@ class LoadBalancer(Resource): "resource_guid", "provisioning_state", "scope", + "mode", ] @overload @@ -25587,7 +27215,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LoadBalancerBackendAddress(_Model): +class LoadBalancerBackendAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Load balancer backend addresses. :ivar properties: Properties of load balancer backend address pool. @@ -25650,7 +27278,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LoadBalancerBackendAddressPropertiesFormat(_Model): # pylint: disable=name-too-long +class LoadBalancerBackendAddressPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the load balancer backend addresses. :ivar virtual_network: Reference to an existing virtual network. @@ -25722,7 +27352,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerHealthPerRule(_Model): +class LoadBalancerHealthPerRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The response for a Health API. :ivar up: Number of backend instances associated to the LB rule that are considered healthy. @@ -25765,7 +27395,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerHealthPerRulePerBackendAddress(_Model): # pylint: disable=name-too-long +class LoadBalancerHealthPerRulePerBackendAddress( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The information about health per rule per backend address. :ivar ip_address: The IP address belonging to the backend address. @@ -25811,7 +27443,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerPropertiesFormat(_Model): +class LoadBalancerPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the load balancer. :ivar frontend_ip_configurations: Object representing the frontend IPs to be used for the load @@ -25848,6 +27480,10 @@ class LoadBalancerPropertiesFormat(_Model): :ivar scope: Indicates the scope of the load balancer: external (Public) or internal (Private). Known values are: "Public" and "Private". :vartype scope: str or ~azure.mgmt.network.models.LoadBalancerScope + :ivar mode: The load balancer mode. Set to ``Advanced`` to enable additional capabilities on a + Standard SKU load balancer. Advanced mode must be specified at creation and cannot be changed + afterward. "Advanced" + :vartype mode: str or ~azure.mgmt.network.models.LoadBalancerMode """ frontend_ip_configurations: Optional[list["_models.FrontendIPConfiguration"]] = rest_field( @@ -25898,6 +27534,10 @@ class LoadBalancerPropertiesFormat(_Model): ) """Indicates the scope of the load balancer: external (Public) or internal (Private). Known values are: \"Public\" and \"Private\".""" + mode: Optional[Union[str, "_models.LoadBalancerMode"]] = rest_field(visibility=["read", "create"]) + """The load balancer mode. Set to ``Advanced`` to enable additional capabilities on a Standard SKU + load balancer. Advanced mode must be specified at creation and cannot be changed afterward. + \"Advanced\"""" @overload def __init__( @@ -25911,6 +27551,7 @@ def __init__( inbound_nat_pools: Optional[list["_models.InboundNatPool"]] = None, outbound_rules: Optional[list["_models.OutboundRule"]] = None, scope: Optional[Union[str, "_models.LoadBalancerScope"]] = None, + mode: Optional[Union[str, "_models.LoadBalancerMode"]] = None, ) -> None: ... @overload @@ -25924,10 +27565,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerSku(_Model): +class LoadBalancerSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of a load balancer. - :ivar name: Name of a load balancer SKU. Known values are: "Basic", "Standard", and "Gateway". + :ivar name: Name of a load balancer SKU. Known values are: "Basic", "Standard", "Gateway", and + "Service". :vartype name: str or ~azure.mgmt.network.models.LoadBalancerSkuName :ivar tier: Tier of a load balancer SKU. Known values are: "Regional" and "Global". :vartype tier: str or ~azure.mgmt.network.models.LoadBalancerSkuTier @@ -25936,7 +27578,8 @@ class LoadBalancerSku(_Model): name: Optional[Union[str, "_models.LoadBalancerSkuName"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """Name of a load balancer SKU. Known values are: \"Basic\", \"Standard\", and \"Gateway\".""" + """Name of a load balancer SKU. Known values are: \"Basic\", \"Standard\", \"Gateway\", and + \"Service\".""" tier: Optional[Union[str, "_models.LoadBalancerSkuTier"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -25961,7 +27604,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerVipSwapRequest(_Model): +class LoadBalancerVipSwapRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The request for a VIP swap. :ivar frontend_ip_configurations: A list of frontend IP configuration resources that should @@ -25993,7 +27636,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancerVipSwapRequestFrontendIPConfiguration(_Model): # pylint: disable=name-too-long +class LoadBalancerVipSwapRequestFrontendIPConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """VIP swap request's frontend IP configuration object. :ivar id: The ID of frontend IP configuration resource. @@ -26049,7 +27694,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LoadBalancerVipSwapRequestFrontendIPConfigurationProperties(_Model): # pylint: disable=name-too-long +class LoadBalancerVipSwapRequestFrontendIPConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The properties of VIP swap request's frontend IP configuration object. :ivar public_ip_address: A reference to public IP address resource. @@ -26079,7 +27726,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LoadBalancingRule(SubResourceModel): +class LoadBalancingRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """A load balancing rule for a load balancer. :ivar id: Resource ID. @@ -26156,7 +27803,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LoadBalancingRulePropertiesFormat(_Model): +class LoadBalancingRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the load balancer. :ivar frontend_ip_configuration: A reference to frontend IP addresses. @@ -26196,8 +27843,10 @@ class LoadBalancingRulePropertiesFormat(_Model): :ivar disable_outbound_snat: Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule. :vartype disable_outbound_snat: bool - :ivar enable_connection_tracking: Defines whether connections between 2 communicating endpoints - can be tracked and associated to the same backend VM over its lifetime when using UDP protocol. + :ivar enable_connection_tracking: Enables UDP flow tracking for the load balancing rule. This + property is retained for rule-level configuration compatibility. When enableConnectionTracking + is specified on the associated frontend IP configuration, the frontend setting takes + precedence. :vartype enable_connection_tracking: bool :ivar provisioning_state: The provisioning state of the load balancing rule resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". @@ -26262,8 +27911,9 @@ class LoadBalancingRulePropertiesFormat(_Model): enable_connection_tracking: Optional[bool] = rest_field( name="enableConnectionTracking", visibility=["read", "create", "update", "delete", "query"] ) - """Defines whether connections between 2 communicating endpoints can be tracked and associated to - the same backend VM over its lifetime when using UDP protocol.""" + """Enables UDP flow tracking for the load balancing rule. This property is retained for rule-level + configuration compatibility. When enableConnectionTracking is specified on the associated + frontend IP configuration, the frontend setting takes precedence.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -26300,7 +27950,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LocalNetworkGateway(Resource): +class LocalNetworkGateway(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A common class for general resource information. :ivar id: Resource ID. @@ -26374,7 +28024,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class LocalNetworkGatewayPropertiesFormat(_Model): +class LocalNetworkGatewayPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """LocalNetworkGateway properties. :ivar local_network_address_space: Local network site address space. @@ -26435,7 +28085,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogSpecification(_Model): +class LogSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Description of logging specification. :ivar name: The name of the specification. @@ -26477,7 +28127,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleGroupOverride(_Model): +class ManagedRuleGroupOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule group override setting. :ivar rule_group_name: The managed rule group to override. Required. @@ -26514,7 +28164,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleOverride(_Model): +class ManagedRuleOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule group override setting. :ivar rule_id: Identifier for the managed rule. Required. @@ -26569,7 +28219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRulesDefinition(_Model): +class ManagedRulesDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Allow to exclude some variable satisfy the condition for the WAF check. :ivar exceptions: The exceptions that are applied on the policy. @@ -26613,7 +28263,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleSet(_Model): +class ManagedRuleSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule set. :ivar rule_set_type: Defines the rule set type to use. Required. @@ -26661,7 +28311,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedRuleSetRuleGroup(_Model): +class ManagedRuleSetRuleGroup(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines a managed rule set rule group. :ivar rule_group_name: Name of the rule group. Required. @@ -26694,7 +28344,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ManagedServiceIdentity(_Model): +class ManagedServiceIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the resource. :ivar principal_id: The principal id of the system assigned identity. This property will only @@ -26769,7 +28419,7 @@ class ManagedServiceIdentityUserAssignedIdentities(_Model): # pylint: disable=n """The client id of user assigned identity.""" -class MatchCondition(_Model): +class MatchCondition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Define match conditions. :ivar match_variables: List of match variables. Required. @@ -26829,7 +28479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MatchedRule(_Model): +class MatchedRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Matched rule. :ivar rule_name: Name of the matched network security rule. @@ -26862,7 +28512,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MatchVariable(_Model): +class MatchVariable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Define match variables. :ivar variable_name: Match Variable. Required. Known values are: "RemoteAddr", "RequestMethod", @@ -26899,7 +28549,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MetricSpecification(_Model): +class MetricSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Description of metrics specification. :ivar name: The name of the metric. @@ -27016,7 +28666,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigratedPools(_Model): +class MigratedPools(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The response for a migrateToIpBased API. :ivar migrated_pools: A list of pools migrated from Nic based to IP based pool. @@ -27046,7 +28696,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MigrateLoadBalancerToIpBasedRequest(_Model): +class MigrateLoadBalancerToIpBasedRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The request for a migrateToIpBased API. :ivar pools: A list of pool names that should be migrated from Nic based to IP based pool. @@ -27074,7 +28724,104 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NatGateway(Resource): +class MoveIpConfigurationItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """An item representing a source and target IP configuration for a move operation. + + :ivar source_ip_configuration: The source IP configuration to move from. Required. + :vartype source_ip_configuration: + ~azure.mgmt.network.models.MoveIpConfigurationResourceReference + :ivar target_ip_configuration: The target IP configuration to move to. Required. + :vartype target_ip_configuration: + ~azure.mgmt.network.models.MoveIpConfigurationResourceReference + """ + + source_ip_configuration: "_models.MoveIpConfigurationResourceReference" = rest_field( + name="sourceIpConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The source IP configuration to move from. Required.""" + target_ip_configuration: "_models.MoveIpConfigurationResourceReference" = rest_field( + name="targetIpConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """The target IP configuration to move to. Required.""" + + @overload + def __init__( + self, + *, + source_ip_configuration: "_models.MoveIpConfigurationResourceReference", + target_ip_configuration: "_models.MoveIpConfigurationResourceReference", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MoveIpConfigurationResourceReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Reference to an IP configuration resource by ARM resource ID. + + :ivar id: The ARM resource ID of the IP configuration. Required. + :vartype id: str + """ + + id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The ARM resource ID of the IP configuration. Required.""" + + @overload + def __init__( + self, + *, + id: str, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MoveIpConfigurationsRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Request body for the MoveIpConfigurations operation. + + :ivar move_ip_configuration_items: A list of IP configuration move items. Required. + :vartype move_ip_configuration_items: list[~azure.mgmt.network.models.MoveIpConfigurationItem] + """ + + move_ip_configuration_items: list["_models.MoveIpConfigurationItem"] = rest_field( + name="moveIpConfigurationItems", visibility=["read", "create", "update", "delete", "query"] + ) + """A list of IP configuration move items. Required.""" + + @overload + def __init__( + self, + *, + move_ip_configuration_items: list["_models.MoveIpConfigurationItem"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NatGateway(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Nat Gateway resource. :ivar id: Resource ID. @@ -27164,7 +28911,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NatGatewayPropertiesFormat(_Model): +class NatGatewayPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Nat Gateway properties. :ivar idle_timeout_in_minutes: The idle timeout of the nat gateway. @@ -27266,7 +29013,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NatGatewaySku(_Model): +class NatGatewaySku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of nat gateway. :ivar name: Name of Nat Gateway SKU. Known values are: "Standard" and "StandardV2". @@ -27296,7 +29043,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NatRule(FirewallPolicyRule, discriminator="NatRule"): +class NatRule( + FirewallPolicyRule, discriminator="NatRule" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule of type nat. :ivar name: Name of the rule. @@ -27387,7 +29136,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.rule_type = FirewallPolicyRuleType.NAT_RULE # type: ignore -class NatRulePortMapping(_Model): +class NatRulePortMapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Individual port mappings for inbound NAT rule created for backend pool. :ivar inbound_nat_rule_name: Name of inbound NAT rule. @@ -27431,7 +29180,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkConfigurationDiagnosticParameters(_Model): +class NetworkConfigurationDiagnosticParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters to get network configuration diagnostic. :ivar target_resource_id: The ID of the target resource to perform network configuration @@ -27478,7 +29227,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkConfigurationDiagnosticProfile(_Model): +class NetworkConfigurationDiagnosticProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters to compare with network configuration. :ivar direction: The direction of the traffic. Required. Known values are: "Inbound" and @@ -27543,7 +29292,7 @@ class NetworkConfigurationDiagnosticResponse(_Model): """List of network configuration diagnostic results.""" -class NetworkConfigurationDiagnosticResult(_Model): +class NetworkConfigurationDiagnosticResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network configuration diagnostic result corresponded to provided traffic query. :ivar profile: Network configuration diagnostic profile. @@ -27580,7 +29329,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkGroup(ChildResource): +class NetworkGroup(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The network group resource. :ivar id: Resource ID. @@ -27642,7 +29391,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkGroupProperties(_Model): +class NetworkGroupProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of network group. :ivar description: A description of the network group. @@ -27690,7 +29439,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkIntentPolicy(Resource): +class NetworkIntentPolicy(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Intent Policy resource. :ivar id: Resource ID. @@ -27730,7 +29479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkIntentPolicyConfiguration(_Model): +class NetworkIntentPolicyConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest. :ivar network_intent_policy_name: The name of the Network Intent Policy for storing in target @@ -27768,7 +29517,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterface(Resource): +class NetworkInterface(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A network interface in a resource group. :ivar id: Resource ID. @@ -27866,7 +29615,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkInterfaceAssociation(_Model): +class NetworkInterfaceAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network interface and its custom security rules. :ivar id: Network interface ID. @@ -27900,7 +29649,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterfaceDnsSettings(_Model): +class NetworkInterfaceDnsSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DNS settings of a network interface. :ivar dns_servers: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure @@ -27965,7 +29714,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterfaceIPConfiguration(SubResourceModel): +class NetworkInterfaceIPConfiguration(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """IPConfiguration in a network interface. :ivar id: Resource ID. @@ -28062,7 +29811,9 @@ class NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties(_Model): # """List of FQDNs for current private link connection.""" -class NetworkInterfaceIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class NetworkInterfaceIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of IP configuration. :ivar gateway_load_balancer: The reference to gateway load balancer frontend IP. @@ -28205,7 +29956,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterfacePropertiesFormat(_Model): +class NetworkInterfacePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """NetworkInterface properties. :ivar virtual_machine: The reference to a virtual machine. @@ -28377,7 +30128,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkInterfaceTapConfiguration(SubResourceModel): +class NetworkInterfaceTapConfiguration(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Tap configuration in a Network Interface. :ivar id: Resource ID. @@ -28440,7 +30191,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkInterfaceTapConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class NetworkInterfaceTapConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Virtual Network Tap configuration. :ivar virtual_network_tap: The reference to the Virtual Network Tap resource. @@ -28479,7 +30232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManager(Resource): +class NetworkManager(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Managed Network resource. :ivar id: Resource ID. @@ -28556,7 +30309,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkManagerCommit(_Model): +class NetworkManagerCommit(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Manager Commit. :ivar commit_id: Commit Id. @@ -28606,7 +30359,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerConnection(ChildResource): +class NetworkManagerConnection(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Network Manager Connection resource. :ivar id: Resource ID. @@ -28648,7 +30401,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerConnectionProperties(_Model): +class NetworkManagerConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about the network manager connection. :ivar network_manager_id: Network Manager Id. @@ -28711,7 +30464,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkManagerDeploymentStatus(_Model): +class NetworkManagerDeploymentStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Manager Deployment Status. :ivar commit_time: Commit Time. @@ -28778,7 +30531,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerDeploymentStatusListResult(_Model): +class NetworkManagerDeploymentStatusListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of Network Manager Deployment Status. :ivar value: Gets a page of Network Manager Deployment Status. @@ -28815,7 +30568,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerDeploymentStatusParameter(_Model): +class NetworkManagerDeploymentStatusParameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Manager Deployment Status Parameter. :ivar regions: List of locations. @@ -28857,7 +30610,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerEffectiveConnectivityConfigurationListResult(_Model): # pylint: disable=name-too-long +class NetworkManagerEffectiveConnectivityConfigurationListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Result of the request to list networkManagerEffectiveConnectivityConfiguration. It contains a list of groups and a skiptoken to get the next set of results. @@ -28895,7 +30650,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerEffectiveSecurityAdminRulesListResult(_Model): # pylint: disable=name-too-long +class NetworkManagerEffectiveSecurityAdminRulesListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken to get the next set of results. @@ -28933,7 +30690,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerProperties(_Model): +class NetworkManagerProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Managed Network. :ivar description: A description of the network manager. @@ -28989,7 +30746,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerPropertiesNetworkManagerScopes(_Model): # pylint: disable=name-too-long +class NetworkManagerPropertiesNetworkManagerScopes( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Scope of Network Manager. :ivar management_groups: List of management groups. @@ -29030,7 +30789,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerRoutingConfiguration(ChildResource): +class NetworkManagerRoutingConfiguration(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the routing configuration. :ivar id: Resource ID. @@ -29093,7 +30852,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkManagerRoutingConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class NetworkManagerRoutingConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the routing configuration properties. :ivar description: A description of the routing configuration. @@ -29144,7 +30905,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerRoutingGroupItem(_Model): +class NetworkManagerRoutingGroupItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network manager routing group item. :ivar network_group_id: Network manager group Id. Required. @@ -29174,7 +30935,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkManagerSecurityGroupItem(_Model): +class NetworkManagerSecurityGroupItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network manager security group item. :ivar network_group_id: Network manager group Id. Required. @@ -29204,7 +30965,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkProfile(Resource): +class NetworkProfile(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network profile resource. :ivar id: Resource ID. @@ -29276,7 +31037,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkProfilePropertiesFormat(_Model): +class NetworkProfilePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network profile properties. :ivar container_network_interfaces: List of child container network interfaces. @@ -29331,7 +31092,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkRule(FirewallPolicyRule, discriminator="NetworkRule"): +class NetworkRule( + FirewallPolicyRule, discriminator="NetworkRule" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule of type network. :ivar name: Name of the rule. @@ -29353,6 +31116,8 @@ class NetworkRule(FirewallPolicyRule, discriminator="NetworkRule"): :vartype destination_ip_groups: list[str] :ivar destination_fqdns: List of destination FQDNs. :vartype destination_fqdns: list[str] + :ivar source_kube_selector_groups: List of source Kubernetes Selector Groups for this rule. + :vartype source_kube_selector_groups: list[str] :ivar rule_type: Rule Type. Required. NetworkRule. :vartype rule_type: str or ~azure.mgmt.network.models.NETWORK_RULE """ @@ -29385,6 +31150,10 @@ class NetworkRule(FirewallPolicyRule, discriminator="NetworkRule"): name="destinationFqdns", visibility=["read", "create", "update", "delete", "query"] ) """List of destination FQDNs.""" + source_kube_selector_groups: Optional[list[str]] = rest_field( + name="sourceKubeSelectorGroups", visibility=["read", "create", "update", "delete", "query"] + ) + """List of source Kubernetes Selector Groups for this rule.""" rule_type: Literal[FirewallPolicyRuleType.NETWORK_RULE] = rest_discriminator(name="ruleType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Rule Type. Required. NetworkRule.""" @@ -29401,6 +31170,7 @@ def __init__( source_ip_groups: Optional[list[str]] = None, destination_ip_groups: Optional[list[str]] = None, destination_fqdns: Optional[list[str]] = None, + source_kube_selector_groups: Optional[list[str]] = None, ) -> None: ... @overload @@ -29415,7 +31185,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.rule_type = FirewallPolicyRuleType.NETWORK_RULE # type: ignore -class NetworkSecurityGroup(Resource): +class NetworkSecurityGroup(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """NetworkSecurityGroup resource. :ivar id: Resource ID. @@ -29491,7 +31261,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkSecurityGroupPropertiesFormat(_Model): +class NetworkSecurityGroupPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Security Group resource. :ivar flush_connection: When enabled, flows created from Network Security Group connections @@ -29562,7 +31332,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityGroupResult(_Model): +class NetworkSecurityGroupResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network configuration diagnostic result corresponded provided traffic query. :ivar security_rule_access_result: The network traffic is allowed or denied. Known values are: @@ -29628,7 +31398,9 @@ class SecurityPerimeterResource(_Model): """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" -class SecurityPerimeterTrackedResource(SecurityPerimeterResource): +class SecurityPerimeterTrackedResource( + SecurityPerimeterResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. @@ -29673,7 +31445,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkSecurityPerimeter(SecurityPerimeterTrackedResource): +class NetworkSecurityPerimeter( + SecurityPerimeterTrackedResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The Network Security Perimeter resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -29759,7 +31533,7 @@ class NetworkSecurityPerimeterProperties(_Model): """perimeter guid of the network security perimeter.""" -class NetworkSecurityRulesEvaluationResult(_Model): +class NetworkSecurityRulesEvaluationResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network security rules evaluation result. :ivar name: Name of the network security rule. @@ -29822,7 +31596,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualAppliance(Resource): +class NetworkVirtualAppliance(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """NetworkVirtualAppliance Resource. :ivar id: Resource ID. @@ -29857,6 +31631,7 @@ class NetworkVirtualAppliance(Resource): __flattened_items = [ "nva_sku", "address_prefix", + "address_prefix_v6", "boot_strap_configuration_blobs", "virtual_hub", "cloud_init_configuration_blobs", @@ -29875,7 +31650,10 @@ class NetworkVirtualAppliance(Resource): "delegation", "partner_managed_resource", "nva_interface_configurations", + "address_family", "private_ip_address", + "private_ip_address_v6", + "migration_status", ] @overload @@ -29918,7 +31696,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkVirtualApplianceBootDiagnosticParameters(_Model): # pylint: disable=name-too-long +class NetworkVirtualApplianceBootDiagnosticParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specifies input parameters required to retrieve the boot diagnostic logs for an NVA instance. :ivar instance_id: The network virtual appliance instance id for which boot diagnostic logs is @@ -29967,7 +31747,74 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualApplianceConnection(SubResource): +class NetworkVirtualApplianceCommitMigrationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Properties supplied to commit the migration of a Network Virtual Appliance. + + :ivar migration_type: The type of migration workflow to commit. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migration_type: str or ~azure.mgmt.network.models.MigrationType + """ + + migration_type: Union[str, "_models.MigrationType"] = rest_field( + name="migrationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of migration workflow to commit. Required. Known values are: \"MigrateToNewOSVersion\" + and \"MigrateToNewILBArchitecture\".""" + + @overload + def __init__( + self, + *, + migration_type: Union[str, "_models.MigrationType"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualApplianceCommitMigrationRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Parameters supplied to commit the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the commit migration request. + :vartype properties: + ~azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationProperties + """ + + properties: Optional["_models.NetworkVirtualApplianceCommitMigrationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the commit migration request.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.NetworkVirtualApplianceCommitMigrationProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualApplianceConnection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """NetworkVirtualApplianceConnection resource. :ivar id: Resource ID. @@ -30033,7 +31880,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NetworkVirtualApplianceConnectionProperties(_Model): # pylint: disable=name-too-long +class NetworkVirtualApplianceConnectionProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the NetworkVirtualApplianceConnection subresource. :ivar name: The name of the resource. @@ -30105,7 +31954,74 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualApplianceInstanceId(_Model): +class NetworkVirtualApplianceExecuteMigrationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Properties supplied to execute the migration of a Network Virtual Appliance. + + :ivar migration_type: The type of migration workflow to execute. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migration_type: str or ~azure.mgmt.network.models.MigrationType + """ + + migration_type: Union[str, "_models.MigrationType"] = rest_field( + name="migrationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of migration workflow to execute. Required. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + + @overload + def __init__( + self, + *, + migration_type: Union[str, "_models.MigrationType"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualApplianceExecuteMigrationRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Parameters supplied to execute the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the execute migration request. + :vartype properties: + ~azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationProperties + """ + + properties: Optional["_models.NetworkVirtualApplianceExecuteMigrationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the execute migration request.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.NetworkVirtualApplianceExecuteMigrationProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualApplianceInstanceId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """NetworkVirtualApplianceInstanceId. :ivar instance_id: The network virtual appliance instance id for which boot diagnostic logs is @@ -30136,7 +32052,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualApplianceInstanceIds(_Model): +class NetworkVirtualApplianceInstanceIds(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. @@ -30171,13 +32087,137 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualAppliancePropertiesFormat(_Model): +class NetworkVirtualApplianceMigrationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The migration status of a Network Virtual Appliance. + + :ivar migration_type: The type of migration workflow currently in progress or last performed. + Known values are: "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migration_type: str or ~azure.mgmt.network.models.MigrationType + :ivar migration_phase: The current phase of the migration workflow (for example, Prepare, + Execute, Commit, or Abort). + :vartype migration_phase: str + :ivar migration_phase_status: The detailed status of the current migration phase. + :vartype migration_phase_status: str + """ + + migration_type: Optional[Union[str, "_models.MigrationType"]] = rest_field( + name="migrationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of migration workflow currently in progress or last performed. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + migration_phase: Optional[str] = rest_field( + name="migrationPhase", visibility=["read", "create", "update", "delete", "query"] + ) + """The current phase of the migration workflow (for example, Prepare, Execute, Commit, or Abort).""" + migration_phase_status: Optional[str] = rest_field( + name="migrationPhaseStatus", visibility=["read", "create", "update", "delete", "query"] + ) + """The detailed status of the current migration phase.""" + + @overload + def __init__( + self, + *, + migration_type: Optional[Union[str, "_models.MigrationType"]] = None, + migration_phase: Optional[str] = None, + migration_phase_status: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualAppliancePrepareMigrationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Properties supplied to prepare the migration of a Network Virtual Appliance. + + :ivar migration_type: The type of migration workflow to prepare. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migration_type: str or ~azure.mgmt.network.models.MigrationType + :ivar market_place_version: The marketplace version to migrate to. Applicable when + migrationType is MigrateToNewOSVersion. + :vartype market_place_version: str + """ + + migration_type: Union[str, "_models.MigrationType"] = rest_field( + name="migrationType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of migration workflow to prepare. Required. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + market_place_version: Optional[str] = rest_field( + name="marketPlaceVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The marketplace version to migrate to. Applicable when migrationType is MigrateToNewOSVersion.""" + + @overload + def __init__( + self, + *, + migration_type: Union[str, "_models.MigrationType"], + market_place_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualAppliancePrepareMigrationRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only + """Parameters supplied to prepare the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the prepare migration request. + :vartype properties: + ~azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationProperties + """ + + properties: Optional["_models.NetworkVirtualAppliancePrepareMigrationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Properties of the prepare migration request.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.NetworkVirtualAppliancePrepareMigrationProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NetworkVirtualAppliancePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Virtual Appliance definition. :ivar nva_sku: Network Virtual Appliance SKU. :vartype nva_sku: ~azure.mgmt.network.models.VirtualApplianceSkuProperties :ivar address_prefix: Address Prefix. :vartype address_prefix: str + :ivar address_prefix_v6: Address Prefix for Dual-Stack NVAs. + :vartype address_prefix_v6: str :ivar boot_strap_configuration_blobs: BootStrapConfigurationBlobs storage URLs. :vartype boot_strap_configuration_blobs: list[str] :ivar virtual_hub: The Virtual Hub where Network Virtual Appliance is being deployed. @@ -30222,9 +32262,20 @@ class NetworkVirtualAppliancePropertiesFormat(_Model): :ivar nva_interface_configurations: The NVA in VNet interface configurations. :vartype nva_interface_configurations: list[~azure.mgmt.network.models.NvaInterfaceConfigurationsProperties] + :ivar address_family: The address families to deploy the NVA in. ["IPv4", "IPv6"] deploys a + dual-stack NVA (the vHub/VNet must also be dual-stack). ["IPv4"], an empty array, or omitting + the field deploys an IPv4-only NVA. The value "IPv6" may only appear in combination with + "IPv4"; standalone ["IPv6"] is reserved for future use and is rejected by the service today. + :vartype address_family: list[str or ~azure.mgmt.network.models.IPVersion] :ivar private_ip_address: A Internal Load Balancer's HA port frontend IP address. Can be used to set routes & UDR to load balance traffic between NVA instances. :vartype private_ip_address: str + :ivar private_ip_address_v6: An Internal Load Balancer's HA port frontend IPv6 address. Can be + used to set routes & UDR to load balance traffic between NVA instances. This field appears in + dual-stack NVAs. + :vartype private_ip_address_v6: str + :ivar migration_status: The migration status of the Network Virtual Appliance. + :vartype migration_status: ~azure.mgmt.network.models.NetworkVirtualApplianceMigrationStatus """ nva_sku: Optional["_models.VirtualApplianceSkuProperties"] = rest_field( @@ -30233,6 +32284,8 @@ class NetworkVirtualAppliancePropertiesFormat(_Model): """Network Virtual Appliance SKU.""" address_prefix: Optional[str] = rest_field(name="addressPrefix", visibility=["read"]) """Address Prefix.""" + address_prefix_v6: Optional[str] = rest_field(name="addressPrefixV6", visibility=["read"]) + """Address Prefix for Dual-Stack NVAs.""" boot_strap_configuration_blobs: Optional[list[str]] = rest_field( name="bootStrapConfigurationBlobs", visibility=["read", "create", "update", "delete", "query"] ) @@ -30305,9 +32358,23 @@ class NetworkVirtualAppliancePropertiesFormat(_Model): name="nvaInterfaceConfigurations", visibility=["read", "create", "update", "delete", "query"] ) """The NVA in VNet interface configurations.""" + address_family: Optional[list[Union[str, "_models.IPVersion"]]] = rest_field( + name="addressFamily", visibility=["read", "create", "update", "delete", "query"] + ) + """The address families to deploy the NVA in. [\"IPv4\", \"IPv6\"] deploys a dual-stack NVA (the + vHub/VNet must also be dual-stack). [\"IPv4\"], an empty array, or omitting the field deploys + an IPv4-only NVA. The value \"IPv6\" may only appear in combination with \"IPv4\"; standalone + [\"IPv6\"] is reserved for future use and is rejected by the service today.""" private_ip_address: Optional[str] = rest_field(name="privateIpAddress", visibility=["read"]) """A Internal Load Balancer's HA port frontend IP address. Can be used to set routes & UDR to load balance traffic between NVA instances.""" + private_ip_address_v6: Optional[str] = rest_field(name="privateIpAddressV6", visibility=["read"]) + """An Internal Load Balancer's HA port frontend IPv6 address. Can be used to set routes & UDR to + load balance traffic between NVA instances. This field appears in dual-stack NVAs.""" + migration_status: Optional["_models.NetworkVirtualApplianceMigrationStatus"] = rest_field( + name="migrationStatus", visibility=["read"] + ) + """The migration status of the Network Virtual Appliance.""" @overload def __init__( @@ -30326,6 +32393,7 @@ def __init__( delegation: Optional["_models.DelegationProperties"] = None, partner_managed_resource: Optional["_models.PartnerManagedResourceProperties"] = None, nva_interface_configurations: Optional[list["_models.NvaInterfaceConfigurationsProperties"]] = None, + address_family: Optional[list[Union[str, "_models.IPVersion"]]] = None, ) -> None: ... @overload @@ -30339,7 +32407,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualAppliancePropertiesFormatNetworkProfile(_Model): # pylint: disable=name-too-long +class NetworkVirtualAppliancePropertiesFormatNetworkProfile( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Network Profile containing configurations for Public and Private NIC. :ivar network_interface_configurations: @@ -30371,7 +32441,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkVirtualApplianceSku(Resource): +class NetworkVirtualApplianceSku(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Available NetworkVirtualApplianceSkus. :ivar id: Resource ID. @@ -30453,7 +32523,9 @@ class NetworkVirtualApplianceSkuInstances(_Model): """Instance Count.""" -class NetworkVirtualApplianceSkuPropertiesFormat(_Model): # pylint: disable=name-too-long +class NetworkVirtualApplianceSkuPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Network Virtual Appliance Sku Properties. :ivar vendor: Network Virtual Appliance Sku vendor. @@ -30492,7 +32564,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NetworkWatcher(Resource): +class NetworkWatcher(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network watcher in a resource group. :ivar id: Resource ID. @@ -30574,7 +32646,7 @@ class NetworkWatcherPropertiesFormat(_Model): \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" -class NextHopParameters(_Model): +class NextHopParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the source and destination endpoint. :ivar target_resource_id: The resource identifier of the target resource against which the @@ -30629,7 +32701,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NextHopResult(_Model): +class NextHopResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The information about next hop from the specified VM. :ivar next_hop_type: Next hop type. Known values are: "Internet", "VirtualAppliance", @@ -30697,7 +32769,7 @@ class SecurityPerimeterProxyResource(SecurityPerimeterResource): """ -class NspAccessRule(SecurityPerimeterProxyResource): +class NspAccessRule(SecurityPerimeterProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The NSP access rule resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -30738,7 +32810,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NspAccessRuleProperties(_Model): +class NspAccessRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of NSP access rule. :ivar provisioning_state: The provisioning state of the scope assignment resource. Known values @@ -30849,7 +32921,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NspAssociation(SecurityPerimeterProxyResource): +class NspAssociation(SecurityPerimeterProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The NSP resource association resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -30916,7 +32988,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NspAssociationProperties(_Model): +class NspAssociationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """NspAssociationProperties. :ivar provisioning_state: The provisioning state of the resource association resource. Known @@ -30971,7 +33043,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NspLink(SecurityPerimeterProxyResource): +class NspLink(SecurityPerimeterProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The network security perimeter link resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -31043,7 +33115,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NspLinkProperties(_Model): +class NspLinkProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of NSP Link resource. :ivar provisioning_state: The provisioning state of the NSP Link resource. Known values are: @@ -31145,7 +33217,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NspLinkReference(SecurityPerimeterProxyResource): +class NspLinkReference(SecurityPerimeterProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The network security perimeter linkReference resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -31217,7 +33289,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NspLinkReferenceProperties(_Model): +class NspLinkReferenceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of NSP LinkReference resource. :ivar provisioning_state: The provisioning state of the NSP LinkReference resource. Known @@ -31311,7 +33383,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NspLoggingConfiguration(SecurityPerimeterProxyResource): +class NspLoggingConfiguration( + SecurityPerimeterProxyResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The NSP logging configuration. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -31372,7 +33446,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class NspLoggingConfigurationProperties(_Model): +class NspLoggingConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The NSP logging configuration properties. :ivar enabled_log_categories: The log categories to enable in the NSP logging configuration. @@ -31407,7 +33481,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NspProfile(SecurityPerimeterProxyResource): +class NspProfile(SecurityPerimeterProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The network security perimeter profile resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -31485,7 +33559,7 @@ class NspProfileProperties(_Model): """Version number that increases with every update to diagnostic settings within the profile.""" -class NspServiceTagsResource(_Model): +class NspServiceTagsResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resource containing list of NSP service tags. :ivar service_tags: NSP service tags. @@ -31515,7 +33589,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NvaInterfaceConfigurationsProperties(_Model): +class NvaInterfaceConfigurationsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Specifies input parameters required NVA in VNet interface configuration. :ivar subnet: A subnet resource id where the NIC will be deployed. Each subnet resource uri @@ -31562,7 +33636,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NvaInVnetSubnetReferenceProperties(_Model): +class NvaInVnetSubnetReferenceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Subnet references where the NVA NICS will be deployed. :ivar id: Resource Uri of Subnet. @@ -31590,7 +33664,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class O365BreakOutCategoryPolicies(_Model): +class O365BreakOutCategoryPolicies(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Office365 breakout categories. :ivar allow: Flag to control allow category. @@ -31628,7 +33702,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class O365PolicyProperties(_Model): +class O365PolicyProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The Office365 breakout policy. :ivar break_out_categories: Office365 breakout categories. @@ -31658,7 +33732,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Office365PolicyProperties(_Model): +class Office365PolicyProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Virtual Appliance Sku Properties. :ivar break_out_categories: Office 365 breakout categories. @@ -31688,7 +33762,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network REST API operation definition. :ivar name: Operation name: {provider}/{resource}/{operation}. @@ -31755,7 +33829,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class OperationDisplay(_Model): +class OperationDisplay(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Display metadata associated with the operation. :ivar provider: Service provider: Microsoft Network. @@ -31798,7 +33872,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationPropertiesFormat(_Model): +class OperationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Description of operation properties format. :ivar service_specification: Specification of the service. @@ -31829,7 +33903,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationPropertiesFormatServiceSpecification(_Model): # pylint: disable=name-too-long +class OperationPropertiesFormatServiceSpecification( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Specification of the service. :ivar metric_specifications: Operation service specification. @@ -31866,7 +33942,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationStatusResult(_Model): +class OperationStatusResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The current status of an async operation. :ivar id: Fully qualified ID for the async operation. @@ -31942,7 +34018,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OrderBy(_Model): +class OrderBy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a column to sort. :ivar field: Describes the actual column name to sort by. @@ -31979,7 +34055,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OutboundRule(SubResourceModel): +class OutboundRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Outbound rule of the load balancer. :ivar id: Resource ID. @@ -32049,7 +34125,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class OutboundRulePropertiesFormat(_Model): +class OutboundRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Outbound rule of the load balancer. :ivar allocated_outbound_ports: The number of outbound ports to be used for NAT. @@ -32128,7 +34204,37 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OwaspCrsExclusionEntry(_Model): +class OutputSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Settings that control where the connection analyzer writes its results. + + :ivar storage_account_settings: Storage account where output is written. + :vartype storage_account_settings: ~azure.mgmt.network.models.StorageAccountSettings + """ + + storage_account_settings: Optional["_models.StorageAccountSettings"] = rest_field( + name="storageAccountSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage account where output is written.""" + + @overload + def __init__( + self, + *, + storage_account_settings: Optional["_models.StorageAccountSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OwaspCrsExclusionEntry(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Allow to exclude some variable satisfy the condition for the WAF check. :ivar match_variable: The variable to be excluded. Required. Known values are: @@ -32190,7 +34296,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SConnectionConfiguration(SubResource): +class P2SConnectionConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """P2SConnectionConfiguration Resource. :ivar id: Resource ID. @@ -32261,7 +34367,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class P2SConnectionConfigurationProperties(_Model): +class P2SConnectionConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for P2SConnectionConfiguration. :ivar vpn_client_address_pool: The reference to the address space resource which represents @@ -32335,7 +34441,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SVpnConnectionHealth(_Model): +class P2SVpnConnectionHealth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """P2S Vpn connection detailed health written to sas url. :ivar sas_url: Returned sas url of the blob to which the p2s vpn connection detailed health @@ -32364,7 +34470,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SVpnConnectionHealthRequest(_Model): +class P2SVpnConnectionHealthRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of P2S Vpn connection health request. :ivar vpn_user_names_filter: The list of p2s vpn user names whose p2s vpn connection detailed @@ -32402,7 +34508,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SVpnConnectionRequest(_Model): +class P2SVpnConnectionRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of p2s vpn connections to be disconnected. :ivar vpn_connection_ids: List of p2s vpn connection Ids. @@ -32432,7 +34538,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResourceWithSettableIdOptionalLocation(_Model): # pylint: disable=name-too-long +class TrackedResourceWithSettableIdOptionalLocation( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Common resource representation. :ivar id: Resource ID. @@ -32478,7 +34586,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SVpnGateway(TrackedResourceWithSettableIdOptionalLocation): +class P2SVpnGateway( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """P2SVpnGateway Resource. :ivar id: Resource ID. @@ -32554,7 +34664,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class P2SVpnGatewayProperties(_Model): +class P2SVpnGatewayProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for P2SVpnGateway. :ivar virtual_hub: The VirtualHub to which the gateway belongs. @@ -32636,7 +34746,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class P2SVpnProfileParameters(_Model): +class P2SVpnProfileParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn Client Parameters for package generation. :ivar authentication_method: VPN client authentication method. Known values are: "EAPTLS" and @@ -32667,7 +34777,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCapture(_Model): +class PacketCapture(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the create packet capture operation. :ivar properties: Properties of the packet capture. Required. @@ -32728,7 +34838,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PacketCaptureFilter(_Model): +class PacketCaptureFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Filter that is applied to packet capture request. Multiple filters can be applied. :ivar protocol: Protocol to be filtered on. Known values are: "TCP", "UDP", and "Any". @@ -32804,7 +34914,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureMachineScope(_Model): +class PacketCaptureMachineScope(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. @@ -32841,7 +34951,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureParameters(_Model): +class PacketCaptureParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the create packet capture operation. :ivar target: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are @@ -32945,7 +35055,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureQueryStatusResult(_Model): +class PacketCaptureQueryStatusResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Status of packet capture session. :ivar name: The name of the packet capture resource. @@ -33008,7 +35118,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureResult(_Model): +class PacketCaptureResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about packet capture session. :ivar name: Name of the packet capture session. @@ -33082,7 +35192,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PacketCaptureResultProperties(PacketCaptureParameters): +class PacketCaptureResultProperties( + PacketCaptureParameters +): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of a packet capture session. :ivar target: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are @@ -33151,7 +35263,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureSettings(_Model): +class PacketCaptureSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The storage location for a packet capture session. :ivar file_count: Number of file count. Default value of count is 10 and maximum number is @@ -33198,7 +35310,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PacketCaptureStorageLocation(_Model): +class PacketCaptureStorageLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The storage location for a packet capture session. :ivar storage_id: The ID of the storage account to save the packet capture session. Required if @@ -33257,7 +35369,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Parameter(_Model): +class Parameter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for an Action. :ivar route_prefix: List of route prefixes. @@ -33316,7 +35428,7 @@ class PartnerManagedResourceProperties(_Model): """The partner managed SLB resource id.""" -class PatchObject(_Model): +class PatchObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Object for patch operations. :ivar tags: Resource tags. @@ -33344,7 +35456,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PeerExpressRouteCircuitConnection(SubResourceModel): +class PeerExpressRouteCircuitConnection( + SubResourceModel +): # pylint: disable=docstring-keyword-should-match-keyword-only """Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. :ivar id: Resource ID. @@ -33415,7 +35529,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PeerExpressRouteCircuitConnectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class PeerExpressRouteCircuitConnectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the peer express route circuit connection. :ivar express_route_circuit_peering: Reference to Express Route Circuit Private Peering @@ -33528,7 +35644,7 @@ class PeerRoute(_Model): """The route's weight.""" -class PerimeterAssociableResource(_Model): +class PerimeterAssociableResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resource that is onboarded to use network security perimeter. Also referred as perimeter associable resource. @@ -33660,7 +35776,7 @@ class PerimeterBasedAccessRule(_Model): """Location of the NSP supplied.""" -class PolicySettings(_Model): +class PolicySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines contents of a web application firewall global configuration. :ivar state: The state of the policy. Known values are: "Disabled" and "Enabled". @@ -33780,7 +35896,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PolicySettingsLogScrubbing(_Model): +class PolicySettingsLogScrubbing(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """To scrub sensitive log fields. :ivar state: State of the log scrubbing config. Default value is Enabled. Known values are: @@ -33819,7 +35935,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PoolAssociation(_Model): +class PoolAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IpamPool association information. :ivar resource_id: Resource id of the associated Azure resource. Required. @@ -33934,7 +36050,7 @@ class PoolUsage(_Model): """Total number of available IP addresses in the IpamPool.""" -class PrepareNetworkPoliciesRequest(_Model): +class PrepareNetworkPoliciesRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of PrepareNetworkPolicies for Subnet. :ivar service_name: The name of the service for which subnet is being prepared for. @@ -33972,7 +36088,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateDnsZoneConfig(_Model): +class PrivateDnsZoneConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """PrivateDnsZoneConfig resource. :ivar name: Name of the resource that is unique within a resource group. This name can be used @@ -34029,7 +36145,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateDnsZoneGroup(SubResource): +class PrivateDnsZoneGroup(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Private dns zone group resource. :ivar id: Resource ID. @@ -34093,7 +36209,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateDnsZoneGroupPropertiesFormat(_Model): +class PrivateDnsZoneGroupPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the private dns zone group. :ivar provisioning_state: The provisioning state of the private dns zone group resource. Known @@ -34132,7 +36248,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateDnsZonePropertiesFormat(_Model): +class PrivateDnsZonePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the private dns zone configuration resource. :ivar private_dns_zone_id: The resource id of the private dns zone. @@ -34168,7 +36284,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpoint(Resource): +class PrivateEndpoint(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Private endpoint resource. :ivar id: Resource ID. @@ -34254,7 +36370,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateEndpointConnection(SubResourceModel): +class PrivateEndpointConnection(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """PrivateEndpointConnection resource. :ivar id: Resource ID. @@ -34322,7 +36438,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateEndpointConnectionProperties(_Model): +class PrivateEndpointConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the PrivateEndpointConnectProperties. :ivar private_endpoint: The resource of private end point. @@ -34375,7 +36491,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpointIPConfiguration(_Model): +class PrivateEndpointIPConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An IP Configuration of the private endpoint. :ivar properties: Properties of private endpoint IP configurations. @@ -34438,7 +36554,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateEndpointIPConfigurationProperties(_Model): +class PrivateEndpointIPConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of an IP Configuration of the private endpoint. :ivar group_id: The ID of a group obtained from the remote resource that this private endpoint @@ -34484,7 +36600,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateEndpointProperties(_Model): +class PrivateEndpointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the private endpoint. :ivar subnet: The ID of the subnet from which the private IP will be allocated. @@ -34597,7 +36713,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkService(Resource): +class PrivateLinkService(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Private link service resource. :ivar id: Resource ID. @@ -34684,7 +36800,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateLinkServiceConnection(SubResource): +class PrivateLinkServiceConnection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """PrivateLinkServiceConnection resource. :ivar id: Resource ID. @@ -34758,7 +36874,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateLinkServiceConnectionProperties(_Model): +class PrivateLinkServiceConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the PrivateLinkServiceConnection. :ivar provisioning_state: The provisioning state of the private link service connection @@ -34824,7 +36940,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceConnectionState(_Model): +class PrivateLinkServiceConnectionState(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A collection of information about the state of the connection between service consumer and provider. @@ -34868,7 +36984,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceIpConfiguration(SubResource): +class PrivateLinkServiceIpConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The private link service ip configuration. :ivar id: Resource ID. @@ -34941,7 +37057,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateLinkServiceIpConfigurationProperties(_Model): # pylint: disable=name-too-long +class PrivateLinkServiceIpConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of private link service IP configuration. :ivar private_ip_address: The private IP address of the IP configuration. @@ -35007,7 +37125,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceProperties(_Model): +class PrivateLinkServiceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the private link service. :ivar load_balancer_frontend_ip_configurations: An array of references to the load balancer IP @@ -35114,7 +37232,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceSet(_Model): +class ResourceSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The base resource set for visibility and auto-approval. :ivar subscriptions: The list of subscriptions. @@ -35142,7 +37260,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServicePropertiesAutoApproval(ResourceSet): +class PrivateLinkServicePropertiesAutoApproval( + ResourceSet +): # pylint: disable=docstring-keyword-should-match-keyword-only """The auto-approval list of the private link service. :ivar subscriptions: The list of subscriptions. @@ -35167,7 +37287,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServicePropertiesVisibility(ResourceSet): +class PrivateLinkServicePropertiesVisibility( + ResourceSet +): # pylint: disable=docstring-keyword-should-match-keyword-only """The visibility list of the private link service. :ivar subscriptions: The list of subscriptions. @@ -35192,7 +37314,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceVisibility(_Model): +class PrivateLinkServiceVisibility(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for the CheckPrivateLinkServiceVisibility API service call. :ivar visible: Private Link Service Visibility (True/False). @@ -35220,7 +37342,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Probe(SubResourceModel): +class Probe(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """A load balancer probe. :ivar id: Resource ID. @@ -35292,7 +37414,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ProbePropertiesFormat(_Model): +class ProbePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Load balancer probe resource. :ivar load_balancing_rules: The load balancer rules that use this probe. @@ -35406,7 +37528,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PropagatedRouteTable(_Model): +class PropagatedRouteTable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The list of RouteTables to advertise the routes to. :ivar labels: The list of labels. @@ -35439,7 +37561,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProtocolConfiguration(_Model): +class ProtocolConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration of the protocol. :ivar http_configuration: HTTP configuration of the connectivity check. @@ -35469,6 +37591,43 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) +class ProtocolSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Protocol-level settings for the connection analyzer. + + :ivar protocol: Network protocol. Known values are: "Tcp", "Http", "Https", and "Icmp". + :vartype protocol: str or ~azure.mgmt.network.models.Protocol + :ivar http_configuration: HTTP configuration (used when protocol is Http or Https). + :vartype http_configuration: ~azure.mgmt.network.models.HTTPConfiguration + """ + + protocol: Optional[Union[str, "_models.Protocol"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Network protocol. Known values are: \"Tcp\", \"Http\", \"Https\", and \"Icmp\".""" + http_configuration: Optional["_models.HTTPConfiguration"] = rest_field( + name="httpConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """HTTP configuration (used when protocol is Http or Https).""" + + @overload + def __init__( + self, + *, + protocol: Optional[Union[str, "_models.Protocol"]] = None, + http_configuration: Optional["_models.HTTPConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + class ProxyResourceWithReadOnlyID(_Model): """Proxy resource representation. @@ -35488,7 +37647,7 @@ class ProxyResourceWithReadOnlyID(_Model): """Resource type.""" -class PublicIPAddress(Resource): +class PublicIPAddress(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP address resource. :ivar id: Resource ID. @@ -35546,6 +37705,7 @@ class PublicIPAddress(Resource): "migration_phase", "linked_public_ip_address", "delete_option", + "upgraded_to_v2", ] @overload @@ -35590,7 +37750,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PublicIPAddressDnsSettings(_Model): +class PublicIPAddressDnsSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains FQDN of the DNS record associated with the public IP address. :ivar domain_name_label: The domain name label. The concatenation of the domain name label and @@ -35658,7 +37818,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIPAddressPropertiesFormat(_Model): +class PublicIPAddressPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP address properties. :ivar public_ip_allocation_method: The public IP address allocation method. Known values are: @@ -35699,6 +37859,9 @@ class PublicIPAddressPropertiesFormat(_Model): :ivar delete_option: Specify what happens to the public IP address when the VM using it is deleted. Known values are: "Delete" and "Detach". :vartype delete_option: str or ~azure.mgmt.network.models.DeleteOptions + :ivar upgraded_to_v2: Whether the public IP address SKU has been upgraded from Standard to + StandardV2. + :vartype upgraded_to_v2: bool """ public_ip_allocation_method: Optional[Union[str, "_models.IPAllocationMethod"]] = rest_field( @@ -35762,6 +37925,8 @@ class PublicIPAddressPropertiesFormat(_Model): ) """Specify what happens to the public IP address when the VM using it is deleted. Known values are: \"Delete\" and \"Detach\".""" + upgraded_to_v2: Optional[bool] = rest_field(name="upgradedToV2", visibility=["read"]) + """Whether the public IP address SKU has been upgraded from Standard to StandardV2.""" @overload def __init__( @@ -35793,7 +37958,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIPAddressSku(_Model): +class PublicIPAddressSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of a public IP address. :ivar name: Name of a public IP address SKU. Known values are: "Basic", "Standard", and @@ -35831,7 +37996,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIpDdosProtectionStatusResult(_Model): +class PublicIpDdosProtectionStatusResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response for GetPublicIpAddressDdosProtectionStatusOperation API service call. :ivar public_ip_address_id: Public IP ARM resource ID. @@ -35885,7 +38050,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIPPrefix(Resource): +class PublicIPPrefix(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP prefix resource. :ivar id: Resource ID. @@ -35937,6 +38102,7 @@ class PublicIPPrefix(Resource): "resource_guid", "provisioning_state", "nat_gateway", + "upgraded_to_v2", ] @overload @@ -35981,7 +38147,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PublicIPPrefixPropertiesFormat(_Model): +class PublicIPPrefixPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Public IP prefix properties. :ivar public_ip_address_version: The public IP address version. Known values are: "IPv4" and @@ -36007,6 +38173,9 @@ class PublicIPPrefixPropertiesFormat(_Model): :vartype provisioning_state: str or ~azure.mgmt.network.models.ProvisioningState :ivar nat_gateway: NatGateway of Public IP Prefix. :vartype nat_gateway: ~azure.mgmt.network.models.NatGateway + :ivar upgraded_to_v2: Whether the public IP prefix SKU has been upgraded from Standard to + StandardV2. + :vartype upgraded_to_v2: bool """ public_ip_address_version: Optional[Union[str, "_models.IPVersion"]] = rest_field( @@ -36046,6 +38215,8 @@ class PublicIPPrefixPropertiesFormat(_Model): name="natGateway", visibility=["read", "create", "update", "delete", "query"] ) """NatGateway of Public IP Prefix.""" + upgraded_to_v2: Optional[bool] = rest_field(name="upgradedToV2", visibility=["read"]) + """Whether the public IP prefix SKU has been upgraded from Standard to StandardV2.""" @overload def __init__( @@ -36069,7 +38240,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PublicIPPrefixSku(_Model): +class PublicIPPrefixSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of a public IP prefix. :ivar name: Name of a public IP prefix SKU. Known values are: "Standard" and "StandardV2". @@ -36106,7 +38277,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QosDefinition(_Model): +class QosDefinition(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Quality of Service defines the traffic configuration between endpoints. Mandatory to have one marking. @@ -36172,7 +38343,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QosIpRange(_Model): +class QosIpRange(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Qos Traffic Profiler IP Range properties. :ivar start_ip: Start IP Address. @@ -36205,7 +38376,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QosPortRange(_Model): +class QosPortRange(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Qos Traffic Profiler Port range properties. :ivar start: Qos Port Range start. @@ -36238,7 +38409,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QueryInboundNatRulePortMappingRequest(_Model): +class QueryInboundNatRulePortMappingRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set. @@ -36274,7 +38445,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QueryRequestOptions(_Model): +class QueryRequestOptions(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Query Request Options. :ivar skip_token: When present, the value can be passed to a subsequent query call (together @@ -36304,7 +38475,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QueryResults(_Model): +class QueryResults(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Query result. :ivar matching_records_count: Number of total records matching the query. @@ -36341,7 +38512,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class QueryTroubleshootingParameters(_Model): +class QueryTroubleshootingParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the resource to query the troubleshooting result. :ivar target_resource_id: The target resource ID to query the troubleshooting result. Required. @@ -36371,7 +38542,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RadiusAuthServer(_Model): +class RadiusAuthServer(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gateway or VpnServerConfiguration Radius server with radius secret details. :ivar radius_server_address: Radius server IPAddress. @@ -36408,7 +38579,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RadiusAuthServerListResult(_Model): +class RadiusAuthServerListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of Radius servers with respective radius secrets. :ivar value: The RadiusAuthServer items on this page. Required. @@ -36441,7 +38612,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RadiusServer(_Model): +class RadiusServer(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Radius Server Settings. :ivar radius_server_address: The address of this radius server. Required. @@ -36489,7 +38660,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReachabilityAnalysisIntent(CommonProxyResource): +class ReachabilityAnalysisIntent(CommonProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration information or intent on which to do the analysis on. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -36529,7 +38700,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReachabilityAnalysisIntentProperties(_Model): +class ReachabilityAnalysisIntentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the Reachability Analysis Intent properties. :ivar provisioning_state: Provisioning states of a resource. Known values are: "Failed", @@ -36586,7 +38757,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReachabilityAnalysisRun(CommonProxyResource): +class ReachabilityAnalysisRun(CommonProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration information for analysis run. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -36626,7 +38797,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReachabilityAnalysisRunProperties(_Model): +class ReachabilityAnalysisRunProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the Reachability Analysis Run properties. :ivar description: @@ -36695,7 +38866,7 @@ class ReadOnlySubResourceModel(_Model): """Type of the resource.""" -class RecordSet(_Model): +class RecordSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A collective group of information about the record set information. :ivar record_type: Resource record type. @@ -36757,7 +38928,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReferencedPublicIpAddress(_Model): +class ReferencedPublicIpAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Reference to a public IP address. :ivar id: The PublicIPAddress Reference. @@ -36785,7 +38956,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReserveCloudServicePublicIpAddressRequest(_Model): # pylint: disable=name-too-long +class ReserveCloudServicePublicIpAddressRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The request for ReserveCloudServicePublicIpAddressOperation. :ivar is_rollback: When true, reverts from Static to Dynamic allocation (undo reservation). @@ -36817,7 +38990,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResiliencyRecommendationComponents(_Model): +class ResiliencyRecommendationComponents(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Gateway Resiliency based Recommendations. :ivar name: Name of the Resiliency based Recommendation Component. @@ -36865,7 +39038,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceBasics(_Model): +class ResourceBasics(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Representation of basic resource information. :ivar resource_id: ResourceId of the Azure resource. @@ -36902,7 +39075,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceNavigationLink(SubResource): +class ResourceNavigationLink(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceNavigationLink resource. :ivar properties: Resource navigation link properties format. @@ -36969,7 +39142,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ResourceNavigationLinkFormat(_Model): +class ResourceNavigationLinkFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ResourceNavigationLink. :ivar linked_resource_type: Resource type of the linked resource. @@ -37012,7 +39185,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceNavigationLinksListResult(_Model): +class ResourceNavigationLinksListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Paged collection of ResourceNavigationLink items. :ivar value: The ResourceNavigationLink items on this page. Required. @@ -37046,7 +39219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RetentionPolicyParameters(_Model): +class RetentionPolicyParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the retention policy for flow log. :ivar days: Number of days to retain flow log records. @@ -37079,7 +39252,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Route(SubResourceModel): +class Route(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Route resource. :ivar id: Resource ID. @@ -37148,7 +39321,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteFilter(TrackedResourceWithSettableIdOptionalLocation): +class RouteFilter( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """Route Filter Resource. :ivar id: Resource ID. @@ -37215,7 +39390,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteFilterPropertiesFormat(_Model): +class RouteFilterPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Route Filter Resource. :ivar rules: Collection of RouteFilterRules contained within a route filter. @@ -37263,7 +39438,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteFilterRule(SubResource): +class RouteFilterRule(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Route Filter Rule Resource. :ivar id: Resource ID. @@ -37332,7 +39507,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteFilterRulePropertiesFormat(_Model): +class RouteFilterRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Route Filter Rule Resource. :ivar access: The access type of the rule. Required. Known values are: "Allow" and "Deny". @@ -37382,7 +39557,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteMap(ReadOnlySubResourceModel): +class RouteMap(ReadOnlySubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """The RouteMap child resource of a Virtual hub. :ivar id: Resource ID. @@ -37447,7 +39622,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteMapProperties(_Model): +class RouteMapProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of RouteMap resource. :ivar associated_inbound_connections: List of connections which have this RoutMap associated @@ -37501,7 +39676,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteMapRule(_Model): +class RouteMapRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A RouteMap Rule. :ivar name: The unique name for the rule. @@ -37551,7 +39726,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteNextHopEcmp(_Model): +class RouteNextHopEcmp(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The next hop definition for ECMP routes containing multiple next hop IP addresses. :ivar next_hop_ip_addresses: List of next hop IP addresses for ECMP routing. Must contain @@ -37583,7 +39758,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutePropertiesFormat(_Model): +class RoutePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Route resource. :ivar address_prefix: The destination CIDR to which the route applies. @@ -37655,7 +39830,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteSourceDetails(_Model): +class RouteSourceDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RouteSourceDetails. :ivar circuit: Express Route Circuit identifier. @@ -37694,7 +39869,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteTable(Resource): +class RouteTable(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Route table resource. :ivar id: Resource ID. @@ -37768,7 +39943,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RouteTablePropertiesFormat(_Model): +class RouteTablePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Route Table resource. :ivar routes: Collection of routes contained within a route table. @@ -37831,7 +40006,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RouteTargetAddressPropertiesFormat(_Model): +class RouteTargetAddressPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of route target address. :ivar subnet: The reference to the subnet resource. @@ -37875,7 +40050,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingConfiguration(_Model): +class RoutingConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Routing Configuration indicating the associated and propagated route tables for this connection. @@ -37940,7 +40115,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingIntent(SubResourceModel): +class RoutingIntent(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """The routing intent child resource of a Virtual hub. :ivar id: Resource ID. @@ -38002,7 +40177,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RoutingIntentProperties(_Model): +class RoutingIntentProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of a RoutingIntent resource. :ivar routing_policies: List of routing policies. @@ -38040,7 +40215,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingPolicy(_Model): +class RoutingPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The routing policy object used in a RoutingIntent resource. :ivar name: The unique name for the routing policy. Required. @@ -38081,7 +40256,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingRule(ChildResource): +class RoutingRule(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network routing rule. :ivar id: Resource ID. @@ -38143,7 +40318,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RoutingRuleCollection(ChildResource): +class RoutingRuleCollection(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the routing rule collection. :ivar id: Resource ID. @@ -38211,7 +40386,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RoutingRuleCollectionPropertiesFormat(_Model): +class RoutingRuleCollectionPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the routing rule collection properties. :ivar description: A description of the routing rule collection. @@ -38268,7 +40443,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingRuleNextHop(_Model): +class RoutingRuleNextHop(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Next hop. :ivar next_hop_type: Next hop type. Required. Known values are: "Internet", "NoNextHop", @@ -38308,7 +40483,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingRulePropertiesFormat(_Model): +class RoutingRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Routing rule resource. :ivar description: A description for this rule. @@ -38362,7 +40537,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RoutingRuleRouteDestination(_Model): +class RoutingRuleRouteDestination(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Route destination. :ivar type: Destination type. Required. Known values are: "AddressPrefix" and "ServiceTag". @@ -38399,7 +40574,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScopeConnection(ChildResource): +class ScopeConnection(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The Scope Connections resource. :ivar id: Resource ID. @@ -38441,7 +40616,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScopeConnectionProperties(_Model): +class ScopeConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Scope connection. :ivar tenant_id: Tenant ID. @@ -38509,7 +40684,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityAdminConfiguration(ChildResource): +class SecurityAdminConfiguration(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the security admin configuration. :ivar id: Resource ID. @@ -38578,7 +40753,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityAdminConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class SecurityAdminConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the security admin configuration properties. :ivar description: A description of the security configuration. @@ -38646,7 +40823,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityGroupNetworkInterface(_Model): +class SecurityGroupNetworkInterface(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network interface and all its associated security rules. :ivar id: ID of the network interface. @@ -38681,7 +40858,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityGroupViewParameters(_Model): +class SecurityGroupViewParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the VM to check security groups for. :ivar target_resource_id: ID of the target VM. Required. @@ -38711,7 +40888,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityGroupViewResult(_Model): +class SecurityGroupViewResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The information about security rules applied to the specified VM. :ivar network_interfaces: List of network interfaces on the specified VM. @@ -38741,7 +40918,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityPartnerProvider(Resource): +class SecurityPartnerProvider(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Security Partner Provider resource. :ivar id: Resource ID. @@ -38808,7 +40985,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityPartnerProviderPropertiesFormat(_Model): +class SecurityPartnerProviderPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the Security Partner Provider. :ivar provisioning_state: The provisioning state of the Security Partner Provider resource. @@ -38863,7 +41040,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityRule(SubResourceModel): +class SecurityRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Network security rule. :ivar id: Resource ID. @@ -38942,7 +41119,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityRuleAssociations(_Model): +class SecurityRuleAssociations(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """All security rules associated with the network interface. :ivar network_interface_association: Network interface and it's custom security rules. @@ -38995,7 +41172,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityRulePropertiesFormat(_Model): +class SecurityRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Security rule resource. :ivar description: A description for this rule. Restricted to 140 chars. @@ -39152,7 +41329,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityUserConfiguration(ChildResource): +class SecurityUserConfiguration(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the security user configuration. :ivar id: Resource ID. @@ -39214,7 +41391,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityUserConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class SecurityUserConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the security user configuration properties. :ivar description: A description of the security user configuration. @@ -39254,7 +41433,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityUserGroupItem(_Model): +class SecurityUserGroupItem(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network manager security user group item. :ivar network_group_id: Network manager group Id. Required. @@ -39284,7 +41463,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityUserRule(ChildResource): +class SecurityUserRule(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Network security user rule. :ivar id: Resource ID. @@ -39356,7 +41535,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityUserRuleCollection(ChildResource): +class SecurityUserRuleCollection(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines the security user rule collection. :ivar id: Resource ID. @@ -39419,7 +41598,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SecurityUserRuleCollectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class SecurityUserRuleCollectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines the security user rule collection properties. :ivar description: A description of the security user rule collection. @@ -39466,7 +41647,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecurityUserRulePropertiesFormat(_Model): +class SecurityUserRulePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Security rule resource. :ivar description: A description for this rule. @@ -39553,7 +41734,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceAssociationLink(SubResource): +class ServiceAssociationLink(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ServiceAssociationLink resource. :ivar id: Resource ID. @@ -39621,7 +41802,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServiceAssociationLinkPropertiesFormat(_Model): +class ServiceAssociationLinkPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of ServiceAssociationLink. :ivar linked_resource_type: Resource type of the linked resource. @@ -39676,7 +41857,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceAssociationLinksListResult(_Model): +class ServiceAssociationLinksListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Paged collection of ServiceAssociationLink items. :ivar value: The ServiceAssociationLink items on this page. Required. @@ -39710,7 +41891,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceDelegationPropertiesFormat(_Model): +class ServiceDelegationPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a service delegation. :ivar service_name: The name of the service to whom the subnet should be delegated (e.g. @@ -39753,7 +41934,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceEndpointPolicy(Resource): +class ServiceEndpointPolicy(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Service End point policy resource. :ivar id: Resource ID. @@ -39832,7 +42013,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServiceEndpointPolicyDefinition(SubResourceModel): +class ServiceEndpointPolicyDefinition(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Service Endpoint policy definitions. :ivar id: Resource ID. @@ -39894,7 +42075,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServiceEndpointPolicyDefinitionPropertiesFormat(_Model): # pylint: disable=name-too-long +class ServiceEndpointPolicyDefinitionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Service Endpoint policy definition resource. :ivar description: A description for this rule. Restricted to 140 chars. @@ -39943,7 +42126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceEndpointPolicyPropertiesFormat(_Model): +class ServiceEndpointPolicyPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Service Endpoint Policy resource. :ivar service_endpoint_policy_definitions: A collection of service endpoint policy definitions @@ -40005,7 +42188,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceEndpointPropertiesFormat(_Model): +class ServiceEndpointPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The service endpoint properties. :ivar service: The type of the endpoint service. @@ -40053,7 +42236,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGateway(SecurityPerimeterTrackedResource): +class ServiceGateway(SecurityPerimeterTrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ServiceGateway resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -40147,7 +42330,18 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServiceGatewayAddress(_Model): +class ServiceGatewayActionOkResponseBody(_Model): + """Empty success response. + + :ivar status: The status of the operation. + :vartype status: str + """ + + status: Optional[str] = rest_field(visibility=["read"]) + """The status of the operation.""" + + +class ServiceGatewayAddress(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway address. :ivar address: Address to update. @@ -40180,7 +42374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayAddressLocation(_Model): +class ServiceGatewayAddressLocation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway address location. :ivar address_location: Location to update. @@ -40236,7 +42430,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayAddressLocationResponse(_Model): +class ServiceGatewayAddressLocationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway address location. :ivar address_location: Location to update. @@ -40273,7 +42467,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayPropertiesFormat(_Model): +class ServiceGatewayPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway. :ivar virtual_network: Reference to an existing virtual network. @@ -40329,7 +42523,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayService(_Model): +class ServiceGatewayService(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway service. :ivar name: Name of the service. @@ -40384,7 +42578,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServiceGatewayServicePropertiesFormat(_Model): +class ServiceGatewayServicePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway service. :ivar service_type: Name of the service. Known values are: "Inbound", "Outbound", and @@ -40436,7 +42630,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayServiceRequest(_Model): +class ServiceGatewayServiceRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway services request. :ivar is_delete: Set to true to mark the service for deletion. @@ -40471,7 +42665,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewaySku(_Model): +class ServiceGatewaySku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SKU of a service gateway. :ivar name: Name of a service gateway SKU. "Standard" @@ -40508,7 +42702,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayUpdateAddressLocationsRequest(_Model): # pylint: disable=name-too-long +class ServiceGatewayUpdateAddressLocationsRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the service gateway update address locations request. :ivar action: Specifies the type of update operation to perform on address locations within the @@ -40557,7 +42753,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServiceGatewayUpdateServicesRequest(_Model): +class ServiceGatewayUpdateServicesRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the service gateway update services request. :ivar action: Specifies the type of update operation to perform on services within the service @@ -40692,7 +42888,7 @@ class ServiceTagsListResult(_Model): """The URL to get next page of service tag information resources.""" -class SessionIds(_Model): +class SessionIds(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of session IDs. :ivar session_ids: List of session IDs. @@ -40722,7 +42918,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SharedKeyProperties(_Model): +class SharedKeyProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for SharedKey. :ivar shared_key: The value of the shared key for the vpn link connection. @@ -40765,7 +42961,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SignatureOverridesFilterValuesQuery(_Model): +class SignatureOverridesFilterValuesQuery(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the filter values possibles for a given column. :ivar filter_name: Describes the name of the column which values will be returned. @@ -40795,7 +42991,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SignatureOverridesFilterValuesResponse(_Model): +class SignatureOverridesFilterValuesResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes the list of all possible values for a specific filter value. :ivar filter_values: Describes the possible values. @@ -40825,7 +43021,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WritableResource(_Model): +class WritableResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common resource representation. :ivar id: Resource ID. @@ -40863,7 +43059,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SignaturesOverrides(WritableResource): +class SignaturesOverrides(WritableResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Contains all specific policy signatures overrides for the IDPS. :ivar id: Resource ID. @@ -40902,7 +43098,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SignaturesOverridesList(_Model): +class SignaturesOverridesList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes an object containing an array with a single item. :ivar value: Describes a list consisting exactly one item describing the policy's signature @@ -40933,7 +43129,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SignaturesOverridesProperties(_Model): +class SignaturesOverridesProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Will contain the properties of the resource (the actual signature overrides). :ivar signatures: Dictionary of . @@ -40961,7 +43157,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SingleQueryResult(_Model): +class SingleQueryResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SingleQueryResult. :ivar signature_id: The ID of the signature. @@ -41063,7 +43259,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Sku(_Model): +class Sku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The sku of this Bastion Host. :ivar name: The name of the sku of this Bastion Host. Known values are: "Basic", "Standard", @@ -41095,7 +43291,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StaticCidr(CommonProxyResource): +class StaticCidr(CommonProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Instance of StaticCidr resource. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -41136,7 +43332,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StaticCidrProperties(_Model): +class StaticCidrProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of static CIDR resource. :ivar description: @@ -41192,7 +43388,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StaticMember(ChildResource): +class StaticMember(ChildResource): # pylint: disable=docstring-keyword-should-match-keyword-only """StaticMember Item. :ivar id: Resource ID. @@ -41254,7 +43450,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StaticMemberProperties(_Model): +class StaticMemberProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of static member. :ivar resource_id: Resource Id. @@ -41296,7 +43492,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StaticRoute(_Model): +class StaticRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of all Static Routes. :ivar name: The name of the StaticRoute that is unique within a VnetRoute. @@ -41338,7 +43534,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StaticRoutesConfig(_Model): +class StaticRoutesConfig(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection. @@ -41381,7 +43577,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StopCircuitLinkFailoverTestParameterBody(_Model): +class StopCircuitLinkFailoverTestParameterBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """StopCircuitLinkFailoverTestParameterBody. :ivar stop_parameters: Parameters supplied to stop the link failover simulation on the express @@ -41413,7 +43609,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StopSiteFailoverTestParameterBody(_Model): +class StopSiteFailoverTestParameterBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """StopSiteFailoverTestParameterBody. :ivar stop_parameters: Parameters supplied to stop the failover simulation on the express route @@ -41444,7 +43640,42 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Subgroup(SubResourceModel): +class StorageAccountSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Storage account where the connection analyzer writes its output. + + :ivar storage_account_id: Resource ID of the storage account. Required. + :vartype storage_account_id: str + :ivar path: Sub-path within the storage account where results are written. + :vartype path: str + """ + + storage_account_id: str = rest_field( + name="storageAccountId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource ID of the storage account. Required.""" + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Sub-path within the storage account where results are written.""" + + @overload + def __init__( + self, + *, + storage_account_id: str, + path: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Subgroup(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """A subgroup in an interconnect group. :ivar id: Resource ID. @@ -41482,7 +43713,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubgroupNodeAvailabilityEntry(_Model): +class SubgroupNodeAvailabilityEntry(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the node availability information for a single subgroup. :ivar name: The subgroup name. @@ -41536,7 +43767,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubgroupProfile(_Model): +class SubgroupProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Subgroup profile of the interconnect group resource. :ivar vm_size: VM size of the subgroup profile. Required. @@ -41603,7 +43834,7 @@ class SubgroupProperties(_Model): \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" -class Subnet(SubResourceModel): +class Subnet(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Subnet in a virtual network resource. :ivar id: Resource ID. @@ -41689,7 +43920,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SubnetAssociation(_Model): +class SubnetAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Subnet and it's custom security rules. :ivar id: Subnet ID. @@ -41723,7 +43954,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubnetPropertiesFormat(_Model): +class SubnetPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the subnet. :ivar address_prefix: The address prefix for the subnet. @@ -41924,7 +44155,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubscriptionId(_Model): +class SubscriptionId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SubscriptionId. :ivar id: Subscription id in the ARM id format. @@ -41952,7 +44183,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SwapResource(ProxyResourceWithReadOnlyID): +class SwapResource(ProxyResourceWithReadOnlyID): # pylint: disable=docstring-keyword-should-match-keyword-only """SwapResource to represent slot type on the specified cloud service. :ivar id: Resource ID. @@ -41988,7 +44219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SwapResourceListResult(_Model): +class SwapResourceListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """SwapResource List with single entry to represent slot type on the specified cloud service. :ivar value: @@ -42017,7 +44248,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SwapResourceProperties(_Model): +class SwapResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Swap resource properties. :ivar slot_type: Specifies slot info on a cloud service. Known values are: "Production" and @@ -42048,7 +44279,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -42115,7 +44346,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TagsObject(_Model): +class TagsObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Tags object for patch operations. :ivar tags: Resource tags. @@ -42143,7 +44374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Topology(_Model): +class Topology(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Topology of the specified resource group. :ivar id: GUID representing the operation id. @@ -42188,7 +44419,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TopologyAssociation(_Model): +class TopologyAssociation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resources that have an association with the parent resource. :ivar name: The name of the resource that is associated with the parent resource. @@ -42232,7 +44463,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TopologyParameters(_Model): +class TopologyParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the representation of topology. :ivar target_resource_group_name: The name of the target resource group to perform topology on. @@ -42276,7 +44507,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TopologyResource(_Model): +class TopologyResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The network resource topology information for the given resource group. :ivar name: Name of the resource. @@ -42322,7 +44553,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResourceWithSettableName(_Model): +class TrackedResourceWithSettableName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Common resource representation. :ivar id: Resource ID. @@ -42369,7 +44600,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrafficAnalyticsConfigurationProperties(_Model): +class TrafficAnalyticsConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the configuration of traffic analytics. :ivar enabled: Flag to enable/disable traffic analytics. @@ -42426,7 +44657,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrafficAnalyticsProperties(_Model): +class TrafficAnalyticsProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the configuration of traffic analytics. :ivar network_watcher_flow_analytics_configuration: Parameters that define the configuration of @@ -42462,7 +44693,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrafficDetectionRule(_Model): +class TrafficDetectionRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Ddos Custom Policy traffic detection rule. :ivar traffic_type: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be @@ -42501,7 +44732,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrafficSelectorPolicy(_Model): +class TrafficSelectorPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An traffic selector policy for a virtual network gateway connection. :ivar local_address_ranges: A collection of local address spaces in CIDR format. Required. @@ -42538,7 +44769,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TroubleshootingDetails(_Model): +class TroubleshootingDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information gained from troubleshooting of specified resource. :ivar id: The id of the get troubleshoot operation. @@ -42591,7 +44822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TroubleshootingParameters(_Model): +class TroubleshootingParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the resource to troubleshoot. :ivar target_resource_id: The target resource to troubleshoot. Required. @@ -42648,7 +44879,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class TroubleshootingProperties(_Model): +class TroubleshootingProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Storage location provided for troubleshoot. :ivar storage_id: The ID for the storage account to save the troubleshoot result. Required. @@ -42681,7 +44912,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TroubleshootingRecommendedActions(_Model): +class TroubleshootingRecommendedActions(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Recommended actions based on discovered issues. :ivar action_id: ID of the recommended action. @@ -42730,7 +44961,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TroubleshootingResult(_Model): +class TroubleshootingResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Troubleshooting information gained from specified resource. :ivar start_time: The start time of the troubleshooting. @@ -42814,7 +45045,7 @@ class TunnelConnectionHealth(_Model): """The time at which connection was established in Utc format.""" -class UnprepareNetworkPoliciesRequest(_Model): +class UnprepareNetworkPoliciesRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of UnprepareNetworkPolicies for Subnet. :ivar service_name: The name of the service for which subnet is being unprepared for. @@ -42844,7 +45075,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UpdateTagsRequest(_Model): +class UpdateTagsRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Update tags request. :ivar id: Network security perimeter identifier. @@ -42876,7 +45107,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Usage(_Model): +class Usage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The network resource usage. :ivar id: Resource identifier. @@ -42923,7 +45154,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UsageName(_Model): +class UsageName(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The usage names. :ivar value: A string describing the resource name. @@ -42958,7 +45189,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerificationIPFlowParameters(_Model): +class VerificationIPFlowParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters that define the IP flow to be verified. :ivar target_resource_id: The ID of the target resource to perform next-hop on. Required. @@ -43041,7 +45272,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerificationIPFlowResult(_Model): +class VerificationIPFlowResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Results of IP flow verification on the target resource. :ivar access: Indicates whether the traffic is allowed or denied. Known values are: "Allow" and @@ -43078,7 +45309,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerifierWorkspace(CommonTrackedResource): +class VerifierWorkspace(CommonTrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Instance of Verifier Workspace. :ivar id: Fully qualified resource ID for the resource. E.g. @@ -43128,7 +45359,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerifierWorkspaceProperties(_Model): +class VerifierWorkspaceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of Verifier Workspace resource. :ivar description: @@ -43163,7 +45394,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerifierWorkspaceUpdate(_Model): +class VerifierWorkspaceUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the VerifierWorkspace update API request interface. :ivar tags: Dictionary of . @@ -43198,7 +45429,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VerifierWorkspaceUpdateProperties(_Model): +class VerifierWorkspaceUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the VerifierWorkspace update properties. :ivar description: @@ -43225,7 +45456,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceAdditionalNicProperties(_Model): +class VirtualApplianceAdditionalNicProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Virtual Appliance Additional Nic Properties. :ivar name: Name of additional nic. @@ -43260,7 +45491,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceIPConfiguration(_Model): +class VirtualApplianceIPConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents a single IP configuration. :ivar name: For hub NVAs, primary IP configs must be named 'privatenicipconfig' and @@ -43299,7 +45530,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceIPConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualApplianceIPConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Represents a single IP configuration properties. :ivar primary: Whether or not this is primary IP configuration of the NIC. @@ -43327,7 +45560,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceNetworkInterfaceConfiguration(_Model): # pylint: disable=name-too-long +class VirtualApplianceNetworkInterfaceConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Represents a single NIC configuration. :ivar nic_type: NIC type. This should be either PublicNic or PrivateNic. Known values are: @@ -43367,7 +45602,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceNetworkInterfaceConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualApplianceNetworkInterfaceConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Represents a single NIC configuration properties. :ivar ip_configurations: @@ -43409,6 +45646,12 @@ class VirtualApplianceNicProperties(_Model): :vartype public_ip_address: str :ivar private_ip_address: Private IP address. :vartype private_ip_address: str + :ivar public_ip_address_v6: Public IPv6 address. Populated for dual-stack NVAs, including on + additional-NIC configurations when the NVA is dual-stack. + :vartype public_ip_address_v6: str + :ivar private_ip_address_v6: Private IPv6 address. Populated for dual-stack NVAs, including on + additional-NIC configurations when the NVA is dual-stack. + :vartype private_ip_address_v6: str :ivar instance_name: Instance on which nic is attached. :vartype instance_name: str """ @@ -43423,11 +45666,17 @@ class VirtualApplianceNicProperties(_Model): """Public IP address.""" private_ip_address: Optional[str] = rest_field(name="privateIpAddress", visibility=["read"]) """Private IP address.""" + public_ip_address_v6: Optional[str] = rest_field(name="publicIpAddressV6", visibility=["read"]) + """Public IPv6 address. Populated for dual-stack NVAs, including on additional-NIC configurations + when the NVA is dual-stack.""" + private_ip_address_v6: Optional[str] = rest_field(name="privateIpAddressV6", visibility=["read"]) + """Private IPv6 address. Populated for dual-stack NVAs, including on additional-NIC configurations + when the NVA is dual-stack.""" instance_name: Optional[str] = rest_field(name="instanceName", visibility=["read"]) """Instance on which nic is attached.""" -class VirtualApplianceSite(SubResourceModel): +class VirtualApplianceSite(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Appliance Site resource. :ivar id: Resource ID. @@ -43489,7 +45738,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualApplianceSiteProperties(_Model): +class VirtualApplianceSiteProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the rule group. :ivar address_prefix: Address Prefix. @@ -43534,7 +45783,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualApplianceSkuProperties(_Model): +class VirtualApplianceSkuProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Network Virtual Appliance Sku Properties. :ivar vendor: Virtual Appliance Vendor. @@ -43576,7 +45825,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHub(TrackedResourceWithSettableIdOptionalLocation): +class VirtualHub( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualHub Resource. :ivar id: Resource ID. @@ -43627,6 +45878,8 @@ class VirtualHub(TrackedResourceWithSettableIdOptionalLocation): "route_maps", "virtual_router_asn", "virtual_router_ips", + "address_prefix_v6", + "virtual_router_ips_v6", "allow_branch_to_branch_traffic", "preferred_routing_gateway", "hub_routing_preference", @@ -43672,7 +45925,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualHubEffectiveRoute(_Model): +class VirtualHubEffectiveRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The effective route configured on the virtual hub or specified resource. :ivar address_prefixes: The list of address prefixes. @@ -43728,7 +45981,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubEffectiveRouteList(_Model): +class VirtualHubEffectiveRouteList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """EffectiveRoutes List. :ivar value: The list of effective routes configured on the virtual hub or the specified @@ -43759,7 +46012,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubId(_Model): +class VirtualHubId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Hub identifier. :ivar id: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be @@ -43790,7 +46043,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubProperties(_Model): +class VirtualHubProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VirtualHub. :ivar virtual_wan: The VirtualWAN to which the VirtualHub belongs. @@ -43832,6 +46085,10 @@ class VirtualHubProperties(_Model): :vartype virtual_router_asn: int :ivar virtual_router_ips: VirtualRouter IPs. :vartype virtual_router_ips: list[str] + :ivar address_prefix_v6: IPv6 Address-prefix for this VirtualHub. + :vartype address_prefix_v6: str + :ivar virtual_router_ips_v6: VirtualRouter IPv6 IPs. + :vartype virtual_router_ips_v6: list[str] :ivar allow_branch_to_branch_traffic: Flag to control transit for VirtualRouter hub. :vartype allow_branch_to_branch_traffic: bool :ivar preferred_routing_gateway: The preferred gateway to route on-prem traffic. Known values @@ -43909,6 +46166,14 @@ class VirtualHubProperties(_Model): name="virtualRouterIps", visibility=["read", "create", "update", "delete", "query"] ) """VirtualRouter IPs.""" + address_prefix_v6: Optional[str] = rest_field( + name="addressPrefixV6", visibility=["read", "create", "update", "delete", "query"] + ) + """IPv6 Address-prefix for this VirtualHub.""" + virtual_router_ips_v6: Optional[list[str]] = rest_field( + name="virtualRouterIpsV6", visibility=["read", "create", "update", "delete", "query"] + ) + """VirtualRouter IPv6 IPs.""" allow_branch_to_branch_traffic: Optional[bool] = rest_field( name="allowBranchToBranchTraffic", visibility=["read", "create", "update", "delete", "query"] ) @@ -43945,6 +46210,8 @@ def __init__( sku: Optional[str] = None, virtual_router_asn: Optional[int] = None, virtual_router_ips: Optional[list[str]] = None, + address_prefix_v6: Optional[str] = None, + virtual_router_ips_v6: Optional[list[str]] = None, allow_branch_to_branch_traffic: Optional[bool] = None, preferred_routing_gateway: Optional[Union[str, "_models.PreferredRoutingGateway"]] = None, hub_routing_preference: Optional[Union[str, "_models.HubRoutingPreference"]] = None, @@ -43962,7 +46229,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubRoute(_Model): +class VirtualHubRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualHub route. :ivar address_prefixes: List of all addressPrefixes. @@ -43999,7 +46266,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubRouteTable(_Model): +class VirtualHubRouteTable(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualHub route table. :ivar routes: List of all routes. @@ -44029,7 +46296,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubRouteTableV2(SubResource): +class VirtualHubRouteTableV2(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualHubRouteTableV2 Resource. :ivar id: Resource ID. @@ -44093,7 +46360,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualHubRouteTableV2Properties(_Model): +class VirtualHubRouteTableV2Properties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VirtualHubRouteTableV2. :ivar routes: List of all routes. @@ -44138,7 +46405,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualHubRouteV2(_Model): +class VirtualHubRouteV2(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualHubRouteTableV2 route. :ivar destination_type: The type of destinations. @@ -44187,7 +46454,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetwork(Resource): +class VirtualNetwork(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Network resource. :ivar id: Resource ID. @@ -44279,7 +46546,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkAppliance(Resource): +class VirtualNetworkAppliance(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A virtual network appliance in a resource group. :ivar id: Resource ID. @@ -44353,7 +46620,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkApplianceIpConfiguration(SubResource): +class VirtualNetworkApplianceIpConfiguration( + SubResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The virtual network appliance ip configuration. :ivar id: Resource ID. @@ -44426,7 +46695,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkApplianceIpConfigurationProperties(_Model): # pylint: disable=name-too-long +class VirtualNetworkApplianceIpConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of virtual network appliance IP configuration. :ivar private_ip_address: The private IP address of the IP configuration. @@ -44487,7 +46758,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkAppliancePropertiesFormat(_Model): +class VirtualNetworkAppliancePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualNetworkAppliance properties. :ivar bandwidth_in_gbps: Bandwidth of the VirtualNetworkAppliance resource in Gbps. @@ -44551,7 +46822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkBgpCommunities(_Model): +class VirtualNetworkBgpCommunities(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. :ivar virtual_network_community: The BGP community associated with the virtual network. @@ -44586,7 +46857,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkConnectionGatewayReference(_Model): +class VirtualNetworkConnectionGatewayReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A reference to VirtualNetworkGateway or LocalNetworkGateway resource. :ivar id: The ID of VirtualNetworkGateway or LocalNetworkGateway resource. Required. @@ -44614,7 +46885,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkEncryption(_Model): +class VirtualNetworkEncryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. @@ -44654,7 +46925,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGateway(Resource): +class VirtualNetworkGateway(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A common class for general resource information. :ivar id: Resource ID. @@ -44764,7 +47035,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayAutoScaleBounds(_Model): +class VirtualNetworkGatewayAutoScaleBounds(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualNetworkGatewayAutoScaleBounds. :ivar min: Minimum scale Units for Autoscale configuration. @@ -44797,7 +47068,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayAutoScaleConfiguration(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayAutoScaleConfiguration( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Virtual Network Gateway Autoscale Configuration details. :ivar bounds: The bounds of the autoscale configuration. @@ -44827,7 +47100,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayConnection(Resource): +class VirtualNetworkGatewayConnection(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A common class for general resource information. :ivar id: Resource ID. @@ -44926,7 +47199,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayConnectionListEntity(Resource): # pylint: disable=name-too-long +class VirtualNetworkGatewayConnectionListEntity( + Resource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """A common class for general resource information. :ivar id: Resource ID. @@ -45019,7 +47294,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayConnectionListEntityPropertiesFormat(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayConnectionListEntityPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """VirtualNetworkGatewayConnection properties. :ivar authorization_key: The authorizationKey. @@ -45221,7 +47498,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayConnectionPropertiesFormat(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayConnectionPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """VirtualNetworkGatewayConnection properties. :ivar authorization_key: The authorizationKey. @@ -45468,7 +47747,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayConnectionTunnelProperties(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayConnectionTunnelProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """VirtualNetworkGatewayConnectionTunnelProperties. :ivar tunnel_ip_address: Tunnel remote IP address. @@ -45505,7 +47786,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayIPConfiguration(SubResource): +class VirtualNetworkGatewayIPConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """IP configuration for virtual network gateway. :ivar id: Resource ID. @@ -45576,7 +47857,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayIPConfigurationPropertiesFormat(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayIPConfigurationPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of VirtualNetworkGatewayIPConfiguration. :ivar private_ip_allocation_method: The private IP address allocation method. Known values are: @@ -45632,7 +47915,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayMigrationParameters(_Model): +class VirtualNetworkGatewayMigrationParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual network gateway migration parameters. :ivar migration_type: MigrationType for the virtual network gateway. Required. @@ -45670,7 +47953,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayMigrationStatus(_Model): +class VirtualNetworkGatewayMigrationStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Migration status for the Virtual Network Gateway. :ivar state: Represent the current state of gateway migration. Known values are: "None", @@ -45720,7 +48003,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayNatRule(SubResourceModel): +class VirtualNetworkGatewayNatRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualNetworkGatewayNatRule Resource. :ivar id: Resource ID. @@ -45789,7 +48072,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayNatRuleProperties(_Model): +class VirtualNetworkGatewayNatRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VirtualNetworkGatewayNatRule. :ivar provisioning_state: The provisioning state of the NAT Rule resource. Known values are: @@ -45856,7 +48139,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayPolicyGroup(SubResource): +class VirtualNetworkGatewayPolicyGroup(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VirtualNetworkGatewayPolicyGroup. :ivar id: Resource ID. @@ -45926,7 +48209,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkGatewayPolicyGroupMember(_Model): +class VirtualNetworkGatewayPolicyGroupMember(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn Client Connection configuration PolicyGroup member. :ivar name: Name of the VirtualNetworkGatewayPolicyGroupMember. @@ -45971,7 +48254,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayPolicyGroupProperties(_Model): # pylint: disable=name-too-long +class VirtualNetworkGatewayPolicyGroupProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of VirtualNetworkGatewayPolicyGroup. :ivar is_default: Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not. Required. @@ -46028,7 +48313,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewayPropertiesFormat(_Model): +class VirtualNetworkGatewayPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualNetworkGateway properties. :ivar auto_scale_configuration: Autoscale configuration for virutal network gateway. @@ -46279,7 +48564,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkGatewaySku(_Model): +class VirtualNetworkGatewaySku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualNetworkGatewaySku details. :ivar name: Gateway SKU name. Known values are: "Basic", "HighPerformance", "Standard", @@ -46330,7 +48615,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkPeering(SubResourceModel): +class VirtualNetworkPeering(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Peerings in a virtual network resource. :ivar id: Resource ID. @@ -46413,7 +48698,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkPeeringPropertiesFormat(_Model): +class VirtualNetworkPeeringPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the virtual network peering. :ivar allow_virtual_network_access: Whether the VMs in the local virtual network space would be @@ -46602,7 +48887,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkPropertiesFormat(_Model): +class VirtualNetworkPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the virtual network. :ivar address_space: The AddressSpace that contains an array of IP address ranges that can be @@ -46750,7 +49035,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualNetworkTap(Resource): +class VirtualNetworkTap(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Network Tap resource. :ivar id: Resource ID. @@ -46824,7 +49109,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualNetworkTapPropertiesFormat(_Model): +class VirtualNetworkTapPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Network Tap properties. :ivar network_interface_tap_configurations: Specifies the list of resource IDs for the network @@ -46937,7 +49222,7 @@ class VirtualNetworkUsageName(_Model): """Subnet size and usage string.""" -class VirtualRouter(Resource): +class VirtualRouter(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualRouter Resource. :ivar id: Resource ID. @@ -47011,7 +49296,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualRouterAutoScaleConfiguration(_Model): +class VirtualRouterAutoScaleConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The VirtualHub Router autoscale configuration. :ivar min_capacity: The minimum number of scale units for VirtualHub Router. @@ -47041,7 +49326,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualRouterPeering(SubResourceModel): +class VirtualRouterPeering(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Router Peering resource. :ivar id: Resource ID. @@ -47103,7 +49388,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualRouterPeeringProperties(_Model): +class VirtualRouterPeeringProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the rule group. :ivar peer_asn: Peer ASN. @@ -47144,7 +49429,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualRouterPropertiesFormat(_Model): +class VirtualRouterPropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Router definition. :ivar virtual_router_asn: VirtualRouter ASN. @@ -47207,7 +49492,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualWAN(TrackedResourceWithSettableIdOptionalLocation): +class VirtualWAN( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """VirtualWAN Resource. :ivar id: Resource ID. @@ -47283,7 +49570,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VirtualWanProperties(_Model): +class VirtualWanProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VirtualWAN. :ivar disable_vpn_encryption: Vpn encryption to be disabled or not. @@ -47357,7 +49644,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualWanSecurityProvider(_Model): +class VirtualWanSecurityProvider(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Collection of SecurityProviders. :ivar name: Name of the security provider. @@ -47394,7 +49681,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualWanSecurityProviders(_Model): +class VirtualWanSecurityProviders(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Collection of SecurityProviders. :ivar supported_providers: List of VirtualWAN security providers. @@ -47424,7 +49711,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VirtualWanVpnProfileParameters(_Model): +class VirtualWanVpnProfileParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Virtual Wan Vpn profile parameters Vpn profile generation. :ivar vpn_server_configuration_resource_id: VpnServerConfiguration partial resource uri with @@ -47463,7 +49750,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VM(Resource): +class VM(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a Virtual Machine. :ivar id: Resource ID. @@ -47498,7 +49785,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VnetRoute(_Model): +class VnetRoute(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of routes that control routing from VirtualHub into a virtual network connection. :ivar static_routes_config: Configuration for static routes on this HubVnetConnection. @@ -47539,7 +49826,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VngClientConnectionConfiguration(SubResource): +class VngClientConnectionConfiguration(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """A vpn client connection configuration for client connection configuration. :ivar id: Resource ID. @@ -47603,7 +49890,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VngClientConnectionConfigurationProperties(_Model): # pylint: disable=name-too-long +class VngClientConnectionConfigurationProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of VngClientConnectionConfiguration. :ivar vpn_client_address_pool: The reference to the address space resource which represents @@ -47652,7 +49941,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientConfiguration(_Model): +class VpnClientConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnClientConfiguration for P2S client. :ivar vpn_client_address_pool: The reference to the address space resource which represents @@ -47782,7 +50071,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientConnectionHealth(_Model): +class VpnClientConnectionHealth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnClientConnectionHealth properties. :ivar total_ingress_bytes_transferred: Total of the Ingress Bytes Transferred in this P2S Vpn @@ -47886,7 +50175,9 @@ class VpnClientConnectionHealthDetail(_Model): """The max packets transferred per second.""" -class VpnClientConnectionHealthDetailListResult(_Model): # pylint: disable=name-too-long +class VpnClientConnectionHealthDetailListResult( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """List of virtual network gateway vpn client connection health. :ivar value: List of vpn client connection health. @@ -47916,7 +50207,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientIPsecParameters(_Model): +class VpnClientIPsecParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An IPSec parameters for a virtual network gateway P2S connection. :ivar sa_life_time_seconds: The IPSec Security Association (also called Quick Mode or Phase 2 @@ -48014,7 +50305,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientParameters(_Model): +class VpnClientParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn Client Parameters for package generation. :ivar processor_architecture: VPN client Processor Architecture. Known values are: "Amd64" and @@ -48074,7 +50365,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientRevokedCertificate(SubResource): +class VpnClientRevokedCertificate(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """VPN client revoked certificate of virtual network gateway. :ivar id: Resource ID. @@ -48138,7 +50429,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnClientRevokedCertificatePropertiesFormat(_Model): # pylint: disable=name-too-long +class VpnClientRevokedCertificatePropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the revoked VPN client certificate of virtual network gateway. :ivar thumbprint: The revoked VPN client certificate thumbprint. @@ -48175,7 +50468,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnClientRootCertificate(SubResource): +class VpnClientRootCertificate(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """VPN client root certificate of virtual network gateway. :ivar id: Resource ID. @@ -48239,7 +50532,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnClientRootCertificatePropertiesFormat(_Model): +class VpnClientRootCertificatePropertiesFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of SSL certificates of application gateway. :ivar public_cert_data: The certificate public data. Required. @@ -48277,7 +50570,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnConnection(SubResource): +class VpnConnection(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnConnection Resource. :ivar id: Resource ID. @@ -48361,7 +50654,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnConnectionPacketCaptureStartParameters(_Model): # pylint: disable=name-too-long +class VpnConnectionPacketCaptureStartParameters( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Vpn Connection packet capture parameters supplied to start packet capture on gateway connection. @@ -48399,7 +50694,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnConnectionPacketCaptureStopParameters(_Model): +class VpnConnectionPacketCaptureStopParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. :ivar sas_url: SAS url for packet capture on vpn connection. @@ -48434,7 +50729,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnConnectionProperties(_Model): +class VpnConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnConnection. :ivar remote_vpn_site: Id of the connected vpn site. @@ -48589,7 +50884,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnDeviceScriptParameters(_Model): +class VpnDeviceScriptParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn device configuration script generation parameters. :ivar vendor: The vendor for the vpn device. @@ -48631,7 +50926,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnGateway(TrackedResourceWithSettableIdOptionalLocation): +class VpnGateway( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnGateway Resource. :ivar id: Resource ID. @@ -48708,7 +51005,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnGatewayIpConfiguration(_Model): +class VpnGatewayIpConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IP Configuration of a VPN Gateway Resource. :ivar id: The identifier of the IP configuration for a VPN Gateway. @@ -48750,7 +51047,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnGatewayNatRule(SubResourceModel): +class VpnGatewayNatRule(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnGatewayNatRule Resource. :ivar id: Resource ID. @@ -48821,7 +51118,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnGatewayNatRuleProperties(_Model): +class VpnGatewayNatRuleProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnGatewayNatRule. :ivar provisioning_state: The provisioning state of the NAT Rule resource. Known values are: @@ -48900,7 +51197,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnGatewayPacketCaptureStartParameters(_Model): +class VpnGatewayPacketCaptureStartParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Start packet capture parameters. :ivar filter_data: Start Packet capture parameters on vpn gateway. @@ -48930,7 +51227,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnGatewayPacketCaptureStopParameters(_Model): +class VpnGatewayPacketCaptureStopParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Stop packet capture parameters. :ivar sas_url: SAS url for packet capture on vpn gateway. @@ -48958,7 +51255,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnGatewayProperties(_Model): +class VpnGatewayProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnGateway. :ivar virtual_hub: The VirtualHub to which the gateway belongs. @@ -49046,7 +51343,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnLinkBgpSettings(_Model): +class VpnLinkBgpSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BGP settings details for a link. :ivar asn: The BGP speaker's ASN. @@ -49081,7 +51378,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnLinkProviderProperties(_Model): +class VpnLinkProviderProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of properties of a link provider. :ivar link_provider_name: Name of the link provider. @@ -49118,7 +51415,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnNatRuleMapping(_Model): +class VpnNatRuleMapping(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn NatRule mapping. :ivar address_space: Address space for Vpn NatRule mapping. @@ -49153,7 +51450,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnPacketCaptureStartParameters(_Model): +class VpnPacketCaptureStartParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Start packet capture parameters on virtual network gateway. :ivar filter_data: Start Packet capture parameters. @@ -49183,7 +51480,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnPacketCaptureStopParameters(_Model): +class VpnPacketCaptureStopParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Stop packet capture parameters. :ivar sas_url: SAS url for packet capture on virtual network gateway. @@ -49211,7 +51508,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnProfileResponse(_Model): +class VpnProfileResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vpn Profile Response for package generation. :ivar profile_url: URL to the VPN profile. @@ -49241,7 +51538,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigRadiusClientRootCertificate(_Model): # pylint: disable=name-too-long +class VpnServerConfigRadiusClientRootCertificate( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the Radius client root certificate of VpnServerConfiguration. :ivar name: The certificate name. @@ -49274,7 +51573,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigRadiusServerRootCertificate(_Model): # pylint: disable=name-too-long +class VpnServerConfigRadiusServerRootCertificate( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of Radius Server root certificate of VpnServerConfiguration. :ivar name: The certificate name. @@ -49309,7 +51610,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfiguration(TrackedResourceWithSettableName): +class VpnServerConfiguration( + TrackedResourceWithSettableName +): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnServerConfiguration Resource. :ivar id: Resource ID. @@ -49394,7 +51697,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnServerConfigurationPolicyGroup(SubResourceModel): +class VpnServerConfigurationPolicyGroup( + SubResourceModel +): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnServerConfigurationPolicyGroup Resource. :ivar id: Resource ID. @@ -49462,7 +51767,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnServerConfigurationPolicyGroupMember(_Model): +class VpnServerConfigurationPolicyGroupMember(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnServerConfiguration PolicyGroup member. :ivar name: Name of the VpnServerConfigurationPolicyGroupMember. @@ -49507,7 +51812,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigurationPolicyGroupProperties(_Model): # pylint: disable=name-too-long +class VpnServerConfigurationPolicyGroupProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Parameters for VpnServerConfigurationPolicyGroup. :ivar is_default: Shows if this is a Default VpnServerConfigurationPolicyGroup or not. @@ -49565,7 +51872,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigurationProperties(_Model): +class VpnServerConfigurationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnServerConfiguration. :ivar name: The name of the VpnServerConfiguration that is unique within a resource group. @@ -49708,7 +52015,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigurationsResponse(_Model): +class VpnServerConfigurationsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnServerConfigurations list associated with VirtualWan Response. :ivar vpn_server_configuration_resource_ids: List of VpnServerConfigurations associated with @@ -49739,7 +52046,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigVpnClientRevokedCertificate(_Model): # pylint: disable=name-too-long +class VpnServerConfigVpnClientRevokedCertificate( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Properties of the revoked VPN client certificate of VpnServerConfiguration. :ivar name: The certificate name. @@ -49772,7 +52081,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnServerConfigVpnClientRootCertificate(_Model): +class VpnServerConfigVpnClientRootCertificate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of VPN client root certificate of VpnServerConfiguration. :ivar name: The certificate name. @@ -49807,7 +52116,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnSite(TrackedResourceWithSettableIdOptionalLocation): +class VpnSite( + TrackedResourceWithSettableIdOptionalLocation +): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnSite Resource. :ivar id: Resource ID. @@ -49885,7 +52196,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnSiteLink(SubResourceModel): +class VpnSiteLink(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnSiteLink Resource. :ivar id: Resource ID. @@ -49947,7 +52258,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnSiteLinkConnection(SubResourceModel): +class VpnSiteLinkConnection(SubResourceModel): # pylint: disable=docstring-keyword-should-match-keyword-only """VpnSiteLinkConnection Resource. :ivar id: Resource ID. @@ -50029,7 +52340,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VpnSiteLinkConnectionProperties(_Model): +class VpnSiteLinkConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnConnection. :ivar vpn_site_link: Id of the connected vpn site link. @@ -50190,7 +52501,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnSiteLinkProperties(_Model): +class VpnSiteLinkProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnSite. :ivar link_properties: The link provider properties. @@ -50245,7 +52556,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VpnSiteProperties(_Model): +class VpnSiteProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for VpnSite. :ivar virtual_wan: The VirtualWAN to which the vpnSite belongs. @@ -50335,7 +52646,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WebApplicationFirewallCustomRule(_Model): +class WebApplicationFirewallCustomRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines contents of a web application rule. :ivar name: The name of the resource that is unique within a policy. This name can be used to @@ -50435,7 +52746,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WebApplicationFirewallPolicy(Resource): +class WebApplicationFirewallPolicy(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Defines web application firewall policy. :ivar id: Resource ID. @@ -50512,7 +52823,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class WebApplicationFirewallPolicyPropertiesFormat(_Model): # pylint: disable=name-too-long +class WebApplicationFirewallPolicyPropertiesFormat( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Defines web application firewall policy properties. :ivar policy_settings: The PolicySettings for policy. @@ -50596,7 +52909,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class WebApplicationFirewallScrubbingRules(_Model): +class WebApplicationFirewallScrubbingRules(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Allow certain variables to be scrubbed on WAF logs. :ivar match_variable: The variable to be scrubbed from the logs. Required. Known values are: diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_patch.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_patch.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/__init__.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/__init__.py index 966bdd725968..bbbf784e545b 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/__init__.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/__init__.py @@ -31,8 +31,10 @@ from ._operations import ExpressRoutePortsLocationsOperations # type: ignore from ._operations import ExpressRoutePortsOperations # type: ignore from ._operations import ExpressRoutePortAuthorizationsOperations # type: ignore +from ._operations import ExpressRouteLagsOperations # type: ignore from ._operations import FirewallPoliciesOperations # type: ignore from ._operations import FirewallPolicyRuleCollectionGroupsOperations # type: ignore +from ._operations import FirewallPolicyKubeSelectorGroupsOperations # type: ignore from ._operations import FirewallPolicyIdpsSignaturesOverridesOperations # type: ignore from ._operations import FirewallPolicyDraftsOperations # type: ignore from ._operations import FirewallPolicyRuleCollectionGroupDraftsOperations # type: ignore @@ -109,6 +111,8 @@ from ._operations import ServiceGatewaysOperations # type: ignore from ._operations import InterconnectGroupsOperations # type: ignore from ._operations import SubgroupsOperations # type: ignore +from ._operations import FirstPartyServiceTagsOperations # type: ignore +from ._operations import AddressPrefixSetsOperations # type: ignore from ._operations import ApplicationGatewayPrivateLinkResourcesOperations # type: ignore from ._operations import ApplicationGatewayWafDynamicManifestsDefaultOperations # type: ignore from ._operations import ApplicationGatewayWafDynamicManifestsOperations # type: ignore @@ -200,8 +204,10 @@ "ExpressRoutePortsLocationsOperations", "ExpressRoutePortsOperations", "ExpressRoutePortAuthorizationsOperations", + "ExpressRouteLagsOperations", "FirewallPoliciesOperations", "FirewallPolicyRuleCollectionGroupsOperations", + "FirewallPolicyKubeSelectorGroupsOperations", "FirewallPolicyIdpsSignaturesOverridesOperations", "FirewallPolicyDraftsOperations", "FirewallPolicyRuleCollectionGroupDraftsOperations", @@ -278,6 +284,8 @@ "ServiceGatewaysOperations", "InterconnectGroupsOperations", "SubgroupsOperations", + "FirstPartyServiceTagsOperations", + "AddressPrefixSetsOperations", "ApplicationGatewayPrivateLinkResourcesOperations", "ApplicationGatewayWafDynamicManifestsDefaultOperations", "ApplicationGatewayWafDynamicManifestsOperations", diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_operations.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_operations.py index cb7f92ef5e63..539f233803e3 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_operations.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_operations.py @@ -32,7 +32,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models as _models +from .. import models as _models, types as _types from .._configuration import NetworkManagementClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer @@ -41,7 +41,6 @@ T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() @@ -52,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,7 +72,7 @@ def build_application_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -101,7 +100,7 @@ def build_application_gateways_create_or_update_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -132,7 +131,7 @@ def build_application_gateways_update_tags_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -162,7 +161,7 @@ def build_application_gateways_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}" path_format_arguments = { @@ -185,7 +184,7 @@ def build_application_gateways_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -212,7 +211,7 @@ def build_application_gateways_list_all_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -237,7 +236,7 @@ def build_application_gateways_start_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start" path_format_arguments = { @@ -259,7 +258,7 @@ def build_application_gateways_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop" path_format_arguments = { @@ -287,7 +286,7 @@ def build_application_gateways_backend_health_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -322,7 +321,7 @@ def build_application_gateways_backend_health_on_demand_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -355,7 +354,7 @@ def build_application_gateways_list_available_ssl_options_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -381,7 +380,7 @@ def build_application_gateways_list_available_ssl_predefined_policies_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -407,7 +406,7 @@ def build_application_gateways_get_ssl_predefined_policy_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -434,7 +433,7 @@ def build_application_gateways_list_available_server_variables_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -460,7 +459,7 @@ def build_application_gateways_list_available_request_headers_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -486,7 +485,7 @@ def build_application_gateways_list_available_response_headers_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -512,7 +511,7 @@ def build_application_gateways_list_available_waf_rule_sets_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -538,7 +537,7 @@ def build_application_gateway_private_endpoint_connections_get_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -567,7 +566,7 @@ def build_application_gateway_private_endpoint_connections_update_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -598,7 +597,7 @@ def build_application_gateway_private_endpoint_connections_delete_request( # py ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}" path_format_arguments = { @@ -622,7 +621,7 @@ def build_application_gateway_private_endpoint_connections_list_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -650,7 +649,7 @@ def build_application_security_groups_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -680,7 +679,7 @@ def build_application_security_groups_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -713,7 +712,7 @@ def build_application_security_groups_update_tags_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -745,7 +744,7 @@ def build_application_security_groups_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}" path_format_arguments = { @@ -770,7 +769,7 @@ def build_application_security_groups_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -797,7 +796,7 @@ def build_application_security_groups_list_all_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -823,7 +822,7 @@ def build_azure_firewalls_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -856,7 +855,7 @@ def build_azure_firewalls_create_or_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -891,7 +890,7 @@ def build_azure_firewalls_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -921,7 +920,7 @@ def build_azure_firewalls_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}" path_format_arguments = { @@ -942,7 +941,7 @@ def build_azure_firewalls_list_request(resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -969,7 +968,7 @@ def build_azure_firewalls_list_all_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -995,7 +994,7 @@ def build_azure_firewalls_list_learned_prefixes_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1023,7 +1022,7 @@ def build_azure_firewalls_packet_capture_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture" @@ -1051,7 +1050,7 @@ def build_azure_firewalls_packet_capture_operation_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1082,7 +1081,7 @@ def build_bastion_hosts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1110,7 +1109,7 @@ def build_bastion_hosts_create_or_update_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1141,7 +1140,7 @@ def build_bastion_hosts_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1171,7 +1170,7 @@ def build_bastion_hosts_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}" path_format_arguments = { @@ -1194,7 +1193,7 @@ def build_bastion_hosts_list_by_resource_group_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1219,7 +1218,7 @@ def build_bastion_hosts_list_request(subscription_id: str, **kwargs: Any) -> Htt _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1252,7 +1251,7 @@ def build_network_interfaces_get_cloud_service_network_interface_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1284,7 +1283,7 @@ def build_network_interfaces_list_cloud_service_role_instance_network_interfaces _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1394,7 +1393,7 @@ def build_network_interfaces_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1424,7 +1423,7 @@ def build_network_interfaces_create_or_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1455,7 +1454,7 @@ def build_network_interfaces_update_tags_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1485,7 +1484,7 @@ def build_network_interfaces_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" path_format_arguments = { @@ -1506,7 +1505,7 @@ def build_network_interfaces_list_request(resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1533,7 +1532,7 @@ def build_network_interfaces_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1559,7 +1558,7 @@ def build_network_interfaces_get_effective_route_table_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1587,7 +1586,7 @@ def build_network_interfaces_list_effective_network_security_groups_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1699,7 +1698,7 @@ def build_network_interfaces_list_cloud_service_network_interfaces_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1766,7 +1765,7 @@ def build_public_ip_addresses_get_cloud_service_public_ip_address_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1806,7 +1805,7 @@ def build_public_ip_addresses_list_cloud_service_role_instance_public_ip_address _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1926,7 +1925,7 @@ def build_public_ip_addresses_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1956,7 +1955,7 @@ def build_public_ip_addresses_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1987,7 +1986,7 @@ def build_public_ip_addresses_update_tags_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2017,7 +2016,7 @@ def build_public_ip_addresses_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}" path_format_arguments = { @@ -2040,7 +2039,7 @@ def build_public_ip_addresses_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2067,7 +2066,7 @@ def build_public_ip_addresses_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2093,7 +2092,7 @@ def build_public_ip_addresses_ddos_protection_status_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2121,7 +2120,7 @@ def build_public_ip_addresses_reserve_cloud_service_public_ip_address_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2152,7 +2151,7 @@ def build_public_ip_addresses_disassociate_cloud_service_reserved_public_ip_requ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2183,7 +2182,7 @@ def build_public_ip_addresses_list_cloud_service_public_ip_addresses_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2241,7 +2240,7 @@ def build_ddos_custom_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2269,7 +2268,7 @@ def build_ddos_custom_policies_create_or_update_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2300,7 +2299,7 @@ def build_ddos_custom_policies_update_tags_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2330,7 +2329,7 @@ def build_ddos_custom_policies_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}" path_format_arguments = { @@ -2353,7 +2352,7 @@ def build_ddos_custom_policies_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2380,7 +2379,7 @@ def build_ddos_custom_policies_list_all_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2406,7 +2405,7 @@ def build_ddos_protection_plans_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2434,7 +2433,7 @@ def build_ddos_protection_plans_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2465,7 +2464,7 @@ def build_ddos_protection_plans_update_tags_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2495,7 +2494,7 @@ def build_ddos_protection_plans_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}" path_format_arguments = { @@ -2518,7 +2517,7 @@ def build_ddos_protection_plans_list_by_resource_group_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2543,7 +2542,7 @@ def build_ddos_protection_plans_list_request(subscription_id: str, **kwargs: Any _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2569,7 +2568,7 @@ def build_express_route_circuit_authorizations_get_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2598,7 +2597,7 @@ def build_express_route_circuit_authorizations_create_or_update_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2629,7 +2628,7 @@ def build_express_route_circuit_authorizations_delete_request( # pylint: disabl ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}" path_format_arguments = { @@ -2653,7 +2652,7 @@ def build_express_route_circuit_authorizations_list_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2681,7 +2680,7 @@ def build_express_route_circuits_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2709,7 +2708,7 @@ def build_express_route_circuits_create_or_update_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2740,7 +2739,7 @@ def build_express_route_circuits_update_tags_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2770,7 +2769,7 @@ def build_express_route_circuits_delete_request( # pylint: disable=name-too-lon ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}" path_format_arguments = { @@ -2793,7 +2792,7 @@ def build_express_route_circuits_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2820,7 +2819,7 @@ def build_express_route_circuits_list_all_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2846,7 +2845,7 @@ def build_express_route_circuits_get_stats_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2880,7 +2879,7 @@ def build_express_route_circuits_get_circuit_link_failover_all_tests_details_req _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2919,7 +2918,7 @@ def build_express_route_circuits_get_circuit_link_failover_single_test_details_r _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2956,7 +2955,7 @@ def build_express_route_circuits_start_circuit_link_failover_test_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2986,7 +2985,7 @@ def build_express_route_circuits_stop_circuit_link_failover_test_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3022,7 +3021,7 @@ def build_express_route_circuits_list_arp_table_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3057,7 +3056,7 @@ def build_express_route_circuits_list_routes_table_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3092,7 +3091,7 @@ def build_express_route_circuits_list_routes_table_summary_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3122,7 +3121,7 @@ def build_express_route_circuits_get_peering_stats_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3151,7 +3150,7 @@ def build_express_route_circuit_peerings_get_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3180,7 +3179,7 @@ def build_express_route_circuit_peerings_create_or_update_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3211,7 +3210,7 @@ def build_express_route_circuit_peerings_delete_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}" path_format_arguments = { @@ -3235,7 +3234,7 @@ def build_express_route_circuit_peerings_list_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3268,7 +3267,7 @@ def build_express_route_circuit_connections_get_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3303,7 +3302,7 @@ def build_express_route_circuit_connections_create_or_update_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3340,7 +3339,7 @@ def build_express_route_circuit_connections_delete_request( # pylint: disable=n ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}" path_format_arguments = { @@ -3365,7 +3364,7 @@ def build_express_route_circuit_connections_list_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3399,7 +3398,7 @@ def build_peer_express_route_circuit_connections_get_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3429,7 +3428,7 @@ def build_peer_express_route_circuit_connections_list_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3458,7 +3457,7 @@ def build_express_route_cross_connections_get_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3486,7 +3485,7 @@ def build_express_route_cross_connections_create_or_update_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3517,7 +3516,7 @@ def build_express_route_cross_connections_update_tags_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3548,7 +3547,7 @@ def build_express_route_cross_connections_list_by_resource_group_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3575,7 +3574,7 @@ def build_express_route_cross_connections_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3608,7 +3607,7 @@ def build_express_route_cross_connections_list_arp_table_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3643,7 +3642,7 @@ def build_express_route_cross_connections_list_routes_table_summary_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3678,7 +3677,7 @@ def build_express_route_cross_connections_list_routes_table_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3708,7 +3707,7 @@ def build_express_route_ports_locations_get_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3735,7 +3734,7 @@ def build_express_route_ports_locations_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3761,7 +3760,7 @@ def build_express_route_ports_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3789,7 +3788,7 @@ def build_express_route_ports_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3820,7 +3819,7 @@ def build_express_route_ports_update_tags_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3850,7 +3849,7 @@ def build_express_route_ports_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}" path_format_arguments = { @@ -3873,7 +3872,7 @@ def build_express_route_ports_list_by_resource_group_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3898,7 +3897,7 @@ def build_express_route_ports_list_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3924,7 +3923,7 @@ def build_express_route_ports_generate_loa_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3955,7 +3954,7 @@ def build_express_route_port_authorizations_get_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3984,7 +3983,7 @@ def build_express_route_port_authorizations_create_or_update_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4015,7 +4014,7 @@ def build_express_route_port_authorizations_delete_request( # pylint: disable=n ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}" path_format_arguments = { @@ -4039,7 +4038,7 @@ def build_express_route_port_authorizations_list_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4061,6 +4060,321 @@ def build_express_route_port_authorizations_list_request( # pylint: disable=nam return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_express_route_lags_get_request( + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_update_request( + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_delete_request( + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_express_route_lags_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteLags" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_generate_loa_request( # pylint: disable=name-too-long + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/generateLoa" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_links_get_request( # pylint: disable=name-too-long + resource_group_name: str, express_route_lag_name: str, link_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/links/{linkName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + "linkName": _SERIALIZER.url("link_name", link_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_links_list_request( # pylint: disable=name-too-long + resource_group_name: str, express_route_lag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/links" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_members_get_request( # pylint: disable=name-too-long + resource_group_name: str, + express_route_lag_name: str, + link_name: str, + member_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/links/{linkName}/members/{memberName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + "linkName": _SERIALIZER.url("link_name", link_name, "str"), + "memberName": _SERIALIZER.url("member_name", member_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_express_route_lags_members_list_request( # pylint: disable=name-too-long + resource_group_name: str, express_route_lag_name: str, link_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteLags/{expressRouteLagName}/links/{linkName}/members" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "expressRouteLagName": _SERIALIZER.url("express_route_lag_name", express_route_lag_name, "str"), + "linkName": _SERIALIZER.url("link_name", link_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_firewall_policies_get_request( resource_group_name: str, firewall_policy_name: str, @@ -4072,7 +4386,7 @@ def build_firewall_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4097,12 +4411,17 @@ def build_firewall_policies_get_request( def build_firewall_policies_create_or_update_request( # pylint: disable=name-too-long - resource_group_name: str, firewall_policy_name: str, subscription_id: str, **kwargs: Any + resource_group_name: str, + firewall_policy_name: str, + subscription_id: str, + *, + afc_managed_sync: Optional[bool] = None, + **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4118,6 +4437,8 @@ def build_firewall_policies_create_or_update_request( # pylint: disable=name-to # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if afc_managed_sync is not None: + _params["afcManagedSync"] = _SERIALIZER.query("afc_managed_sync", afc_managed_sync, "bool") # Construct headers if content_type is not None: @@ -4133,7 +4454,7 @@ def build_firewall_policies_update_tags_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4163,7 +4484,7 @@ def build_firewall_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}" path_format_arguments = { @@ -4184,7 +4505,7 @@ def build_firewall_policies_list_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4209,7 +4530,7 @@ def build_firewall_policies_list_all_request(subscription_id: str, **kwargs: Any _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4239,7 +4560,7 @@ def build_firewall_policy_rule_collection_groups_get_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4272,7 +4593,7 @@ def build_firewall_policy_rule_collection_groups_create_or_update_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4307,7 +4628,7 @@ def build_firewall_policy_rule_collection_groups_delete_request( # pylint: disa ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}" path_format_arguments = { @@ -4331,7 +4652,7 @@ def build_firewall_policy_rule_collection_groups_list_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4353,13 +4674,137 @@ def build_firewall_policy_rule_collection_groups_list_request( # pylint: disabl return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_firewall_policy_kube_selector_groups_get_request( # pylint: disable=name-too-long + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/kubeSelectorGroups/{kubeSelectorGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firewallPolicyName": _SERIALIZER.url("firewall_policy_name", firewall_policy_name, "str"), + "kubeSelectorGroupName": _SERIALIZER.url("kube_selector_group_name", kube_selector_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_firewall_policy_kube_selector_groups_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/kubeSelectorGroups/{kubeSelectorGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firewallPolicyName": _SERIALIZER.url("firewall_policy_name", firewall_policy_name, "str"), + "kubeSelectorGroupName": _SERIALIZER.url("kube_selector_group_name", kube_selector_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_firewall_policy_kube_selector_groups_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/kubeSelectorGroups/{kubeSelectorGroupName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firewallPolicyName": _SERIALIZER.url("firewall_policy_name", firewall_policy_name, "str"), + "kubeSelectorGroupName": _SERIALIZER.url("kube_selector_group_name", kube_selector_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_firewall_policy_kube_selector_groups_list_request( # pylint: disable=name-too-long + resource_group_name: str, firewall_policy_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/kubeSelectorGroups" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firewallPolicyName": _SERIALIZER.url("firewall_policy_name", firewall_policy_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_firewall_policy_idps_signatures_overrides_get_request( # pylint: disable=name-too-long resource_group_name: str, firewall_policy_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4387,7 +4832,7 @@ def build_firewall_policy_idps_signatures_overrides_put_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4418,7 +4863,7 @@ def build_firewall_policy_idps_signatures_overrides_patch_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4449,7 +4894,7 @@ def build_firewall_policy_idps_signatures_overrides_list_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4477,7 +4922,7 @@ def build_firewall_policy_drafts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4505,7 +4950,7 @@ def build_firewall_policy_drafts_create_or_update_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4535,7 +4980,7 @@ def build_firewall_policy_drafts_delete_request( # pylint: disable=name-too-lon ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default" path_format_arguments = { @@ -4562,7 +5007,7 @@ def build_firewall_policy_rule_collection_group_drafts_get_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4595,7 +5040,7 @@ def build_firewall_policy_rule_collection_group_drafts_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4630,7 +5075,7 @@ def build_firewall_policy_rule_collection_group_drafts_delete_request( # pylint ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default" path_format_arguments = { @@ -4654,7 +5099,7 @@ def build_ipam_pools_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4690,7 +5135,7 @@ def build_ipam_pools_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4735,7 +5180,7 @@ def build_ipam_pools_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4780,7 +5225,7 @@ def build_ipam_pools_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}" path_format_arguments = { @@ -4821,7 +5266,7 @@ def build_ipam_pools_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4859,7 +5304,7 @@ def build_ipam_pools_get_pool_usage_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4888,7 +5333,7 @@ def build_ipam_pools_list_associated_resources_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4917,7 +5362,7 @@ def build_network_managers_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4945,7 +5390,7 @@ def build_network_managers_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4976,7 +5421,7 @@ def build_network_managers_patch_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5011,7 +5456,7 @@ def build_network_managers_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}" path_format_arguments = { @@ -5041,7 +5486,7 @@ def build_network_managers_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5074,7 +5519,7 @@ def build_network_managers_list_by_subscription_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5109,7 +5554,7 @@ def build_static_cidrs_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5144,7 +5589,7 @@ def build_static_cidrs_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5181,7 +5626,7 @@ def build_static_cidrs_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}" path_format_arguments = { @@ -5216,7 +5661,7 @@ def build_static_cidrs_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5260,7 +5705,7 @@ def build_ip_allocations_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5290,7 +5735,7 @@ def build_ip_allocations_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5321,7 +5766,7 @@ def build_ip_allocations_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5351,7 +5796,7 @@ def build_ip_allocations_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}" path_format_arguments = { @@ -5374,7 +5819,7 @@ def build_ip_allocations_list_by_resource_group_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5401,7 +5846,7 @@ def build_ip_allocations_list_request(subscription_id: str, **kwargs: Any) -> Ht _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5427,7 +5872,7 @@ def build_ip_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5457,7 +5902,7 @@ def build_ip_groups_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5488,7 +5933,7 @@ def build_ip_groups_update_groups_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5518,7 +5963,7 @@ def build_ip_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}" path_format_arguments = { @@ -5541,7 +5986,7 @@ def build_ip_groups_list_by_resource_group_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5566,7 +6011,7 @@ def build_ip_groups_list_request(subscription_id: str, **kwargs: Any) -> HttpReq _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5598,7 +6043,7 @@ def build_load_balancers_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5630,7 +6075,7 @@ def build_load_balancers_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5661,7 +6106,7 @@ def build_load_balancers_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5691,7 +6136,7 @@ def build_load_balancers_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}" path_format_arguments = { @@ -5712,7 +6157,7 @@ def build_load_balancers_list_request(resource_group_name: str, subscription_id: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5739,7 +6184,7 @@ def build_load_balancers_list_all_request(subscription_id: str, **kwargs: Any) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5765,7 +6210,7 @@ def build_load_balancers_migrate_to_ip_based_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5796,7 +6241,7 @@ def build_load_balancers_list_inbound_nat_rule_port_mappings_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5828,7 +6273,7 @@ def build_load_balancers_swap_public_ip_addresses_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/setLoadBalancerFrontendPublicIpAddresses" @@ -5861,7 +6306,7 @@ def build_inbound_nat_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5892,7 +6337,7 @@ def build_inbound_nat_rules_create_or_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5923,7 +6368,7 @@ def build_inbound_nat_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}" path_format_arguments = { @@ -5947,7 +6392,7 @@ def build_inbound_nat_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5980,7 +6425,7 @@ def build_nat_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6010,7 +6455,7 @@ def build_nat_gateways_create_or_update_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6041,7 +6486,7 @@ def build_nat_gateways_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6071,7 +6516,7 @@ def build_nat_gateways_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}" path_format_arguments = { @@ -6092,7 +6537,7 @@ def build_nat_gateways_list_request(resource_group_name: str, subscription_id: s _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6117,7 +6562,7 @@ def build_nat_gateways_list_all_request(subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6147,7 +6592,7 @@ def build_network_interface_ip_configurations_get_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6176,7 +6621,7 @@ def build_network_interface_ip_configurations_list_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6208,7 +6653,7 @@ def build_network_interface_tap_configurations_get_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6241,7 +6686,7 @@ def build_network_interface_tap_configurations_create_or_update_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6276,7 +6721,7 @@ def build_network_interface_tap_configurations_delete_request( # pylint: disabl ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}" path_format_arguments = { @@ -6300,7 +6745,7 @@ def build_network_interface_tap_configurations_list_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6328,7 +6773,7 @@ def build_management_group_network_manager_connections_get_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6357,7 +6802,7 @@ def build_management_group_network_manager_connections_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6388,7 +6833,7 @@ def build_management_group_network_manager_connections_delete_request( # pylint ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}" path_format_arguments = { @@ -6412,7 +6857,7 @@ def build_management_group_network_manager_connections_list_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6442,7 +6887,7 @@ def build_connectivity_configurations_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6471,7 +6916,7 @@ def build_connectivity_configurations_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6508,7 +6953,7 @@ def build_connectivity_configurations_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}" path_format_arguments = { @@ -6540,7 +6985,7 @@ def build_connectivity_configurations_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6572,7 +7017,7 @@ def build_network_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6608,7 +7053,7 @@ def build_network_groups_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6651,7 +7096,7 @@ def build_network_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}" path_format_arguments = { @@ -6683,7 +7128,7 @@ def build_network_groups_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6720,7 +7165,7 @@ def build_static_members_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6755,7 +7200,7 @@ def build_static_members_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6792,7 +7237,7 @@ def build_static_members_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}" path_format_arguments = { @@ -6824,7 +7269,7 @@ def build_static_members_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6857,7 +7302,7 @@ def build_network_manager_routing_configurations_get_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6886,7 +7331,7 @@ def build_network_manager_routing_configurations_create_or_update_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -6923,7 +7368,7 @@ def build_network_manager_routing_configurations_delete_request( # pylint: disa ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}" path_format_arguments = { @@ -6955,7 +7400,7 @@ def build_network_manager_routing_configurations_list_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -6992,7 +7437,7 @@ def build_routing_rule_collections_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7027,7 +7472,7 @@ def build_routing_rule_collections_create_or_update_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7066,7 +7511,7 @@ def build_routing_rule_collections_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}" path_format_arguments = { @@ -7100,7 +7545,7 @@ def build_routing_rule_collections_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7139,7 +7584,7 @@ def build_routing_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7176,7 +7621,7 @@ def build_routing_rules_create_or_update_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7217,7 +7662,7 @@ def build_routing_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}" path_format_arguments = { @@ -7253,7 +7698,7 @@ def build_routing_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7287,7 +7732,7 @@ def build_scope_connections_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7316,7 +7761,7 @@ def build_scope_connections_create_or_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7347,7 +7792,7 @@ def build_scope_connections_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}" path_format_arguments = { @@ -7377,7 +7822,7 @@ def build_scope_connections_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7409,7 +7854,7 @@ def build_commits_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7438,7 +7883,7 @@ def build_commits_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7469,7 +7914,7 @@ def build_commits_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commits/{commitName}" path_format_arguments = { @@ -7499,7 +7944,7 @@ def build_commits_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7531,7 +7976,7 @@ def build_security_admin_configurations_get_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7560,7 +8005,7 @@ def build_security_admin_configurations_create_or_update_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7597,7 +8042,7 @@ def build_security_admin_configurations_delete_request( # pylint: disable=name- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}" path_format_arguments = { @@ -7629,7 +8074,7 @@ def build_security_admin_configurations_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7666,7 +8111,7 @@ def build_admin_rule_collections_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7701,7 +8146,7 @@ def build_admin_rule_collections_create_or_update_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7740,7 +8185,7 @@ def build_admin_rule_collections_delete_request( # pylint: disable=name-too-lon ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}" path_format_arguments = { @@ -7774,7 +8219,7 @@ def build_admin_rule_collections_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7807,7 +8252,7 @@ def build_security_user_configurations_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7836,7 +8281,7 @@ def build_security_user_configurations_create_or_update_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -7873,7 +8318,7 @@ def build_security_user_configurations_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}" path_format_arguments = { @@ -7905,7 +8350,7 @@ def build_security_user_configurations_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7942,7 +8387,7 @@ def build_security_user_rule_collections_get_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -7977,7 +8422,7 @@ def build_security_user_rule_collections_create_or_update_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8016,7 +8461,7 @@ def build_security_user_rule_collections_delete_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}" path_format_arguments = { @@ -8050,7 +8495,7 @@ def build_security_user_rule_collections_list_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8089,7 +8534,7 @@ def build_security_user_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8126,7 +8571,7 @@ def build_security_user_rules_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8167,7 +8612,7 @@ def build_security_user_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityUserConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}" path_format_arguments = { @@ -8203,7 +8648,7 @@ def build_security_user_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8242,7 +8687,7 @@ def build_network_profiles_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8272,7 +8717,7 @@ def build_network_profiles_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8303,7 +8748,7 @@ def build_network_profiles_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8333,7 +8778,7 @@ def build_network_profiles_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}" path_format_arguments = { @@ -8354,7 +8799,7 @@ def build_network_profiles_list_request(resource_group_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8381,7 +8826,7 @@ def build_network_profiles_list_all_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8412,7 +8857,7 @@ def build_network_security_groups_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8442,7 +8887,7 @@ def build_network_security_groups_create_or_update_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8473,7 +8918,7 @@ def build_network_security_groups_update_tags_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8503,7 +8948,7 @@ def build_network_security_groups_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}" path_format_arguments = { @@ -8526,7 +8971,7 @@ def build_network_security_groups_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8553,7 +8998,7 @@ def build_network_security_groups_list_all_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8583,7 +9028,7 @@ def build_security_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8616,7 +9061,7 @@ def build_security_rules_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8651,7 +9096,7 @@ def build_security_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}" path_format_arguments = { @@ -8675,7 +9120,7 @@ def build_security_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8707,7 +9152,7 @@ def build_default_security_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8736,7 +9181,7 @@ def build_default_security_rules_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8764,7 +9209,7 @@ def build_network_security_perimeters_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8794,7 +9239,7 @@ def build_network_security_perimeters_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8827,7 +9272,7 @@ def build_network_security_perimeters_patch_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -8864,7 +9309,7 @@ def build_network_security_perimeters_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}" path_format_arguments = { @@ -8896,7 +9341,7 @@ def build_network_security_perimeters_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8927,7 +9372,7 @@ def build_network_security_perimeters_list_by_subscription_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8962,7 +9407,7 @@ def build_reachability_analysis_intents_get_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -8999,7 +9444,7 @@ def build_reachability_analysis_intents_create_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9038,7 +9483,7 @@ def build_reachability_analysis_intents_delete_request( # pylint: disable=name- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}" path_format_arguments = { @@ -9075,7 +9520,7 @@ def build_reachability_analysis_intents_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9114,7 +9559,7 @@ def build_verifier_workspaces_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9150,7 +9595,7 @@ def build_verifier_workspaces_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9195,7 +9640,7 @@ def build_verifier_workspaces_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9240,7 +9685,7 @@ def build_verifier_workspaces_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}" path_format_arguments = { @@ -9281,7 +9726,7 @@ def build_verifier_workspaces_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9324,7 +9769,7 @@ def build_reachability_analysis_runs_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9361,7 +9806,7 @@ def build_reachability_analysis_runs_create_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9400,7 +9845,7 @@ def build_reachability_analysis_runs_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}" path_format_arguments = { @@ -9437,7 +9882,7 @@ def build_reachability_analysis_runs_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9480,7 +9925,7 @@ def build_network_virtual_appliance_connections_create_or_update_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9518,7 +9963,7 @@ def build_network_virtual_appliance_connections_get_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9552,7 +9997,7 @@ def build_network_virtual_appliance_connections_delete_request( # pylint: disab ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}" path_format_arguments = { @@ -9578,7 +10023,7 @@ def build_network_virtual_appliance_connections_list_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9613,7 +10058,7 @@ def build_network_virtual_appliances_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9645,7 +10090,7 @@ def build_network_virtual_appliances_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9678,7 +10123,7 @@ def build_network_virtual_appliances_update_tags_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9710,7 +10155,7 @@ def build_network_virtual_appliances_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}" path_format_arguments = { @@ -9735,7 +10180,7 @@ def build_network_virtual_appliances_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9762,7 +10207,7 @@ def build_network_virtual_appliances_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9788,7 +10233,7 @@ def build_network_virtual_appliances_restart_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9821,7 +10266,7 @@ def build_network_virtual_appliances_reimage_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9854,7 +10299,7 @@ def build_network_virtual_appliances_get_boot_diagnostic_logs_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9881,13 +10326,127 @@ def build_network_virtual_appliances_get_boot_diagnostic_logs_request( # pylint return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_network_virtual_appliances_prepare_migration_request( # pylint: disable=name-too-long + resource_group_name: str, network_virtual_appliance_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/prepareMigration" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkVirtualApplianceName": _SERIALIZER.url( + "network_virtual_appliance_name", network_virtual_appliance_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_virtual_appliances_execute_migration_request( # pylint: disable=name-too-long + resource_group_name: str, network_virtual_appliance_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/executeMigration" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkVirtualApplianceName": _SERIALIZER.url( + "network_virtual_appliance_name", network_virtual_appliance_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_virtual_appliances_commit_migration_request( # pylint: disable=name-too-long + resource_group_name: str, network_virtual_appliance_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/commitMigration" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkVirtualApplianceName": _SERIALIZER.url( + "network_virtual_appliance_name", network_virtual_appliance_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_virtual_appliances_abort_migration_request( # pylint: disable=name-too-long + resource_group_name: str, network_virtual_appliance_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/abortMigration" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkVirtualApplianceName": _SERIALIZER.url( + "network_virtual_appliance_name", network_virtual_appliance_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + def build_virtual_appliance_sites_get_request( # pylint: disable=name-too-long resource_group_name: str, network_virtual_appliance_name: str, site_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -9918,7 +10477,7 @@ def build_virtual_appliance_sites_create_or_update_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -9951,7 +10510,7 @@ def build_virtual_appliance_sites_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}" path_format_arguments = { @@ -9977,7 +10536,7 @@ def build_virtual_appliance_sites_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10007,7 +10566,7 @@ def build_network_watchers_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10035,7 +10594,7 @@ def build_network_watchers_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10066,7 +10625,7 @@ def build_network_watchers_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10096,7 +10655,7 @@ def build_network_watchers_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}" path_format_arguments = { @@ -10117,7 +10676,7 @@ def build_network_watchers_list_request(resource_group_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10144,7 +10703,7 @@ def build_network_watchers_list_all_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10170,7 +10729,7 @@ def build_network_watchers_get_topology_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10201,7 +10760,7 @@ def build_network_watchers_verify_ip_flow_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10232,7 +10791,7 @@ def build_network_watchers_get_next_hop_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10263,7 +10822,7 @@ def build_network_watchers_get_vm_security_rules_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10294,7 +10853,7 @@ def build_network_watchers_get_troubleshooting_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10325,7 +10884,7 @@ def build_network_watchers_get_troubleshooting_result_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10356,7 +10915,7 @@ def build_network_watchers_set_flow_log_configuration_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10387,7 +10946,7 @@ def build_network_watchers_get_flow_log_status_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10418,7 +10977,7 @@ def build_network_watchers_check_connectivity_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10449,7 +11008,7 @@ def build_network_watchers_get_azure_reachability_report_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10480,7 +11039,7 @@ def build_network_watchers_list_available_providers_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10511,7 +11070,7 @@ def build_network_watchers_get_network_configuration_diagnostic_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10536,13 +11095,206 @@ def build_network_watchers_get_network_configuration_diagnostic_request( # pyli return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_network_watchers_connection_analyzers_create_request( # pylint: disable=name-too-long + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers/{connectionAnalyzerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + "connectionAnalyzerName": _SERIALIZER.url("connection_analyzer_name", connection_analyzer_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_watchers_connection_analyzers_get_request( # pylint: disable=name-too-long + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers/{connectionAnalyzerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + "connectionAnalyzerName": _SERIALIZER.url("connection_analyzer_name", connection_analyzer_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_watchers_connection_analyzers_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers/{connectionAnalyzerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + "connectionAnalyzerName": _SERIALIZER.url("connection_analyzer_name", connection_analyzer_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_network_watchers_connection_analyzers_update_tags_request( # pylint: disable=name-too-long + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers/{connectionAnalyzerName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + "connectionAnalyzerName": _SERIALIZER.url("connection_analyzer_name", connection_analyzer_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_watchers_connection_analyzers_list_request( # pylint: disable=name-too-long + resource_group_name: str, network_watcher_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_network_watchers_connection_analyzers_query_request( # pylint: disable=name-too-long + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionAnalyzers/{connectionAnalyzerName}/query" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "networkWatcherName": _SERIALIZER.url("network_watcher_name", network_watcher_name, "str"), + "connectionAnalyzerName": _SERIALIZER.url("connection_analyzer_name", connection_analyzer_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_flow_logs_get_request( resource_group_name: str, network_watcher_name: str, flow_log_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10571,7 +11323,7 @@ def build_flow_logs_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10603,7 +11355,7 @@ def build_flow_logs_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10634,7 +11386,7 @@ def build_flow_logs_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}" path_format_arguments = { @@ -10658,7 +11410,7 @@ def build_flow_logs_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10691,7 +11443,7 @@ def build_private_endpoints_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10721,7 +11473,7 @@ def build_private_endpoints_create_or_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10751,7 +11503,7 @@ def build_private_endpoints_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}" path_format_arguments = { @@ -10772,7 +11524,7 @@ def build_private_endpoints_list_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10799,7 +11551,7 @@ def build_private_endpoints_list_by_subscription_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10825,7 +11577,7 @@ def build_private_link_services_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10855,7 +11607,7 @@ def build_private_link_services_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -10885,7 +11637,7 @@ def build_private_link_services_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}" path_format_arguments = { @@ -10908,7 +11660,7 @@ def build_private_link_services_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10935,7 +11687,7 @@ def build_private_link_services_list_by_subscription_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10967,7 +11719,7 @@ def build_private_link_services_get_private_endpoint_connection_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -10998,7 +11750,7 @@ def build_private_link_services_update_private_endpoint_connection_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11029,7 +11781,7 @@ def build_private_link_services_delete_private_endpoint_connection_request( # p ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}" path_format_arguments = { @@ -11053,7 +11805,7 @@ def build_private_link_services_list_private_endpoint_connections_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11081,7 +11833,7 @@ def build_private_link_services_check_private_link_service_visibility_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11112,7 +11864,7 @@ def build_private_link_services_check_private_link_service_visibility_by_resourc _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11142,7 +11894,7 @@ def build_private_link_services_list_auto_approved_private_link_services_request _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11169,7 +11921,7 @@ def build_private_link_services_list_auto_approved_private_link_services_by_reso _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11202,7 +11954,7 @@ def build_public_ip_prefixes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11232,7 +11984,7 @@ def build_public_ip_prefixes_create_or_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11263,7 +12015,7 @@ def build_public_ip_prefixes_update_tags_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11293,7 +12045,7 @@ def build_public_ip_prefixes_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}" path_format_arguments = { @@ -11314,7 +12066,7 @@ def build_public_ip_prefixes_list_request(resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11341,7 +12093,7 @@ def build_public_ip_prefixes_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11372,7 +12124,7 @@ def build_route_filters_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11402,7 +12154,7 @@ def build_route_filters_create_or_update_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11433,7 +12185,7 @@ def build_route_filters_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11463,7 +12215,7 @@ def build_route_filters_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}" path_format_arguments = { @@ -11486,7 +12238,7 @@ def build_route_filters_list_by_resource_group_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11511,7 +12263,7 @@ def build_route_filters_list_request(subscription_id: str, **kwargs: Any) -> Htt _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11542,7 +12294,7 @@ def build_route_tables_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11572,7 +12324,7 @@ def build_route_tables_create_or_update_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11603,7 +12355,7 @@ def build_route_tables_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11633,7 +12385,7 @@ def build_route_tables_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}" path_format_arguments = { @@ -11654,7 +12406,7 @@ def build_route_tables_list_request(resource_group_name: str, subscription_id: s _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11679,7 +12431,7 @@ def build_route_tables_list_all_request(subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11705,7 +12457,7 @@ def build_routes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11734,7 +12486,7 @@ def build_routes_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11765,7 +12517,7 @@ def build_routes_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}" path_format_arguments = { @@ -11789,7 +12541,7 @@ def build_routes_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11817,7 +12569,7 @@ def build_security_partner_providers_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11847,7 +12599,7 @@ def build_security_partner_providers_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11880,7 +12632,7 @@ def build_security_partner_providers_update_tags_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -11912,7 +12664,7 @@ def build_security_partner_providers_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}" path_format_arguments = { @@ -11937,7 +12689,7 @@ def build_security_partner_providers_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11964,7 +12716,7 @@ def build_security_partner_providers_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -11995,7 +12747,7 @@ def build_service_endpoint_policies_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12027,7 +12779,7 @@ def build_service_endpoint_policies_create_or_update_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12060,7 +12812,7 @@ def build_service_endpoint_policies_update_tags_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12092,7 +12844,7 @@ def build_service_endpoint_policies_delete_request( # pylint: disable=name-too- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}" path_format_arguments = { @@ -12117,7 +12869,7 @@ def build_service_endpoint_policies_list_by_resource_group_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12144,7 +12896,7 @@ def build_service_endpoint_policies_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12174,7 +12926,7 @@ def build_service_endpoint_policy_definitions_get_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12211,7 +12963,7 @@ def build_service_endpoint_policy_definitions_create_or_update_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12250,7 +13002,7 @@ def build_service_endpoint_policy_definitions_delete_request( # pylint: disable ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}" path_format_arguments = { @@ -12278,7 +13030,7 @@ def build_service_endpoint_policy_definitions_list_by_resource_group_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12313,7 +13065,7 @@ def build_virtual_networks_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12343,7 +13095,7 @@ def build_virtual_networks_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12374,7 +13126,7 @@ def build_virtual_networks_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12404,7 +13156,7 @@ def build_virtual_networks_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}" path_format_arguments = { @@ -12425,7 +13177,7 @@ def build_virtual_networks_list_request(resource_group_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12452,7 +13204,7 @@ def build_virtual_networks_list_all_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12478,7 +13230,7 @@ def build_virtual_networks_check_ip_address_availability_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12507,7 +13259,7 @@ def build_virtual_networks_list_usage_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12541,7 +13293,7 @@ def build_virtual_networks_list_ddos_protection_status_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12567,6 +13319,34 @@ def build_virtual_networks_list_ddos_protection_status_request( # pylint: disab return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_virtual_networks_move_ip_configurations_request( # pylint: disable=name-too-long + resource_group_name: str, virtual_network_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/moveIpConfigurations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "virtualNetworkName": _SERIALIZER.url("virtual_network_name", virtual_network_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_subnets_get_request( resource_group_name: str, virtual_network_name: str, @@ -12579,7 +13359,7 @@ def build_subnets_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12610,7 +13390,7 @@ def build_subnets_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12641,7 +13421,7 @@ def build_subnets_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}" path_format_arguments = { @@ -12665,7 +13445,7 @@ def build_subnets_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12693,7 +13473,7 @@ def build_subnets_prepare_network_policies_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/prepareNetworkPolicies" @@ -12722,7 +13502,7 @@ def build_subnets_unprepare_network_policies_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/unprepareNetworkPolicies" @@ -12755,7 +13535,7 @@ def build_virtual_network_peerings_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12792,7 +13572,7 @@ def build_virtual_network_peerings_create_or_update_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12833,7 +13613,7 @@ def build_virtual_network_peerings_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}" path_format_arguments = { @@ -12859,7 +13639,7 @@ def build_virtual_network_peerings_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12887,7 +13667,7 @@ def build_virtual_network_gateways_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -12917,7 +13697,7 @@ def build_virtual_network_gateways_create_or_update_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12950,7 +13730,7 @@ def build_virtual_network_gateways_update_tags_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -12982,7 +13762,7 @@ def build_virtual_network_gateways_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}" path_format_arguments = { @@ -13007,7 +13787,7 @@ def build_virtual_network_gateways_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13034,7 +13814,7 @@ def build_virtual_network_gateways_list_connections_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13069,7 +13849,7 @@ def build_virtual_network_gateways_reset_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13100,7 +13880,7 @@ def build_virtual_network_gateways_reset_vpn_client_shared_key_request( # pylin ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey" path_format_arguments = { @@ -13125,7 +13905,7 @@ def build_virtual_network_gateways_generatevpnclientpackage_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13158,7 +13938,7 @@ def build_virtual_network_gateways_generate_vpn_profile_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13191,7 +13971,7 @@ def build_virtual_network_gateways_get_vpn_profile_package_url_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13226,7 +14006,7 @@ def build_virtual_network_gateways_get_bgp_peer_status_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13258,7 +14038,7 @@ def build_virtual_network_gateways_supported_vpn_devices_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13288,7 +14068,7 @@ def build_virtual_network_gateways_list_radius_secrets_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13318,7 +14098,7 @@ def build_virtual_network_gateways_get_learned_routes_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13348,7 +14128,7 @@ def build_virtual_network_gateways_get_advertised_routes_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13373,6 +14153,36 @@ def build_virtual_network_gateways_get_advertised_routes_request( # pylint: dis return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_virtual_network_gateways_get_effective_routes_request( # pylint: disable=name-too-long + resource_group_name: str, virtual_network_gateway_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getEffectiveRoutes" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "virtualNetworkGatewayName": _SERIALIZER.url( + "virtual_network_gateway_name", virtual_network_gateway_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_virtual_network_gateways_get_resiliency_information_request( # pylint: disable=name-too-long resource_group_name: str, virtual_network_gateway_name: str, @@ -13384,7 +14194,7 @@ def build_virtual_network_gateways_get_resiliency_information_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13421,7 +14231,7 @@ def build_virtual_network_gateways_get_routes_information_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13453,7 +14263,7 @@ def build_virtual_network_gateways_set_vpnclient_ipsec_parameters_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13486,7 +14296,7 @@ def build_virtual_network_gateways_get_vpnclient_ipsec_parameters_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13516,7 +14326,7 @@ def build_virtual_network_gateways_start_packet_capture_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13549,7 +14359,7 @@ def build_virtual_network_gateways_stop_packet_capture_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13588,7 +14398,7 @@ def build_virtual_network_gateways_get_failover_all_test_details_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13626,7 +14436,7 @@ def build_virtual_network_gateways_get_failover_single_test_details_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13663,7 +14473,7 @@ def build_virtual_network_gateways_start_express_route_site_failover_simulation_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13694,7 +14504,7 @@ def build_virtual_network_gateways_stop_express_route_site_failover_simulation_r _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13727,7 +14537,7 @@ def build_virtual_network_gateways_get_vpnclient_connection_health_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13757,7 +14567,7 @@ def build_virtual_network_gateways_disconnect_virtual_network_gateway_vpn_connec _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections" @@ -13787,7 +14597,7 @@ def build_virtual_network_gateways_invoke_prepare_migration_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/prepareMigration" @@ -13816,7 +14626,7 @@ def build_virtual_network_gateways_invoke_execute_migration_request( # pylint: ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/executeMigration" path_format_arguments = { @@ -13840,7 +14650,7 @@ def build_virtual_network_gateways_invoke_commit_migration_request( # pylint: d ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/commitMigration" path_format_arguments = { @@ -13864,7 +14674,7 @@ def build_virtual_network_gateways_invoke_abort_migration_request( # pylint: di ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/abortMigration" path_format_arguments = { @@ -13889,7 +14699,7 @@ def build_virtual_network_gateways_vpn_device_configuration_script_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13922,7 +14732,7 @@ def build_virtual_network_gateway_connections_get_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -13952,7 +14762,7 @@ def build_virtual_network_gateway_connections_create_or_update_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -13985,7 +14795,7 @@ def build_virtual_network_gateway_connections_update_tags_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14017,7 +14827,7 @@ def build_virtual_network_gateway_connections_delete_request( # pylint: disable ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}" path_format_arguments = { @@ -14042,7 +14852,7 @@ def build_virtual_network_gateway_connections_list_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14069,7 +14879,7 @@ def build_virtual_network_gateway_connections_set_shared_key_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14102,7 +14912,7 @@ def build_virtual_network_gateway_connections_get_shared_key_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14132,7 +14942,7 @@ def build_virtual_network_gateway_connections_reset_shared_key_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14165,7 +14975,7 @@ def build_virtual_network_gateway_connections_start_packet_capture_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14198,7 +15008,7 @@ def build_virtual_network_gateway_connections_stop_packet_capture_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14231,7 +15041,7 @@ def build_virtual_network_gateway_connections_get_ike_sas_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14260,7 +15070,7 @@ def build_virtual_network_gateway_connections_reset_connection_request( # pylin ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection" path_format_arguments = { @@ -14285,7 +15095,7 @@ def build_local_network_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14313,7 +15123,7 @@ def build_local_network_gateways_create_or_update_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14344,7 +15154,7 @@ def build_local_network_gateways_update_tags_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14374,7 +15184,7 @@ def build_local_network_gateways_delete_request( # pylint: disable=name-too-lon ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}" path_format_arguments = { @@ -14397,7 +15207,7 @@ def build_local_network_gateways_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14424,7 +15234,7 @@ def build_virtual_network_gateway_nat_rules_get_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14455,7 +15265,7 @@ def build_virtual_network_gateway_nat_rules_create_or_update_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14488,7 +15298,7 @@ def build_virtual_network_gateway_nat_rules_delete_request( # pylint: disable=n ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}" path_format_arguments = { @@ -14514,7 +15324,7 @@ def build_virtual_network_gateway_nat_rules_list_by_virtual_network_gateway_requ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14544,7 +15354,7 @@ def build_virtual_network_taps_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14572,7 +15382,7 @@ def build_virtual_network_taps_create_or_update_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14603,7 +15413,7 @@ def build_virtual_network_taps_update_tags_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14633,7 +15443,7 @@ def build_virtual_network_taps_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}" path_format_arguments = { @@ -14656,7 +15466,7 @@ def build_virtual_network_taps_list_by_resource_group_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14683,7 +15493,7 @@ def build_virtual_network_taps_list_all_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14714,7 +15524,7 @@ def build_virtual_routers_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14744,7 +15554,7 @@ def build_virtual_routers_create_or_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14774,7 +15584,7 @@ def build_virtual_routers_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}" path_format_arguments = { @@ -14797,7 +15607,7 @@ def build_virtual_routers_list_by_resource_group_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14824,7 +15634,7 @@ def build_virtual_routers_list_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14850,7 +15660,7 @@ def build_virtual_router_peerings_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14879,7 +15689,7 @@ def build_virtual_router_peerings_create_or_update_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -14910,7 +15720,7 @@ def build_virtual_router_peerings_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}" path_format_arguments = { @@ -14934,7 +15744,7 @@ def build_virtual_router_peerings_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14962,7 +15772,7 @@ def build_virtual_wans_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -14990,7 +15800,7 @@ def build_virtual_wans_create_or_update_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15021,7 +15831,7 @@ def build_virtual_wans_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15051,7 +15861,7 @@ def build_virtual_wans_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}" path_format_arguments = { @@ -15074,7 +15884,7 @@ def build_virtual_wans_list_by_resource_group_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15099,7 +15909,7 @@ def build_virtual_wans_list_request(subscription_id: str, **kwargs: Any) -> Http _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15125,7 +15935,7 @@ def build_vpn_sites_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15153,7 +15963,7 @@ def build_vpn_sites_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15184,7 +15994,7 @@ def build_vpn_sites_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15214,7 +16024,7 @@ def build_vpn_sites_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}" path_format_arguments = { @@ -15237,7 +16047,7 @@ def build_vpn_sites_list_by_resource_group_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15262,7 +16072,7 @@ def build_vpn_sites_list_request(subscription_id: str, **kwargs: Any) -> HttpReq _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15288,7 +16098,7 @@ def build_vpn_site_links_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15317,7 +16127,7 @@ def build_vpn_site_links_list_by_vpn_site_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15345,7 +16155,7 @@ def build_vpn_server_configurations_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15375,7 +16185,7 @@ def build_vpn_server_configurations_create_or_update_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15408,7 +16218,7 @@ def build_vpn_server_configurations_update_tags_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15440,7 +16250,7 @@ def build_vpn_server_configurations_delete_request( # pylint: disable=name-too- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}" path_format_arguments = { @@ -15465,7 +16275,7 @@ def build_vpn_server_configurations_list_by_resource_group_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15492,7 +16302,7 @@ def build_vpn_server_configurations_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15518,7 +16328,7 @@ def build_vpn_server_configurations_list_radius_secrets_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15548,7 +16358,7 @@ def build_virtual_hubs_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15576,7 +16386,7 @@ def build_virtual_hubs_create_or_update_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15607,7 +16417,7 @@ def build_virtual_hubs_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15637,7 +16447,7 @@ def build_virtual_hubs_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}" path_format_arguments = { @@ -15660,7 +16470,7 @@ def build_virtual_hubs_list_by_resource_group_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15685,7 +16495,7 @@ def build_virtual_hubs_list_request(subscription_id: str, **kwargs: Any) -> Http _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15711,7 +16521,7 @@ def build_virtual_hubs_get_effective_virtual_hub_routes_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15742,7 +16552,7 @@ def build_virtual_hubs_get_inbound_routes_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15773,7 +16583,7 @@ def build_virtual_hubs_get_outbound_routes_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15804,7 +16614,7 @@ def build_route_maps_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15833,7 +16643,7 @@ def build_route_maps_create_or_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15864,7 +16674,7 @@ def build_route_maps_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}" path_format_arguments = { @@ -15888,7 +16698,7 @@ def build_route_maps_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15916,7 +16726,7 @@ def build_vpn_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -15944,7 +16754,7 @@ def build_vpn_gateways_create_or_update_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -15975,7 +16785,7 @@ def build_vpn_gateways_update_tags_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16005,7 +16815,7 @@ def build_vpn_gateways_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}" path_format_arguments = { @@ -16028,7 +16838,7 @@ def build_vpn_gateways_list_by_resource_group_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16053,7 +16863,7 @@ def build_vpn_gateways_list_request(subscription_id: str, **kwargs: Any) -> Http _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16084,7 +16894,7 @@ def build_vpn_gateways_reset_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16114,7 +16924,7 @@ def build_vpn_gateways_start_packet_capture_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16145,7 +16955,7 @@ def build_vpn_gateways_stop_packet_capture_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16181,7 +16991,7 @@ def build_vpn_site_link_connections_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16211,7 +17021,7 @@ def build_p2_svpn_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16239,7 +17049,7 @@ def build_p2_svpn_gateways_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16270,7 +17080,7 @@ def build_p2_svpn_gateways_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16300,7 +17110,7 @@ def build_p2_svpn_gateways_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}" path_format_arguments = { @@ -16323,7 +17133,7 @@ def build_p2_svpn_gateways_list_by_resource_group_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16350,7 +17160,7 @@ def build_p2_svpn_gateways_list_request(subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16376,7 +17186,7 @@ def build_p2_svpn_gateways_reset_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16404,7 +17214,7 @@ def build_p2_svpn_gateways_generate_vpn_profile_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16435,7 +17245,7 @@ def build_p2_svpn_gateways_get_p2_s_vpn_connection_health_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16463,7 +17273,7 @@ def build_p2_svpn_gateways_get_p2_s_vpn_connection_health_detailed_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16494,7 +17304,7 @@ def build_p2_svpn_gateways_disconnect_p2_s_vpn_connections_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections" @@ -16522,7 +17332,7 @@ def build_express_route_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16550,7 +17360,7 @@ def build_express_route_gateways_create_or_update_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16581,7 +17391,7 @@ def build_express_route_gateways_update_tags_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16611,7 +17421,7 @@ def build_express_route_gateways_delete_request( # pylint: disable=name-too-lon ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}" path_format_arguments = { @@ -16634,7 +17444,7 @@ def build_express_route_gateways_list_by_resource_group_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16661,7 +17471,7 @@ def build_express_route_gateways_list_by_subscription_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16693,7 +17503,7 @@ def build_express_route_gateways_get_failover_all_tests_details_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16731,7 +17541,7 @@ def build_express_route_gateways_get_failover_single_test_details_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16766,7 +17576,7 @@ def build_express_route_gateways_start_site_failover_test_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16795,7 +17605,7 @@ def build_express_route_gateways_stop_site_failover_test_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16831,7 +17641,7 @@ def build_express_route_gateways_get_routes_information_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16866,7 +17676,7 @@ def build_express_route_gateways_get_resiliency_information_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16896,7 +17706,7 @@ def build_hub_route_tables_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -16925,7 +17735,7 @@ def build_hub_route_tables_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -16956,7 +17766,7 @@ def build_hub_route_tables_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}" path_format_arguments = { @@ -16980,7 +17790,7 @@ def build_hub_route_tables_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17008,7 +17818,7 @@ def build_connection_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17037,7 +17847,7 @@ def build_connection_policies_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17068,7 +17878,7 @@ def build_connection_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/connectionPolicies/{connectionPolicyName}" path_format_arguments = { @@ -17092,7 +17902,7 @@ def build_connection_policies_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17120,7 +17930,7 @@ def build_web_application_firewall_policies_get_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17148,7 +17958,7 @@ def build_web_application_firewall_policies_create_or_update_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17178,7 +17988,7 @@ def build_web_application_firewall_policies_delete_request( # pylint: disable=n ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}" path_format_arguments = { @@ -17201,7 +18011,7 @@ def build_web_application_firewall_policies_list_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17228,7 +18038,7 @@ def build_web_application_firewall_policies_list_all_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17256,7 +18066,7 @@ def build_virtual_network_appliances_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17286,7 +18096,7 @@ def build_virtual_network_appliances_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17319,7 +18129,7 @@ def build_virtual_network_appliances_update_tags_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17351,7 +18161,7 @@ def build_virtual_network_appliances_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkAppliances/{virtualNetworkApplianceName}" path_format_arguments = { @@ -17376,7 +18186,7 @@ def build_virtual_network_appliances_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17403,7 +18213,7 @@ def build_virtual_network_appliances_list_all_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17429,7 +18239,7 @@ def build_service_gateways_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17457,7 +18267,7 @@ def build_service_gateways_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17488,7 +18298,7 @@ def build_service_gateways_update_tags_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17518,7 +18328,7 @@ def build_service_gateways_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}" path_format_arguments = { @@ -17539,7 +18349,7 @@ def build_service_gateways_list_request(resource_group_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17566,7 +18376,7 @@ def build_service_gateways_list_all_request(subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17592,8 +18402,10 @@ def build_service_gateways_update_address_locations_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/updateAddressLocations" path_format_arguments = { @@ -17610,6 +18422,7 @@ def build_service_gateways_update_address_locations_request( # pylint: disable= # Construct headers if content_type is not None: _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) @@ -17620,8 +18433,10 @@ def build_service_gateways_update_services_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceGateways/{serviceGatewayName}/updateServices" path_format_arguments = { @@ -17638,6 +18453,7 @@ def build_service_gateways_update_services_request( # pylint: disable=name-too- # Construct headers if content_type is not None: _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) @@ -17648,7 +18464,7 @@ def build_service_gateways_get_address_locations_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17676,7 +18492,7 @@ def build_service_gateways_get_services_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17704,7 +18520,7 @@ def build_interconnect_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17732,7 +18548,7 @@ def build_interconnect_groups_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17763,7 +18579,7 @@ def build_interconnect_groups_update_tags_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -17793,7 +18609,7 @@ def build_interconnect_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interconnectGroups/{interconnectGroupName}" path_format_arguments = { @@ -17816,7 +18632,7 @@ def build_interconnect_groups_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17843,7 +18659,7 @@ def build_interconnect_groups_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17869,7 +18685,7 @@ def build_interconnect_groups_get_node_availability_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17897,7 +18713,7 @@ def build_subgroups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17926,7 +18742,7 @@ def build_subgroups_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17948,13 +18764,318 @@ def build_subgroups_list_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_first_party_service_tags_get_request( # pylint: disable=name-too-long + resource_group_name: str, first_party_service_tag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firstPartyServiceTags/{firstPartyServiceTagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firstPartyServiceTagName": _SERIALIZER.url( + "first_party_service_tag_name", first_party_service_tag_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_first_party_service_tags_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, first_party_service_tag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firstPartyServiceTags/{firstPartyServiceTagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firstPartyServiceTagName": _SERIALIZER.url( + "first_party_service_tag_name", first_party_service_tag_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_first_party_service_tags_update_tags_request( # pylint: disable=name-too-long + resource_group_name: str, first_party_service_tag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firstPartyServiceTags/{firstPartyServiceTagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firstPartyServiceTagName": _SERIALIZER.url( + "first_party_service_tag_name", first_party_service_tag_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_first_party_service_tags_delete_request( # pylint: disable=name-too-long + resource_group_name: str, first_party_service_tag_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firstPartyServiceTags/{firstPartyServiceTagName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "firstPartyServiceTagName": _SERIALIZER.url( + "first_party_service_tag_name", first_party_service_tag_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_first_party_service_tags_list_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firstPartyServiceTags" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_first_party_service_tags_list_all_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/firstPartyServiceTags" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_address_prefix_sets_get_request( + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}/addressPrefixSets/{addressPrefixSetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "applicationSecurityGroupName": _SERIALIZER.url( + "application_security_group_name", application_security_group_name, "str" + ), + "addressPrefixSetName": _SERIALIZER.url("address_prefix_set_name", address_prefix_set_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_address_prefix_sets_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}/addressPrefixSets/{addressPrefixSetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "applicationSecurityGroupName": _SERIALIZER.url( + "application_security_group_name", application_security_group_name, "str" + ), + "addressPrefixSetName": _SERIALIZER.url("address_prefix_set_name", address_prefix_set_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_address_prefix_sets_delete_request( + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}/addressPrefixSets/{addressPrefixSetName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "applicationSecurityGroupName": _SERIALIZER.url( + "application_security_group_name", application_security_group_name, "str" + ), + "addressPrefixSetName": _SERIALIZER.url("address_prefix_set_name", address_prefix_set_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_address_prefix_sets_list_request( + resource_group_name: str, application_security_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}/addressPrefixSets" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "applicationSecurityGroupName": _SERIALIZER.url( + "application_security_group_name", application_security_group_name, "str" + ), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_application_gateway_private_link_resources_list_request( # pylint: disable=name-too-long resource_group_name: str, application_gateway_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -17982,7 +19103,7 @@ def build_application_gateway_waf_dynamic_manifests_default_get_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18009,7 +19130,7 @@ def build_application_gateway_waf_dynamic_manifests_get_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18036,7 +19157,7 @@ def build_web_categories_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18065,7 +19186,7 @@ def build_web_categories_list_by_subscription_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18091,7 +19212,7 @@ def build_express_route_provider_ports_location_list_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18119,7 +19240,7 @@ def build_network_interface_load_balancers_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18145,7 +19266,7 @@ def build_vip_swap_get_request(group_name: str, resource_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") accept = _headers.pop("Accept", "application/json") @@ -18175,7 +19296,7 @@ def build_vip_swap_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL @@ -18205,7 +19326,7 @@ def build_vip_swap_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18238,7 +19359,7 @@ def build_custom_ip_prefixes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18268,7 +19389,7 @@ def build_custom_ip_prefixes_create_or_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18299,7 +19420,7 @@ def build_custom_ip_prefixes_update_tags_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18329,7 +19450,7 @@ def build_custom_ip_prefixes_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}" path_format_arguments = { @@ -18350,7 +19471,7 @@ def build_custom_ip_prefixes_list_request(resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18377,7 +19498,7 @@ def build_custom_ip_prefixes_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18403,7 +19524,7 @@ def build_dscp_configuration_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18431,7 +19552,7 @@ def build_dscp_configuration_create_or_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18461,7 +19582,7 @@ def build_dscp_configuration_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}" path_format_arguments = { @@ -18482,7 +19603,7 @@ def build_dscp_configuration_list_request(resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18509,7 +19630,7 @@ def build_dscp_configuration_list_all_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18535,7 +19656,7 @@ def build_express_route_cross_connection_peerings_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18562,7 +19683,7 @@ def build_express_route_cross_connection_peerings_delete_request( # pylint: dis ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}" path_format_arguments = { @@ -18586,7 +19707,7 @@ def build_express_route_cross_connection_peerings_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18615,7 +19736,7 @@ def build_express_route_cross_connection_peerings_create_or_update_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18647,7 +19768,7 @@ def build_express_route_links_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18676,7 +19797,7 @@ def build_express_route_links_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18704,7 +19825,7 @@ def build_firewall_policy_idps_signatures_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18735,7 +19856,7 @@ def build_firewall_policy_idps_signatures_filter_values_list_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18765,7 +19886,7 @@ def build_firewall_policy_deployments_deploy_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/deploy" path_format_arguments = { @@ -18788,7 +19909,7 @@ def build_network_manager_commits_post_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18824,7 +19945,7 @@ def build_network_manager_deployment_status_list_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18857,7 +19978,7 @@ def build_load_balancer_network_interfaces_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18889,7 +20010,7 @@ def build_load_balancer_backend_address_pools_get_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -18922,7 +20043,7 @@ def build_load_balancer_backend_address_pools_create_or_update_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -18957,7 +20078,7 @@ def build_load_balancer_backend_address_pools_delete_request( # pylint: disable ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}" path_format_arguments = { @@ -18981,7 +20102,7 @@ def build_load_balancer_backend_address_pools_list_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19013,7 +20134,7 @@ def build_load_balancer_frontend_ip_configurations_get_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19044,7 +20165,7 @@ def build_load_balancer_frontend_ip_configurations_list_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19076,7 +20197,7 @@ def build_load_balancer_load_balancing_rules_get_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19105,7 +20226,7 @@ def build_load_balancer_load_balancing_rules_list_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19133,7 +20254,7 @@ def build_load_balancer_load_balancing_rules_health_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19162,7 +20283,7 @@ def build_load_balancer_outbound_rules_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19191,7 +20312,7 @@ def build_load_balancer_outbound_rules_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19219,7 +20340,7 @@ def build_load_balancer_probes_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19248,7 +20369,7 @@ def build_load_balancer_probes_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19276,7 +20397,7 @@ def build_subscription_network_manager_connections_get_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19305,7 +20426,7 @@ def build_subscription_network_manager_connections_create_or_update_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -19336,7 +20457,7 @@ def build_subscription_network_manager_connections_delete_request( # pylint: di ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}" path_format_arguments = { @@ -19360,7 +20481,7 @@ def build_subscription_network_manager_connections_list_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19396,7 +20517,7 @@ def build_admin_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19433,7 +20554,7 @@ def build_admin_rules_create_or_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -19474,7 +20595,7 @@ def build_admin_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}" path_format_arguments = { @@ -19510,7 +20631,7 @@ def build_admin_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19548,7 +20669,7 @@ def build_network_security_perimeter_profiles_get_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19583,7 +20704,7 @@ def build_network_security_perimeter_profiles_create_or_update_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -19620,7 +20741,7 @@ def build_network_security_perimeter_profiles_delete_request( # pylint: disable ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}" path_format_arguments = { @@ -19652,7 +20773,7 @@ def build_network_security_perimeter_profiles_list_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19691,7 +20812,7 @@ def build_network_security_perimeter_access_rules_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19728,7 +20849,7 @@ def build_network_security_perimeter_access_rules_create_or_update_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -19767,7 +20888,7 @@ def build_network_security_perimeter_access_rules_delete_request( # pylint: dis ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}" path_format_arguments = { @@ -19801,7 +20922,7 @@ def build_network_security_perimeter_access_rules_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19842,7 +20963,7 @@ def build_network_security_perimeter_access_rules_reconcile_request( # pylint: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: str = kwargs.pop("content_type") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19879,7 +21000,7 @@ def build_network_security_perimeter_associations_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -19914,7 +21035,7 @@ def build_network_security_perimeter_associations_create_or_update_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -19951,7 +21072,7 @@ def build_network_security_perimeter_associations_delete_request( # pylint: dis ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}" path_format_arguments = { @@ -19983,7 +21104,7 @@ def build_network_security_perimeter_associations_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20022,7 +21143,7 @@ def build_network_security_perimeter_associations_reconcile_request( # pylint: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: str = kwargs.pop("content_type") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20054,7 +21175,7 @@ def build_network_security_perimeter_links_get_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20085,7 +21206,7 @@ def build_network_security_perimeter_links_create_or_update_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20118,7 +21239,7 @@ def build_network_security_perimeter_links_delete_request( # pylint: disable=na ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/links/{linkName}" path_format_arguments = { @@ -20150,7 +21271,7 @@ def build_network_security_perimeter_links_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20188,7 +21309,7 @@ def build_network_security_perimeter_link_references_get_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20222,7 +21343,7 @@ def build_network_security_perimeter_link_references_delete_request( # pylint: ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/linkReferences/{linkReferenceName}" path_format_arguments = { @@ -20254,7 +21375,7 @@ def build_network_security_perimeter_link_references_list_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20292,7 +21413,7 @@ def build_network_security_perimeter_logging_configurations_get_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20327,7 +21448,7 @@ def build_network_security_perimeter_logging_configurations_create_or_update_req _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20364,7 +21485,7 @@ def build_network_security_perimeter_logging_configurations_delete_request( # p ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/loggingConfigurations/{loggingConfigurationName}" path_format_arguments = { @@ -20390,7 +21511,7 @@ def build_network_security_perimeter_logging_configurations_list_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20418,7 +21539,7 @@ def build_virtual_appliance_skus_get_request(sku_name: str, subscription_id: str _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20445,7 +21566,7 @@ def build_virtual_appliance_skus_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20475,7 +21596,7 @@ def build_inbound_security_rule_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20510,7 +21631,7 @@ def build_inbound_security_rule_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20544,7 +21665,7 @@ def build_packet_captures_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20576,7 +21697,7 @@ def build_packet_captures_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20604,7 +21725,7 @@ def build_packet_captures_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}" path_format_arguments = { @@ -20627,7 +21748,7 @@ def build_packet_captures_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop" path_format_arguments = { @@ -20651,7 +21772,7 @@ def build_packet_captures_get_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20680,7 +21801,7 @@ def build_packet_captures_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20712,7 +21833,7 @@ def build_connection_monitors_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20747,7 +21868,7 @@ def build_connection_monitors_create_or_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20785,7 +21906,7 @@ def build_connection_monitors_update_tags_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20820,7 +21941,7 @@ def build_connection_monitors_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}" path_format_arguments = { @@ -20844,7 +21965,7 @@ def build_connection_monitors_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20875,7 +21996,7 @@ def build_connection_monitors_stop_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop" path_format_arguments = { @@ -20902,7 +22023,7 @@ def build_private_dns_zone_groups_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}" path_format_arguments = { @@ -20930,7 +22051,7 @@ def build_private_dns_zone_groups_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -20963,7 +22084,7 @@ def build_private_dns_zone_groups_create_or_update_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -20995,7 +22116,7 @@ def build_private_dns_zone_groups_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21022,7 +22143,7 @@ def build_route_filter_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}" path_format_arguments = { @@ -21046,7 +22167,7 @@ def build_route_filter_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21075,7 +22196,7 @@ def build_route_filter_rules_create_or_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21107,7 +22228,7 @@ def build_route_filter_rules_list_by_route_filter_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21135,7 +22256,7 @@ def build_resource_navigation_links_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21164,7 +22285,7 @@ def build_service_association_links_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21193,7 +22314,7 @@ def build_vpn_sites_configuration_download_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration" @@ -21221,7 +22342,7 @@ def build_vpn_server_configurations_associated_with_virtual_wan_list_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21253,7 +22374,7 @@ def build_configuration_policy_groups_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21290,7 +22411,7 @@ def build_configuration_policy_groups_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21329,7 +22450,7 @@ def build_configuration_policy_groups_delete_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}" path_format_arguments = { @@ -21357,7 +22478,7 @@ def build_configuration_policy_groups_list_by_vpn_server_configuration_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21387,7 +22508,7 @@ def build_hub_virtual_network_connections_create_or_update_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21418,7 +22539,7 @@ def build_hub_virtual_network_connections_delete_request( # pylint: disable=nam ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}" path_format_arguments = { @@ -21442,7 +22563,7 @@ def build_hub_virtual_network_connections_get_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21471,7 +22592,7 @@ def build_hub_virtual_network_connections_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21499,7 +22620,7 @@ def build_virtual_hub_route_table_v2_s_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21528,7 +22649,7 @@ def build_virtual_hub_route_table_v2_s_create_or_update_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21559,7 +22680,7 @@ def build_virtual_hub_route_table_v2_s_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}" path_format_arguments = { @@ -21583,7 +22704,7 @@ def build_virtual_hub_route_table_v2_s_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21611,7 +22732,7 @@ def build_vpn_connections_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21640,7 +22761,7 @@ def build_vpn_connections_create_or_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21671,7 +22792,7 @@ def build_vpn_connections_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}" path_format_arguments = { @@ -21695,7 +22816,7 @@ def build_vpn_connections_start_packet_capture_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21727,7 +22848,7 @@ def build_vpn_connections_stop_packet_capture_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21759,7 +22880,7 @@ def build_vpn_connections_list_by_vpn_gateway_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21792,7 +22913,7 @@ def build_vpn_link_connections_get_default_shared_key_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21827,7 +22948,7 @@ def build_vpn_link_connections_set_or_init_default_shared_key_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -21865,7 +22986,7 @@ def build_vpn_link_connections_get_all_shared_keys_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21900,7 +23021,7 @@ def build_vpn_link_connections_list_default_shared_key_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21930,7 +23051,7 @@ def build_vpn_link_connections_list_by_vpn_connection_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -21963,7 +23084,7 @@ def build_vpn_link_connections_reset_connection_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/resetconnection" path_format_arguments = { @@ -21993,7 +23114,7 @@ def build_vpn_link_connections_get_ike_sas_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22023,7 +23144,7 @@ def build_nat_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22052,7 +23173,7 @@ def build_nat_rules_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -22083,7 +23204,7 @@ def build_nat_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}" path_format_arguments = { @@ -22107,7 +23228,7 @@ def build_nat_rules_list_by_vpn_gateway_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22135,7 +23256,7 @@ def build_express_route_connections_create_or_update_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -22167,7 +23288,7 @@ def build_express_route_connections_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22195,7 +23316,7 @@ def build_express_route_connections_delete_request( # pylint: disable=name-too- ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}" path_format_arguments = { @@ -22219,7 +23340,7 @@ def build_express_route_connections_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22247,7 +23368,7 @@ def build_virtual_hub_bgp_connection_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22276,7 +23397,7 @@ def build_virtual_hub_bgp_connection_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -22307,7 +23428,7 @@ def build_virtual_hub_bgp_connection_delete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}" path_format_arguments = { @@ -22331,7 +23452,7 @@ def build_virtual_hub_bgp_connections_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22359,7 +23480,7 @@ def build_virtual_hub_bgp_connections_list_learned_routes_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22388,7 +23509,7 @@ def build_virtual_hub_bgp_connections_list_advertised_routes_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22417,7 +23538,7 @@ def build_virtual_hub_ip_configuration_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22446,7 +23567,7 @@ def build_virtual_hub_ip_configuration_create_or_update_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -22477,7 +23598,7 @@ def build_virtual_hub_ip_configuration_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}" path_format_arguments = { @@ -22501,7 +23622,7 @@ def build_virtual_hub_ip_configuration_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22529,7 +23650,7 @@ def build_routing_intent_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22558,7 +23679,7 @@ def build_routing_intent_create_or_update_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -22589,7 +23710,7 @@ def build_routing_intent_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routingIntent/{routingIntentName}" path_format_arguments = { @@ -22613,7 +23734,7 @@ def build_routing_intent_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22639,7 +23760,7 @@ def build_available_delegations_list_request(location: str, subscription_id: str _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22666,7 +23787,7 @@ def build_available_resource_group_delegations_list_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22694,7 +23815,7 @@ def build_available_service_aliases_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22721,7 +23842,7 @@ def build_available_service_aliases_list_by_resource_group_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22749,7 +23870,7 @@ def build_azure_firewall_fqdn_tags_list_all_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22775,7 +23896,7 @@ def build_available_endpoint_services_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22802,7 +23923,7 @@ def build_express_route_service_providers_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22828,7 +23949,7 @@ def build_network_security_perimeter_associable_resource_types_list_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22855,7 +23976,7 @@ def build_network_security_perimeter_operation_statuses_get_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22883,7 +24004,7 @@ def build_network_security_perimeter_service_tags_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22910,7 +24031,7 @@ def build_available_private_endpoint_types_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22939,7 +24060,7 @@ def build_available_private_endpoint_types_list_by_resource_group_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22967,7 +24088,7 @@ def build_bgp_service_communities_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -22991,7 +24112,7 @@ def build_service_tags_list_request(location: str, subscription_id: str, **kwarg _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23023,7 +24144,7 @@ def build_service_tag_information_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23052,7 +24173,7 @@ def build_usages_list_request(location: str, subscription_id: str, **kwargs: Any _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23079,7 +24200,7 @@ def build_network_management_put_bastion_shareable_link_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23110,7 +24231,7 @@ def build_network_management_delete_bastion_shareable_link_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks" @@ -23138,7 +24259,7 @@ def build_network_management_delete_bastion_shareable_link_by_token_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinksByToken" @@ -23166,7 +24287,7 @@ def build_network_management_get_bastion_shareable_link_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23197,7 +24318,7 @@ def build_network_management_get_active_sessions_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23225,7 +24346,7 @@ def build_network_management_disconnect_active_sessions_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23256,7 +24377,7 @@ def build_network_management_express_route_provider_port_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23288,7 +24409,7 @@ def build_network_management_list_active_connectivity_configurations_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23326,7 +24447,7 @@ def build_network_management_list_active_security_admin_rules_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23364,7 +24485,7 @@ def build_network_management_list_network_manager_effective_connectivity_configu _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23402,7 +24523,7 @@ def build_network_management_list_network_manager_effective_security_admin_rules _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23435,7 +24556,7 @@ def build_network_management_supported_security_providers_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23463,7 +24584,7 @@ def build_network_management_generatevirtualwanvpnserverconfigurationvpnprofile_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -23494,7 +24615,7 @@ def build_network_management_check_dns_name_availability_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -23516,7 +24637,7 @@ def build_network_management_check_dns_name_availability_request( # pylint: dis return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -23544,7 +24665,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Operation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23613,7 +24734,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ApplicationGatewaysOperations: # pylint: disable=too-many-public-methods +class ApplicationGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -23654,7 +24775,7 @@ def get(self, resource_group_name: str, application_gateway_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) _request = build_application_gateways_get_request( @@ -23705,7 +24826,7 @@ def _create_or_update_initial( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.ApplicationGateway, JSON, IO[bytes]], + parameters: Union[_models.ApplicationGateway, _types.ApplicationGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -23719,7 +24840,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -23813,7 +24934,7 @@ def begin_create_or_update( self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: _types.ApplicationGateway, *, content_type: str = "application/json", **kwargs: Any @@ -23827,7 +24948,7 @@ def begin_create_or_update( :type application_gateway_name: str :param parameters: Parameters supplied to the create or update application gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -23871,7 +24992,7 @@ def begin_create_or_update( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.ApplicationGateway, JSON, IO[bytes]], + parameters: Union[_models.ApplicationGateway, _types.ApplicationGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ApplicationGateway]: """Creates or updates the specified application gateway. @@ -23882,8 +25003,9 @@ def begin_create_or_update( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param parameters: Parameters supplied to the create or update application gateway operation. - Is one of the following types: ApplicationGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ApplicationGateway or JSON or IO[bytes] + Is either a ApplicationGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ApplicationGateway or + ~azure.mgmt.network.types.ApplicationGateway or IO[bytes] :return: An instance of LROPoller that returns ApplicationGateway. The ApplicationGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ApplicationGateway] @@ -23892,7 +25014,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -23975,7 +25097,7 @@ def update_tags( self, resource_group_name: str, application_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -23988,7 +25110,7 @@ def update_tags( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param parameters: Parameters supplied to update application gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -24029,7 +25151,7 @@ def update_tags( self, resource_group_name: str, application_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ApplicationGateway: """Updates the specified application gateway tags. @@ -24039,9 +25161,10 @@ def update_tags( :type resource_group_name: str :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str - :param parameters: Parameters supplied to update application gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update application gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ApplicationGateway. The ApplicationGateway is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ApplicationGateway :raises ~azure.core.exceptions.HttpResponseError: @@ -24057,7 +25180,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGateway] = kwargs.pop("cls", None) @@ -24128,7 +25251,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_delete_request( @@ -24192,7 +25315,7 @@ def begin_delete(self, resource_group_name: str, application_gateway_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24249,7 +25372,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ap _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24330,7 +25453,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.ApplicationGateway"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24411,7 +25534,7 @@ def _start_initial(self, resource_group_name: str, application_gateway_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_start_request( @@ -24475,7 +25598,7 @@ def begin_start(self, resource_group_name: str, application_gateway_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24530,7 +25653,7 @@ def _stop_initial(self, resource_group_name: str, application_gateway_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_stop_request( @@ -24594,7 +25717,7 @@ def begin_stop(self, resource_group_name: str, application_gateway_name: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24651,7 +25774,7 @@ def _backend_health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateways_backend_health_request( @@ -24723,7 +25846,7 @@ def begin_backend_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayBackendHealth] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24776,7 +25899,9 @@ def _backend_health_on_demand_initial( self, resource_group_name: str, application_gateway_name: str, - probe_request: Union[_models.ApplicationGatewayOnDemandProbe, JSON, IO[bytes]], + probe_request: Union[ + _models.ApplicationGatewayOnDemandProbe, _types.ApplicationGatewayOnDemandProbe, IO[bytes] + ], *, expand: Optional[str] = None, **kwargs: Any @@ -24792,7 +25917,7 @@ def _backend_health_on_demand_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -24890,7 +26015,7 @@ def begin_backend_health_on_demand( self, resource_group_name: str, application_gateway_name: str, - probe_request: JSON, + probe_request: _types.ApplicationGatewayOnDemandProbe, *, expand: Optional[str] = None, content_type: str = "application/json", @@ -24905,7 +26030,7 @@ def begin_backend_health_on_demand( :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str :param probe_request: Request body for on-demand test probe operation. Required. - :type probe_request: JSON + :type probe_request: ~azure.mgmt.network.types.ApplicationGatewayOnDemandProbe :keyword expand: Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Default value is None. :paramtype expand: str @@ -24958,7 +26083,9 @@ def begin_backend_health_on_demand( self, resource_group_name: str, application_gateway_name: str, - probe_request: Union[_models.ApplicationGatewayOnDemandProbe, JSON, IO[bytes]], + probe_request: Union[ + _models.ApplicationGatewayOnDemandProbe, _types.ApplicationGatewayOnDemandProbe, IO[bytes] + ], *, expand: Optional[str] = None, **kwargs: Any @@ -24971,10 +26098,10 @@ def begin_backend_health_on_demand( :type resource_group_name: str :param application_gateway_name: The name of the application gateway. Required. :type application_gateway_name: str - :param probe_request: Request body for on-demand test probe operation. Is one of the following - types: ApplicationGatewayOnDemandProbe, JSON, IO[bytes] Required. - :type probe_request: ~azure.mgmt.network.models.ApplicationGatewayOnDemandProbe or JSON or - IO[bytes] + :param probe_request: Request body for on-demand test probe operation. Is either a + ApplicationGatewayOnDemandProbe type or a IO[bytes] type. Required. + :type probe_request: ~azure.mgmt.network.models.ApplicationGatewayOnDemandProbe or + ~azure.mgmt.network.types.ApplicationGatewayOnDemandProbe or IO[bytes] :keyword expand: Expands BackendAddressPool and BackendHttpSettings referenced in backend health. Default value is None. :paramtype expand: str @@ -24987,7 +26114,7 @@ def begin_backend_health_on_demand( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGatewayBackendHealthOnDemand] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25059,7 +26186,7 @@ def list_available_ssl_options(self, **kwargs: Any) -> _models.ApplicationGatewa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayAvailableSslOptions] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_ssl_options_request( @@ -25118,7 +26245,7 @@ def list_available_ssl_predefined_policies( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewaySslPredefinedPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -25211,7 +26338,7 @@ def get_ssl_predefined_policy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewaySslPredefinedPolicy] = kwargs.pop("cls", None) _request = build_application_gateways_get_ssl_predefined_policy_request( @@ -25276,7 +26403,7 @@ def list_available_server_variables(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_server_variables_request( @@ -25340,7 +26467,7 @@ def list_available_request_headers(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_request_headers_request( @@ -25404,7 +26531,7 @@ def list_available_response_headers(self, **kwargs: Any) -> List[str]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[str]] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_response_headers_request( @@ -25469,7 +26596,7 @@ def list_available_waf_rule_sets(self, **kwargs: Any) -> _models.ApplicationGate _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayAvailableWafRuleSetsResult] = kwargs.pop("cls", None) _request = build_application_gateways_list_available_waf_rule_sets_request( @@ -25515,7 +26642,7 @@ def list_available_waf_rule_sets(self, **kwargs: Any) -> _models.ApplicationGate return deserialized # type: ignore -class ApplicationGatewayPrivateEndpointConnectionsOperations: # pylint: disable=name-too-long +class ApplicationGatewayPrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -25562,7 +26689,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayPrivateEndpointConnection] = kwargs.pop("cls", None) _request = build_application_gateway_private_endpoint_connections_get_request( @@ -25615,7 +26742,11 @@ def _update_initial( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: Union[_models.ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes]], + parameters: Union[ + _models.ApplicationGatewayPrivateEndpointConnection, + _types.ApplicationGatewayPrivateEndpointConnection, + IO[bytes], + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -25629,7 +26760,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25730,7 +26861,7 @@ def begin_update( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: JSON, + parameters: _types.ApplicationGatewayPrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -25747,7 +26878,7 @@ def begin_update( :type connection_name: str :param parameters: Parameters supplied to update application gateway private endpoint connection operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -25798,7 +26929,11 @@ def begin_update( resource_group_name: str, application_gateway_name: str, connection_name: str, - parameters: Union[_models.ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes]], + parameters: Union[ + _models.ApplicationGatewayPrivateEndpointConnection, + _types.ApplicationGatewayPrivateEndpointConnection, + IO[bytes], + ], **kwargs: Any ) -> LROPoller[_models.ApplicationGatewayPrivateEndpointConnection]: """Updates the specified private endpoint connection on application gateway. @@ -25812,10 +26947,10 @@ def begin_update( Required. :type connection_name: str :param parameters: Parameters supplied to update application gateway private endpoint - connection operation. Is one of the following types: - ApplicationGatewayPrivateEndpointConnection, JSON, IO[bytes] Required. + connection operation. Is either a ApplicationGatewayPrivateEndpointConnection type or a + IO[bytes] type. Required. :type parameters: ~azure.mgmt.network.models.ApplicationGatewayPrivateEndpointConnection or - JSON or IO[bytes] + ~azure.mgmt.network.types.ApplicationGatewayPrivateEndpointConnection or IO[bytes] :return: An instance of LROPoller that returns ApplicationGatewayPrivateEndpointConnection. The ApplicationGatewayPrivateEndpointConnection is compatible with MutableMapping :rtype: @@ -25825,7 +26960,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationGatewayPrivateEndpointConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25891,7 +27026,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_gateway_private_endpoint_connections_delete_request( @@ -25961,7 +27096,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26024,7 +27159,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayPrivateEndpointConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26096,7 +27231,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ApplicationSecurityGroupsOperations: +class ApplicationSecurityGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -26140,7 +27275,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) _request = build_application_security_groups_get_request( @@ -26191,7 +27326,7 @@ def _create_or_update_initial( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.ApplicationSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.ApplicationSecurityGroup, _types.ApplicationSecurityGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -26205,7 +27340,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -26299,7 +27434,7 @@ def begin_create_or_update( self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: _types.ApplicationSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -26313,7 +27448,7 @@ def begin_create_or_update( :type application_security_group_name: str :param parameters: Parameters supplied to the create or update ApplicationSecurityGroup operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ApplicationSecurityGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -26357,7 +27492,7 @@ def begin_create_or_update( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.ApplicationSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.ApplicationSecurityGroup, _types.ApplicationSecurityGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ApplicationSecurityGroup]: """Creates or updates an application security group. @@ -26368,8 +27503,9 @@ def begin_create_or_update( :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str :param parameters: Parameters supplied to the create or update ApplicationSecurityGroup - operation. Is one of the following types: ApplicationSecurityGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ApplicationSecurityGroup or JSON or IO[bytes] + operation. Is either a ApplicationSecurityGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ApplicationSecurityGroup or + ~azure.mgmt.network.types.ApplicationSecurityGroup or IO[bytes] :return: An instance of LROPoller that returns ApplicationSecurityGroup. The ApplicationSecurityGroup is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ApplicationSecurityGroup] @@ -26378,7 +27514,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -26462,7 +27598,7 @@ def update_tags( self, resource_group_name: str, application_security_group_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -26475,7 +27611,7 @@ def update_tags( :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str :param parameters: Parameters supplied to update application security group tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -26518,7 +27654,7 @@ def update_tags( self, resource_group_name: str, application_security_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ApplicationSecurityGroup: """Updates an application security group's tags. @@ -26528,9 +27664,10 @@ def update_tags( :type resource_group_name: str :param application_security_group_name: The name of the application security group. Required. :type application_security_group_name: str - :param parameters: Parameters supplied to update application security group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update application security group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ApplicationSecurityGroup. The ApplicationSecurityGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ApplicationSecurityGroup @@ -26547,7 +27684,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ApplicationSecurityGroup] = kwargs.pop("cls", None) @@ -26618,7 +27755,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_application_security_groups_delete_request( @@ -26684,7 +27821,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26741,7 +27878,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ap _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26822,7 +27959,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.ApplicationSecurityGroup _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26892,7 +28029,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AzureFirewallsOperations: +class AzureFirewallsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -26933,7 +28070,7 @@ def get(self, resource_group_name: str, azure_firewall_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) _request = build_azure_firewalls_get_request( @@ -26982,13 +28119,13 @@ def get(self, resource_group_name: str, azure_firewall_name: str, **kwargs: Any) @api_version_validation( params_added_on={"2025-07-01": ["create_afc_control_plane"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _create_or_update_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.AzureFirewall, JSON, IO[bytes]], + parameters: Union[_models.AzureFirewall, _types.AzureFirewall, IO[bytes]], *, create_afc_control_plane: Optional[bool] = None, **kwargs: Any @@ -27004,7 +28141,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -27103,7 +28240,7 @@ def begin_create_or_update( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.AzureFirewall, *, create_afc_control_plane: Optional[bool] = None, content_type: str = "application/json", @@ -27118,7 +28255,7 @@ def begin_create_or_update( :type azure_firewall_name: str :param parameters: Parameters supplied to the create or update Azure Firewall operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.AzureFirewall :keyword create_afc_control_plane: When set to true, creates an AFC control plane for the Azure Firewall. Default value is None. :paramtype create_afc_control_plane: bool @@ -27167,13 +28304,13 @@ def begin_create_or_update( @distributed_trace @api_version_validation( params_added_on={"2025-07-01": ["create_afc_control_plane"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_create_or_update( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.AzureFirewall, JSON, IO[bytes]], + parameters: Union[_models.AzureFirewall, _types.AzureFirewall, IO[bytes]], *, create_afc_control_plane: Optional[bool] = None, **kwargs: Any @@ -27185,9 +28322,10 @@ def begin_create_or_update( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to the create or update Azure Firewall operation. Is one - of the following types: AzureFirewall, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AzureFirewall or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update Azure Firewall operation. Is + either a AzureFirewall type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AzureFirewall or + ~azure.mgmt.network.types.AzureFirewall or IO[bytes] :keyword create_afc_control_plane: When set to true, creates an AFC control plane for the Azure Firewall. Default value is None. :paramtype create_afc_control_plane: bool @@ -27199,7 +28337,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -27255,7 +28393,7 @@ def _update_tags_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -27269,7 +28407,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -27362,7 +28500,7 @@ def begin_update_tags( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -27375,7 +28513,7 @@ def begin_update_tags( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to update azure firewall tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -27418,7 +28556,7 @@ def begin_update_tags( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.AzureFirewall]: """Updates tags of an Azure Firewall resource. @@ -27428,9 +28566,10 @@ def begin_update_tags( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to update azure firewall tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update azure firewall tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of LROPoller that returns AzureFirewall. The AzureFirewall is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AzureFirewall] @@ -27439,7 +28578,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewall] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -27502,7 +28641,7 @@ def _delete_initial(self, resource_group_name: str, azure_firewall_name: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_azure_firewalls_delete_request( @@ -27566,7 +28705,7 @@ def begin_delete(self, resource_group_name: str, azure_firewall_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -27623,7 +28762,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Az _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewall]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -27704,7 +28843,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.AzureFirewall"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewall]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -27787,7 +28926,7 @@ def _list_learned_prefixes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_azure_firewalls_list_learned_prefixes_request( @@ -27854,7 +28993,7 @@ def begin_list_learned_prefixes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IPPrefixesList] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -27906,7 +29045,7 @@ def _packet_capture_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -27920,7 +29059,7 @@ def _packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28009,7 +29148,7 @@ def begin_packet_capture( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -28022,7 +29161,7 @@ def begin_packet_capture( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to run packet capture on azure firewall. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPacketCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -28063,7 +29202,7 @@ def begin_packet_capture( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Runs a packet capture on AzureFirewall. @@ -28073,10 +29212,10 @@ def begin_packet_capture( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to run packet capture on azure firewall. Is one of the - following types: FirewallPacketCaptureParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or JSON or - IO[bytes] + :param parameters: Parameters supplied to run packet capture on azure firewall. Is either a + FirewallPacketCaptureParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or + ~azure.mgmt.network.types.FirewallPacketCaptureParameters or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -28084,7 +29223,7 @@ def begin_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28134,7 +29273,7 @@ def _packet_capture_operation_initial( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -28148,7 +29287,7 @@ def _packet_capture_operation_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28240,7 +29379,7 @@ def begin_packet_capture_operation( self, resource_group_name: str, azure_firewall_name: str, - parameters: JSON, + parameters: _types.FirewallPacketCaptureParameters, *, content_type: str = "application/json", **kwargs: Any @@ -28253,7 +29392,7 @@ def begin_packet_capture_operation( :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str :param parameters: Parameters supplied to run packet capture on azure firewall. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPacketCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -28298,7 +29437,7 @@ def begin_packet_capture_operation( self, resource_group_name: str, azure_firewall_name: str, - parameters: Union[_models.FirewallPacketCaptureParameters, JSON, IO[bytes]], + parameters: Union[_models.FirewallPacketCaptureParameters, _types.FirewallPacketCaptureParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.AzureFirewallPacketCaptureResponse]: """Runs a packet capture operation on AzureFirewall. @@ -28308,10 +29447,10 @@ def begin_packet_capture_operation( :type resource_group_name: str :param azure_firewall_name: The name of the Azure Firewall. Required. :type azure_firewall_name: str - :param parameters: Parameters supplied to run packet capture on azure firewall. Is one of the - following types: FirewallPacketCaptureParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or JSON or - IO[bytes] + :param parameters: Parameters supplied to run packet capture on azure firewall. Is either a + FirewallPacketCaptureParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPacketCaptureParameters or + ~azure.mgmt.network.types.FirewallPacketCaptureParameters or IO[bytes] :return: An instance of LROPoller that returns AzureFirewallPacketCaptureResponse. The AzureFirewallPacketCaptureResponse is compatible with MutableMapping :rtype: @@ -28321,7 +29460,7 @@ def begin_packet_capture_operation( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureFirewallPacketCaptureResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28373,7 +29512,7 @@ def get_long_running_output(pipeline_response): ) -class BastionHostsOperations: +class BastionHostsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -28414,7 +29553,7 @@ def get(self, resource_group_name: str, bastion_host_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) _request = build_bastion_hosts_get_request( @@ -28465,7 +29604,7 @@ def _create_or_update_initial( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.BastionHost, JSON, IO[bytes]], + parameters: Union[_models.BastionHost, _types.BastionHost, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -28479,7 +29618,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28573,7 +29712,7 @@ def begin_create_or_update( self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: _types.BastionHost, *, content_type: str = "application/json", **kwargs: Any @@ -28587,7 +29726,7 @@ def begin_create_or_update( :type bastion_host_name: str :param parameters: Parameters supplied to the create or update Bastion Host operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BastionHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -28631,7 +29770,7 @@ def begin_create_or_update( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.BastionHost, JSON, IO[bytes]], + parameters: Union[_models.BastionHost, _types.BastionHost, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.BastionHost]: """Creates or updates the specified Bastion Host. @@ -28641,9 +29780,10 @@ def begin_create_or_update( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param parameters: Parameters supplied to the create or update Bastion Host operation. Is one - of the following types: BastionHost, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BastionHost or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update Bastion Host operation. Is + either a BastionHost type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.BastionHost or + ~azure.mgmt.network.types.BastionHost or IO[bytes] :return: An instance of LROPoller that returns BastionHost. The BastionHost is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.BastionHost] @@ -28652,7 +29792,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28707,7 +29847,7 @@ def _update_tags_initial( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -28721,7 +29861,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -28814,7 +29954,7 @@ def begin_update_tags( self, resource_group_name: str, bastion_host_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -28827,7 +29967,7 @@ def begin_update_tags( :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param parameters: Parameters supplied to update BastionHost tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -28870,7 +30010,7 @@ def begin_update_tags( self, resource_group_name: str, bastion_host_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.BastionHost]: """Updates Tags for BastionHost resource. @@ -28880,9 +30020,10 @@ def begin_update_tags( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param parameters: Parameters supplied to update BastionHost tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update BastionHost tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of LROPoller that returns BastionHost. The BastionHost is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.BastionHost] @@ -28891,7 +30032,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BastionHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -28954,7 +30095,7 @@ def _delete_initial(self, resource_group_name: str, bastion_host_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_bastion_hosts_delete_request( @@ -29018,7 +30159,7 @@ def begin_delete(self, resource_group_name: str, bastion_host_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -29075,7 +30216,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29156,7 +30297,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.BastionHost"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionHost]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29226,7 +30367,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkInterfacesOperations: +class NetworkInterfacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -29282,7 +30423,7 @@ def get_cloud_service_network_interface( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) _request = build_network_interfaces_get_cloud_service_network_interface_request( @@ -29352,7 +30493,7 @@ def list_cloud_service_role_instance_network_interfaces( # pylint: disable=name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -29634,7 +30775,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) _request = build_network_interfaces_get_request( @@ -29686,7 +30827,7 @@ def _create_or_update_initial( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.NetworkInterface, JSON, IO[bytes]], + parameters: Union[_models.NetworkInterface, _types.NetworkInterface, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -29700,7 +30841,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -29794,7 +30935,7 @@ def begin_create_or_update( self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: _types.NetworkInterface, *, content_type: str = "application/json", **kwargs: Any @@ -29808,7 +30949,7 @@ def begin_create_or_update( :type network_interface_name: str :param parameters: Parameters supplied to the create or update network interface operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkInterface :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -29852,7 +30993,7 @@ def begin_create_or_update( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.NetworkInterface, JSON, IO[bytes]], + parameters: Union[_models.NetworkInterface, _types.NetworkInterface, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NetworkInterface]: """Creates or updates a network interface. @@ -29863,8 +31004,9 @@ def begin_create_or_update( :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str :param parameters: Parameters supplied to the create or update network interface operation. Is - one of the following types: NetworkInterface, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkInterface or JSON or IO[bytes] + either a NetworkInterface type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkInterface or + ~azure.mgmt.network.types.NetworkInterface or IO[bytes] :return: An instance of LROPoller that returns NetworkInterface. The NetworkInterface is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkInterface] @@ -29873,7 +31015,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -29956,7 +31098,7 @@ def update_tags( self, resource_group_name: str, network_interface_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -29969,7 +31111,7 @@ def update_tags( :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str :param parameters: Parameters supplied to update network interface tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -30010,7 +31152,7 @@ def update_tags( self, resource_group_name: str, network_interface_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkInterface: """Updates a network interface tags. @@ -30020,9 +31162,10 @@ def update_tags( :type resource_group_name: str :param network_interface_name: The name of the network interface. Required. :type network_interface_name: str - :param parameters: Parameters supplied to update network interface tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update network interface tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkInterface. The NetworkInterface is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkInterface :raises ~azure.core.exceptions.HttpResponseError: @@ -30038,7 +31181,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkInterface] = kwargs.pop("cls", None) @@ -30107,7 +31250,7 @@ def _delete_initial(self, resource_group_name: str, network_interface_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_delete_request( @@ -30171,7 +31314,7 @@ def begin_delete(self, resource_group_name: str, network_interface_name: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -30228,7 +31371,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ne _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -30309,7 +31452,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.NetworkInterface"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -30392,7 +31535,7 @@ def _get_effective_route_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_get_effective_route_table_request( @@ -30459,7 +31602,7 @@ def begin_get_effective_route_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.EffectiveRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -30521,7 +31664,7 @@ def _list_effective_network_security_groups_initial( # pylint: disable=name-too _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interfaces_list_effective_network_security_groups_request( @@ -30589,7 +31732,7 @@ def begin_list_effective_network_security_groups( # pylint: disable=name-too-lo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.EffectiveNetworkSecurityGroupListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -30855,7 +31998,7 @@ def list_cloud_service_network_interfaces( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -31016,7 +32159,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PublicIPAddressesOperations: +class PublicIPAddressesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -31078,7 +32221,7 @@ def get_cloud_service_public_ip_address( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) _request = build_public_ip_addresses_get_cloud_service_public_ip_address_request( @@ -31161,7 +32304,7 @@ def list_cloud_service_role_instance_public_ip_addresses( # pylint: disable=nam _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -31465,7 +32608,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) _request = build_public_ip_addresses_get_request( @@ -31517,7 +32660,7 @@ def _create_or_update_initial( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.PublicIPAddress, JSON, IO[bytes]], + parameters: Union[_models.PublicIPAddress, _types.PublicIPAddress, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -31531,7 +32674,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -31625,7 +32768,7 @@ def begin_create_or_update( self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.PublicIPAddress, *, content_type: str = "application/json", **kwargs: Any @@ -31639,7 +32782,7 @@ def begin_create_or_update( :type public_ip_address_name: str :param parameters: Parameters supplied to the create or update public IP address operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PublicIPAddress :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -31683,7 +32826,7 @@ def begin_create_or_update( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.PublicIPAddress, JSON, IO[bytes]], + parameters: Union[_models.PublicIPAddress, _types.PublicIPAddress, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PublicIPAddress]: """Creates or updates a static or dynamic public IP address. @@ -31694,8 +32837,9 @@ def begin_create_or_update( :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameters supplied to the create or update public IP address operation. Is - one of the following types: PublicIPAddress, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PublicIPAddress or JSON or IO[bytes] + either a PublicIPAddress type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PublicIPAddress or + ~azure.mgmt.network.types.PublicIPAddress or IO[bytes] :return: An instance of LROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -31704,7 +32848,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -31787,7 +32931,7 @@ def update_tags( self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -31800,7 +32944,7 @@ def update_tags( :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameters supplied to update public IP address tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -31841,7 +32985,7 @@ def update_tags( self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.PublicIPAddress: """Updates public IP address tags. @@ -31851,9 +32995,10 @@ def update_tags( :type resource_group_name: str :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str - :param parameters: Parameters supplied to update public IP address tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update public IP address tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.PublicIPAddress :raises ~azure.core.exceptions.HttpResponseError: @@ -31869,7 +33014,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) @@ -31938,7 +33083,7 @@ def _delete_initial(self, resource_group_name: str, public_ip_address_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_public_ip_addresses_delete_request( @@ -32002,7 +33147,7 @@ def begin_delete(self, resource_group_name: str, public_ip_address_name: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -32059,7 +33204,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Pu _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -32140,7 +33285,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.PublicIPAddress"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -32223,7 +33368,7 @@ def _ddos_protection_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_public_ip_addresses_ddos_protection_status_request( @@ -32291,7 +33436,7 @@ def begin_ddos_protection_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIpDdosProtectionStatusResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -32343,7 +33488,11 @@ def _reserve_cloud_service_public_ip_address_initial( # pylint: disable=name-to self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ReserveCloudServicePublicIpAddressRequest, + _types.ReserveCloudServicePublicIpAddressRequest, + IO[bytes], + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -32357,7 +33506,7 @@ def _reserve_cloud_service_public_ip_address_initial( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -32453,7 +33602,7 @@ def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name-too-l self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.ReserveCloudServicePublicIpAddressRequest, *, content_type: str = "application/json", **kwargs: Any @@ -32468,7 +33617,7 @@ def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name-too-l :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place of given Public IP Address. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ReserveCloudServicePublicIpAddressRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -32513,7 +33662,11 @@ def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name-too-l self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ReserveCloudServicePublicIpAddressRequest, + _types.ReserveCloudServicePublicIpAddressRequest, + IO[bytes], + ], **kwargs: Any ) -> LROPoller[_models.PublicIPAddress]: """Reserves the specified Cloud Service Public IP by switching its allocation method to Static. If @@ -32525,10 +33678,10 @@ def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name-too-l :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place - of given Public IP Address. Is one of the following types: - ReserveCloudServicePublicIpAddressRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ReserveCloudServicePublicIpAddressRequest or JSON - or IO[bytes] + of given Public IP Address. Is either a ReserveCloudServicePublicIpAddressRequest type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ReserveCloudServicePublicIpAddressRequest or + ~azure.mgmt.network.types.ReserveCloudServicePublicIpAddressRequest or IO[bytes] :return: An instance of LROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -32537,7 +33690,7 @@ def begin_reserve_cloud_service_public_ip_address( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -32592,7 +33745,9 @@ def _disassociate_cloud_service_reserved_public_ip_initial( # pylint: disable=n self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.DisassociateCloudServicePublicIpRequest, JSON, IO[bytes]], + parameters: Union[ + _models.DisassociateCloudServicePublicIpRequest, _types.DisassociateCloudServicePublicIpRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -32606,7 +33761,7 @@ def _disassociate_cloud_service_reserved_public_ip_initial( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -32702,7 +33857,7 @@ def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disable=name self, resource_group_name: str, public_ip_address_name: str, - parameters: JSON, + parameters: _types.DisassociateCloudServicePublicIpRequest, *, content_type: str = "application/json", **kwargs: Any @@ -32717,7 +33872,7 @@ def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disable=name :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place of given Public IP Address. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DisassociateCloudServicePublicIpRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -32762,7 +33917,9 @@ def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disable=name self, resource_group_name: str, public_ip_address_name: str, - parameters: Union[_models.DisassociateCloudServicePublicIpRequest, JSON, IO[bytes]], + parameters: Union[ + _models.DisassociateCloudServicePublicIpRequest, _types.DisassociateCloudServicePublicIpRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.PublicIPAddress]: """Disassociates the Cloud Service reserved Public IP and associates the specified Standalone @@ -32774,10 +33931,10 @@ def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disable=name :param public_ip_address_name: The name of the public IP address. Required. :type public_ip_address_name: str :param parameters: Parameter that define which Public IP Address should be associated in place - of given Public IP Address. Is one of the following types: - DisassociateCloudServicePublicIpRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DisassociateCloudServicePublicIpRequest or JSON or - IO[bytes] + of given Public IP Address. Is either a DisassociateCloudServicePublicIpRequest type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DisassociateCloudServicePublicIpRequest or + ~azure.mgmt.network.types.DisassociateCloudServicePublicIpRequest or IO[bytes] :return: An instance of LROPoller that returns PublicIPAddress. The PublicIPAddress is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PublicIPAddress] @@ -32786,7 +33943,7 @@ def begin_disassociate_cloud_service_reserved_public_ip( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPAddress] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -32855,7 +34012,7 @@ def list_cloud_service_public_ip_addresses( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPAddress]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -33016,7 +34173,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DdosCustomPoliciesOperations: +class DdosCustomPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -33057,7 +34214,7 @@ def get(self, resource_group_name: str, ddos_custom_policy_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) _request = build_ddos_custom_policies_get_request( @@ -33108,7 +34265,7 @@ def _create_or_update_initial( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.DdosCustomPolicy, JSON, IO[bytes]], + parameters: Union[_models.DdosCustomPolicy, _types.DdosCustomPolicy, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -33122,7 +34279,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -33215,7 +34372,7 @@ def begin_create_or_update( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: _types.DdosCustomPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -33228,7 +34385,7 @@ def begin_create_or_update( :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str :param parameters: Parameters supplied to the create or update operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DdosCustomPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -33271,7 +34428,7 @@ def begin_create_or_update( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.DdosCustomPolicy, JSON, IO[bytes]], + parameters: Union[_models.DdosCustomPolicy, _types.DdosCustomPolicy, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DdosCustomPolicy]: """Creates or updates a DDoS custom policy. @@ -33281,9 +34438,10 @@ def begin_create_or_update( :type resource_group_name: str :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str - :param parameters: Parameters supplied to the create or update operation. Is one of the - following types: DdosCustomPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DdosCustomPolicy or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update operation. Is either a + DdosCustomPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DdosCustomPolicy or + ~azure.mgmt.network.types.DdosCustomPolicy or IO[bytes] :return: An instance of LROPoller that returns DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.DdosCustomPolicy] @@ -33292,7 +34450,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -33375,7 +34533,7 @@ def update_tags( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -33388,7 +34546,7 @@ def update_tags( :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str :param parameters: Parameters supplied to update DDoS custom policy resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -33429,7 +34587,7 @@ def update_tags( self, resource_group_name: str, ddos_custom_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.DdosCustomPolicy: """Update a DDoS custom policy tags. @@ -33439,9 +34597,10 @@ def update_tags( :type resource_group_name: str :param ddos_custom_policy_name: The name of the DDoS custom policy. Required. :type ddos_custom_policy_name: str - :param parameters: Parameters supplied to update DDoS custom policy resource tags. Is one of - the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update DDoS custom policy resource tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.DdosCustomPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -33457,7 +34616,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosCustomPolicy] = kwargs.pop("cls", None) @@ -33526,7 +34685,7 @@ def _delete_initial(self, resource_group_name: str, ddos_custom_policy_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_ddos_custom_policies_delete_request( @@ -33590,7 +34749,7 @@ def begin_delete(self, resource_group_name: str, ddos_custom_policy_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -33637,7 +34796,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @api_version_validation( method_added_on="2025-07-01", params_added_on={"2025-07-01": ["api_version", "subscription_id", "resource_group_name", "accept"]}, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.DdosCustomPolicy"]: """Gets all the DDoS custom policies in a resource group. @@ -33652,7 +34811,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Dd _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosCustomPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -33726,7 +34885,7 @@ def get_next(next_link=None): @api_version_validation( method_added_on="2025-07-01", params_added_on={"2025-07-01": ["api_version", "subscription_id", "accept"]}, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def list_all(self, **kwargs: Any) -> ItemPaged["_models.DdosCustomPolicy"]: """Gets all the DDoS custom policies in a subscription. @@ -33738,7 +34897,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.DdosCustomPolicy"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosCustomPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -33808,7 +34967,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DdosProtectionPlansOperations: +class DdosProtectionPlansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -33851,7 +35010,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) _request = build_ddos_protection_plans_get_request( @@ -33902,7 +35061,7 @@ def _create_or_update_initial( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.DdosProtectionPlan, JSON, IO[bytes]], + parameters: Union[_models.DdosProtectionPlan, _types.DdosProtectionPlan, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -33916,7 +35075,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -34009,7 +35168,7 @@ def begin_create_or_update( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: _types.DdosProtectionPlan, *, content_type: str = "application/json", **kwargs: Any @@ -34022,7 +35181,7 @@ def begin_create_or_update( :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str :param parameters: Parameters supplied to the create or update operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DdosProtectionPlan :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -34065,7 +35224,7 @@ def begin_create_or_update( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.DdosProtectionPlan, JSON, IO[bytes]], + parameters: Union[_models.DdosProtectionPlan, _types.DdosProtectionPlan, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DdosProtectionPlan]: """Creates or updates a DDoS protection plan. @@ -34075,9 +35234,10 @@ def begin_create_or_update( :type resource_group_name: str :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str - :param parameters: Parameters supplied to the create or update operation. Is one of the - following types: DdosProtectionPlan, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DdosProtectionPlan or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update operation. Is either a + DdosProtectionPlan type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DdosProtectionPlan or + ~azure.mgmt.network.types.DdosProtectionPlan or IO[bytes] :return: An instance of LROPoller that returns DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.DdosProtectionPlan] @@ -34086,7 +35246,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -34170,7 +35330,7 @@ def update_tags( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -34184,7 +35344,7 @@ def update_tags( :type ddos_protection_plan_name: str :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -34226,7 +35386,7 @@ def update_tags( self, resource_group_name: str, ddos_protection_plan_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.DdosProtectionPlan: """Update a DDoS protection plan tags. @@ -34236,9 +35396,10 @@ def update_tags( :type resource_group_name: str :param ddos_protection_plan_name: The name of the DDoS protection plan. Required. :type ddos_protection_plan_name: str - :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Is one - of the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to the update DDoS protection plan resource tags. Is + either a TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.DdosProtectionPlan :raises ~azure.core.exceptions.HttpResponseError: @@ -34254,7 +35415,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DdosProtectionPlan] = kwargs.pop("cls", None) @@ -34325,7 +35486,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_ddos_protection_plans_delete_request( @@ -34389,7 +35550,7 @@ def begin_delete(self, resource_group_name: str, ddos_protection_plan_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -34448,7 +35609,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosProtectionPlan]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -34529,7 +35690,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.DdosProtectionPlan"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DdosProtectionPlan]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -34599,7 +35760,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteCircuitAuthorizationsOperations: # pylint: disable=name-too-long +class ExpressRouteCircuitAuthorizationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -34645,7 +35806,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitAuthorization] = kwargs.pop("cls", None) _request = build_express_route_circuit_authorizations_get_request( @@ -34698,7 +35859,9 @@ def _create_or_update_initial( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRouteCircuitAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRouteCircuitAuthorization, _types.ExpressRouteCircuitAuthorization, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -34712,7 +35875,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -34812,7 +35975,7 @@ def begin_create_or_update( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: _types.ExpressRouteCircuitAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -34828,7 +35991,7 @@ def begin_create_or_update( :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route circuit authorization operation. Required. - :type authorization_parameters: JSON + :type authorization_parameters: ~azure.mgmt.network.types.ExpressRouteCircuitAuthorization :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -34878,7 +36041,9 @@ def begin_create_or_update( resource_group_name: str, circuit_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRouteCircuitAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRouteCircuitAuthorization, _types.ExpressRouteCircuitAuthorization, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCircuitAuthorization]: """Creates or updates an authorization in the specified express route circuit. @@ -34891,10 +36056,10 @@ def begin_create_or_update( :param authorization_name: The name of the authorization. Required. :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route - circuit authorization operation. Is one of the following types: - ExpressRouteCircuitAuthorization, JSON, IO[bytes] Required. + circuit authorization operation. Is either a ExpressRouteCircuitAuthorization type or a + IO[bytes] type. Required. :type authorization_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitAuthorization or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRouteCircuitAuthorization or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCircuitAuthorization. The ExpressRouteCircuitAuthorization is compatible with MutableMapping :rtype: @@ -34904,7 +36069,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitAuthorization] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -34970,7 +36135,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_authorizations_delete_request( @@ -35039,7 +36204,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -35102,7 +36267,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitAuthorization]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -35174,7 +36339,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteCircuitsOperations: # pylint: disable=too-many-public-methods +class ExpressRouteCircuitsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -35215,7 +36380,7 @@ def get(self, resource_group_name: str, circuit_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_request( @@ -35266,7 +36431,7 @@ def _create_or_update_initial( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.ExpressRouteCircuit, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCircuit, _types.ExpressRouteCircuit, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -35280,7 +36445,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -35374,7 +36539,7 @@ def begin_create_or_update( self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: _types.ExpressRouteCircuit, *, content_type: str = "application/json", **kwargs: Any @@ -35388,7 +36553,7 @@ def begin_create_or_update( :type circuit_name: str :param parameters: Parameters supplied to the create or update express route circuit operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRouteCircuit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -35432,7 +36597,7 @@ def begin_create_or_update( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.ExpressRouteCircuit, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCircuit, _types.ExpressRouteCircuit, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCircuit]: """Creates or updates an express route circuit. @@ -35443,8 +36608,9 @@ def begin_create_or_update( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param parameters: Parameters supplied to the create or update express route circuit operation. - Is one of the following types: ExpressRouteCircuit, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRouteCircuit or JSON or IO[bytes] + Is either a ExpressRouteCircuit type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRouteCircuit or + ~azure.mgmt.network.types.ExpressRouteCircuit or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCircuit. The ExpressRouteCircuit is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteCircuit] @@ -35453,7 +36619,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -35536,7 +36702,7 @@ def update_tags( self, resource_group_name: str, circuit_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -35549,7 +36715,7 @@ def update_tags( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param parameters: Parameters supplied to update express route circuit tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -35590,7 +36756,7 @@ def update_tags( self, resource_group_name: str, circuit_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRouteCircuit: """Updates an express route circuit tags. @@ -35600,9 +36766,10 @@ def update_tags( :type resource_group_name: str :param circuit_name: The name of express route circuit. Required. :type circuit_name: str - :param parameters: Parameters supplied to update express route circuit tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update express route circuit tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ExpressRouteCircuit. The ExpressRouteCircuit is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRouteCircuit :raises ~azure.core.exceptions.HttpResponseError: @@ -35618,7 +36785,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuit] = kwargs.pop("cls", None) @@ -35687,7 +36854,7 @@ def _delete_initial(self, resource_group_name: str, circuit_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_delete_request( @@ -35751,7 +36918,7 @@ def begin_delete(self, resource_group_name: str, circuit_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -35808,7 +36975,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ex _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuit]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -35889,7 +37056,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.ExpressRouteCircuit"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuit]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -35983,7 +37150,7 @@ def get_stats(self, resource_group_name: str, circuit_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitStats] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_stats_request( @@ -36043,7 +37210,7 @@ def get_stats(self, resource_group_name: str, circuit_name: str, **kwargs: Any) "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_circuit_link_failover_all_tests_details_initial( # pylint: disable=name-too-long self, @@ -36065,7 +37232,7 @@ def _get_circuit_link_failover_all_tests_details_initial( # pylint: disable=nam _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_circuit_link_failover_all_tests_details_request( @@ -36129,7 +37296,7 @@ def _get_circuit_link_failover_all_tests_details_initial( # pylint: disable=nam "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_circuit_link_failover_all_tests_details( # pylint: disable=name-too-long self, @@ -36159,7 +37326,7 @@ def begin_get_circuit_link_failover_all_tests_details( # pylint: disable=name-t _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLinkFailoverAllTestsDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -36227,7 +37394,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_circuit_link_failover_single_test_details_initial( # pylint: disable=name-too-long self, @@ -36250,7 +37417,7 @@ def _get_circuit_link_failover_single_test_details_initial( # pylint: disable=n _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_circuit_link_failover_single_test_details_request( @@ -36316,7 +37483,7 @@ def _get_circuit_link_failover_single_test_details_initial( # pylint: disable=n "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_circuit_link_failover_single_test_details( # pylint: disable=name-too-long self, @@ -36351,7 +37518,7 @@ def begin_get_circuit_link_failover_single_test_details( # pylint: disable=name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLinkFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -36419,7 +37586,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _start_circuit_link_failover_test_initial( # pylint: disable=name-too-long self, resource_group_name: str, circuit_name: str, *, link_type: str, circuit_test_category: str, **kwargs: Any @@ -36435,7 +37602,7 @@ def _start_circuit_link_failover_test_initial( # pylint: disable=name-too-long _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_start_circuit_link_failover_test_request( @@ -36499,7 +37666,7 @@ def _start_circuit_link_failover_test_initial( # pylint: disable=name-too-long "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_start_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, *, link_type: str, circuit_test_category: str, **kwargs: Any @@ -36523,7 +37690,7 @@ def begin_start_circuit_link_failover_test( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -36587,13 +37754,17 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _stop_circuit_link_failover_test_initial( self, resource_group_name: str, circuit_name: str, - stop_parameters: Union[_models.ExpressRouteLinkFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteLinkFailoverStopApiParameters, + _types.ExpressRouteLinkFailoverStopApiParameters, + IO[bytes], + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -36607,7 +37778,7 @@ def _stop_circuit_link_failover_test_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -36698,7 +37869,7 @@ def begin_stop_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, - stop_parameters: JSON, + stop_parameters: _types.ExpressRouteLinkFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -36712,7 +37883,7 @@ def begin_stop_circuit_link_failover_test( :type circuit_name: str :param stop_parameters: Parameters supplied to stop the link failover simulation on the express route circuit. Required. - :type stop_parameters: JSON + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteLinkFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -36762,13 +37933,17 @@ def begin_stop_circuit_link_failover_test( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_stop_circuit_link_failover_test( self, resource_group_name: str, circuit_name: str, - stop_parameters: Union[_models.ExpressRouteLinkFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteLinkFailoverStopApiParameters, + _types.ExpressRouteLinkFailoverStopApiParameters, + IO[bytes], + ], **kwargs: Any ) -> LROPoller[str]: """Stops link failover simulation on the express route circuit. @@ -36779,10 +37954,10 @@ def begin_stop_circuit_link_failover_test( :param circuit_name: The name of express route circuit. Required. :type circuit_name: str :param stop_parameters: Parameters supplied to stop the link failover simulation on the express - route circuit. Is one of the following types: ExpressRouteLinkFailoverStopApiParameters, JSON, - IO[bytes] Required. + route circuit. Is either a ExpressRouteLinkFailoverStopApiParameters type or a IO[bytes] type. + Required. :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteLinkFailoverStopApiParameters or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRouteLinkFailoverStopApiParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -36790,7 +37965,7 @@ def begin_stop_circuit_link_failover_test( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -36857,7 +38032,7 @@ def _list_arp_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_arp_table_request( @@ -36932,7 +38107,7 @@ def begin_list_arp_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsArpTableListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -36996,7 +38171,7 @@ def _list_routes_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_routes_table_request( @@ -37071,7 +38246,7 @@ def begin_list_routes_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -37135,7 +38310,7 @@ def _list_routes_table_summary_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuits_list_routes_table_summary_request( @@ -37211,7 +38386,7 @@ def begin_list_routes_table_summary( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableSummaryListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -37290,7 +38465,7 @@ def get_peering_stats( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitStats] = kwargs.pop("cls", None) _request = build_express_route_circuits_get_peering_stats_request( @@ -37339,7 +38514,7 @@ def get_peering_stats( return deserialized # type: ignore -class ExpressRouteCircuitPeeringsOperations: +class ExpressRouteCircuitPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37385,7 +38560,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitPeering] = kwargs.pop("cls", None) _request = build_express_route_circuit_peerings_get_request( @@ -37438,7 +38613,7 @@ def _create_or_update_initial( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCircuitPeering, JSON, IO[bytes]], + peering_parameters: Union[_models.ExpressRouteCircuitPeering, _types.ExpressRouteCircuitPeering, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -37452,7 +38627,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -37551,7 +38726,7 @@ def begin_create_or_update( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: _types.ExpressRouteCircuitPeering, *, content_type: str = "application/json", **kwargs: Any @@ -37567,7 +38742,7 @@ def begin_create_or_update( :type peering_name: str :param peering_parameters: Parameters supplied to the create or update express route circuit peering operation. Required. - :type peering_parameters: JSON + :type peering_parameters: ~azure.mgmt.network.types.ExpressRouteCircuitPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -37615,7 +38790,7 @@ def begin_create_or_update( resource_group_name: str, circuit_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCircuitPeering, JSON, IO[bytes]], + peering_parameters: Union[_models.ExpressRouteCircuitPeering, _types.ExpressRouteCircuitPeering, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCircuitPeering]: """Creates or updates a peering in the specified express route circuits. @@ -37628,10 +38803,9 @@ def begin_create_or_update( :param peering_name: The name of the peering. Required. :type peering_name: str :param peering_parameters: Parameters supplied to the create or update express route circuit - peering operation. Is one of the following types: ExpressRouteCircuitPeering, JSON, IO[bytes] - Required. - :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitPeering or JSON or - IO[bytes] + peering operation. Is either a ExpressRouteCircuitPeering type or a IO[bytes] type. Required. + :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCircuitPeering or + ~azure.mgmt.network.types.ExpressRouteCircuitPeering or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCircuitPeering. The ExpressRouteCircuitPeering is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteCircuitPeering] @@ -37640,7 +38814,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitPeering] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -37706,7 +38880,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_peerings_delete_request( @@ -37775,7 +38949,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -37837,7 +39011,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -37909,7 +39083,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteCircuitConnectionsOperations: +class ExpressRouteCircuitConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -37957,7 +39131,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitConnection] = kwargs.pop("cls", None) _request = build_express_route_circuit_connections_get_request( @@ -38012,7 +39186,9 @@ def _create_or_update_initial( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: Union[_models.ExpressRouteCircuitConnection, JSON, IO[bytes]], + express_route_circuit_connection_parameters: Union[ + _models.ExpressRouteCircuitConnection, _types.ExpressRouteCircuitConnection, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -38026,7 +39202,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -38131,7 +39307,7 @@ def begin_create_or_update( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: JSON, + express_route_circuit_connection_parameters: _types.ExpressRouteCircuitConnection, *, content_type: str = "application/json", **kwargs: Any @@ -38149,7 +39325,8 @@ def begin_create_or_update( :type connection_name: str :param express_route_circuit_connection_parameters: Parameters supplied to the create or update express route circuit connection operation. Required. - :type express_route_circuit_connection_parameters: JSON + :type express_route_circuit_connection_parameters: + ~azure.mgmt.network.types.ExpressRouteCircuitConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -38201,7 +39378,9 @@ def begin_create_or_update( circuit_name: str, peering_name: str, connection_name: str, - express_route_circuit_connection_parameters: Union[_models.ExpressRouteCircuitConnection, JSON, IO[bytes]], + express_route_circuit_connection_parameters: Union[ + _models.ExpressRouteCircuitConnection, _types.ExpressRouteCircuitConnection, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCircuitConnection]: """Creates or updates a Express Route Circuit Connection in the specified express route circuits. @@ -38216,10 +39395,11 @@ def begin_create_or_update( :param connection_name: The name of the express route circuit connection. Required. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters supplied to the create or update - express route circuit connection operation. Is one of the following types: - ExpressRouteCircuitConnection, JSON, IO[bytes] Required. + express route circuit connection operation. Is either a ExpressRouteCircuitConnection type or a + IO[bytes] type. Required. :type express_route_circuit_connection_parameters: - ~azure.mgmt.network.models.ExpressRouteCircuitConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.ExpressRouteCircuitConnection or + ~azure.mgmt.network.types.ExpressRouteCircuitConnection or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCircuitConnection. The ExpressRouteCircuitConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteCircuitConnection] @@ -38228,7 +39408,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCircuitConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -38295,7 +39475,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_circuit_connections_delete_request( @@ -38368,7 +39548,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -38434,7 +39614,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCircuitConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -38507,7 +39687,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PeerExpressRouteCircuitConnectionsOperations: # pylint: disable=name-too-long +class PeerExpressRouteCircuitConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -38557,7 +39737,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PeerExpressRouteCircuitConnection] = kwargs.pop("cls", None) _request = build_peer_express_route_circuit_connections_get_request( @@ -38628,7 +39808,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PeerExpressRouteCircuitConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -38701,7 +39881,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteCrossConnectionsOperations: +class ExpressRouteCrossConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -38746,7 +39926,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_get_request( @@ -38797,7 +39977,7 @@ def _create_or_update_initial( self, resource_group_name: str, cross_connection_name: str, - parameters: Union[_models.ExpressRouteCrossConnection, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCrossConnection, _types.ExpressRouteCrossConnection, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -38811,7 +39991,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -38904,7 +40084,7 @@ def begin_create_or_update( self, resource_group_name: str, cross_connection_name: str, - parameters: JSON, + parameters: _types.ExpressRouteCrossConnection, *, content_type: str = "application/json", **kwargs: Any @@ -38919,7 +40099,7 @@ def begin_create_or_update( :type cross_connection_name: str :param parameters: Parameters supplied to the update express route crossConnection operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRouteCrossConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -38964,7 +40144,7 @@ def begin_create_or_update( self, resource_group_name: str, cross_connection_name: str, - parameters: Union[_models.ExpressRouteCrossConnection, JSON, IO[bytes]], + parameters: Union[_models.ExpressRouteCrossConnection, _types.ExpressRouteCrossConnection, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCrossConnection]: """Update the specified ExpressRouteCrossConnection. @@ -38976,8 +40156,9 @@ def begin_create_or_update( circuit). Required. :type cross_connection_name: str :param parameters: Parameters supplied to the update express route crossConnection operation. - Is one of the following types: ExpressRouteCrossConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnection or JSON or IO[bytes] + Is either a ExpressRouteCrossConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnection or + ~azure.mgmt.network.types.ExpressRouteCrossConnection or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCrossConnection. The ExpressRouteCrossConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteCrossConnection] @@ -38986,7 +40167,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -39077,7 +40258,7 @@ def update_tags( self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: JSON, + cross_connection_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -39092,7 +40273,7 @@ def update_tags( :type cross_connection_name: str :param cross_connection_parameters: Parameters supplied to update express route cross connection tags. Required. - :type cross_connection_parameters: JSON + :type cross_connection_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -39137,7 +40318,7 @@ def update_tags( self, resource_group_name: str, cross_connection_name: str, - cross_connection_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + cross_connection_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRouteCrossConnection: """Updates an express route cross connection tags. @@ -39149,8 +40330,9 @@ def update_tags( circuit). Required. :type cross_connection_name: str :param cross_connection_parameters: Parameters supplied to update express route cross - connection tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type cross_connection_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + connection tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type cross_connection_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: ExpressRouteCrossConnection. The ExpressRouteCrossConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRouteCrossConnection @@ -39167,7 +40349,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnection] = kwargs.pop("cls", None) @@ -39240,7 +40422,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -39324,7 +40506,7 @@ def list(self, *, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged["_mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -39408,7 +40590,7 @@ def _list_arp_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_arp_table_request( @@ -39484,7 +40666,7 @@ def begin_list_arp_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsArpTableListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39548,7 +40730,7 @@ def _list_routes_table_summary_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_routes_table_summary_request( @@ -39625,7 +40807,7 @@ def begin_list_routes_table_summary( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnectionsRoutesTableSummaryListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39691,7 +40873,7 @@ def _list_routes_table_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connections_list_routes_table_request( @@ -39767,7 +40949,7 @@ def begin_list_routes_table( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCircuitsRoutesTableListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -39818,7 +41000,7 @@ def get_long_running_output(pipeline_response): ) -class ExpressRoutePortsLocationsOperations: +class ExpressRoutePortsLocationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -39858,7 +41040,7 @@ def get(self, location_name: str, **kwargs: Any) -> _models.ExpressRoutePortsLoc _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePortsLocation] = kwargs.pop("cls", None) _request = build_express_route_ports_locations_get_request( @@ -39917,7 +41099,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.ExpressRoutePortsLocation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePortsLocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -39987,7 +41169,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRoutePortsOperations: +class ExpressRoutePortsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -40028,7 +41210,7 @@ def get(self, resource_group_name: str, express_route_port_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) _request = build_express_route_ports_get_request( @@ -40079,7 +41261,7 @@ def _create_or_update_initial( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.ExpressRoutePort, JSON, IO[bytes]], + parameters: Union[_models.ExpressRoutePort, _types.ExpressRoutePort, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -40093,7 +41275,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -40186,7 +41368,7 @@ def begin_create_or_update( self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: _types.ExpressRoutePort, *, content_type: str = "application/json", **kwargs: Any @@ -40199,7 +41381,7 @@ def begin_create_or_update( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param parameters: Parameters supplied to the create ExpressRoutePort operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ExpressRoutePort :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -40242,7 +41424,7 @@ def begin_create_or_update( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.ExpressRoutePort, JSON, IO[bytes]], + parameters: Union[_models.ExpressRoutePort, _types.ExpressRoutePort, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRoutePort]: """Creates or updates the specified ExpressRoutePort resource. @@ -40252,9 +41434,10 @@ def begin_create_or_update( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param parameters: Parameters supplied to the create ExpressRoutePort operation. Is one of the - following types: ExpressRoutePort, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ExpressRoutePort or JSON or IO[bytes] + :param parameters: Parameters supplied to the create ExpressRoutePort operation. Is either a + ExpressRoutePort type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ExpressRoutePort or + ~azure.mgmt.network.types.ExpressRoutePort or IO[bytes] :return: An instance of LROPoller that returns ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRoutePort] @@ -40263,7 +41446,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -40346,7 +41529,7 @@ def update_tags( self, resource_group_name: str, express_route_port_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -40359,7 +41542,7 @@ def update_tags( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -40400,7 +41583,7 @@ def update_tags( self, resource_group_name: str, express_route_port_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ExpressRoutePort: """Update ExpressRoutePort tags. @@ -40410,9 +41593,10 @@ def update_tags( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update ExpressRoutePort resource tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ExpressRoutePort. The ExpressRoutePort is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ExpressRoutePort :raises ~azure.core.exceptions.HttpResponseError: @@ -40428,7 +41612,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePort] = kwargs.pop("cls", None) @@ -40497,7 +41681,7 @@ def _delete_initial(self, resource_group_name: str, express_route_port_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_ports_delete_request( @@ -40564,7 +41748,7 @@ def begin_delete(self, resource_group_name: str, express_route_port_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -40621,7 +41805,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePort]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -40702,7 +41886,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.ExpressRoutePort"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePort]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -40804,7 +41988,7 @@ def generate_loa( self, resource_group_name: str, express_route_port_name: str, - request: JSON, + request: _types.GenerateExpressRoutePortsLOARequest, *, content_type: str = "application/json", **kwargs: Any @@ -40817,7 +42001,7 @@ def generate_loa( :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str :param request: Request parameters supplied to generate a letter of authorization. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.GenerateExpressRoutePortsLOARequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -40860,7 +42044,9 @@ def generate_loa( self, resource_group_name: str, express_route_port_name: str, - request: Union[_models.GenerateExpressRoutePortsLOARequest, JSON, IO[bytes]], + request: Union[ + _models.GenerateExpressRoutePortsLOARequest, _types.GenerateExpressRoutePortsLOARequest, IO[bytes] + ], **kwargs: Any ) -> _models.GenerateExpressRoutePortsLOAResult: """Generate a letter of authorization for the requested ExpressRoutePort resource. @@ -40870,10 +42056,10 @@ def generate_loa( :type resource_group_name: str :param express_route_port_name: The name of ExpressRoutePort. Required. :type express_route_port_name: str - :param request: Request parameters supplied to generate a letter of authorization. Is one of - the following types: GenerateExpressRoutePortsLOARequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest or JSON or - IO[bytes] + :param request: Request parameters supplied to generate a letter of authorization. Is either a + GenerateExpressRoutePortsLOARequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOARequest or + ~azure.mgmt.network.types.GenerateExpressRoutePortsLOARequest or IO[bytes] :return: GenerateExpressRoutePortsLOAResult. The GenerateExpressRoutePortsLOAResult is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.GenerateExpressRoutePortsLOAResult @@ -40890,7 +42076,7 @@ def generate_loa( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GenerateExpressRoutePortsLOAResult] = kwargs.pop("cls", None) @@ -40948,7 +42134,7 @@ def generate_loa( return deserialized # type: ignore -class ExpressRoutePortAuthorizationsOperations: +class ExpressRoutePortAuthorizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -40994,7 +42180,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRoutePortAuthorization] = kwargs.pop("cls", None) _request = build_express_route_port_authorizations_get_request( @@ -41047,7 +42233,9 @@ def _create_or_update_initial( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRoutePortAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRoutePortAuthorization, _types.ExpressRoutePortAuthorization, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -41061,7 +42249,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -41160,7 +42348,7 @@ def begin_create_or_update( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: JSON, + authorization_parameters: _types.ExpressRoutePortAuthorization, *, content_type: str = "application/json", **kwargs: Any @@ -41176,7 +42364,7 @@ def begin_create_or_update( :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route port authorization operation. Required. - :type authorization_parameters: JSON + :type authorization_parameters: ~azure.mgmt.network.types.ExpressRoutePortAuthorization :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -41224,7 +42412,9 @@ def begin_create_or_update( resource_group_name: str, express_route_port_name: str, authorization_name: str, - authorization_parameters: Union[_models.ExpressRoutePortAuthorization, JSON, IO[bytes]], + authorization_parameters: Union[ + _models.ExpressRoutePortAuthorization, _types.ExpressRoutePortAuthorization, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ExpressRoutePortAuthorization]: """Creates or updates an authorization in the specified express route port. @@ -41237,10 +42427,10 @@ def begin_create_or_update( :param authorization_name: The name of the authorization. Required. :type authorization_name: str :param authorization_parameters: Parameters supplied to the create or update express route port - authorization operation. Is one of the following types: ExpressRoutePortAuthorization, JSON, - IO[bytes] Required. + authorization operation. Is either a ExpressRoutePortAuthorization type or a IO[bytes] type. + Required. :type authorization_parameters: ~azure.mgmt.network.models.ExpressRoutePortAuthorization or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRoutePortAuthorization or IO[bytes] :return: An instance of LROPoller that returns ExpressRoutePortAuthorization. The ExpressRoutePortAuthorization is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRoutePortAuthorization] @@ -41249,7 +42439,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRoutePortAuthorization] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -41315,7 +42505,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_port_authorizations_delete_request( @@ -41387,7 +42577,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -41449,7 +42639,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRoutePortAuthorization]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -41521,14 +42711,14 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class FirewallPoliciesOperations: +class ExpressRouteLagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. Instead, you should access the following operations through :class:`~azure.mgmt.network.NetworkManagementClient`'s - :attr:`firewall_policies` attribute. + :attr:`express_route_lags` attribute. """ def __init__(self, *args, **kwargs) -> None: @@ -41539,20 +42729,16 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def get( - self, resource_group_name: str, firewall_policy_name: str, *, expand: Optional[str] = None, **kwargs: Any - ) -> _models.FirewallPolicy: - """Gets the specified Firewall Policy. + def get(self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any) -> _models.ExpressRouteLag: + """Retrieves the requested ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :keyword expand: Expands referenced resources. Default value is None. - :paramtype expand: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -41566,14 +42752,13 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) - _request = build_firewall_policies_get_request( + _request = build_express_route_lags_get_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, - expand=expand, api_version=api_version, headers=_headers, params=_params, @@ -41607,7 +42792,7 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -41617,8 +42802,8 @@ def get( def _create_or_update_initial( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.FirewallPolicy, JSON, IO[bytes]], + express_route_lag_name: str, + resource: Union[_models.ExpressRouteLag, _types.ExpressRouteLag, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -41632,20 +42817,20 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(resource, (IOBase, bytes)): + _content = resource else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_firewall_policies_create_or_update_request( + _request = build_express_route_lags_create_or_update_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -41696,28 +42881,27 @@ def _create_or_update_initial( def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: _models.FirewallPolicy, + express_route_lag_name: str, + resource: _models.ExpressRouteLag, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> LROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: ~azure.mgmt.network.models.ExpressRouteLag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :return: An instance of LROPoller that returns ExpressRouteLag. The ExpressRouteLag is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -41725,28 +42909,27 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: JSON, + express_route_lag_name: str, + resource: _types.ExpressRouteLag, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> LROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: JSON + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: ~azure.mgmt.network.types.ExpressRouteLag :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :return: An instance of LROPoller that returns ExpressRouteLag. The ExpressRouteLag is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -41754,28 +42937,27 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: IO[bytes], + express_route_lag_name: str, + resource: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> LROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. - Required. - :type parameters: IO[bytes] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Required. + :type resource: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :return: An instance of LROPoller that returns ExpressRouteLag. The ExpressRouteLag is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -41783,39 +42965,40 @@ def begin_create_or_update( def begin_create_or_update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.FirewallPolicy, JSON, IO[bytes]], + express_route_lag_name: str, + resource: Union[_models.ExpressRouteLag, _types.ExpressRouteLag, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.FirewallPolicy]: - """Creates or updates the specified Firewall Policy. + ) -> LROPoller[_models.ExpressRouteLag]: + """Creates or updates the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to the create or update Firewall Policy operation. Is - one of the following types: FirewallPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicy or JSON or IO[bytes] - :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible - with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param resource: Parameters supplied to the create ExpressRouteLag operation. Is either a + ExpressRouteLag type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.ExpressRouteLag or + ~azure.mgmt.network.types.ExpressRouteLag or IO[bytes] + :return: An instance of LROPoller that returns ExpressRouteLag. The ExpressRouteLag is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - parameters=parameters, + express_route_lag_name=express_route_lag_name, + resource=resource, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -41828,7 +43011,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -41846,117 +43029,125 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.FirewallPolicy].from_continuation_token( + return LROPoller[_models.ExpressRouteLag].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.FirewallPolicy]( + return LROPoller[_models.ExpressRouteLag]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @overload - def update_tags( + def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: _models.TagsObject, + express_route_lag_name: str, + properties: _models.ExpressRouteLagUpdateTagsOrIdentityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: ~azure.mgmt.network.models.TagsObject + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: ~azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def update_tags( + def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: JSON, + express_route_lag_name: str, + properties: _types.ExpressRouteLagUpdateTagsOrIdentityRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: JSON + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: ~azure.mgmt.network.types.ExpressRouteLagUpdateTagsOrIdentityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def update_tags( + def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: IO[bytes], + express_route_lag_name: str, + properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. - :type parameters: IO[bytes] + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. + Required. + :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def update_tags( + def update( self, resource_group_name: str, - firewall_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_lag_name: str, + properties: Union[ + _models.ExpressRouteLagUpdateTagsOrIdentityRequest, + _types.ExpressRouteLagUpdateTagsOrIdentityRequest, + IO[bytes], + ], **kwargs: Any - ) -> _models.FirewallPolicy: - """Updates tags of a Azure Firewall Policy resource. + ) -> _models.ExpressRouteLag: + """Update ExpressRouteLag tags or identity. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param parameters: Parameters supplied to update Azure Firewall Policy tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] - :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicy + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param properties: Parameters supplied to update ExpressRouteLag resource tags or identity. Is + either a ExpressRouteLagUpdateTagsOrIdentityRequest type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.network.models.ExpressRouteLagUpdateTagsOrIdentityRequest or + ~azure.mgmt.network.types.ExpressRouteLagUpdateTagsOrIdentityRequest or IO[bytes] + :return: ExpressRouteLag. The ExpressRouteLag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLag :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -41970,20 +43161,20 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + cls: ClsType[_models.ExpressRouteLag] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters + if isinstance(properties, (IOBase, bytes)): + _content = properties else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_firewall_policies_update_tags_request( + _request = build_express_route_lags_update_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, @@ -42020,14 +43211,14 @@ def update_tags( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.FirewallPolicy, response.json()) + deserialized = _deserialize(_models.ExpressRouteLag, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> Iterator[bytes]: + def _delete_initial(self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -42039,12 +43230,12 @@ def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_firewall_policies_delete_request( + _request = build_express_route_lags_delete_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -42063,7 +43254,7 @@ def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, * response = pipeline_response.http_response - if response.status_code not in [200, 202, 204]: + if response.status_code not in [202, 204]: try: response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -42077,6 +43268,9 @@ def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, * response_headers = {} if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) @@ -42088,14 +43282,14 @@ def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, * return deserialized # type: ignore @distributed_trace - def begin_delete(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> LROPoller[None]: - """Deletes the specified Firewall Policy. + def begin_delete(self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any) -> LROPoller[None]: + """Deletes the specified ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -42103,7 +43297,7 @@ def begin_delete(self, resource_group_name: str, firewall_policy_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -42111,7 +43305,7 @@ def begin_delete(self, resource_group_name: str, firewall_policy_name: str, **kw if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, + express_route_lag_name=express_route_lag_name, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -42147,21 +43341,21 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.FirewallPolicy"]: - """Lists all Firewall Policies in a resource group. + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.ExpressRouteLag"]: + """List all the ExpressRouteLag resources in the specified resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :return: An iterator like instance of FirewallPolicy - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :return: An iterator like instance of ExpressRouteLag + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -42174,7 +43368,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Fi def prepare_request(next_link=None): if not next_link: - _request = build_firewall_policies_list_request( + _request = build_express_route_lags_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, @@ -42202,7 +43396,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FirewallPolicy], + List[_models.ExpressRouteLag], deserialized.get("value", []), ) if cls: @@ -42231,18 +43425,18 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) @distributed_trace - def list_all(self, **kwargs: Any) -> ItemPaged["_models.FirewallPolicy"]: - """Gets all the Firewall Policies in a subscription. + def list(self, **kwargs: Any) -> ItemPaged["_models.ExpressRouteLag"]: + """List all the ExpressRouteLag resources in the specified subscription. - :return: An iterator like instance of FirewallPolicy - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :return: An iterator like instance of ExpressRouteLag + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.ExpressRouteLag] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLag]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -42255,7 +43449,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.FirewallPolicy"]: def prepare_request(next_link=None): if not next_link: - _request = build_firewall_policies_list_all_request( + _request = build_express_route_lags_list_request( subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -42282,7 +43476,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.FirewallPolicy], + List[_models.ExpressRouteLag], deserialized.get("value", []), ) if cls: @@ -42310,41 +43504,112 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: _models.GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. -class FirewallPolicyRuleCollectionGroupsOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ - Instead, you should access the following operations through - :class:`~azure.mgmt.network.NetworkManagementClient`'s - :attr:`firewall_policy_rule_collection_groups` attribute. - """ + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: _types.GenerateExpressRouteLagsLOARequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: ~azure.mgmt.network.types.GenerateExpressRouteLagsLOARequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult + :raises ~azure.core.exceptions.HttpResponseError: + """ @distributed_trace - def get( - self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any - ) -> _models.FirewallPolicyRuleCollectionGroup: - """Gets the specified FirewallPolicyRuleCollectionGroup. + def generate_loa( + self, + resource_group_name: str, + express_route_lag_name: str, + body: Union[_models.GenerateExpressRouteLagsLOARequest, _types.GenerateExpressRouteLagsLOARequest, IO[bytes]], + **kwargs: Any + ) -> _models.GenerateExpressRouteLagsLOAResult: + """Generate a letter of authorization for the requested ExpressRouteLag resource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param firewall_policy_name: The name of the Firewall Policy. Required. - :type firewall_policy_name: str - :param rule_collection_group_name: The name of the resource that is unique within a resource - group. This name can be used to access the resource. Required. - :type rule_collection_group_name: str - :return: FirewallPolicyRuleCollectionGroup. The FirewallPolicyRuleCollectionGroup is compatible + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :param body: Request parameters supplied to generate a letter of authorization. Is either a + GenerateExpressRouteLagsLOARequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOARequest or + ~azure.mgmt.network.types.GenerateExpressRouteLagsLOARequest or IO[bytes] + :return: GenerateExpressRouteLagsLOAResult. The GenerateExpressRouteLagsLOAResult is compatible with MutableMapping - :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup + :rtype: ~azure.mgmt.network.models.GenerateExpressRouteLagsLOAResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -42355,16 +43620,1278 @@ def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.GenerateExpressRouteLagsLOAResult] = kwargs.pop("cls", None) - _request = build_firewall_policy_rule_collection_groups_get_request( + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_express_route_lags_generate_loa_request( resource_group_name=resource_group_name, - firewall_policy_name=firewall_policy_name, - rule_collection_group_name=rule_collection_group_name, + express_route_lag_name=express_route_lag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.GenerateExpressRouteLagsLOAResult, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def links_get( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, **kwargs: Any + ) -> _models.ExpressRouteLagLink: + """Retrieves the specified ExpressRouteLagLink resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :return: ExpressRouteLagLink. The ExpressRouteLagLink is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLagLink + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLagLink] = kwargs.pop("cls", None) + + _request = build_express_route_lags_links_get_request( + resource_group_name=resource_group_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExpressRouteLagLink, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def links_list( + self, resource_group_name: str, express_route_lag_name: str, **kwargs: Any + ) -> ItemPaged["_models.ExpressRouteLagLink"]: + """Retrieve the ExpressRouteLagLink sub-resources of the specified ExpressRouteLag resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of ExpressRouteLag. Required. + :type express_route_lag_name: str + :return: An iterator like instance of ExpressRouteLagLink + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.ExpressRouteLagLink] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLagLink]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_express_route_lags_links_list_request( + resource_group_name=resource_group_name, + express_route_lag_name=express_route_lag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ExpressRouteLagLink], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def members_get( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, member_name: str, **kwargs: Any + ) -> _models.ExpressRouteLagMember: + """Retrieves the specified ExpressRouteLagMember resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :param member_name: The name of the express route LAG member. Required. + :type member_name: str + :return: ExpressRouteLagMember. The ExpressRouteLagMember is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ExpressRouteLagMember + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ExpressRouteLagMember] = kwargs.pop("cls", None) + + _request = build_express_route_lags_members_get_request( + resource_group_name=resource_group_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, + member_name=member_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ExpressRouteLagMember, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def members_list( + self, resource_group_name: str, express_route_lag_name: str, link_name: str, **kwargs: Any + ) -> ItemPaged["_models.ExpressRouteLagMember"]: + """Retrieve the ExpressRouteLagMember sub-resources of the specified ExpressRouteLagLink resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param express_route_lag_name: The name of the express route LAG. Required. + :type express_route_lag_name: str + :param link_name: The name of the express route LAG link. Required. + :type link_name: str + :return: An iterator like instance of ExpressRouteLagMember + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.ExpressRouteLagMember] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ExpressRouteLagMember]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_express_route_lags_members_list_request( + resource_group_name=resource_group_name, + express_route_lag_name=express_route_lag_name, + link_name=link_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ExpressRouteLagMember], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class FirewallPoliciesOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.NetworkManagementClient`'s + :attr:`firewall_policies` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, firewall_policy_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.FirewallPolicy: + """Gets the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :keyword expand: Expands referenced resources. Default value is None. + :paramtype expand: str + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + + _request = build_firewall_policies_get_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirewallPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + params_added_on={"2025-09-01": ["afc_managed_sync"]}, + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], + ) + def _create_or_update_initial( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: Union[_models.FirewallPolicy, _types.FirewallPolicy, IO[bytes]], + *, + afc_managed_sync: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policies_create_or_update_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + afc_managed_sync=afc_managed_sync, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: _models.FirewallPolicy, + *, + afc_managed_sync: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicy + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: _types.FirewallPolicy, + *, + afc_managed_sync: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. + :type parameters: ~azure.mgmt.network.types.FirewallPolicy + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: IO[bytes], + *, + afc_managed_sync: Optional[bool] = None, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy operation. + Required. + :type parameters: IO[bytes] + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + params_added_on={"2025-09-01": ["afc_managed_sync"]}, + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], + ) + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: Union[_models.FirewallPolicy, _types.FirewallPolicy, IO[bytes]], + *, + afc_managed_sync: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicy]: + """Creates or updates the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to the create or update Firewall Policy operation. Is + either a FirewallPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicy or + ~azure.mgmt.network.types.FirewallPolicy or IO[bytes] + :keyword afc_managed_sync: Indicates that the write originates from AFC (Azure Firewall for + Containers) and is permitted to modify an AFC-managed Firewall Policy. Default value is None. + :paramtype afc_managed_sync: bool + :return: An instance of LROPoller that returns FirewallPolicy. The FirewallPolicy is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + parameters=parameters, + afc_managed_sync=afc_managed_sync, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirewallPolicy, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.FirewallPolicy].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.FirewallPolicy]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @overload + def update_tags( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update_tags( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update_tags( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update_tags( + self, + resource_group_name: str, + firewall_policy_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.FirewallPolicy: + """Updates tags of a Azure Firewall Policy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param parameters: Parameters supplied to update Azure Firewall Policy tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: FirewallPolicy. The FirewallPolicy is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicy + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirewallPolicy] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policies_update_tags_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirewallPolicy, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _delete_initial(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_firewall_policies_delete_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> LROPoller[None]: + """Deletes the specified Firewall Policy. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.FirewallPolicy"]: + """Lists all Firewall Policies in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of FirewallPolicy + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_firewall_policies_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> ItemPaged["_models.FirewallPolicy"]: + """Gets all the Firewall Policies in a subscription. + + :return: An iterator like instance of FirewallPolicy + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicy]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_firewall_policies_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicy], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class FirewallPolicyRuleCollectionGroupsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.NetworkManagementClient`'s + :attr:`firewall_policy_rule_collection_groups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, **kwargs: Any + ) -> _models.FirewallPolicyRuleCollectionGroup: + """Gets the specified FirewallPolicyRuleCollectionGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param rule_collection_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type rule_collection_group_name: str + :return: FirewallPolicyRuleCollectionGroup. The FirewallPolicyRuleCollectionGroup is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) + + _request = build_firewall_policy_rule_collection_groups_get_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + rule_collection_group_name=rule_collection_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -42411,7 +44938,9 @@ def _create_or_update_initial( resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroup, JSON, IO[bytes]], + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroup, _types.FirewallPolicyRuleCollectionGroup, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -42425,7 +44954,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -42526,7 +45055,7 @@ def begin_create_or_update( resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: _types.FirewallPolicyRuleCollectionGroup, *, content_type: str = "application/json", **kwargs: Any @@ -42543,7 +45072,7 @@ def begin_create_or_update( :type rule_collection_group_name: str :param parameters: Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -42594,7 +45123,9 @@ def begin_create_or_update( resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroup, JSON, IO[bytes]], + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroup, _types.FirewallPolicyRuleCollectionGroup, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.FirewallPolicyRuleCollectionGroup]: """Creates or updates the specified FirewallPolicyRuleCollectionGroup. @@ -42608,10 +45139,10 @@ def begin_create_or_update( group. This name can be used to access the resource. Required. :type rule_collection_group_name: str :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Is one of the following types: - FirewallPolicyRuleCollectionGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup or JSON or - IO[bytes] + FirewallPolicyRuleCollectionGroup operation. Is either a FirewallPolicyRuleCollectionGroup type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroup or + ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroup or IO[bytes] :return: An instance of LROPoller that returns FirewallPolicyRuleCollectionGroup. The FirewallPolicyRuleCollectionGroup is compatible with MutableMapping :rtype: @@ -42621,7 +45152,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FirewallPolicyRuleCollectionGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -42687,7 +45218,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_firewall_policy_rule_collection_groups_delete_request( @@ -42757,7 +45288,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -42820,7 +45351,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.FirewallPolicyRuleCollectionGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -42892,7 +45423,587 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class FirewallPolicyIdpsSignaturesOverridesOperations: # pylint: disable=name-too-long +class FirewallPolicyKubeSelectorGroupsOperations: # pylint: disable=docstring-missing-param,name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.NetworkManagementClient`'s + :attr:`firewall_policy_kube_selector_groups` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> _models.FirewallPolicyKubeSelectorGroup: + """Gets the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :return: FirewallPolicyKubeSelectorGroup. The FirewallPolicyKubeSelectorGroup is compatible + with MutableMapping + :rtype: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirewallPolicyKubeSelectorGroup] = kwargs.pop("cls", None) + + _request = build_firewall_policy_kube_selector_groups_get_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirewallPolicyKubeSelectorGroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: Union[_models.FirewallPolicyKubeSelectorGroup, _types.FirewallPolicyKubeSelectorGroup, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_firewall_policy_kube_selector_groups_create_or_update_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: _models.FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: _types.FirewallPolicyKubeSelectorGroup, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: ~azure.mgmt.network.types.FirewallPolicyKubeSelectorGroup + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + firewall_policy_name: str, + kube_selector_group_name: str, + resource: Union[_models.FirewallPolicyKubeSelectorGroup, _types.FirewallPolicyKubeSelectorGroup, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.FirewallPolicyKubeSelectorGroup]: + """Creates or updates the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :param resource: Parameters supplied to the create or update FirewallPolicyKubeSelectorGroup + operation. Is either a FirewallPolicyKubeSelectorGroup type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup or + ~azure.mgmt.network.types.FirewallPolicyKubeSelectorGroup or IO[bytes] + :return: An instance of LROPoller that returns FirewallPolicyKubeSelectorGroup. The + FirewallPolicyKubeSelectorGroup is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirewallPolicyKubeSelectorGroup] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + resource=resource, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirewallPolicyKubeSelectorGroup, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.FirewallPolicyKubeSelectorGroup].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.FirewallPolicyKubeSelectorGroup]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_firewall_policy_kube_selector_groups_delete_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, firewall_policy_name: str, kube_selector_group_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified FirewallPolicyKubeSelectorGroup. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :param kube_selector_group_name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. Required. + :type kube_selector_group_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + kube_selector_group_name=kube_selector_group_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any + ) -> ItemPaged["_models.FirewallPolicyKubeSelectorGroup"]: + """Lists all FirewallPolicyKubeSelectorGroups in a FirewallPolicy resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param firewall_policy_name: The name of the Firewall Policy. Required. + :type firewall_policy_name: str + :return: An iterator like instance of FirewallPolicyKubeSelectorGroup + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirewallPolicyKubeSelectorGroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirewallPolicyKubeSelectorGroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_firewall_policy_kube_selector_groups_list_request( + resource_group_name=resource_group_name, + firewall_policy_name=firewall_policy_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirewallPolicyKubeSelectorGroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class FirewallPolicyIdpsSignaturesOverridesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -42933,7 +46044,7 @@ def get(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) _request = build_firewall_policy_idps_signatures_overrides_get_request( @@ -43012,7 +46123,7 @@ def put( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -43025,7 +46136,7 @@ def put( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Will contain all properties of the object to put. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SignaturesOverrides :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -43066,7 +46177,7 @@ def put( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignaturesOverrides, JSON, IO[bytes]], + parameters: Union[_models.SignaturesOverrides, _types.SignaturesOverrides, IO[bytes]], **kwargs: Any ) -> _models.SignaturesOverrides: """Will override/create a new signature overrides for the policy's IDPS. @@ -43076,9 +46187,10 @@ def put( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Is one of the following - types: SignaturesOverrides, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or JSON or IO[bytes] + :param parameters: Will contain all properties of the object to put. Is either a + SignaturesOverrides type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or + ~azure.mgmt.network.types.SignaturesOverrides or IO[bytes] :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: @@ -43094,7 +46206,7 @@ def put( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) @@ -43183,7 +46295,7 @@ def patch( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.SignaturesOverrides, *, content_type: str = "application/json", **kwargs: Any @@ -43196,7 +46308,7 @@ def patch( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Will contain all properties of the object to put. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SignaturesOverrides :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -43237,7 +46349,7 @@ def patch( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignaturesOverrides, JSON, IO[bytes]], + parameters: Union[_models.SignaturesOverrides, _types.SignaturesOverrides, IO[bytes]], **kwargs: Any ) -> _models.SignaturesOverrides: """Will update the status of policy's signature overrides for IDPS. @@ -43247,9 +46359,10 @@ def patch( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Will contain all properties of the object to put. Is one of the following - types: SignaturesOverrides, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or JSON or IO[bytes] + :param parameters: Will contain all properties of the object to put. Is either a + SignaturesOverrides type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SignaturesOverrides or + ~azure.mgmt.network.types.SignaturesOverrides or IO[bytes] :return: SignaturesOverrides. The SignaturesOverrides is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SignaturesOverrides :raises ~azure.core.exceptions.HttpResponseError: @@ -43265,7 +46378,7 @@ def patch( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SignaturesOverrides] = kwargs.pop("cls", None) @@ -43349,7 +46462,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SignaturesOverridesList] = kwargs.pop("cls", None) _request = build_firewall_policy_idps_signatures_overrides_list_request( @@ -43397,7 +46510,7 @@ def list( return deserialized # type: ignore -class FirewallPolicyDraftsOperations: +class FirewallPolicyDraftsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -43438,7 +46551,7 @@ def get(self, resource_group_name: str, firewall_policy_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) _request = build_firewall_policy_drafts_get_request( @@ -43518,7 +46631,7 @@ def create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.FirewallPolicyDraft, *, content_type: str = "application/json", **kwargs: Any @@ -43532,7 +46645,7 @@ def create_or_update( :type firewall_policy_name: str :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPolicyDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -43574,7 +46687,7 @@ def create_or_update( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.FirewallPolicyDraft, JSON, IO[bytes]], + parameters: Union[_models.FirewallPolicyDraft, _types.FirewallPolicyDraft, IO[bytes]], **kwargs: Any ) -> _models.FirewallPolicyDraft: """Create or update a draft Firewall Policy. @@ -43585,8 +46698,9 @@ def create_or_update( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Parameters supplied to the create or update Firewall Policy Draft operation. - Is one of the following types: FirewallPolicyDraft, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft or JSON or IO[bytes] + Is either a FirewallPolicyDraft type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyDraft or + ~azure.mgmt.network.types.FirewallPolicyDraft or IO[bytes] :return: FirewallPolicyDraft. The FirewallPolicyDraft is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.FirewallPolicyDraft :raises ~azure.core.exceptions.HttpResponseError: @@ -43602,7 +46716,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FirewallPolicyDraft] = kwargs.pop("cls", None) @@ -43685,7 +46799,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_firewall_policy_drafts_delete_request( @@ -43720,7 +46834,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class FirewallPolicyRuleCollectionGroupDraftsOperations: # pylint: disable=name-too-long +class FirewallPolicyRuleCollectionGroupDraftsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -43767,7 +46881,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) _request = build_firewall_policy_rule_collection_group_drafts_get_request( @@ -43854,7 +46968,7 @@ def create_or_update( resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: JSON, + parameters: _types.FirewallPolicyRuleCollectionGroupDraft, *, content_type: str = "application/json", **kwargs: Any @@ -43871,7 +46985,7 @@ def create_or_update( :type rule_collection_group_name: str :param parameters: Parameters supplied to the create or update FirewallPolicyRuleCollectionGroup operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraft :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -43920,7 +47034,9 @@ def create_or_update( resource_group_name: str, firewall_policy_name: str, rule_collection_group_name: str, - parameters: Union[_models.FirewallPolicyRuleCollectionGroupDraft, JSON, IO[bytes]], + parameters: Union[ + _models.FirewallPolicyRuleCollectionGroupDraft, _types.FirewallPolicyRuleCollectionGroupDraft, IO[bytes] + ], **kwargs: Any ) -> _models.FirewallPolicyRuleCollectionGroupDraft: """Create or Update Rule Collection Group Draft. @@ -43934,10 +47050,10 @@ def create_or_update( group. This name can be used to access the resource. Required. :type rule_collection_group_name: str :param parameters: Parameters supplied to the create or update - FirewallPolicyRuleCollectionGroup operation. Is one of the following types: - FirewallPolicyRuleCollectionGroupDraft, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft or JSON or - IO[bytes] + FirewallPolicyRuleCollectionGroup operation. Is either a FirewallPolicyRuleCollectionGroupDraft + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft or + ~azure.mgmt.network.types.FirewallPolicyRuleCollectionGroupDraft or IO[bytes] :return: FirewallPolicyRuleCollectionGroupDraft. The FirewallPolicyRuleCollectionGroupDraft is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.FirewallPolicyRuleCollectionGroupDraft @@ -43954,7 +47070,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FirewallPolicyRuleCollectionGroupDraft] = kwargs.pop("cls", None) @@ -44041,7 +47157,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_firewall_policy_rule_collection_group_drafts_delete_request( @@ -44077,7 +47193,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class IpamPoolsOperations: +class IpamPoolsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -44124,7 +47240,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) _request = build_ipam_pools_get_request( @@ -44177,7 +47293,7 @@ def _create_initial( resource_group_name: str, network_manager_name: str, pool_name: str, - body: Union[_models.IpamPool, JSON, IO[bytes]], + body: Union[_models.IpamPool, _types.IpamPool, IO[bytes]], *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -44200,7 +47316,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -44309,7 +47425,7 @@ def begin_create( resource_group_name: str, network_manager_name: str, pool_name: str, - body: JSON, + body: _types.IpamPool, *, content_type: str = "application/json", etag: Optional[str] = None, @@ -44328,7 +47444,7 @@ def begin_create( :param pool_name: Pool resource name. Required. :type pool_name: str :param body: Pool resource object to create/update. Required. - :type body: JSON + :type body: ~azure.mgmt.network.types.IpamPool :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -44389,7 +47505,7 @@ def begin_create( resource_group_name: str, network_manager_name: str, pool_name: str, - body: Union[_models.IpamPool, JSON, IO[bytes]], + body: Union[_models.IpamPool, _types.IpamPool, IO[bytes]], *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -44406,9 +47522,10 @@ def begin_create( :type network_manager_name: str :param pool_name: Pool resource name. Required. :type pool_name: str - :param body: Pool resource object to create/update. Is one of the following types: IpamPool, - JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.IpamPool or JSON or IO[bytes] + :param body: Pool resource object to create/update. Is either a IpamPool type or a IO[bytes] + type. Required. + :type body: ~azure.mgmt.network.models.IpamPool or ~azure.mgmt.network.types.IpamPool or + IO[bytes] :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None. :paramtype etag: str @@ -44422,7 +47539,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -44521,7 +47638,7 @@ def update( resource_group_name: str, network_manager_name: str, pool_name: str, - body: Optional[JSON] = None, + body: Optional[_types.IpamPoolUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = None, @@ -44540,7 +47657,7 @@ def update( :param pool_name: Pool resource name. Required. :type pool_name: str :param body: Pool resource object to update partially. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.network.types.IpamPoolUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -44599,7 +47716,7 @@ def update( resource_group_name: str, network_manager_name: str, pool_name: str, - body: Optional[Union[_models.IpamPoolUpdate, JSON, IO[bytes]]] = None, + body: Optional[Union[_models.IpamPoolUpdate, _types.IpamPoolUpdate, IO[bytes]]] = None, *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -44616,9 +47733,10 @@ def update( :type network_manager_name: str :param pool_name: Pool resource name. Required. :type pool_name: str - :param body: Pool resource object to update partially. Is one of the following types: - IpamPoolUpdate, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.IpamPoolUpdate or JSON or IO[bytes] + :param body: Pool resource object to update partially. Is either a IpamPoolUpdate type or a + IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.IpamPoolUpdate or + ~azure.mgmt.network.types.IpamPoolUpdate or IO[bytes] :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None. :paramtype etag: str @@ -44645,7 +47763,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if body else None cls: ClsType[_models.IpamPool] = kwargs.pop("cls", None) @@ -44736,7 +47854,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_ipam_pools_delete_request( @@ -44821,7 +47939,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -44906,7 +48024,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.IpamPool]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -45012,7 +48130,7 @@ def get_pool_usage( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PoolUsage] = kwargs.pop("cls", None) _request = build_ipam_pools_get_pool_usage_request( @@ -45082,7 +48200,7 @@ def list_associated_resources( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PoolAssociation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -45155,7 +48273,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkManagersOperations: +class NetworkManagersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -45196,7 +48314,7 @@ def get(self, resource_group_name: str, network_manager_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) _request = build_network_managers_get_request( @@ -45275,7 +48393,7 @@ def create_or_update( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.NetworkManager, *, content_type: str = "application/json", **kwargs: Any @@ -45288,7 +48406,7 @@ def create_or_update( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManager :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -45329,7 +48447,7 @@ def create_or_update( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManager, JSON, IO[bytes]], + parameters: Union[_models.NetworkManager, _types.NetworkManager, IO[bytes]], **kwargs: Any ) -> _models.NetworkManager: """Creates or updates a Network Manager. @@ -45339,9 +48457,10 @@ def create_or_update( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Is one of the - following types: NetworkManager, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManager or JSON or IO[bytes] + :param parameters: Parameters supplied to specify which network manager is. Is either a + NetworkManager type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManager or + ~azure.mgmt.network.types.NetworkManager or IO[bytes] :return: NetworkManager. The NetworkManager is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: @@ -45357,7 +48476,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) @@ -45446,7 +48565,7 @@ def patch( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.PatchObject, *, content_type: str = "application/json", **kwargs: Any @@ -45459,7 +48578,7 @@ def patch( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which network manager is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PatchObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -45500,7 +48619,7 @@ def patch( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.PatchObject, JSON, IO[bytes]], + parameters: Union[_models.PatchObject, _types.PatchObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkManager: """Patch NetworkManager. @@ -45510,9 +48629,10 @@ def patch( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Parameters supplied to specify which network manager is. Is one of the - following types: PatchObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PatchObject or JSON or IO[bytes] + :param parameters: Parameters supplied to specify which network manager is. Is either a + PatchObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PatchObject or + ~azure.mgmt.network.types.PatchObject or IO[bytes] :return: NetworkManager. The NetworkManager is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManager :raises ~azure.core.exceptions.HttpResponseError: @@ -45528,7 +48648,7 @@ def patch( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManager] = kwargs.pop("cls", None) @@ -45599,7 +48719,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_managers_delete_request( @@ -45670,7 +48790,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -45738,7 +48858,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -45831,7 +48951,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManager]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -45903,7 +49023,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class StaticCidrsOperations: +class StaticCidrsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -45952,7 +49072,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) _request = build_static_cidrs_get_request( @@ -46043,7 +49163,7 @@ def create( network_manager_name: str, pool_name: str, static_cidr_name: str, - body: Optional[JSON] = None, + body: Optional[_types.StaticCidr] = None, *, content_type: str = "application/json", **kwargs: Any @@ -46062,7 +49182,7 @@ def create( :param static_cidr_name: Name for the static CIDR. Required. :type static_cidr_name: str :param body: StaticCidr resource object to create/update. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.network.types.StaticCidr :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -46113,7 +49233,7 @@ def create( network_manager_name: str, pool_name: str, static_cidr_name: str, - body: Optional[Union[_models.StaticCidr, JSON, IO[bytes]]] = None, + body: Optional[Union[_models.StaticCidr, _types.StaticCidr, IO[bytes]]] = None, **kwargs: Any ) -> _models.StaticCidr: """Creates/Updates the Static CIDR resource. @@ -46129,9 +49249,10 @@ def create( :type pool_name: str :param static_cidr_name: Name for the static CIDR. Required. :type static_cidr_name: str - :param body: StaticCidr resource object to create/update. Is one of the following types: - StaticCidr, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.StaticCidr or JSON or IO[bytes] + :param body: StaticCidr resource object to create/update. Is either a StaticCidr type or a + IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.StaticCidr or ~azure.mgmt.network.types.StaticCidr or + IO[bytes] :return: StaticCidr. The StaticCidr is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.StaticCidr :raises ~azure.core.exceptions.HttpResponseError: @@ -46147,7 +49268,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if body else None cls: ClsType[_models.StaticCidr] = kwargs.pop("cls", None) @@ -46224,7 +49345,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_static_cidrs_delete_request( @@ -46298,7 +49419,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -46385,7 +49506,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.StaticCidr]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -46463,7 +49584,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class IpAllocationsOperations: +class IpAllocationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -46508,7 +49629,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) _request = build_ip_allocations_get_request( @@ -46560,7 +49681,7 @@ def _create_or_update_initial( self, resource_group_name: str, ip_allocation_name: str, - parameters: Union[_models.IpAllocation, JSON, IO[bytes]], + parameters: Union[_models.IpAllocation, _types.IpAllocation, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -46574,7 +49695,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -46668,7 +49789,7 @@ def begin_create_or_update( self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: _types.IpAllocation, *, content_type: str = "application/json", **kwargs: Any @@ -46682,7 +49803,7 @@ def begin_create_or_update( :type ip_allocation_name: str :param parameters: Parameters supplied to the create or update virtual network operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.IpAllocation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -46726,7 +49847,7 @@ def begin_create_or_update( self, resource_group_name: str, ip_allocation_name: str, - parameters: Union[_models.IpAllocation, JSON, IO[bytes]], + parameters: Union[_models.IpAllocation, _types.IpAllocation, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.IpAllocation]: """Creates or updates an IpAllocation in the specified resource group. @@ -46737,8 +49858,9 @@ def begin_create_or_update( :param ip_allocation_name: The name of the IpAllocation. Required. :type ip_allocation_name: str :param parameters: Parameters supplied to the create or update virtual network operation. Is - one of the following types: IpAllocation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IpAllocation or JSON or IO[bytes] + either a IpAllocation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IpAllocation or + ~azure.mgmt.network.types.IpAllocation or IO[bytes] :return: An instance of LROPoller that returns IpAllocation. The IpAllocation is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.IpAllocation] @@ -46747,7 +49869,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -46830,7 +49952,7 @@ def update_tags( self, resource_group_name: str, ip_allocation_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -46843,7 +49965,7 @@ def update_tags( :param ip_allocation_name: The name of the IpAllocation. Required. :type ip_allocation_name: str :param parameters: Parameters supplied to update IpAllocation tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -46884,7 +50006,7 @@ def update_tags( self, resource_group_name: str, ip_allocation_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.IpAllocation: """Updates a IpAllocation tags. @@ -46894,9 +50016,10 @@ def update_tags( :type resource_group_name: str :param ip_allocation_name: The name of the IpAllocation. Required. :type ip_allocation_name: str - :param parameters: Parameters supplied to update IpAllocation tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update IpAllocation tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: IpAllocation. The IpAllocation is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.IpAllocation :raises ~azure.core.exceptions.HttpResponseError: @@ -46912,7 +50035,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IpAllocation] = kwargs.pop("cls", None) @@ -46981,7 +50104,7 @@ def _delete_initial(self, resource_group_name: str, ip_allocation_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_ip_allocations_delete_request( @@ -47045,7 +50168,7 @@ def begin_delete(self, resource_group_name: str, ip_allocation_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -47102,7 +50225,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -47183,7 +50306,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.IpAllocation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.IpAllocation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -47253,7 +50376,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class IpGroupsOperations: +class IpGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -47299,7 +50422,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) _request = build_ip_groups_get_request( @@ -47351,7 +50474,7 @@ def _create_or_update_initial( self, resource_group_name: str, ip_groups_name: str, - parameters: Union[_models.IpGroup, JSON, IO[bytes]], + parameters: Union[_models.IpGroup, _types.IpGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -47365,7 +50488,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -47458,7 +50581,7 @@ def begin_create_or_update( self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: _types.IpGroup, *, content_type: str = "application/json", **kwargs: Any @@ -47471,7 +50594,7 @@ def begin_create_or_update( :param ip_groups_name: The name of the ipGroups. Required. :type ip_groups_name: str :param parameters: Parameters supplied to the create or update IpGroups operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.IpGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -47514,7 +50637,7 @@ def begin_create_or_update( self, resource_group_name: str, ip_groups_name: str, - parameters: Union[_models.IpGroup, JSON, IO[bytes]], + parameters: Union[_models.IpGroup, _types.IpGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.IpGroup]: """Creates or updates an ipGroups in a specified resource group. @@ -47524,9 +50647,10 @@ def begin_create_or_update( :type resource_group_name: str :param ip_groups_name: The name of the ipGroups. Required. :type ip_groups_name: str - :param parameters: Parameters supplied to the create or update IpGroups operation. Is one of - the following types: IpGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IpGroup or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update IpGroups operation. Is either a + IpGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IpGroup or ~azure.mgmt.network.types.IpGroup or + IO[bytes] :return: An instance of LROPoller that returns IpGroup. The IpGroup is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.IpGroup] @@ -47535,7 +50659,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -47618,7 +50742,7 @@ def update_groups( self, resource_group_name: str, ip_groups_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -47631,7 +50755,7 @@ def update_groups( :param ip_groups_name: The name of the ipGroups. Required. :type ip_groups_name: str :param parameters: Parameters supplied to the update ipGroups operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -47672,7 +50796,7 @@ def update_groups( self, resource_group_name: str, ip_groups_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.IpGroup: """Updates tags of an IpGroups resource. @@ -47682,9 +50806,10 @@ def update_groups( :type resource_group_name: str :param ip_groups_name: The name of the ipGroups. Required. :type ip_groups_name: str - :param parameters: Parameters supplied to the update ipGroups operation. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to the update ipGroups operation. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: IpGroup. The IpGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.IpGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -47700,7 +50825,7 @@ def update_groups( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IpGroup] = kwargs.pop("cls", None) @@ -47769,7 +50894,7 @@ def _delete_initial(self, resource_group_name: str, ip_groups_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_ip_groups_delete_request( @@ -47833,7 +50958,7 @@ def begin_delete(self, resource_group_name: str, ip_groups_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -47890,7 +51015,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -47971,7 +51096,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.IpGroup"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.IpGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -48041,7 +51166,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LoadBalancersOperations: +class LoadBalancersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -48061,7 +51186,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace @api_version_validation( params_added_on={"2025-07-01": ["detail_level"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def get( self, @@ -48100,7 +51225,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) _request = build_load_balancers_get_request( @@ -48153,7 +51278,7 @@ def _create_or_update_initial( self, resource_group_name: str, load_balancer_name: str, - parameters: Union[_models.LoadBalancer, JSON, IO[bytes]], + parameters: Union[_models.LoadBalancer, _types.LoadBalancer, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -48167,7 +51292,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -48261,7 +51386,7 @@ def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: _types.LoadBalancer, *, content_type: str = "application/json", **kwargs: Any @@ -48275,7 +51400,7 @@ def begin_create_or_update( :type load_balancer_name: str :param parameters: Parameters supplied to the create or update load balancer operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.LoadBalancer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -48319,7 +51444,7 @@ def begin_create_or_update( self, resource_group_name: str, load_balancer_name: str, - parameters: Union[_models.LoadBalancer, JSON, IO[bytes]], + parameters: Union[_models.LoadBalancer, _types.LoadBalancer, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.LoadBalancer]: """Creates or updates a load balancer. @@ -48329,9 +51454,10 @@ def begin_create_or_update( :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param parameters: Parameters supplied to the create or update load balancer operation. Is one - of the following types: LoadBalancer, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancer or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update load balancer operation. Is + either a LoadBalancer type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancer or + ~azure.mgmt.network.types.LoadBalancer or IO[bytes] :return: An instance of LROPoller that returns LoadBalancer. The LoadBalancer is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.LoadBalancer] @@ -48340,7 +51466,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -48423,7 +51549,7 @@ def update_tags( self, resource_group_name: str, load_balancer_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -48436,7 +51562,7 @@ def update_tags( :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str :param parameters: Parameters supplied to update load balancer tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -48477,7 +51603,7 @@ def update_tags( self, resource_group_name: str, load_balancer_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.LoadBalancer: """Updates a load balancer tags. @@ -48487,9 +51613,10 @@ def update_tags( :type resource_group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param parameters: Parameters supplied to update load balancer tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update load balancer tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: LoadBalancer. The LoadBalancer is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.LoadBalancer :raises ~azure.core.exceptions.HttpResponseError: @@ -48505,7 +51632,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LoadBalancer] = kwargs.pop("cls", None) @@ -48574,7 +51701,7 @@ def _delete_initial(self, resource_group_name: str, load_balancer_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_load_balancers_delete_request( @@ -48638,7 +51765,7 @@ def begin_delete(self, resource_group_name: str, load_balancer_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -48695,7 +51822,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Lo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -48776,7 +51903,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.LoadBalancer"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -48876,7 +52003,7 @@ def migrate_to_ip_based( self, group_name: str, load_balancer_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.MigrateLoadBalancerToIpBasedRequest] = None, *, content_type: str = "application/json", **kwargs: Any @@ -48888,7 +52015,7 @@ def migrate_to_ip_based( :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str :param parameters: Parameters supplied to the migrateToIpBased Api. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.MigrateLoadBalancerToIpBasedRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -48928,7 +52055,9 @@ def migrate_to_ip_based( self, group_name: str, load_balancer_name: str, - parameters: Optional[Union[_models.MigrateLoadBalancerToIpBasedRequest, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[_models.MigrateLoadBalancerToIpBasedRequest, _types.MigrateLoadBalancerToIpBasedRequest, IO[bytes]] + ] = None, **kwargs: Any ) -> _models.MigratedPools: """Migrate load balancer to IP Based. @@ -48937,10 +52066,10 @@ def migrate_to_ip_based( :type group_name: str :param load_balancer_name: The name of the load balancer. Required. :type load_balancer_name: str - :param parameters: Parameters supplied to the migrateToIpBased Api. Is one of the following - types: MigrateLoadBalancerToIpBasedRequest, JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest or JSON or - IO[bytes] + :param parameters: Parameters supplied to the migrateToIpBased Api. Is either a + MigrateLoadBalancerToIpBasedRequest type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.network.models.MigrateLoadBalancerToIpBasedRequest or + ~azure.mgmt.network.types.MigrateLoadBalancerToIpBasedRequest or IO[bytes] :return: MigratedPools. The MigratedPools is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.MigratedPools :raises ~azure.core.exceptions.HttpResponseError: @@ -48956,7 +52085,7 @@ def migrate_to_ip_based( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[_models.MigratedPools] = kwargs.pop("cls", None) @@ -49022,7 +52151,9 @@ def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name-too-lo group_name: str, load_balancer_name: str, backend_pool_name: str, - parameters: Union[_models.QueryInboundNatRulePortMappingRequest, JSON, IO[bytes]], + parameters: Union[ + _models.QueryInboundNatRulePortMappingRequest, _types.QueryInboundNatRulePortMappingRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -49036,7 +52167,7 @@ def _list_inbound_nat_rule_port_mappings_initial( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -49132,7 +52263,7 @@ def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long group_name: str, load_balancer_name: str, backend_pool_name: str, - parameters: JSON, + parameters: _types.QueryInboundNatRulePortMappingRequest, *, content_type: str = "application/json", **kwargs: Any @@ -49146,7 +52277,7 @@ def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long :param backend_pool_name: The name of the backend address pool. Required. :type backend_pool_name: str :param parameters: Query inbound NAT rule port mapping request. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryInboundNatRulePortMappingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -49194,7 +52325,9 @@ def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long group_name: str, load_balancer_name: str, backend_pool_name: str, - parameters: Union[_models.QueryInboundNatRulePortMappingRequest, JSON, IO[bytes]], + parameters: Union[ + _models.QueryInboundNatRulePortMappingRequest, _types.QueryInboundNatRulePortMappingRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.BackendAddressInboundNatRulePortMappings]: """List of inbound NAT rule port mappings. @@ -49205,10 +52338,10 @@ def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long :type load_balancer_name: str :param backend_pool_name: The name of the backend address pool. Required. :type backend_pool_name: str - :param parameters: Query inbound NAT rule port mapping request. Is one of the following types: - QueryInboundNatRulePortMappingRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest or JSON or - IO[bytes] + :param parameters: Query inbound NAT rule port mapping request. Is either a + QueryInboundNatRulePortMappingRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryInboundNatRulePortMappingRequest or + ~azure.mgmt.network.types.QueryInboundNatRulePortMappingRequest or IO[bytes] :return: An instance of LROPoller that returns BackendAddressInboundNatRulePortMappings. The BackendAddressInboundNatRulePortMappings is compatible with MutableMapping :rtype: @@ -49218,7 +52351,7 @@ def begin_list_inbound_nat_rule_port_mappings( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BackendAddressInboundNatRulePortMappings] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -49271,7 +52404,10 @@ def get_long_running_output(pipeline_response): ) def _swap_public_ip_addresses_initial( - self, location: str, parameters: Union[_models.LoadBalancerVipSwapRequest, JSON, IO[bytes]], **kwargs: Any + self, + location: str, + parameters: Union[_models.LoadBalancerVipSwapRequest, _types.LoadBalancerVipSwapRequest, IO[bytes]], + **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -49284,7 +52420,7 @@ def _swap_public_ip_addresses_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -49366,14 +52502,19 @@ def begin_swap_public_ip_addresses( @overload def begin_swap_public_ip_addresses( - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + location: str, + parameters: _types.LoadBalancerVipSwapRequest, + *, + content_type: str = "application/json", + **kwargs: Any ) -> LROPoller[None]: """Swaps VIPs between two load balancers. :param location: The name of the Azure region. Required. :type location: str :param parameters: Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.LoadBalancerVipSwapRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -49402,15 +52543,18 @@ def begin_swap_public_ip_addresses( @distributed_trace def begin_swap_public_ip_addresses( - self, location: str, parameters: Union[_models.LoadBalancerVipSwapRequest, JSON, IO[bytes]], **kwargs: Any + self, + location: str, + parameters: Union[_models.LoadBalancerVipSwapRequest, _types.LoadBalancerVipSwapRequest, IO[bytes]], + **kwargs: Any ) -> LROPoller[None]: """Swaps VIPs between two load balancers. :param location: The name of the Azure region. Required. :type location: str - :param parameters: Is one of the following types: LoadBalancerVipSwapRequest, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest or JSON or IO[bytes] + :param parameters: Is either a LoadBalancerVipSwapRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LoadBalancerVipSwapRequest or + ~azure.mgmt.network.types.LoadBalancerVipSwapRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -49418,7 +52562,7 @@ def begin_swap_public_ip_addresses( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -49464,7 +52608,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class InboundNatRulesOperations: +class InboundNatRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -49517,7 +52661,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) _request = build_inbound_nat_rules_get_request( @@ -49571,7 +52715,7 @@ def _create_or_update_initial( resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, - inbound_nat_rule_parameters: Union[_models.InboundNatRule, JSON, IO[bytes]], + inbound_nat_rule_parameters: Union[_models.InboundNatRule, _types.InboundNatRule, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -49585,7 +52729,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -49684,7 +52828,7 @@ def begin_create_or_update( resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, - inbound_nat_rule_parameters: JSON, + inbound_nat_rule_parameters: _types.InboundNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -49700,7 +52844,7 @@ def begin_create_or_update( :type inbound_nat_rule_name: str :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT rule operation. Required. - :type inbound_nat_rule_parameters: JSON + :type inbound_nat_rule_parameters: ~azure.mgmt.network.types.InboundNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -49748,7 +52892,7 @@ def begin_create_or_update( resource_group_name: str, load_balancer_name: str, inbound_nat_rule_name: str, - inbound_nat_rule_parameters: Union[_models.InboundNatRule, JSON, IO[bytes]], + inbound_nat_rule_parameters: Union[_models.InboundNatRule, _types.InboundNatRule, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.InboundNatRule]: """Creates or updates a load balancer inbound NAT rule. @@ -49761,9 +52905,9 @@ def begin_create_or_update( :param inbound_nat_rule_name: The name of the inbound NAT rule. Required. :type inbound_nat_rule_name: str :param inbound_nat_rule_parameters: Parameters supplied to the create or update inbound NAT - rule operation. Is one of the following types: InboundNatRule, JSON, IO[bytes] Required. - :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule or JSON or - IO[bytes] + rule operation. Is either a InboundNatRule type or a IO[bytes] type. Required. + :type inbound_nat_rule_parameters: ~azure.mgmt.network.models.InboundNatRule or + ~azure.mgmt.network.types.InboundNatRule or IO[bytes] :return: An instance of LROPoller that returns InboundNatRule. The InboundNatRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.InboundNatRule] @@ -49772,7 +52916,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InboundNatRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -49838,7 +52982,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_inbound_nat_rules_delete_request( @@ -49907,7 +53051,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -49969,7 +53113,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.InboundNatRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -50041,7 +53185,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NatGatewaysOperations: +class NatGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -50086,7 +53230,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) _request = build_nat_gateways_get_request( @@ -50138,7 +53282,7 @@ def _create_or_update_initial( self, resource_group_name: str, nat_gateway_name: str, - parameters: Union[_models.NatGateway, JSON, IO[bytes]], + parameters: Union[_models.NatGateway, _types.NatGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -50152,7 +53296,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -50248,7 +53392,7 @@ def begin_create_or_update( self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: _types.NatGateway, *, content_type: str = "application/json", **kwargs: Any @@ -50261,7 +53405,7 @@ def begin_create_or_update( :param nat_gateway_name: The name of the nat gateway. Required. :type nat_gateway_name: str :param parameters: Parameters supplied to the create or update nat gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NatGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -50304,7 +53448,7 @@ def begin_create_or_update( self, resource_group_name: str, nat_gateway_name: str, - parameters: Union[_models.NatGateway, JSON, IO[bytes]], + parameters: Union[_models.NatGateway, _types.NatGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NatGateway]: """Creates or updates a nat gateway. @@ -50314,9 +53458,10 @@ def begin_create_or_update( :type resource_group_name: str :param nat_gateway_name: The name of the nat gateway. Required. :type nat_gateway_name: str - :param parameters: Parameters supplied to the create or update nat gateway operation. Is one of - the following types: NatGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NatGateway or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update nat gateway operation. Is either + a NatGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NatGateway or ~azure.mgmt.network.types.NatGateway + or IO[bytes] :return: An instance of LROPoller that returns NatGateway. The NatGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NatGateway] @@ -50325,7 +53470,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -50408,7 +53553,7 @@ def update_tags( self, resource_group_name: str, nat_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -50421,7 +53566,7 @@ def update_tags( :param nat_gateway_name: The name of the nat gateway. Required. :type nat_gateway_name: str :param parameters: Parameters supplied to update nat gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -50462,7 +53607,7 @@ def update_tags( self, resource_group_name: str, nat_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NatGateway: """Updates nat gateway tags. @@ -50472,9 +53617,10 @@ def update_tags( :type resource_group_name: str :param nat_gateway_name: The name of the nat gateway. Required. :type nat_gateway_name: str - :param parameters: Parameters supplied to update nat gateway tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update nat gateway tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NatGateway. The NatGateway is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NatGateway :raises ~azure.core.exceptions.HttpResponseError: @@ -50490,7 +53636,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NatGateway] = kwargs.pop("cls", None) @@ -50559,7 +53705,7 @@ def _delete_initial(self, resource_group_name: str, nat_gateway_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_nat_gateways_delete_request( @@ -50623,7 +53769,7 @@ def begin_delete(self, resource_group_name: str, nat_gateway_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -50680,7 +53826,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -50761,7 +53907,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.NatGateway"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NatGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -50831,7 +53977,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkInterfaceIPConfigurationsOperations: # pylint: disable=name-too-long +class NetworkInterfaceIPConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -50877,7 +54023,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterfaceIPConfiguration] = kwargs.pop("cls", None) _request = build_network_interface_ip_configurations_get_request( @@ -50944,7 +54090,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterfaceIPConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -51016,7 +54162,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkInterfaceTapConfigurationsOperations: # pylint: disable=name-too-long +class NetworkInterfaceTapConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -51063,7 +54209,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) _request = build_network_interface_tap_configurations_get_request( @@ -51116,7 +54262,9 @@ def _create_or_update_initial( resource_group_name: str, network_interface_name: str, tap_configuration_name: str, - tap_configuration_parameters: Union[_models.NetworkInterfaceTapConfiguration, JSON, IO[bytes]], + tap_configuration_parameters: Union[ + _models.NetworkInterfaceTapConfiguration, _types.NetworkInterfaceTapConfiguration, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -51130,7 +54278,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -51231,7 +54379,7 @@ def begin_create_or_update( resource_group_name: str, network_interface_name: str, tap_configuration_name: str, - tap_configuration_parameters: JSON, + tap_configuration_parameters: _types.NetworkInterfaceTapConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -51248,7 +54396,7 @@ def begin_create_or_update( :type tap_configuration_name: str :param tap_configuration_parameters: Parameters supplied to the create or update tap configuration operation. Required. - :type tap_configuration_parameters: JSON + :type tap_configuration_parameters: ~azure.mgmt.network.types.NetworkInterfaceTapConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -51299,7 +54447,9 @@ def begin_create_or_update( resource_group_name: str, network_interface_name: str, tap_configuration_name: str, - tap_configuration_parameters: Union[_models.NetworkInterfaceTapConfiguration, JSON, IO[bytes]], + tap_configuration_parameters: Union[ + _models.NetworkInterfaceTapConfiguration, _types.NetworkInterfaceTapConfiguration, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.NetworkInterfaceTapConfiguration]: """Creates or updates a Tap configuration in the specified NetworkInterface. @@ -51313,10 +54463,10 @@ def begin_create_or_update( This name can be used to access the resource. Required. :type tap_configuration_name: str :param tap_configuration_parameters: Parameters supplied to the create or update tap - configuration operation. Is one of the following types: NetworkInterfaceTapConfiguration, JSON, - IO[bytes] Required. + configuration operation. Is either a NetworkInterfaceTapConfiguration type or a IO[bytes] type. + Required. :type tap_configuration_parameters: ~azure.mgmt.network.models.NetworkInterfaceTapConfiguration - or JSON or IO[bytes] + or ~azure.mgmt.network.types.NetworkInterfaceTapConfiguration or IO[bytes] :return: An instance of LROPoller that returns NetworkInterfaceTapConfiguration. The NetworkInterfaceTapConfiguration is compatible with MutableMapping :rtype: @@ -51326,7 +54476,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkInterfaceTapConfiguration] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -51392,7 +54542,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_interface_tap_configurations_delete_request( @@ -51462,7 +54612,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -51525,7 +54675,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterfaceTapConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -51597,7 +54747,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ManagementGroupNetworkManagerConnectionsOperations: # pylint: disable=name-too-long +class ManagementGroupNetworkManagerConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -51640,7 +54790,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) _request = build_management_group_network_manager_connections_get_request( @@ -51718,7 +54868,7 @@ def create_or_update( self, management_group_id: str, network_manager_connection_name: str, - parameters: JSON, + parameters: _types.NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -51730,7 +54880,7 @@ def create_or_update( :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str :param parameters: Network manager connection to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -51772,7 +54922,7 @@ def create_or_update( self, management_group_id: str, network_manager_connection_name: str, - parameters: Union[_models.NetworkManagerConnection, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerConnection, _types.NetworkManagerConnection, IO[bytes]], **kwargs: Any ) -> _models.NetworkManagerConnection: """Create a network manager connection on this management group. @@ -51781,9 +54931,10 @@ def create_or_update( :type management_group_id: str :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Is one of the following - types: NetworkManagerConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or JSON or IO[bytes] + :param parameters: Network manager connection to be created/updated. Is either a + NetworkManagerConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or + ~azure.mgmt.network.types.NetworkManagerConnection or IO[bytes] :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManagerConnection @@ -51800,7 +54951,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) @@ -51881,7 +55032,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_management_group_network_manager_connections_delete_request( @@ -51937,7 +55088,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManagerConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -52009,7 +55160,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ConnectivityConfigurationsOperations: +class ConnectivityConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -52057,7 +55208,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) _request = build_connectivity_configurations_get_request( @@ -52144,7 +55295,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - connectivity_configuration: JSON, + connectivity_configuration: _types.ConnectivityConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -52161,7 +55312,7 @@ def create_or_update( :type configuration_name: str :param connectivity_configuration: Parameters supplied to create/update a network manager connectivity configuration. Required. - :type connectivity_configuration: JSON + :type connectivity_configuration: ~azure.mgmt.network.types.ConnectivityConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -52210,7 +55361,9 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - connectivity_configuration: Union[_models.ConnectivityConfiguration, JSON, IO[bytes]], + connectivity_configuration: Union[ + _models.ConnectivityConfiguration, _types.ConnectivityConfiguration, IO[bytes] + ], **kwargs: Any ) -> _models.ConnectivityConfiguration: """Creates/Updates a new network manager connectivity configuration. @@ -52224,10 +55377,10 @@ def create_or_update( Required. :type configuration_name: str :param connectivity_configuration: Parameters supplied to create/update a network manager - connectivity configuration. Is one of the following types: ConnectivityConfiguration, JSON, - IO[bytes] Required. - :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration or JSON - or IO[bytes] + connectivity configuration. Is either a ConnectivityConfiguration type or a IO[bytes] type. + Required. + :type connectivity_configuration: ~azure.mgmt.network.models.ConnectivityConfiguration or + ~azure.mgmt.network.types.ConnectivityConfiguration or IO[bytes] :return: ConnectivityConfiguration. The ConnectivityConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ConnectivityConfiguration @@ -52244,7 +55397,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectivityConfiguration] = kwargs.pop("cls", None) @@ -52322,7 +55475,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_connectivity_configurations_delete_request( @@ -52404,7 +55557,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -52481,7 +55634,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectivityConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -52555,7 +55708,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkGroupsOperations: +class NetworkGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -52600,7 +55753,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) _request = build_network_groups_get_request( @@ -52692,7 +55845,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, network_group_name: str, - parameters: JSON, + parameters: _types.NetworkGroup, *, content_type: str = "application/json", etag: Optional[str] = None, @@ -52710,7 +55863,7 @@ def create_or_update( :type network_group_name: str :param parameters: Parameters supplied to the specify which network group need to create. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -52768,7 +55921,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, network_group_name: str, - parameters: Union[_models.NetworkGroup, JSON, IO[bytes]], + parameters: Union[_models.NetworkGroup, _types.NetworkGroup, IO[bytes]], *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -52784,8 +55937,9 @@ def create_or_update( :param network_group_name: The name of the network group. Required. :type network_group_name: str :param parameters: Parameters supplied to the specify which network group need to create. Is - one of the following types: NetworkGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkGroup or JSON or IO[bytes] + either a NetworkGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkGroup or + ~azure.mgmt.network.types.NetworkGroup or IO[bytes] :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None. :paramtype etag: str @@ -52812,7 +55966,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkGroup] = kwargs.pop("cls", None) @@ -52895,7 +56049,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_groups_delete_request( @@ -52975,7 +56129,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -53052,7 +56206,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -53126,7 +56280,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class StaticMembersOperations: +class StaticMembersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -53178,7 +56332,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) _request = build_static_members_get_request( @@ -53267,7 +56421,7 @@ def create_or_update( network_manager_name: str, network_group_name: str, static_member_name: str, - parameters: JSON, + parameters: _types.StaticMember, *, content_type: str = "application/json", **kwargs: Any @@ -53284,7 +56438,7 @@ def create_or_update( :param static_member_name: The name of the static member. Required. :type static_member_name: str :param parameters: Parameters supplied to the specify the static member to create. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.StaticMember :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -53333,7 +56487,7 @@ def create_or_update( network_manager_name: str, network_group_name: str, static_member_name: str, - parameters: Union[_models.StaticMember, JSON, IO[bytes]], + parameters: Union[_models.StaticMember, _types.StaticMember, IO[bytes]], **kwargs: Any ) -> _models.StaticMember: """Creates or updates a static member. @@ -53347,9 +56501,10 @@ def create_or_update( :type network_group_name: str :param static_member_name: The name of the static member. Required. :type static_member_name: str - :param parameters: Parameters supplied to the specify the static member to create. Is one of - the following types: StaticMember, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.StaticMember or JSON or IO[bytes] + :param parameters: Parameters supplied to the specify the static member to create. Is either a + StaticMember type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.StaticMember or + ~azure.mgmt.network.types.StaticMember or IO[bytes] :return: StaticMember. The StaticMember is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.StaticMember :raises ~azure.core.exceptions.HttpResponseError: @@ -53365,7 +56520,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StaticMember] = kwargs.pop("cls", None) @@ -53459,7 +56614,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_static_members_delete_request( @@ -53530,7 +56685,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.StaticMember]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -53605,7 +56760,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkManagerRoutingConfigurationsOperations: # pylint: disable=name-too-long +class NetworkManagerRoutingConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -53651,7 +56806,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) _request = build_network_manager_routing_configurations_get_request( @@ -53736,7 +56891,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - routing_configuration: JSON, + routing_configuration: _types.NetworkManagerRoutingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -53751,7 +56906,7 @@ def create_or_update( :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str :param routing_configuration: The routing configuration to create or update. Required. - :type routing_configuration: JSON + :type routing_configuration: ~azure.mgmt.network.types.NetworkManagerRoutingConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -53798,7 +56953,9 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - routing_configuration: Union[_models.NetworkManagerRoutingConfiguration, JSON, IO[bytes]], + routing_configuration: Union[ + _models.NetworkManagerRoutingConfiguration, _types.NetworkManagerRoutingConfiguration, IO[bytes] + ], **kwargs: Any ) -> _models.NetworkManagerRoutingConfiguration: """Creates or updates a network manager routing configuration. @@ -53810,10 +56967,10 @@ def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Routing Configuration. Required. :type configuration_name: str - :param routing_configuration: The routing configuration to create or update. Is one of the - following types: NetworkManagerRoutingConfiguration, JSON, IO[bytes] Required. + :param routing_configuration: The routing configuration to create or update. Is either a + NetworkManagerRoutingConfiguration type or a IO[bytes] type. Required. :type routing_configuration: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration or - JSON or IO[bytes] + ~azure.mgmt.network.types.NetworkManagerRoutingConfiguration or IO[bytes] :return: NetworkManagerRoutingConfiguration. The NetworkManagerRoutingConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManagerRoutingConfiguration @@ -53830,7 +56987,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerRoutingConfiguration] = kwargs.pop("cls", None) @@ -53908,7 +57065,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_manager_routing_configurations_delete_request( @@ -53988,7 +57145,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -54067,7 +57224,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManagerRoutingConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -54141,7 +57298,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RoutingRuleCollectionsOperations: +class RoutingRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -54194,7 +57351,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) _request = build_routing_rule_collections_get_request( @@ -54284,7 +57441,7 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: _types.RoutingRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -54302,7 +57459,7 @@ def create_or_update( collection. Required. :type rule_collection_name: str :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: JSON + :type rule_collection: ~azure.mgmt.network.types.RoutingRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -54352,7 +57509,7 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: Union[_models.RoutingRuleCollection, JSON, IO[bytes]], + rule_collection: Union[_models.RoutingRuleCollection, _types.RoutingRuleCollection, IO[bytes]], **kwargs: Any ) -> _models.RoutingRuleCollection: """Creates or updates a routing rule collection. @@ -54367,9 +57524,10 @@ def create_or_update( :param rule_collection_name: The name of the network manager routing Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Is one of the following types: - RoutingRuleCollection, JSON, IO[bytes] Required. - :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection or JSON or IO[bytes] + :param rule_collection: The Rule Collection to create or update. Is either a + RoutingRuleCollection type or a IO[bytes] type. Required. + :type rule_collection: ~azure.mgmt.network.models.RoutingRuleCollection or + ~azure.mgmt.network.types.RoutingRuleCollection or IO[bytes] :return: RoutingRuleCollection. The RoutingRuleCollection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.RoutingRuleCollection :raises ~azure.core.exceptions.HttpResponseError: @@ -54385,7 +57543,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RoutingRuleCollection] = kwargs.pop("cls", None) @@ -54465,7 +57623,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_routing_rule_collections_delete_request( @@ -54550,7 +57708,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -54631,7 +57789,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RoutingRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -54706,7 +57864,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RoutingRulesOperations: +class RoutingRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -54762,7 +57920,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) _request = build_routing_rules_get_request( @@ -54857,7 +58015,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - routing_rule: JSON, + routing_rule: _types.RoutingRule, *, content_type: str = "application/json", **kwargs: Any @@ -54877,7 +58035,7 @@ def create_or_update( :param rule_name: The name of the rule. Required. :type rule_name: str :param routing_rule: The routing rule to create or update. Required. - :type routing_rule: JSON + :type routing_rule: ~azure.mgmt.network.types.RoutingRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -54931,7 +58089,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - routing_rule: Union[_models.RoutingRule, JSON, IO[bytes]], + routing_rule: Union[_models.RoutingRule, _types.RoutingRule, IO[bytes]], **kwargs: Any ) -> _models.RoutingRule: """Creates or updates an routing rule. @@ -54948,9 +58106,10 @@ def create_or_update( :type rule_collection_name: str :param rule_name: The name of the rule. Required. :type rule_name: str - :param routing_rule: The routing rule to create or update. Is one of the following types: - RoutingRule, JSON, IO[bytes] Required. - :type routing_rule: ~azure.mgmt.network.models.RoutingRule or JSON or IO[bytes] + :param routing_rule: The routing rule to create or update. Is either a RoutingRule type or a + IO[bytes] type. Required. + :type routing_rule: ~azure.mgmt.network.models.RoutingRule or + ~azure.mgmt.network.types.RoutingRule or IO[bytes] :return: RoutingRule. The RoutingRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.RoutingRule :raises ~azure.core.exceptions.HttpResponseError: @@ -54966,7 +58125,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RoutingRule] = kwargs.pop("cls", None) @@ -55048,7 +58207,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_routing_rules_delete_request( @@ -55137,7 +58296,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -55223,7 +58382,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RoutingRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -55299,7 +58458,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ScopeConnectionsOperations: +class ScopeConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -55344,7 +58503,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) _request = build_scope_connections_get_request( @@ -55428,7 +58587,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, scope_connection_name: str, - parameters: JSON, + parameters: _types.ScopeConnection, *, content_type: str = "application/json", **kwargs: Any @@ -55443,7 +58602,7 @@ def create_or_update( :param scope_connection_name: Name for the cross-tenant connection. Required. :type scope_connection_name: str :param parameters: Scope connection to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ScopeConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -55488,7 +58647,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, scope_connection_name: str, - parameters: Union[_models.ScopeConnection, JSON, IO[bytes]], + parameters: Union[_models.ScopeConnection, _types.ScopeConnection, IO[bytes]], **kwargs: Any ) -> _models.ScopeConnection: """Creates or updates scope connection from Network Manager. @@ -55500,9 +58659,10 @@ def create_or_update( :type network_manager_name: str :param scope_connection_name: Name for the cross-tenant connection. Required. :type scope_connection_name: str - :param parameters: Scope connection to be created/updated. Is one of the following types: - ScopeConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ScopeConnection or JSON or IO[bytes] + :param parameters: Scope connection to be created/updated. Is either a ScopeConnection type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ScopeConnection or + ~azure.mgmt.network.types.ScopeConnection or IO[bytes] :return: ScopeConnection. The ScopeConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ScopeConnection :raises ~azure.core.exceptions.HttpResponseError: @@ -55518,7 +58678,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ScopeConnection] = kwargs.pop("cls", None) @@ -55604,7 +58764,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_scope_connections_delete_request( @@ -55671,7 +58831,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ScopeConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -55745,7 +58905,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CommitsOperations: +class CommitsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -55790,7 +58950,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Commit] = kwargs.pop("cls", None) _request = build_commits_get_request( @@ -55843,7 +59003,7 @@ def _create_or_update_initial( resource_group_name: str, network_manager_name: str, commit_name: str, - resource: Union[_models.Commit, JSON, IO[bytes]], + resource: Union[_models.Commit, _types.Commit, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -55857,7 +59017,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -55955,7 +59115,7 @@ def begin_create_or_update( resource_group_name: str, network_manager_name: str, commit_name: str, - resource: JSON, + resource: _types.Commit, *, content_type: str = "application/json", **kwargs: Any @@ -55970,7 +59130,7 @@ def begin_create_or_update( :param commit_name: The name of the commit. Required. :type commit_name: str :param resource: Parameters supplied to specify which commit to create. Required. - :type resource: JSON + :type resource: ~azure.mgmt.network.types.Commit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -56017,7 +59177,7 @@ def begin_create_or_update( resource_group_name: str, network_manager_name: str, commit_name: str, - resource: Union[_models.Commit, JSON, IO[bytes]], + resource: Union[_models.Commit, _types.Commit, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Commit]: """Creates or updates a commit. @@ -56029,9 +59189,10 @@ def begin_create_or_update( :type network_manager_name: str :param commit_name: The name of the commit. Required. :type commit_name: str - :param resource: Parameters supplied to specify which commit to create. Is one of the following - types: Commit, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.network.models.Commit or JSON or IO[bytes] + :param resource: Parameters supplied to specify which commit to create. Is either a Commit type + or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.Commit or ~azure.mgmt.network.types.Commit or + IO[bytes] :return: An instance of LROPoller that returns Commit. The Commit is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.Commit] @@ -56040,7 +59201,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Commit] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -56106,7 +59267,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_commits_delete_request( @@ -56175,7 +59336,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -56251,7 +59412,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Commit]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -56325,7 +59486,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityAdminConfigurationsOperations: +class SecurityAdminConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -56371,7 +59532,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) _request = build_security_admin_configurations_get_request( @@ -56457,7 +59618,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: JSON, + security_admin_configuration: _types.SecurityAdminConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -56473,7 +59634,7 @@ def create_or_update( :type configuration_name: str :param security_admin_configuration: The security admin configuration to create or update. Required. - :type security_admin_configuration: JSON + :type security_admin_configuration: ~azure.mgmt.network.types.SecurityAdminConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -56521,7 +59682,9 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_admin_configuration: Union[_models.SecurityAdminConfiguration, JSON, IO[bytes]], + security_admin_configuration: Union[ + _models.SecurityAdminConfiguration, _types.SecurityAdminConfiguration, IO[bytes] + ], **kwargs: Any ) -> _models.SecurityAdminConfiguration: """Creates or updates a network manager security admin configuration. @@ -56534,9 +59697,9 @@ def create_or_update( :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str :param security_admin_configuration: The security admin configuration to create or update. Is - one of the following types: SecurityAdminConfiguration, JSON, IO[bytes] Required. + either a SecurityAdminConfiguration type or a IO[bytes] type. Required. :type security_admin_configuration: ~azure.mgmt.network.models.SecurityAdminConfiguration or - JSON or IO[bytes] + ~azure.mgmt.network.types.SecurityAdminConfiguration or IO[bytes] :return: SecurityAdminConfiguration. The SecurityAdminConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SecurityAdminConfiguration @@ -56553,7 +59716,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityAdminConfiguration] = kwargs.pop("cls", None) @@ -56631,7 +59794,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_admin_configurations_delete_request( @@ -56711,7 +59874,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -56789,7 +59952,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityAdminConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -56863,7 +60026,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AdminRuleCollectionsOperations: +class AdminRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -56916,7 +60079,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) _request = build_admin_rule_collections_get_request( @@ -57006,7 +60169,7 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: JSON, + rule_collection: _types.AdminRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -57024,7 +60187,7 @@ def create_or_update( collection. Required. :type rule_collection_name: str :param rule_collection: The Rule Collection to create or update. Required. - :type rule_collection: JSON + :type rule_collection: ~azure.mgmt.network.types.AdminRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -57074,7 +60237,7 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - rule_collection: Union[_models.AdminRuleCollection, JSON, IO[bytes]], + rule_collection: Union[_models.AdminRuleCollection, _types.AdminRuleCollection, IO[bytes]], **kwargs: Any ) -> _models.AdminRuleCollection: """Creates or updates an admin rule collection. @@ -57089,9 +60252,10 @@ def create_or_update( :param rule_collection_name: The name of the network manager security Configuration rule collection. Required. :type rule_collection_name: str - :param rule_collection: The Rule Collection to create or update. Is one of the following types: - AdminRuleCollection, JSON, IO[bytes] Required. - :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection or JSON or IO[bytes] + :param rule_collection: The Rule Collection to create or update. Is either a + AdminRuleCollection type or a IO[bytes] type. Required. + :type rule_collection: ~azure.mgmt.network.models.AdminRuleCollection or + ~azure.mgmt.network.types.AdminRuleCollection or IO[bytes] :return: AdminRuleCollection. The AdminRuleCollection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.AdminRuleCollection :raises ~azure.core.exceptions.HttpResponseError: @@ -57107,7 +60271,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AdminRuleCollection] = kwargs.pop("cls", None) @@ -57187,7 +60351,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_admin_rule_collections_delete_request( @@ -57272,7 +60436,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -57353,7 +60517,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AdminRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -57428,7 +60592,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityUserConfigurationsOperations: +class SecurityUserConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -57474,7 +60638,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) _request = build_security_user_configurations_get_request( @@ -57560,7 +60724,7 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_user_configuration: JSON, + security_user_configuration: _types.SecurityUserConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -57576,7 +60740,7 @@ def create_or_update( :type configuration_name: str :param security_user_configuration: The security user configuration to create or update. Required. - :type security_user_configuration: JSON + :type security_user_configuration: ~azure.mgmt.network.types.SecurityUserConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -57624,7 +60788,9 @@ def create_or_update( resource_group_name: str, network_manager_name: str, configuration_name: str, - security_user_configuration: Union[_models.SecurityUserConfiguration, JSON, IO[bytes]], + security_user_configuration: Union[ + _models.SecurityUserConfiguration, _types.SecurityUserConfiguration, IO[bytes] + ], **kwargs: Any ) -> _models.SecurityUserConfiguration: """Creates or updates a network manager security user configuration. @@ -57636,10 +60802,10 @@ def create_or_update( :type network_manager_name: str :param configuration_name: The name of the network manager Security Configuration. Required. :type configuration_name: str - :param security_user_configuration: The security user configuration to create or update. Is one - of the following types: SecurityUserConfiguration, JSON, IO[bytes] Required. - :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration or JSON - or IO[bytes] + :param security_user_configuration: The security user configuration to create or update. Is + either a SecurityUserConfiguration type or a IO[bytes] type. Required. + :type security_user_configuration: ~azure.mgmt.network.models.SecurityUserConfiguration or + ~azure.mgmt.network.types.SecurityUserConfiguration or IO[bytes] :return: SecurityUserConfiguration. The SecurityUserConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SecurityUserConfiguration @@ -57656,7 +60822,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityUserConfiguration] = kwargs.pop("cls", None) @@ -57734,7 +60900,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_user_configurations_delete_request( @@ -57814,7 +60980,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -57892,7 +61058,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityUserConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -57966,7 +61132,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityUserRuleCollectionsOperations: +class SecurityUserRuleCollectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -58020,7 +61186,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) _request = build_security_user_rule_collections_get_request( @@ -58112,7 +61278,7 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - security_user_rule_collection: JSON, + security_user_rule_collection: _types.SecurityUserRuleCollection, *, content_type: str = "application/json", **kwargs: Any @@ -58131,7 +61297,7 @@ def create_or_update( :type rule_collection_name: str :param security_user_rule_collection: The Security User Rule Collection to create or update. Required. - :type security_user_rule_collection: JSON + :type security_user_rule_collection: ~azure.mgmt.network.types.SecurityUserRuleCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -58184,7 +61350,9 @@ def create_or_update( network_manager_name: str, configuration_name: str, rule_collection_name: str, - security_user_rule_collection: Union[_models.SecurityUserRuleCollection, JSON, IO[bytes]], + security_user_rule_collection: Union[ + _models.SecurityUserRuleCollection, _types.SecurityUserRuleCollection, IO[bytes] + ], **kwargs: Any ) -> _models.SecurityUserRuleCollection: """Creates or updates a security user rule collection. @@ -58200,9 +61368,9 @@ def create_or_update( collection. Required. :type rule_collection_name: str :param security_user_rule_collection: The Security User Rule Collection to create or update. Is - one of the following types: SecurityUserRuleCollection, JSON, IO[bytes] Required. + either a SecurityUserRuleCollection type or a IO[bytes] type. Required. :type security_user_rule_collection: ~azure.mgmt.network.models.SecurityUserRuleCollection or - JSON or IO[bytes] + ~azure.mgmt.network.types.SecurityUserRuleCollection or IO[bytes] :return: SecurityUserRuleCollection. The SecurityUserRuleCollection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SecurityUserRuleCollection @@ -58219,7 +61387,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityUserRuleCollection] = kwargs.pop("cls", None) @@ -58299,7 +61467,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_user_rule_collections_delete_request( @@ -58384,7 +61552,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -58466,7 +61634,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityUserRuleCollection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -58541,7 +61709,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityUserRulesOperations: +class SecurityUserRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -58597,7 +61765,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) _request = build_security_user_rules_get_request( @@ -58692,7 +61860,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - security_user_rule: JSON, + security_user_rule: _types.SecurityUserRule, *, content_type: str = "application/json", **kwargs: Any @@ -58712,7 +61880,7 @@ def create_or_update( :param rule_name: The name of the rule. Required. :type rule_name: str :param security_user_rule: The security user rule to create or update. Required. - :type security_user_rule: JSON + :type security_user_rule: ~azure.mgmt.network.types.SecurityUserRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -58766,7 +61934,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - security_user_rule: Union[_models.SecurityUserRule, JSON, IO[bytes]], + security_user_rule: Union[_models.SecurityUserRule, _types.SecurityUserRule, IO[bytes]], **kwargs: Any ) -> _models.SecurityUserRule: """Creates or updates a security user rule. @@ -58783,9 +61951,10 @@ def create_or_update( :type rule_collection_name: str :param rule_name: The name of the rule. Required. :type rule_name: str - :param security_user_rule: The security user rule to create or update. Is one of the following - types: SecurityUserRule, JSON, IO[bytes] Required. - :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule or JSON or IO[bytes] + :param security_user_rule: The security user rule to create or update. Is either a + SecurityUserRule type or a IO[bytes] type. Required. + :type security_user_rule: ~azure.mgmt.network.models.SecurityUserRule or + ~azure.mgmt.network.types.SecurityUserRule or IO[bytes] :return: SecurityUserRule. The SecurityUserRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SecurityUserRule :raises ~azure.core.exceptions.HttpResponseError: @@ -58801,7 +61970,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityUserRule] = kwargs.pop("cls", None) @@ -58883,7 +62052,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_user_rules_delete_request( @@ -58972,7 +62141,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -59058,7 +62227,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityUserRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -59134,7 +62303,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkProfilesOperations: +class NetworkProfilesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -59179,7 +62348,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) _request = build_network_profiles_get_request( @@ -59260,7 +62429,7 @@ def create_or_update( self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: _types.NetworkProfile, *, content_type: str = "application/json", **kwargs: Any @@ -59274,7 +62443,7 @@ def create_or_update( :type network_profile_name: str :param parameters: Parameters supplied to the create or update network profile operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -59316,7 +62485,7 @@ def create_or_update( self, resource_group_name: str, network_profile_name: str, - parameters: Union[_models.NetworkProfile, JSON, IO[bytes]], + parameters: Union[_models.NetworkProfile, _types.NetworkProfile, IO[bytes]], **kwargs: Any ) -> _models.NetworkProfile: """Creates or updates a network profile. @@ -59327,8 +62496,9 @@ def create_or_update( :param network_profile_name: The name of the public IP prefix. Required. :type network_profile_name: str :param parameters: Parameters supplied to the create or update network profile operation. Is - one of the following types: NetworkProfile, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkProfile or JSON or IO[bytes] + either a NetworkProfile type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkProfile or + ~azure.mgmt.network.types.NetworkProfile or IO[bytes] :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -59344,7 +62514,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) @@ -59433,7 +62603,7 @@ def update_tags( self, resource_group_name: str, network_profile_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -59446,7 +62616,7 @@ def update_tags( :param network_profile_name: The name of the public IP prefix. Required. :type network_profile_name: str :param parameters: Parameters supplied to update network profile tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -59487,7 +62657,7 @@ def update_tags( self, resource_group_name: str, network_profile_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkProfile: """Updates network profile tags. @@ -59497,9 +62667,10 @@ def update_tags( :type resource_group_name: str :param network_profile_name: The name of the public IP prefix. Required. :type network_profile_name: str - :param parameters: Parameters supplied to update network profile tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update network profile tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkProfile. The NetworkProfile is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -59515,7 +62686,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkProfile] = kwargs.pop("cls", None) @@ -59584,7 +62755,7 @@ def _delete_initial(self, resource_group_name: str, network_profile_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_profiles_delete_request( @@ -59648,7 +62819,7 @@ def begin_delete(self, resource_group_name: str, network_profile_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -59705,7 +62876,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ne _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -59786,7 +62957,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.NetworkProfile"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -59856,7 +63027,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityGroupsOperations: +class NetworkSecurityGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -59901,7 +63072,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) _request = build_network_security_groups_get_request( @@ -59953,7 +63124,7 @@ def _create_or_update_initial( self, resource_group_name: str, network_security_group_name: str, - parameters: Union[_models.NetworkSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.NetworkSecurityGroup, _types.NetworkSecurityGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -59967,7 +63138,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -60061,7 +63232,7 @@ def begin_create_or_update( self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: _types.NetworkSecurityGroup, *, content_type: str = "application/json", **kwargs: Any @@ -60075,7 +63246,7 @@ def begin_create_or_update( :type network_security_group_name: str :param parameters: Parameters supplied to the create or update network security group operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkSecurityGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -60119,7 +63290,7 @@ def begin_create_or_update( self, resource_group_name: str, network_security_group_name: str, - parameters: Union[_models.NetworkSecurityGroup, JSON, IO[bytes]], + parameters: Union[_models.NetworkSecurityGroup, _types.NetworkSecurityGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NetworkSecurityGroup]: """Creates or updates a network security group in the specified resource group. @@ -60130,8 +63301,9 @@ def begin_create_or_update( :param network_security_group_name: The name of the network security group. Required. :type network_security_group_name: str :param parameters: Parameters supplied to the create or update network security group - operation. Is one of the following types: NetworkSecurityGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup or JSON or IO[bytes] + operation. Is either a NetworkSecurityGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityGroup or + ~azure.mgmt.network.types.NetworkSecurityGroup or IO[bytes] :return: An instance of LROPoller that returns NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkSecurityGroup] @@ -60140,7 +63312,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -60223,7 +63395,7 @@ def update_tags( self, resource_group_name: str, network_security_group_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -60236,7 +63408,7 @@ def update_tags( :param network_security_group_name: The name of the network security group. Required. :type network_security_group_name: str :param parameters: Parameters supplied to update network security group tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -60277,7 +63449,7 @@ def update_tags( self, resource_group_name: str, network_security_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkSecurityGroup: """Updates a network security group tags. @@ -60287,9 +63459,10 @@ def update_tags( :type resource_group_name: str :param network_security_group_name: The name of the network security group. Required. :type network_security_group_name: str - :param parameters: Parameters supplied to update network security group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update network security group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkSecurityGroup. The NetworkSecurityGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkSecurityGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -60305,7 +63478,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkSecurityGroup] = kwargs.pop("cls", None) @@ -60376,7 +63549,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_groups_delete_request( @@ -60442,7 +63615,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -60499,7 +63672,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ne _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -60580,7 +63753,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.NetworkSecurityGroup"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkSecurityGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -60650,7 +63823,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityRulesOperations: +class SecurityRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -60695,7 +63868,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) _request = build_security_rules_get_request( @@ -60748,7 +63921,7 @@ def _create_or_update_initial( resource_group_name: str, network_security_group_name: str, security_rule_name: str, - security_rule_parameters: Union[_models.SecurityRule, JSON, IO[bytes]], + security_rule_parameters: Union[_models.SecurityRule, _types.SecurityRule, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -60762,7 +63935,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -60861,7 +64034,7 @@ def begin_create_or_update( resource_group_name: str, network_security_group_name: str, security_rule_name: str, - security_rule_parameters: JSON, + security_rule_parameters: _types.SecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -60877,7 +64050,7 @@ def begin_create_or_update( :type security_rule_name: str :param security_rule_parameters: Parameters supplied to the create or update network security rule operation. Required. - :type security_rule_parameters: JSON + :type security_rule_parameters: ~azure.mgmt.network.types.SecurityRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -60925,7 +64098,7 @@ def begin_create_or_update( resource_group_name: str, network_security_group_name: str, security_rule_name: str, - security_rule_parameters: Union[_models.SecurityRule, JSON, IO[bytes]], + security_rule_parameters: Union[_models.SecurityRule, _types.SecurityRule, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.SecurityRule]: """Creates or updates a security rule in the specified network security group. @@ -60938,8 +64111,9 @@ def begin_create_or_update( :param security_rule_name: The name of the security rule. Required. :type security_rule_name: str :param security_rule_parameters: Parameters supplied to the create or update network security - rule operation. Is one of the following types: SecurityRule, JSON, IO[bytes] Required. - :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule or JSON or IO[bytes] + rule operation. Is either a SecurityRule type or a IO[bytes] type. Required. + :type security_rule_parameters: ~azure.mgmt.network.models.SecurityRule or + ~azure.mgmt.network.types.SecurityRule or IO[bytes] :return: An instance of LROPoller that returns SecurityRule. The SecurityRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.SecurityRule] @@ -60948,7 +64122,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -61014,7 +64188,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_rules_delete_request( @@ -61083,7 +64257,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -61145,7 +64319,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -61217,7 +64391,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DefaultSecurityRulesOperations: +class DefaultSecurityRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -61262,7 +64436,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityRule] = kwargs.pop("cls", None) _request = build_default_security_rules_get_request( @@ -61328,7 +64502,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -61400,7 +64574,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimetersOperations: +class NetworkSecurityPerimetersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -61444,7 +64618,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) _request = build_network_security_perimeters_get_request( @@ -61525,7 +64699,7 @@ def create_or_update( self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: _types.NetworkSecurityPerimeter, *, content_type: str = "application/json", **kwargs: Any @@ -61539,7 +64713,7 @@ def create_or_update( :type network_security_perimeter_name: str :param parameters: Parameter supplied to create or update the network security perimeter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkSecurityPerimeter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -61583,7 +64757,7 @@ def create_or_update( self, resource_group_name: str, network_security_perimeter_name: str, - parameters: Union[_models.NetworkSecurityPerimeter, JSON, IO[bytes]], + parameters: Union[_models.NetworkSecurityPerimeter, _types.NetworkSecurityPerimeter, IO[bytes]], **kwargs: Any ) -> _models.NetworkSecurityPerimeter: """Creates or updates a Network Security Perimeter. @@ -61594,8 +64768,9 @@ def create_or_update( :param network_security_perimeter_name: The name of the network security perimeter. Required. :type network_security_perimeter_name: str :param parameters: Parameter supplied to create or update the network security perimeter. Is - one of the following types: NetworkSecurityPerimeter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter or JSON or IO[bytes] + either a NetworkSecurityPerimeter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkSecurityPerimeter or + ~azure.mgmt.network.types.NetworkSecurityPerimeter or IO[bytes] :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter @@ -61612,7 +64787,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) @@ -61702,7 +64877,7 @@ def patch( self, resource_group_name: str, network_security_perimeter_name: str, - parameters: JSON, + parameters: _types.UpdateTagsRequest, *, content_type: str = "application/json", **kwargs: Any @@ -61715,7 +64890,7 @@ def patch( :param network_security_perimeter_name: The name of the network security perimeter. Required. :type network_security_perimeter_name: str :param parameters: Parameter supplied to the network security perimeter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.UpdateTagsRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -61758,7 +64933,7 @@ def patch( self, resource_group_name: str, network_security_perimeter_name: str, - parameters: Union[_models.UpdateTagsRequest, JSON, IO[bytes]], + parameters: Union[_models.UpdateTagsRequest, _types.UpdateTagsRequest, IO[bytes]], **kwargs: Any ) -> _models.NetworkSecurityPerimeter: """Patch Tags for a Network Security Perimeter. @@ -61768,9 +64943,10 @@ def patch( :type resource_group_name: str :param network_security_perimeter_name: The name of the network security perimeter. Required. :type network_security_perimeter_name: str - :param parameters: Parameter supplied to the network security perimeter. Is one of the - following types: UpdateTagsRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest or JSON or IO[bytes] + :param parameters: Parameter supplied to the network security perimeter. Is either a + UpdateTagsRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.UpdateTagsRequest or + ~azure.mgmt.network.types.UpdateTagsRequest or IO[bytes] :return: NetworkSecurityPerimeter. The NetworkSecurityPerimeter is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkSecurityPerimeter @@ -61787,7 +64963,7 @@ def patch( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkSecurityPerimeter] = kwargs.pop("cls", None) @@ -61863,7 +65039,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeters_delete_request( @@ -61940,7 +65116,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -62008,7 +65184,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -62101,7 +65277,7 @@ def list_by_subscription( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkSecurityPerimeter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -62173,7 +65349,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ReachabilityAnalysisIntentsOperations: +class ReachabilityAnalysisIntentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -62228,7 +65404,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) _request = build_reachability_analysis_intents_get_request( @@ -62320,7 +65496,7 @@ def create( network_manager_name: str, workspace_name: str, reachability_analysis_intent_name: str, - body: JSON, + body: _types.ReachabilityAnalysisIntent, *, content_type: str = "application/json", **kwargs: Any @@ -62339,7 +65515,7 @@ def create( :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. :type reachability_analysis_intent_name: str :param body: Reachability Analysis Intent object to create/update. Required. - :type body: JSON + :type body: ~azure.mgmt.network.types.ReachabilityAnalysisIntent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -62392,7 +65568,7 @@ def create( network_manager_name: str, workspace_name: str, reachability_analysis_intent_name: str, - body: Union[_models.ReachabilityAnalysisIntent, JSON, IO[bytes]], + body: Union[_models.ReachabilityAnalysisIntent, _types.ReachabilityAnalysisIntent, IO[bytes]], **kwargs: Any ) -> _models.ReachabilityAnalysisIntent: """Creates Reachability Analysis Intent. @@ -62408,9 +65584,10 @@ def create( :type workspace_name: str :param reachability_analysis_intent_name: Reachability Analysis Intent name. Required. :type reachability_analysis_intent_name: str - :param body: Reachability Analysis Intent object to create/update. Is one of the following - types: ReachabilityAnalysisIntent, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent or JSON or IO[bytes] + :param body: Reachability Analysis Intent object to create/update. Is either a + ReachabilityAnalysisIntent type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisIntent or + ~azure.mgmt.network.types.ReachabilityAnalysisIntent or IO[bytes] :return: ReachabilityAnalysisIntent. The ReachabilityAnalysisIntent is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisIntent @@ -62427,7 +65604,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ReachabilityAnalysisIntent] = kwargs.pop("cls", None) @@ -62523,7 +65700,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_reachability_analysis_intents_delete_request( @@ -62601,7 +65778,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ReachabilityAnalysisIntent]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -62679,7 +65856,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VerifierWorkspacesOperations: +class VerifierWorkspacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -62726,7 +65903,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) _request = build_verifier_workspaces_get_request( @@ -62819,7 +65996,7 @@ def create( resource_group_name: str, network_manager_name: str, workspace_name: str, - body: JSON, + body: _types.VerifierWorkspace, *, content_type: str = "application/json", etag: Optional[str] = None, @@ -62838,7 +66015,7 @@ def create( :param workspace_name: The name of the resource. Required. :type workspace_name: str :param body: Verifier Workspace object to create/update. Required. - :type body: JSON + :type body: ~azure.mgmt.network.types.VerifierWorkspace :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -62897,7 +66074,7 @@ def create( resource_group_name: str, network_manager_name: str, workspace_name: str, - body: Union[_models.VerifierWorkspace, JSON, IO[bytes]], + body: Union[_models.VerifierWorkspace, _types.VerifierWorkspace, IO[bytes]], *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -62914,9 +66091,10 @@ def create( :type network_manager_name: str :param workspace_name: The name of the resource. Required. :type workspace_name: str - :param body: Verifier Workspace object to create/update. Is one of the following types: - VerifierWorkspace, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.VerifierWorkspace or JSON or IO[bytes] + :param body: Verifier Workspace object to create/update. Is either a VerifierWorkspace type or + a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.VerifierWorkspace or + ~azure.mgmt.network.types.VerifierWorkspace or IO[bytes] :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None. :paramtype etag: str @@ -62943,7 +66121,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) @@ -63048,7 +66226,7 @@ def update( resource_group_name: str, network_manager_name: str, workspace_name: str, - body: Optional[JSON] = None, + body: Optional[_types.VerifierWorkspaceUpdate] = None, *, content_type: str = "application/json", etag: Optional[str] = None, @@ -63067,7 +66245,7 @@ def update( :param workspace_name: The name of the resource. Required. :type workspace_name: str :param body: Verifier Workspace object to create/update. Default value is None. - :type body: JSON + :type body: ~azure.mgmt.network.types.VerifierWorkspaceUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -63126,7 +66304,7 @@ def update( resource_group_name: str, network_manager_name: str, workspace_name: str, - body: Optional[Union[_models.VerifierWorkspaceUpdate, JSON, IO[bytes]]] = None, + body: Optional[Union[_models.VerifierWorkspaceUpdate, _types.VerifierWorkspaceUpdate, IO[bytes]]] = None, *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None, @@ -63143,9 +66321,10 @@ def update( :type network_manager_name: str :param workspace_name: The name of the resource. Required. :type workspace_name: str - :param body: Verifier Workspace object to create/update. Is one of the following types: - VerifierWorkspaceUpdate, JSON, IO[bytes] Default value is None. - :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate or JSON or IO[bytes] + :param body: Verifier Workspace object to create/update. Is either a VerifierWorkspaceUpdate + type or a IO[bytes] type. Default value is None. + :type body: ~azure.mgmt.network.models.VerifierWorkspaceUpdate or + ~azure.mgmt.network.types.VerifierWorkspaceUpdate or IO[bytes] :keyword etag: check if resource is changed. Set None to skip checking etag. Default value is None. :paramtype etag: str @@ -63172,7 +66351,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if body else None cls: ClsType[_models.VerifierWorkspace] = kwargs.pop("cls", None) @@ -63263,7 +66442,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_verifier_workspaces_delete_request( @@ -63348,7 +66527,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -63433,7 +66612,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VerifierWorkspace]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -63510,7 +66689,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ReachabilityAnalysisRunsOperations: +class ReachabilityAnalysisRunsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -63564,7 +66743,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) _request = build_reachability_analysis_runs_get_request( @@ -63655,7 +66834,7 @@ def create( network_manager_name: str, workspace_name: str, reachability_analysis_run_name: str, - body: JSON, + body: _types.ReachabilityAnalysisRun, *, content_type: str = "application/json", **kwargs: Any @@ -63674,7 +66853,7 @@ def create( :param reachability_analysis_run_name: Reachability Analysis Run name. Required. :type reachability_analysis_run_name: str :param body: Analysis Run resource object to create/update. Required. - :type body: JSON + :type body: ~azure.mgmt.network.types.ReachabilityAnalysisRun :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -63725,7 +66904,7 @@ def create( network_manager_name: str, workspace_name: str, reachability_analysis_run_name: str, - body: Union[_models.ReachabilityAnalysisRun, JSON, IO[bytes]], + body: Union[_models.ReachabilityAnalysisRun, _types.ReachabilityAnalysisRun, IO[bytes]], **kwargs: Any ) -> _models.ReachabilityAnalysisRun: """Creates Reachability Analysis Runs. @@ -63741,9 +66920,10 @@ def create( :type workspace_name: str :param reachability_analysis_run_name: Reachability Analysis Run name. Required. :type reachability_analysis_run_name: str - :param body: Analysis Run resource object to create/update. Is one of the following types: - ReachabilityAnalysisRun, JSON, IO[bytes] Required. - :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun or JSON or IO[bytes] + :param body: Analysis Run resource object to create/update. Is either a ReachabilityAnalysisRun + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ReachabilityAnalysisRun or + ~azure.mgmt.network.types.ReachabilityAnalysisRun or IO[bytes] :return: ReachabilityAnalysisRun. The ReachabilityAnalysisRun is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ReachabilityAnalysisRun :raises ~azure.core.exceptions.HttpResponseError: @@ -63759,7 +66939,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ReachabilityAnalysisRun] = kwargs.pop("cls", None) @@ -63837,7 +67017,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_reachability_analysis_runs_delete_request( @@ -63916,7 +67096,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -64003,7 +67183,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ReachabilityAnalysisRun]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -64081,7 +67261,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkVirtualApplianceConnectionsOperations: # pylint: disable=name-too-long +class NetworkVirtualApplianceConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -64104,7 +67284,7 @@ def _create_or_update_initial( network_virtual_appliance_name: str, connection_name: str, network_virtual_appliance_connection_parameters: Union[ - _models.NetworkVirtualApplianceConnection, JSON, IO[bytes] + _models.NetworkVirtualApplianceConnection, _types.NetworkVirtualApplianceConnection, IO[bytes] ], **kwargs: Any ) -> Iterator[bytes]: @@ -64119,7 +67299,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -64221,7 +67401,7 @@ def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, connection_name: str, - network_virtual_appliance_connection_parameters: JSON, + network_virtual_appliance_connection_parameters: _types.NetworkVirtualApplianceConnection, *, content_type: str = "application/json", **kwargs: Any @@ -64238,7 +67418,8 @@ def begin_create_or_update( :type connection_name: str :param network_virtual_appliance_connection_parameters: Parameters supplied in an NetworkVirtualApplianceConnection PUT operation. Required. - :type network_virtual_appliance_connection_parameters: JSON + :type network_virtual_appliance_connection_parameters: + ~azure.mgmt.network.types.NetworkVirtualApplianceConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -64290,7 +67471,7 @@ def begin_create_or_update( network_virtual_appliance_name: str, connection_name: str, network_virtual_appliance_connection_parameters: Union[ - _models.NetworkVirtualApplianceConnection, JSON, IO[bytes] + _models.NetworkVirtualApplianceConnection, _types.NetworkVirtualApplianceConnection, IO[bytes] ], **kwargs: Any ) -> LROPoller[_models.NetworkVirtualApplianceConnection]: @@ -64305,10 +67486,11 @@ def begin_create_or_update( :param connection_name: Required. :type connection_name: str :param network_virtual_appliance_connection_parameters: Parameters supplied in an - NetworkVirtualApplianceConnection PUT operation. Is one of the following types: - NetworkVirtualApplianceConnection, JSON, IO[bytes] Required. + NetworkVirtualApplianceConnection PUT operation. Is either a NetworkVirtualApplianceConnection + type or a IO[bytes] type. Required. :type network_virtual_appliance_connection_parameters: - ~azure.mgmt.network.models.NetworkVirtualApplianceConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.NetworkVirtualApplianceConnection or + ~azure.mgmt.network.types.NetworkVirtualApplianceConnection or IO[bytes] :return: An instance of LROPoller that returns NetworkVirtualApplianceConnection. The NetworkVirtualApplianceConnection is compatible with MutableMapping :rtype: @@ -64318,7 +67500,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -64399,7 +67581,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkVirtualApplianceConnection] = kwargs.pop("cls", None) _request = build_network_virtual_appliance_connections_get_request( @@ -64461,7 +67643,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_virtual_appliance_connections_delete_request( @@ -64529,7 +67711,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -64592,7 +67774,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkVirtualApplianceConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -64664,7 +67846,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkVirtualAppliancesOperations: +class NetworkVirtualAppliancesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -64714,7 +67896,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) _request = build_network_virtual_appliances_get_request( @@ -64766,7 +67948,7 @@ def _create_or_update_initial( self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: Union[_models.NetworkVirtualAppliance, JSON, IO[bytes]], + parameters: Union[_models.NetworkVirtualAppliance, _types.NetworkVirtualAppliance, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -64780,7 +67962,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -64875,7 +68057,7 @@ def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: _types.NetworkVirtualAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -64889,7 +68071,7 @@ def begin_create_or_update( :type network_virtual_appliance_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkVirtualAppliance :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -64933,7 +68115,7 @@ def begin_create_or_update( self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: Union[_models.NetworkVirtualAppliance, JSON, IO[bytes]], + parameters: Union[_models.NetworkVirtualAppliance, _types.NetworkVirtualAppliance, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NetworkVirtualAppliance]: """Creates or updates the specified Network Virtual Appliance. @@ -64944,8 +68126,9 @@ def begin_create_or_update( :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance. Is - one of the following types: NetworkVirtualAppliance, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance or JSON or IO[bytes] + either a NetworkVirtualAppliance type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkVirtualAppliance or + ~azure.mgmt.network.types.NetworkVirtualAppliance or IO[bytes] :return: An instance of LROPoller that returns NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualAppliance] @@ -64954,7 +68137,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -65037,7 +68220,7 @@ def update_tags( self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -65050,7 +68233,7 @@ def update_tags( :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -65091,7 +68274,7 @@ def update_tags( self, resource_group_name: str, network_virtual_appliance_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkVirtualAppliance: """Updates a Network Virtual Appliance. @@ -65101,9 +68284,10 @@ def update_tags( :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to Update Network Virtual Appliance Tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkVirtualAppliance. The NetworkVirtualAppliance is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkVirtualAppliance :raises ~azure.core.exceptions.HttpResponseError: @@ -65119,7 +68303,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkVirtualAppliance] = kwargs.pop("cls", None) @@ -65190,7 +68374,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_virtual_appliances_delete_request( @@ -65256,7 +68440,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -65315,7 +68499,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -65396,7 +68580,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.NetworkVirtualAppliance"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkVirtualAppliance]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -65470,7 +68654,7 @@ def _restart_initial( resource_group_name: str, network_virtual_appliance_name: str, network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] ] = None, **kwargs: Any ) -> Iterator[bytes]: @@ -65485,7 +68669,7 @@ def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if network_virtual_appliance_instance_ids else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -65583,7 +68767,7 @@ def begin_restart( self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + network_virtual_appliance_instance_ids: Optional[_types.NetworkVirtualApplianceInstanceIds] = None, *, content_type: str = "application/json", **kwargs: Any @@ -65597,7 +68781,8 @@ def begin_restart( :type network_virtual_appliance_name: str :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: JSON + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -65644,7 +68829,7 @@ def begin_restart( resource_group_name: str, network_virtual_appliance_name: str, network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] ] = None, **kwargs: Any ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: @@ -65656,10 +68841,11 @@ def begin_restart( :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Is one of the following types: - NetworkVirtualApplianceInstanceIds, JSON, IO[bytes] Default value is None. + from the Network Virtual Appliance VM instances. Is either a NetworkVirtualApplianceInstanceIds + type or a IO[bytes] type. Default value is None. :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or JSON or IO[bytes] + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds or IO[bytes] :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The NetworkVirtualApplianceInstanceIds is compatible with MutableMapping :rtype: @@ -65669,7 +68855,7 @@ def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if network_virtual_appliance_instance_ids else None cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) @@ -65726,7 +68912,7 @@ def _reimage_initial( resource_group_name: str, network_virtual_appliance_name: str, network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] ] = None, **kwargs: Any ) -> Iterator[bytes]: @@ -65741,7 +68927,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if network_virtual_appliance_instance_ids else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -65804,139 +68990,947 @@ def _reimage_initial( return deserialized # type: ignore @overload - def begin_reimage( + def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[_types.NetworkVirtualApplianceInstanceIds] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Default value is None. + :type network_virtual_appliance_instance_ids: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_reimage( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + network_virtual_appliance_instance_ids: Optional[ + Union[_models.NetworkVirtualApplianceInstanceIds, _types.NetworkVirtualApplianceInstanceIds, IO[bytes]] + ] = None, + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: + """Reimages one VM belonging to the specified Network Virtual Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs + from the Network Virtual Appliance VM instances. Is either a NetworkVirtualApplianceInstanceIds + type or a IO[bytes] type. Default value is None. + :type network_virtual_appliance_instance_ids: + ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or + ~azure.mgmt.network.types.NetworkVirtualApplianceInstanceIds or IO[bytes] + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The + NetworkVirtualApplianceInstanceIds is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if network_virtual_appliance_instance_ids else None + cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._reimage_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NetworkVirtualApplianceInstanceIds]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _get_boot_diagnostic_logs_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: Union[ + _models.NetworkVirtualApplianceBootDiagnosticParameters, + _types.NetworkVirtualApplianceBootDiagnosticParameters, + IO[bytes], + ], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(request, (IOBase, bytes)): + _content = request + else: + _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_get_boot_diagnostic_logs_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: _models.NetworkVirtualApplianceBootDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: _types.NetworkVirtualApplianceBootDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: ~azure.mgmt.network.types.NetworkVirtualApplianceBootDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + Required. + :type request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_get_boot_diagnostic_logs( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + request: Union[ + _models.NetworkVirtualApplianceBootDiagnosticParameters, + _types.NetworkVirtualApplianceBootDiagnosticParameters, + IO[bytes], + ], + **kwargs: Any + ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: + """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual + Appliance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. Is + either a NetworkVirtualApplianceBootDiagnosticParameters type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters or + ~azure.mgmt.network.types.NetworkVirtualApplianceBootDiagnosticParameters or IO[bytes] + :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The + NetworkVirtualApplianceInstanceId is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkVirtualApplianceInstanceId] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._get_boot_diagnostic_logs_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + request=request, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceId, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NetworkVirtualApplianceInstanceId].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NetworkVirtualApplianceInstanceId]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _prepare_migration_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualAppliancePrepareMigrationRequest, + _types.NetworkVirtualAppliancePrepareMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_prepare_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _models.NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: _types.NetworkVirtualAppliancePrepareMigrationRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_prepare_migration( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualAppliancePrepareMigrationRequest, + _types.NetworkVirtualAppliancePrepareMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> LROPoller[None]: + """Prepares the migration of the specified Network Virtual Appliance. This is the first step of a + migration workflow, such as migrating to a new OS version or to the new internal load balancer + architecture. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :param body: Parameters supplied to prepare the migration of the Network Virtual Appliance. Is + either a NetworkVirtualAppliancePrepareMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualAppliancePrepareMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualAppliancePrepareMigrationRequest or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._prepare_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _execute_migration_initial( + self, + resource_group_name: str, + network_virtual_appliance_name: str, + body: Union[ + _models.NetworkVirtualApplianceExecuteMigrationRequest, + _types.NetworkVirtualApplianceExecuteMigrationRequest, + IO[bytes], + ], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_virtual_appliances_execute_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_execute_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[_models.NetworkVirtualApplianceInstanceIds] = None, + body: _models.NetworkVirtualApplianceExecuteMigrationRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. + ) -> LROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_reimage( + def begin_execute_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[JSON] = None, + body: _types.NetworkVirtualApplianceExecuteMigrationRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. + ) -> LROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: JSON + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: ~azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_reimage( + def begin_execute_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[IO[bytes]] = None, + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. + ) -> LROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Default value is None. - :type network_virtual_appliance_instance_ids: IO[bytes] + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. + Required. + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_reimage( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_execute_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - network_virtual_appliance_instance_ids: Optional[ - Union[_models.NetworkVirtualApplianceInstanceIds, JSON, IO[bytes]] - ] = None, + body: Union[ + _models.NetworkVirtualApplianceExecuteMigrationRequest, + _types.NetworkVirtualApplianceExecuteMigrationRequest, + IO[bytes], + ], **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceIds]: - """Reimages one VM belonging to the specified Network Virtual Appliance. + ) -> LROPoller[None]: + """Executes the migration of the specified Network Virtual Appliance. This step performs the + migration workflow that was previously prepared. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param network_virtual_appliance_instance_ids: Specifies a list of virtual machine instance IDs - from the Network Virtual Appliance VM instances. Is one of the following types: - NetworkVirtualApplianceInstanceIds, JSON, IO[bytes] Default value is None. - :type network_virtual_appliance_instance_ids: - ~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds or JSON or IO[bytes] - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceIds. The - NetworkVirtualApplianceInstanceIds is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceIds] + :param body: Parameters supplied to execute the migration of the Network Virtual Appliance. Is + either a NetworkVirtualApplianceExecuteMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceExecuteMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualApplianceExecuteMigrationRequest or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if network_virtual_appliance_instance_ids else None - cls: ClsType[_models.NetworkVirtualApplianceInstanceIds] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._reimage_initial( + raw_result = self._execute_migration_initial( resource_group_name=resource_group_name, network_virtual_appliance_name=network_virtual_appliance_name, - network_virtual_appliance_instance_ids=network_virtual_appliance_instance_ids, + body=body, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -65947,12 +69941,9 @@ def begin_reimage( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceIds, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -65967,21 +69958,36 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.NetworkVirtualApplianceInstanceIds].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.NetworkVirtualApplianceInstanceIds]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - def _get_boot_diagnostic_logs_initial( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _commit_migration_initial( self, resource_group_name: str, network_virtual_appliance_name: str, - request: Union[_models.NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes]], + body: Union[ + _models.NetworkVirtualApplianceCommitMigrationRequest, + _types.NetworkVirtualApplianceCommitMigrationRequest, + IO[bytes], + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -65995,18 +70001,18 @@ def _get_boot_diagnostic_logs_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None - if isinstance(request, (IOBase, bytes)): - _content = request + if isinstance(body, (IOBase, bytes)): + _content = body else: - _content = json.dumps(request, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_network_virtual_appliances_get_boot_diagnostic_logs_request( + _request = build_network_virtual_appliances_commit_migration_request( resource_group_name=resource_group_name, network_virtual_appliance_name=network_virtual_appliance_name, subscription_id=self._config.subscription_id, @@ -66029,7 +70035,7 @@ def _get_boot_diagnostic_logs_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202, 204]: try: response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -66054,139 +70060,147 @@ def _get_boot_diagnostic_logs_initial( return deserialized # type: ignore @overload - def begin_get_boot_diagnostic_logs( + def begin_commit_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - request: _models.NetworkVirtualApplianceBootDiagnosticParameters, + body: _models.NetworkVirtualApplianceCommitMigrationRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> LROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. Required. - :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_get_boot_diagnostic_logs( + def begin_commit_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - request: JSON, + body: _types.NetworkVirtualApplianceCommitMigrationRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> LROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. Required. - :type request: JSON + :type body: ~azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_get_boot_diagnostic_logs( + def begin_commit_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - request: IO[bytes], + body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> LROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. Required. - :type request: IO[bytes] + :type body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_get_boot_diagnostic_logs( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_virtual_appliance_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_commit_migration( self, resource_group_name: str, network_virtual_appliance_name: str, - request: Union[_models.NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes]], + body: Union[ + _models.NetworkVirtualApplianceCommitMigrationRequest, + _types.NetworkVirtualApplianceCommitMigrationRequest, + IO[bytes], + ], **kwargs: Any - ) -> LROPoller[_models.NetworkVirtualApplianceInstanceId]: - """Retrieves the boot diagnostic logs for a VM instance belonging to the specified Network Virtual - Appliance. + ) -> LROPoller[None]: + """Commits the migration of the specified Network Virtual Appliance. This finalizes a previously + executed migration workflow. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. :type network_virtual_appliance_name: str - :param request: Parameters supplied to retrieve boot diagnostic logs for a NVA VM instance. Is - one of the following types: NetworkVirtualApplianceBootDiagnosticParameters, JSON, IO[bytes] - Required. - :type request: ~azure.mgmt.network.models.NetworkVirtualApplianceBootDiagnosticParameters or - JSON or IO[bytes] - :return: An instance of LROPoller that returns NetworkVirtualApplianceInstanceId. The - NetworkVirtualApplianceInstanceId is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkVirtualApplianceInstanceId] + :param body: Parameters supplied to commit the migration of the Network Virtual Appliance. Is + either a NetworkVirtualApplianceCommitMigrationRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.NetworkVirtualApplianceCommitMigrationRequest or + ~azure.mgmt.network.types.NetworkVirtualApplianceCommitMigrationRequest or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkVirtualApplianceInstanceId] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._get_boot_diagnostic_logs_initial( + raw_result = self._commit_migration_initial( resource_group_name=resource_group_name, network_virtual_appliance_name=network_virtual_appliance_name, - request=request, + body=body, api_version=api_version, content_type=content_type, cls=lambda x, y, z: x, @@ -66197,12 +70211,9 @@ def begin_get_boot_diagnostic_logs( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkVirtualApplianceInstanceId, response.json()) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -66217,18 +70228,154 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.NetworkVirtualApplianceInstanceId].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.NetworkVirtualApplianceInstanceId]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_virtual_appliance_name"] + }, + api_versions_list=["2025-09-01"], + ) + def _abort_migration_initial( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_virtual_appliances_abort_migration_request( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_virtual_appliance_name"] + }, + api_versions_list=["2025-09-01"], + ) + def begin_abort_migration( + self, resource_group_name: str, network_virtual_appliance_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Aborts an in-progress migration of the specified Network Virtual Appliance and rolls back to + the previous state. + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_virtual_appliance_name: The name of Network Virtual Appliance. Required. + :type network_virtual_appliance_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) -class VirtualApplianceSitesOperations: + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._abort_migration_initial( + resource_group_name=resource_group_name, + network_virtual_appliance_name=network_virtual_appliance_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class VirtualApplianceSitesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -66274,7 +70421,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) _request = build_virtual_appliance_sites_get_request( @@ -66327,7 +70474,7 @@ def _create_or_update_initial( resource_group_name: str, network_virtual_appliance_name: str, site_name: str, - parameters: Union[_models.VirtualApplianceSite, JSON, IO[bytes]], + parameters: Union[_models.VirtualApplianceSite, _types.VirtualApplianceSite, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -66341,7 +70488,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -66441,7 +70588,7 @@ def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, site_name: str, - parameters: JSON, + parameters: _types.VirtualApplianceSite, *, content_type: str = "application/json", **kwargs: Any @@ -66458,7 +70605,7 @@ def begin_create_or_update( :type site_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualApplianceSite :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -66507,7 +70654,7 @@ def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, site_name: str, - parameters: Union[_models.VirtualApplianceSite, JSON, IO[bytes]], + parameters: Union[_models.VirtualApplianceSite, _types.VirtualApplianceSite, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualApplianceSite]: """Creates or updates the specified Network Virtual Appliance Site. @@ -66521,8 +70668,9 @@ def begin_create_or_update( can be used to access the resource. Required. :type site_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance Site - operation. Is one of the following types: VirtualApplianceSite, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite or JSON or IO[bytes] + operation. Is either a VirtualApplianceSite type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualApplianceSite or + ~azure.mgmt.network.types.VirtualApplianceSite or IO[bytes] :return: An instance of LROPoller that returns VirtualApplianceSite. The VirtualApplianceSite is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualApplianceSite] @@ -66531,7 +70679,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualApplianceSite] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -66597,7 +70745,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_appliance_sites_delete_request( @@ -66667,7 +70815,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -66729,7 +70877,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualApplianceSite]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -66801,7 +70949,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkWatchersOperations: # pylint: disable=too-many-public-methods +class NetworkWatchersOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -66842,7 +70990,7 @@ def get(self, resource_group_name: str, network_watcher_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) _request = build_network_watchers_get_request( @@ -66921,7 +71069,7 @@ def create_or_update( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.NetworkWatcher, *, content_type: str = "application/json", **kwargs: Any @@ -66934,7 +71082,7 @@ def create_or_update( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the network watcher resource. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkWatcher :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -66975,7 +71123,7 @@ def create_or_update( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NetworkWatcher, JSON, IO[bytes]], + parameters: Union[_models.NetworkWatcher, _types.NetworkWatcher, IO[bytes]], **kwargs: Any ) -> _models.NetworkWatcher: """Creates or updates a network watcher in the specified resource group. @@ -66985,9 +71133,10 @@ def create_or_update( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the network watcher resource. Is one of the following - types: NetworkWatcher, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkWatcher or JSON or IO[bytes] + :param parameters: Parameters that define the network watcher resource. Is either a + NetworkWatcher type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkWatcher or + ~azure.mgmt.network.types.NetworkWatcher or IO[bytes] :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkWatcher :raises ~azure.core.exceptions.HttpResponseError: @@ -67003,7 +71152,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) @@ -67092,7 +71241,7 @@ def update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -67105,7 +71254,7 @@ def update_tags( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters supplied to update network watcher tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -67146,7 +71295,7 @@ def update_tags( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.NetworkWatcher: """Updates a network watcher tags. @@ -67156,9 +71305,10 @@ def update_tags( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters supplied to update network watcher tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update network watcher tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: NetworkWatcher. The NetworkWatcher is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkWatcher :raises ~azure.core.exceptions.HttpResponseError: @@ -67174,7 +71324,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkWatcher] = kwargs.pop("cls", None) @@ -67243,7 +71393,7 @@ def _delete_initial(self, resource_group_name: str, network_watcher_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_watchers_delete_request( @@ -67307,7 +71457,7 @@ def begin_delete(self, resource_group_name: str, network_watcher_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -67364,7 +71514,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ne _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -67445,7 +71595,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.NetworkWatcher"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkWatcher]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -67546,7 +71696,7 @@ def get_topology( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.TopologyParameters, *, content_type: str = "application/json", **kwargs: Any @@ -67559,7 +71709,7 @@ def get_topology( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the representation of topology. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TopologyParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -67600,7 +71750,7 @@ def get_topology( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TopologyParameters, JSON, IO[bytes]], + parameters: Union[_models.TopologyParameters, _types.TopologyParameters, IO[bytes]], **kwargs: Any ) -> _models.Topology: """Gets the current network topology by resource group. @@ -67610,9 +71760,10 @@ def get_topology( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the representation of topology. Is one of the - following types: TopologyParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TopologyParameters or JSON or IO[bytes] + :param parameters: Parameters that define the representation of topology. Is either a + TopologyParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TopologyParameters or + ~azure.mgmt.network.types.TopologyParameters or IO[bytes] :return: Topology. The Topology is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.Topology :raises ~azure.core.exceptions.HttpResponseError: @@ -67628,7 +71779,7 @@ def get_topology( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Topology] = kwargs.pop("cls", None) @@ -67689,7 +71840,7 @@ def _verify_ip_flow_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.VerificationIPFlowParameters, JSON, IO[bytes]], + parameters: Union[_models.VerificationIPFlowParameters, _types.VerificationIPFlowParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -67703,7 +71854,7 @@ def _verify_ip_flow_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -67794,7 +71945,7 @@ def begin_verify_ip_flow( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.VerificationIPFlowParameters, *, content_type: str = "application/json", **kwargs: Any @@ -67807,7 +71958,7 @@ def begin_verify_ip_flow( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the IP flow to be verified. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VerificationIPFlowParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -67850,7 +72001,7 @@ def begin_verify_ip_flow( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.VerificationIPFlowParameters, JSON, IO[bytes]], + parameters: Union[_models.VerificationIPFlowParameters, _types.VerificationIPFlowParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VerificationIPFlowResult]: """Verify IP flow from the specified VM to a location given the currently configured NSG rules. @@ -67860,9 +72011,10 @@ def begin_verify_ip_flow( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the IP flow to be verified. Is one of the following - types: VerificationIPFlowParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters or JSON or IO[bytes] + :param parameters: Parameters that define the IP flow to be verified. Is either a + VerificationIPFlowParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VerificationIPFlowParameters or + ~azure.mgmt.network.types.VerificationIPFlowParameters or IO[bytes] :return: An instance of LROPoller that returns VerificationIPFlowResult. The VerificationIPFlowResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VerificationIPFlowResult] @@ -67871,7 +72023,7 @@ def begin_verify_ip_flow( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VerificationIPFlowResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -67926,7 +72078,7 @@ def _get_next_hop_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NextHopParameters, JSON, IO[bytes]], + parameters: Union[_models.NextHopParameters, _types.NextHopParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -67940,7 +72092,7 @@ def _get_next_hop_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -68031,7 +72183,7 @@ def begin_get_next_hop( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.NextHopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -68044,7 +72196,7 @@ def begin_get_next_hop( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the source and destination endpoint. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NextHopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -68087,7 +72239,7 @@ def begin_get_next_hop( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NextHopParameters, JSON, IO[bytes]], + parameters: Union[_models.NextHopParameters, _types.NextHopParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NextHopResult]: """Gets the next hop from the specified VM. @@ -68097,9 +72249,10 @@ def begin_get_next_hop( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the source and destination endpoint. Is one of the - following types: NextHopParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NextHopParameters or JSON or IO[bytes] + :param parameters: Parameters that define the source and destination endpoint. Is either a + NextHopParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NextHopParameters or + ~azure.mgmt.network.types.NextHopParameters or IO[bytes] :return: An instance of LROPoller that returns NextHopResult. The NextHopResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NextHopResult] @@ -68108,7 +72261,7 @@ def begin_get_next_hop( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NextHopResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -68163,7 +72316,7 @@ def _get_vm_security_rules_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.SecurityGroupViewParameters, JSON, IO[bytes]], + parameters: Union[_models.SecurityGroupViewParameters, _types.SecurityGroupViewParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -68177,7 +72330,7 @@ def _get_vm_security_rules_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -68268,7 +72421,7 @@ def begin_get_vm_security_rules( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.SecurityGroupViewParameters, *, content_type: str = "application/json", **kwargs: Any @@ -68281,7 +72434,7 @@ def begin_get_vm_security_rules( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the VM to check security groups for. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SecurityGroupViewParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -68324,7 +72477,7 @@ def begin_get_vm_security_rules( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.SecurityGroupViewParameters, JSON, IO[bytes]], + parameters: Union[_models.SecurityGroupViewParameters, _types.SecurityGroupViewParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.SecurityGroupViewResult]: """Gets the configured and effective security group rules on the specified VM. @@ -68334,9 +72487,10 @@ def begin_get_vm_security_rules( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the VM to check security groups for. Is one of the - following types: SecurityGroupViewParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters or JSON or IO[bytes] + :param parameters: Parameters that define the VM to check security groups for. Is either a + SecurityGroupViewParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SecurityGroupViewParameters or + ~azure.mgmt.network.types.SecurityGroupViewParameters or IO[bytes] :return: An instance of LROPoller that returns SecurityGroupViewResult. The SecurityGroupViewResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.SecurityGroupViewResult] @@ -68345,7 +72499,7 @@ def begin_get_vm_security_rules( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityGroupViewResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -68400,7 +72554,7 @@ def _get_troubleshooting_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[_models.TroubleshootingParameters, _types.TroubleshootingParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -68414,7 +72568,7 @@ def _get_troubleshooting_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -68505,7 +72659,7 @@ def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.TroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -68518,7 +72672,7 @@ def begin_get_troubleshooting( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the resource to troubleshoot. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -68561,7 +72715,7 @@ def begin_get_troubleshooting( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.TroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[_models.TroubleshootingParameters, _types.TroubleshootingParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.TroubleshootingResult]: """Initiate troubleshooting on a specified resource. @@ -68571,9 +72725,10 @@ def begin_get_troubleshooting( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the resource to troubleshoot. Is one of the following - types: TroubleshootingParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters or JSON or IO[bytes] + :param parameters: Parameters that define the resource to troubleshoot. Is either a + TroubleshootingParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TroubleshootingParameters or + ~azure.mgmt.network.types.TroubleshootingParameters or IO[bytes] :return: An instance of LROPoller that returns TroubleshootingResult. The TroubleshootingResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.TroubleshootingResult] @@ -68582,7 +72737,7 @@ def begin_get_troubleshooting( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -68637,7 +72792,7 @@ def _get_troubleshooting_result_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.QueryTroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[_models.QueryTroubleshootingParameters, _types.QueryTroubleshootingParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -68651,7 +72806,7 @@ def _get_troubleshooting_result_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -68743,7 +72898,7 @@ def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.QueryTroubleshootingParameters, *, content_type: str = "application/json", **kwargs: Any @@ -68757,7 +72912,7 @@ def begin_get_troubleshooting_result( :type network_watcher_name: str :param parameters: Parameters that define the resource to query the troubleshooting result. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryTroubleshootingParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -68801,7 +72956,7 @@ def begin_get_troubleshooting_result( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.QueryTroubleshootingParameters, JSON, IO[bytes]], + parameters: Union[_models.QueryTroubleshootingParameters, _types.QueryTroubleshootingParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.TroubleshootingResult]: """Get the last completed troubleshooting result on a specified resource. @@ -68812,9 +72967,9 @@ def begin_get_troubleshooting_result( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the resource to query the troubleshooting result. Is - one of the following types: QueryTroubleshootingParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters or JSON or - IO[bytes] + either a QueryTroubleshootingParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryTroubleshootingParameters or + ~azure.mgmt.network.types.QueryTroubleshootingParameters or IO[bytes] :return: An instance of LROPoller that returns TroubleshootingResult. The TroubleshootingResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.TroubleshootingResult] @@ -68823,7 +72978,7 @@ def begin_get_troubleshooting_result( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TroubleshootingResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -68878,7 +73033,7 @@ def _set_flow_log_configuration_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.FlowLogInformation, JSON, IO[bytes]], + parameters: Union[_models.FlowLogInformation, _types.FlowLogInformation, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -68892,7 +73047,7 @@ def _set_flow_log_configuration_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -68983,7 +73138,7 @@ def begin_set_flow_log_configuration( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.FlowLogInformation, *, content_type: str = "application/json", **kwargs: Any @@ -68996,7 +73151,7 @@ def begin_set_flow_log_configuration( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define the configuration of flow log. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FlowLogInformation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -69039,7 +73194,7 @@ def begin_set_flow_log_configuration( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.FlowLogInformation, JSON, IO[bytes]], + parameters: Union[_models.FlowLogInformation, _types.FlowLogInformation, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.FlowLogInformation]: """Configures flow log and traffic analytics (optional) on a specified resource. @@ -69049,9 +73204,10 @@ def begin_set_flow_log_configuration( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that define the configuration of flow log. Is one of the - following types: FlowLogInformation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FlowLogInformation or JSON or IO[bytes] + :param parameters: Parameters that define the configuration of flow log. Is either a + FlowLogInformation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogInformation or + ~azure.mgmt.network.types.FlowLogInformation or IO[bytes] :return: An instance of LROPoller that returns FlowLogInformation. The FlowLogInformation is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FlowLogInformation] @@ -69060,7 +73216,7 @@ def begin_set_flow_log_configuration( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -69115,7 +73271,7 @@ def _get_flow_log_status_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.FlowLogStatusParameters, JSON, IO[bytes]], + parameters: Union[_models.FlowLogStatusParameters, _types.FlowLogStatusParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -69129,7 +73285,7 @@ def _get_flow_log_status_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -69221,7 +73377,7 @@ def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.FlowLogStatusParameters, *, content_type: str = "application/json", **kwargs: Any @@ -69235,7 +73391,7 @@ def begin_get_flow_log_status( :type network_watcher_name: str :param parameters: Parameters that define a resource to query flow log and traffic analytics (optional) status. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FlowLogStatusParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -69279,7 +73435,7 @@ def begin_get_flow_log_status( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.FlowLogStatusParameters, JSON, IO[bytes]], + parameters: Union[_models.FlowLogStatusParameters, _types.FlowLogStatusParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.FlowLogInformation]: """Queries status of flow log and traffic analytics (optional) on a specified resource. @@ -69290,9 +73446,9 @@ def begin_get_flow_log_status( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that define a resource to query flow log and traffic analytics - (optional) status. Is one of the following types: FlowLogStatusParameters, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters or JSON or IO[bytes] + (optional) status. Is either a FlowLogStatusParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLogStatusParameters or + ~azure.mgmt.network.types.FlowLogStatusParameters or IO[bytes] :return: An instance of LROPoller that returns FlowLogInformation. The FlowLogInformation is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FlowLogInformation] @@ -69301,7 +73457,7 @@ def begin_get_flow_log_status( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FlowLogInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -69356,7 +73512,7 @@ def _check_connectivity_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.ConnectivityParameters, JSON, IO[bytes]], + parameters: Union[_models.ConnectivityParameters, _types.ConnectivityParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -69370,7 +73526,7 @@ def _check_connectivity_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -69463,7 +73619,7 @@ def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.ConnectivityParameters, *, content_type: str = "application/json", **kwargs: Any @@ -69478,7 +73634,7 @@ def begin_check_connectivity( :type network_watcher_name: str :param parameters: Parameters that determine how the connectivity check will be performed. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ConnectivityParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -69523,7 +73679,7 @@ def begin_check_connectivity( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.ConnectivityParameters, JSON, IO[bytes]], + parameters: Union[_models.ConnectivityParameters, _types.ConnectivityParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ConnectivityInformation]: """Verifies the possibility of establishing a direct TCP connection from a virtual machine to a @@ -69535,8 +73691,9 @@ def begin_check_connectivity( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that determine how the connectivity check will be performed. Is - one of the following types: ConnectivityParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectivityParameters or JSON or IO[bytes] + either a ConnectivityParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectivityParameters or + ~azure.mgmt.network.types.ConnectivityParameters or IO[bytes] :return: An instance of LROPoller that returns ConnectivityInformation. The ConnectivityInformation is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectivityInformation] @@ -69545,7 +73702,7 @@ def begin_check_connectivity( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectivityInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -69600,7 +73757,9 @@ def _get_azure_reachability_report_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.AzureReachabilityReportParameters, JSON, IO[bytes]], + parameters: Union[ + _models.AzureReachabilityReportParameters, _types.AzureReachabilityReportParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -69614,7 +73773,7 @@ def _get_azure_reachability_report_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -69707,7 +73866,7 @@ def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.AzureReachabilityReportParameters, *, content_type: str = "application/json", **kwargs: Any @@ -69722,7 +73881,7 @@ def begin_get_azure_reachability_report( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that determine Azure reachability report configuration. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.AzureReachabilityReportParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -69767,7 +73926,9 @@ def begin_get_azure_reachability_report( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.AzureReachabilityReportParameters, JSON, IO[bytes]], + parameters: Union[ + _models.AzureReachabilityReportParameters, _types.AzureReachabilityReportParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.AzureReachabilityReport]: """NOTE: This feature is currently in preview and still being tested for stability. Gets the @@ -69779,10 +73940,10 @@ def begin_get_azure_reachability_report( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that determine Azure reachability report configuration. Is one of - the following types: AzureReachabilityReportParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters or JSON or - IO[bytes] + :param parameters: Parameters that determine Azure reachability report configuration. Is either + a AzureReachabilityReportParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AzureReachabilityReportParameters or + ~azure.mgmt.network.types.AzureReachabilityReportParameters or IO[bytes] :return: An instance of LROPoller that returns AzureReachabilityReport. The AzureReachabilityReport is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AzureReachabilityReport] @@ -69791,7 +73952,7 @@ def begin_get_azure_reachability_report( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AzureReachabilityReport] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -69846,7 +74007,7 @@ def _list_available_providers_initial( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.AvailableProvidersListParameters, JSON, IO[bytes]], + parameters: Union[_models.AvailableProvidersListParameters, _types.AvailableProvidersListParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -69860,7 +74021,7 @@ def _list_available_providers_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -69952,7 +74113,7 @@ def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, - parameters: JSON, + parameters: _types.AvailableProvidersListParameters, *, content_type: str = "application/json", **kwargs: Any @@ -69966,7 +74127,7 @@ def begin_list_available_providers( :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str :param parameters: Parameters that scope the list of available providers. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.AvailableProvidersListParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -70010,7 +74171,7 @@ def begin_list_available_providers( self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.AvailableProvidersListParameters, JSON, IO[bytes]], + parameters: Union[_models.AvailableProvidersListParameters, _types.AvailableProvidersListParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.AvailableProvidersList]: """NOTE: This feature is currently in preview and still being tested for stability. Lists all @@ -70021,10 +74182,10 @@ def begin_list_available_providers( :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters that scope the list of available providers. Is one of the - following types: AvailableProvidersListParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters or JSON or - IO[bytes] + :param parameters: Parameters that scope the list of available providers. Is either a + AvailableProvidersListParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.AvailableProvidersListParameters or + ~azure.mgmt.network.types.AvailableProvidersListParameters or IO[bytes] :return: An instance of LROPoller that returns AvailableProvidersList. The AvailableProvidersList is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AvailableProvidersList] @@ -70033,7 +74194,7 @@ def begin_list_available_providers( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailableProvidersList] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -70088,7 +74249,9 @@ def _get_network_configuration_diagnostic_initial( # pylint: disable=name-too-l self, resource_group_name: str, network_watcher_name: str, - parameters: Union[_models.NetworkConfigurationDiagnosticParameters, JSON, IO[bytes]], + parameters: Union[ + _models.NetworkConfigurationDiagnosticParameters, _types.NetworkConfigurationDiagnosticParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -70102,7 +74265,7 @@ def _get_network_configuration_diagnostic_initial( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -70160,150 +74323,1141 @@ def _get_network_configuration_diagnostic_initial( # pylint: disable=name-too-l return deserialized # type: ignore - @overload - def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: _models.NetworkConfigurationDiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: JSON, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param network_watcher_name: The name of the network watcher. Required. - :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] - :raises ~azure.core.exceptions.HttpResponseError: - """ - + @overload + def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _models.NetworkConfigurationDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters to get network configuration diagnostic. Required. + :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long + self, + resource_group_name: str, + network_watcher_name: str, + parameters: _types.NetworkConfigurationDiagnosticParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters to get network configuration diagnostic. Required. + :type parameters: ~azure.mgmt.network.types.NetworkConfigurationDiagnosticParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long + self, + resource_group_name: str, + network_watcher_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters to get network configuration diagnostic. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long + self, + resource_group_name: str, + network_watcher_name: str, + parameters: Union[ + _models.NetworkConfigurationDiagnosticParameters, _types.NetworkConfigurationDiagnosticParameters, IO[bytes] + ], + **kwargs: Any + ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: + """Gets Network Configuration Diagnostic data to help customers understand and debug network + behavior. It provides detailed information on what security rules were applied to a specified + traffic flow and the result of evaluating these rules. Customers must provide details of a flow + like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, + the rules evaluated for the specified flow and the evaluation results. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param parameters: Parameters to get network configuration diagnostic. Is either a + NetworkConfigurationDiagnosticParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters or + ~azure.mgmt.network.types.NetworkConfigurationDiagnosticParameters or IO[bytes] + :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The + NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NetworkConfigurationDiagnosticResponse] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._get_network_configuration_diagnostic_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.NetworkConfigurationDiagnosticResponse, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.NetworkConfigurationDiagnosticResponse].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.NetworkConfigurationDiagnosticResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _connection_analyzers_create_initial( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: Union[_models.ConnectionAnalyzer, _types.ConnectionAnalyzer, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_connection_analyzers_create_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: _models.ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: ~azure.mgmt.network.models.ConnectionAnalyzer + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: _types.ConnectionAnalyzer, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: ~azure.mgmt.network.types.ConnectionAnalyzer + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_connection_analyzers_create( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: Union[_models.ConnectionAnalyzer, _types.ConnectionAnalyzer, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.ConnectionAnalyzer]: + """Creates or updates a connection analyzer in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters that define the operation to create a connection analyzer. Is either a + ConnectionAnalyzer type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.ConnectionAnalyzer or + ~azure.mgmt.network.types.ConnectionAnalyzer or IO[bytes] + :return: An instance of LROPoller that returns ConnectionAnalyzer. The ConnectionAnalyzer is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._connection_analyzers_create_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.ConnectionAnalyzer].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.ConnectionAnalyzer]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def connection_analyzers_get( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Gets the specified connection analyzer by name. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) + + _request = build_network_watchers_connection_analyzers_get_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _connection_analyzers_delete_initial( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_watchers_connection_analyzers_delete_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_connection_analyzers_delete( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._connection_analyzers_delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def connection_analyzers_update_tags( + self, + resource_group_name: str, + network_watcher_name: str, + connection_analyzer_name: str, + body: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> _models.ConnectionAnalyzer: + """Updates the tags of the specified connection analyzer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :param body: Parameters supplied to update connection analyzer tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject or + IO[bytes] + :return: ConnectionAnalyzer. The ConnectionAnalyzer is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ConnectionAnalyzer + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ConnectionAnalyzer] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_network_watchers_connection_analyzers_update_tags_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ConnectionAnalyzer, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": ["api_version", "subscription_id", "resource_group_name", "network_watcher_name", "accept"] + }, + api_versions_list=["2025-09-01"], + ) + def connection_analyzers_list( + self, resource_group_name: str, network_watcher_name: str, **kwargs: Any + ) -> ItemPaged["_models.ConnectionAnalyzer"]: + """Lists all connection analyzers in the specified network watcher. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. Required. + :type network_watcher_name: str + :return: An iterator like instance of ConnectionAnalyzer + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.ConnectionAnalyzer] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.ConnectionAnalyzer]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_network_watchers_connection_analyzers_list_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ConnectionAnalyzer], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _connection_analyzers_query_initial( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_network_watchers_connection_analyzers_query_request( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_analyzer_name=connection_analyzer_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + @distributed_trace - def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long - self, - resource_group_name: str, - network_watcher_name: str, - parameters: Union[_models.NetworkConfigurationDiagnosticParameters, JSON, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.NetworkConfigurationDiagnosticResponse]: - """Gets Network Configuration Diagnostic data to help customers understand and debug network - behavior. It provides detailed information on what security rules were applied to a specified - traffic flow and the result of evaluating these rules. Customers must provide details of a flow - like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, - the rules evaluated for the specified flow and the evaluation results. + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "network_watcher_name", + "connection_analyzer_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_connection_analyzers_query( + self, resource_group_name: str, network_watcher_name: str, connection_analyzer_name: str, **kwargs: Any + ) -> LROPoller[_models.ConnectionAnalyzerQueryStatusResult]: + """Queries the specified connection analyzer for diagnostic results. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param network_watcher_name: The name of the network watcher. Required. :type network_watcher_name: str - :param parameters: Parameters to get network configuration diagnostic. Is one of the following - types: NetworkConfigurationDiagnosticParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkConfigurationDiagnosticParameters or JSON - or IO[bytes] - :return: An instance of LROPoller that returns NetworkConfigurationDiagnosticResponse. The - NetworkConfigurationDiagnosticResponse is compatible with MutableMapping + :param connection_analyzer_name: The name of the connection analyzer. Required. + :type connection_analyzer_name: str + :return: An instance of LROPoller that returns ConnectionAnalyzerQueryStatusResult. The + ConnectionAnalyzerQueryStatusResult is compatible with MutableMapping :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkConfigurationDiagnosticResponse] + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionAnalyzerQueryStatusResult] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NetworkConfigurationDiagnosticResponse] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.ConnectionAnalyzerQueryStatusResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._get_network_configuration_diagnostic_initial( + raw_result = self._connection_analyzers_query_initial( resource_group_name=resource_group_name, network_watcher_name=network_watcher_name, - parameters=parameters, + connection_analyzer_name=connection_analyzer_name, api_version=api_version, - content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -70314,7 +75468,7 @@ def begin_get_network_configuration_diagnostic( # pylint: disable=name-too-long def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.NetworkConfigurationDiagnosticResponse, response.json()) + deserialized = _deserialize(_models.ConnectionAnalyzerQueryStatusResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -70332,18 +75486,18 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.NetworkConfigurationDiagnosticResponse].from_continuation_token( + return LROPoller[_models.ConnectionAnalyzerQueryStatusResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.NetworkConfigurationDiagnosticResponse]( + return LROPoller[_models.ConnectionAnalyzerQueryStatusResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) -class FlowLogsOperations: +class FlowLogsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -70388,7 +75542,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) _request = build_flow_logs_get_request( @@ -70441,7 +75595,7 @@ def _create_or_update_initial( resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: Union[_models.FlowLog, JSON, IO[bytes]], + parameters: Union[_models.FlowLog, _types.FlowLog, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -70455,7 +75609,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -70553,7 +75707,7 @@ def begin_create_or_update( resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: _types.FlowLog, *, content_type: str = "application/json", **kwargs: Any @@ -70568,7 +75722,7 @@ def begin_create_or_update( :param flow_log_name: The name of the flow log resource. Required. :type flow_log_name: str :param parameters: Parameters that define the create or update flow log resource. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.FlowLog :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -70615,7 +75769,7 @@ def begin_create_or_update( resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: Union[_models.FlowLog, JSON, IO[bytes]], + parameters: Union[_models.FlowLog, _types.FlowLog, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.FlowLog]: """Create or update a flow log for the specified network security group. @@ -70627,9 +75781,10 @@ def begin_create_or_update( :type network_watcher_name: str :param flow_log_name: The name of the flow log resource. Required. :type flow_log_name: str - :param parameters: Parameters that define the create or update flow log resource. Is one of the - following types: FlowLog, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.FlowLog or JSON or IO[bytes] + :param parameters: Parameters that define the create or update flow log resource. Is either a + FlowLog type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FlowLog or ~azure.mgmt.network.types.FlowLog or + IO[bytes] :return: An instance of LROPoller that returns FlowLog. The FlowLog is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FlowLog] @@ -70638,7 +75793,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -70726,7 +75881,7 @@ def update_tags( resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -70741,7 +75896,7 @@ def update_tags( :param flow_log_name: The name of the flow log resource. Required. :type flow_log_name: str :param parameters: Parameters supplied to update flow log tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -70786,7 +75941,7 @@ def update_tags( resource_group_name: str, network_watcher_name: str, flow_log_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.FlowLog: """Update tags of the specified flow log. @@ -70798,9 +75953,10 @@ def update_tags( :type network_watcher_name: str :param flow_log_name: The name of the flow log resource. Required. :type flow_log_name: str - :param parameters: Parameters supplied to update flow log tags. Is one of the following types: - TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update flow log tags. Is either a TagsObject type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: FlowLog. The FlowLog is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.FlowLog :raises ~azure.core.exceptions.HttpResponseError: @@ -70816,7 +75972,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FlowLog] = kwargs.pop("cls", None) @@ -70888,7 +76044,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_flow_logs_delete_request( @@ -70957,7 +76113,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -71017,7 +76173,7 @@ def list(self, resource_group_name: str, network_watcher_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.FlowLog]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -71089,7 +76245,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PrivateEndpointsOperations: +class PrivateEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -71134,7 +76290,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) _request = build_private_endpoints_get_request( @@ -71186,7 +76342,7 @@ def _create_or_update_initial( self, resource_group_name: str, private_endpoint_name: str, - parameters: Union[_models.PrivateEndpoint, JSON, IO[bytes]], + parameters: Union[_models.PrivateEndpoint, _types.PrivateEndpoint, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -71200,7 +76356,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -71294,7 +76450,7 @@ def begin_create_or_update( self, resource_group_name: str, private_endpoint_name: str, - parameters: JSON, + parameters: _types.PrivateEndpoint, *, content_type: str = "application/json", **kwargs: Any @@ -71308,7 +76464,7 @@ def begin_create_or_update( :type private_endpoint_name: str :param parameters: Parameters supplied to the create or update private endpoint operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PrivateEndpoint :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -71352,7 +76508,7 @@ def begin_create_or_update( self, resource_group_name: str, private_endpoint_name: str, - parameters: Union[_models.PrivateEndpoint, JSON, IO[bytes]], + parameters: Union[_models.PrivateEndpoint, _types.PrivateEndpoint, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PrivateEndpoint]: """Creates or updates an private endpoint in the specified resource group. @@ -71363,8 +76519,9 @@ def begin_create_or_update( :param private_endpoint_name: The name of the private endpoint. Required. :type private_endpoint_name: str :param parameters: Parameters supplied to the create or update private endpoint operation. Is - one of the following types: PrivateEndpoint, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpoint or JSON or IO[bytes] + either a PrivateEndpoint type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpoint or + ~azure.mgmt.network.types.PrivateEndpoint or IO[bytes] :return: An instance of LROPoller that returns PrivateEndpoint. The PrivateEndpoint is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PrivateEndpoint] @@ -71373,7 +76530,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpoint] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -71436,7 +76593,7 @@ def _delete_initial(self, resource_group_name: str, private_endpoint_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_private_endpoints_delete_request( @@ -71500,7 +76657,7 @@ def begin_delete(self, resource_group_name: str, private_endpoint_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -71557,7 +76714,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Pr _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -71638,7 +76795,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.PrivateEndpo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateEndpoint]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -71708,7 +76865,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PrivateLinkServicesOperations: +class PrivateLinkServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -71753,7 +76910,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) _request = build_private_link_services_get_request( @@ -71805,7 +76962,7 @@ def _create_or_update_initial( self, resource_group_name: str, service_name: str, - parameters: Union[_models.PrivateLinkService, JSON, IO[bytes]], + parameters: Union[_models.PrivateLinkService, _types.PrivateLinkService, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -71819,7 +76976,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -71913,7 +77070,7 @@ def begin_create_or_update( self, resource_group_name: str, service_name: str, - parameters: JSON, + parameters: _types.PrivateLinkService, *, content_type: str = "application/json", **kwargs: Any @@ -71927,7 +77084,7 @@ def begin_create_or_update( :type service_name: str :param parameters: Parameters supplied to the create or update private link service operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PrivateLinkService :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -71971,7 +77128,7 @@ def begin_create_or_update( self, resource_group_name: str, service_name: str, - parameters: Union[_models.PrivateLinkService, JSON, IO[bytes]], + parameters: Union[_models.PrivateLinkService, _types.PrivateLinkService, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PrivateLinkService]: """Creates or updates an private link service in the specified resource group. @@ -71982,8 +77139,9 @@ def begin_create_or_update( :param service_name: The name of the private link service. Required. :type service_name: str :param parameters: Parameters supplied to the create or update private link service operation. - Is one of the following types: PrivateLinkService, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateLinkService or JSON or IO[bytes] + Is either a PrivateLinkService type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateLinkService or + ~azure.mgmt.network.types.PrivateLinkService or IO[bytes] :return: An instance of LROPoller that returns PrivateLinkService. The PrivateLinkService is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PrivateLinkService] @@ -71992,7 +77150,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateLinkService] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -72055,7 +77213,7 @@ def _delete_initial(self, resource_group_name: str, service_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_private_link_services_delete_request( @@ -72119,7 +77277,7 @@ def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -72176,7 +77334,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Pr _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -72257,7 +77415,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.PrivateLinkS _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -72365,7 +77523,7 @@ def get_private_endpoint_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) _request = build_private_link_services_get_private_endpoint_connection_request( @@ -72453,7 +77611,7 @@ def update_private_endpoint_connection( resource_group_name: str, service_name: str, pe_connection_name: str, - parameters: JSON, + parameters: _types.PrivateEndpointConnection, *, content_type: str = "application/json", **kwargs: Any @@ -72470,7 +77628,7 @@ def update_private_endpoint_connection( :type pe_connection_name: str :param parameters: Parameters supplied to approve or reject the private end point connection. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -72519,7 +77677,7 @@ def update_private_endpoint_connection( resource_group_name: str, service_name: str, pe_connection_name: str, - parameters: Union[_models.PrivateEndpointConnection, JSON, IO[bytes]], + parameters: Union[_models.PrivateEndpointConnection, _types.PrivateEndpointConnection, IO[bytes]], **kwargs: Any ) -> _models.PrivateEndpointConnection: """Approve or reject private end point connection for a private link service in a subscription. @@ -72533,8 +77691,9 @@ def update_private_endpoint_connection( This name can be used to access the resource. Required. :type pe_connection_name: str :param parameters: Parameters supplied to approve or reject the private end point connection. - Is one of the following types: PrivateEndpointConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection or JSON or IO[bytes] + Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateEndpointConnection or + ~azure.mgmt.network.types.PrivateEndpointConnection or IO[bytes] :return: PrivateEndpointConnection. The PrivateEndpointConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.PrivateEndpointConnection @@ -72551,7 +77710,7 @@ def update_private_endpoint_connection( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) @@ -72623,7 +77782,7 @@ def _delete_private_endpoint_connection_initial( # pylint: disable=name-too-lon _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_private_link_services_delete_private_endpoint_connection_request( @@ -72693,7 +77852,7 @@ def begin_delete_private_endpoint_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -72755,7 +77914,7 @@ def list_private_endpoint_connections( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateEndpointConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -72829,7 +77988,9 @@ def get_next(next_link=None): def _check_private_link_service_visibility_initial( # pylint: disable=name-too-long self, location: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -72843,7 +78004,7 @@ def _check_private_link_service_visibility_initial( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -72926,14 +78087,19 @@ def begin_check_private_link_service_visibility( # pylint: disable=name-too-lon @overload def begin_check_private_link_service_visibility( # pylint: disable=name-too-long - self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + self, + location: str, + parameters: _types.CheckPrivateLinkServiceVisibilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any ) -> LROPoller[_models.PrivateLinkServiceVisibility]: """Checks whether the subscription is visible to private link service. :param location: The location name. Required. :type location: str :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -72966,17 +78132,19 @@ def begin_check_private_link_service_visibility( # pylint: disable=name-too-lon def begin_check_private_link_service_visibility( # pylint: disable=name-too-long self, location: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.PrivateLinkServiceVisibility]: """Checks whether the subscription is visible to private link service. :param location: The location name. Required. :type location: str - :param parameters: The request body. Is one of the following types: - CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or JSON - or IO[bytes] + :param parameters: The request body. Is either a CheckPrivateLinkServiceVisibilityRequest type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or + ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest or IO[bytes] :return: An instance of LROPoller that returns PrivateLinkServiceVisibility. The PrivateLinkServiceVisibility is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] @@ -72985,7 +78153,7 @@ def begin_check_private_link_service_visibility( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -73039,7 +78207,9 @@ def _check_private_link_service_visibility_by_resource_group_initial( # pylint: self, location: str, resource_group_name: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -73054,7 +78224,7 @@ def _check_private_link_service_visibility_by_resource_group_initial( # pylint: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) content_type = content_type or "application/json" @@ -73145,7 +78315,7 @@ def begin_check_private_link_service_visibility_by_resource_group( # pylint: di self, location: str, resource_group_name: str, - parameters: JSON, + parameters: _types.CheckPrivateLinkServiceVisibilityRequest, *, content_type: str = "application/json", **kwargs: Any @@ -73159,7 +78329,7 @@ def begin_check_private_link_service_visibility_by_resource_group( # pylint: di Required. :type resource_group_name: str :param parameters: The request body. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -73203,7 +78373,9 @@ def begin_check_private_link_service_visibility_by_resource_group( # pylint: di self, location: str, resource_group_name: str, - parameters: Union[_models.CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes]], + parameters: Union[ + _models.CheckPrivateLinkServiceVisibilityRequest, _types.CheckPrivateLinkServiceVisibilityRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.PrivateLinkServiceVisibility]: """Checks whether the subscription is visible to private link service in the specified resource @@ -73214,10 +78386,10 @@ def begin_check_private_link_service_visibility_by_resource_group( # pylint: di :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param parameters: The request body. Is one of the following types: - CheckPrivateLinkServiceVisibilityRequest, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or JSON - or IO[bytes] + :param parameters: The request body. Is either a CheckPrivateLinkServiceVisibilityRequest type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CheckPrivateLinkServiceVisibilityRequest or + ~azure.mgmt.network.types.CheckPrivateLinkServiceVisibilityRequest or IO[bytes] :return: An instance of LROPoller that returns PrivateLinkServiceVisibility. The PrivateLinkServiceVisibility is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PrivateLinkServiceVisibility] @@ -73227,7 +78399,7 @@ def begin_check_private_link_service_visibility_by_resource_group( # pylint: di _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateLinkServiceVisibility] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -73293,7 +78465,7 @@ def list_auto_approved_private_link_services( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -73382,7 +78554,7 @@ def list_auto_approved_private_link_services_by_resource_group( # pylint: disab _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AutoApprovedPrivateLinkService]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -73456,7 +78628,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class PublicIPPrefixesOperations: +class PublicIPPrefixesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -73501,7 +78673,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) _request = build_public_ip_prefixes_get_request( @@ -73553,7 +78725,7 @@ def _create_or_update_initial( self, resource_group_name: str, public_ip_prefix_name: str, - parameters: Union[_models.PublicIPPrefix, JSON, IO[bytes]], + parameters: Union[_models.PublicIPPrefix, _types.PublicIPPrefix, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -73567,7 +78739,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -73659,7 +78831,7 @@ def begin_create_or_update( self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: _types.PublicIPPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -73673,7 +78845,7 @@ def begin_create_or_update( :type public_ip_prefix_name: str :param parameters: Parameters supplied to the create or update public IP prefix operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PublicIPPrefix :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -73717,7 +78889,7 @@ def begin_create_or_update( self, resource_group_name: str, public_ip_prefix_name: str, - parameters: Union[_models.PublicIPPrefix, JSON, IO[bytes]], + parameters: Union[_models.PublicIPPrefix, _types.PublicIPPrefix, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PublicIPPrefix]: """Creates or updates a static or dynamic public IP prefix. @@ -73728,8 +78900,9 @@ def begin_create_or_update( :param public_ip_prefix_name: The name of the public IP prefix. Required. :type public_ip_prefix_name: str :param parameters: Parameters supplied to the create or update public IP prefix operation. Is - one of the following types: PublicIPPrefix, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PublicIPPrefix or JSON or IO[bytes] + either a PublicIPPrefix type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PublicIPPrefix or + ~azure.mgmt.network.types.PublicIPPrefix or IO[bytes] :return: An instance of LROPoller that returns PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PublicIPPrefix] @@ -73738,7 +78911,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -73821,7 +78994,7 @@ def update_tags( self, resource_group_name: str, public_ip_prefix_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -73834,7 +79007,7 @@ def update_tags( :param public_ip_prefix_name: The name of the public IP prefix. Required. :type public_ip_prefix_name: str :param parameters: Parameters supplied to update public IP prefix tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -73875,7 +79048,7 @@ def update_tags( self, resource_group_name: str, public_ip_prefix_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.PublicIPPrefix: """Updates public IP prefix tags. @@ -73885,9 +79058,10 @@ def update_tags( :type resource_group_name: str :param public_ip_prefix_name: The name of the public IP prefix. Required. :type public_ip_prefix_name: str - :param parameters: Parameters supplied to update public IP prefix tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update public IP prefix tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: PublicIPPrefix. The PublicIPPrefix is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.PublicIPPrefix :raises ~azure.core.exceptions.HttpResponseError: @@ -73903,7 +79077,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PublicIPPrefix] = kwargs.pop("cls", None) @@ -73972,7 +79146,7 @@ def _delete_initial(self, resource_group_name: str, public_ip_prefix_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_public_ip_prefixes_delete_request( @@ -74036,7 +79210,7 @@ def begin_delete(self, resource_group_name: str, public_ip_prefix_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -74093,7 +79267,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Pu _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -74174,7 +79348,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.PublicIPPrefix"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PublicIPPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -74244,7 +79418,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RouteFiltersOperations: +class RouteFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -74289,7 +79463,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) _request = build_route_filters_get_request( @@ -74341,7 +79515,7 @@ def _create_or_update_initial( self, resource_group_name: str, route_filter_name: str, - route_filter_parameters: Union[_models.RouteFilter, JSON, IO[bytes]], + route_filter_parameters: Union[_models.RouteFilter, _types.RouteFilter, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -74355,7 +79529,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -74449,7 +79623,7 @@ def begin_create_or_update( self, resource_group_name: str, route_filter_name: str, - route_filter_parameters: JSON, + route_filter_parameters: _types.RouteFilter, *, content_type: str = "application/json", **kwargs: Any @@ -74463,7 +79637,7 @@ def begin_create_or_update( :type route_filter_name: str :param route_filter_parameters: Parameters supplied to the create or update route filter operation. Required. - :type route_filter_parameters: JSON + :type route_filter_parameters: ~azure.mgmt.network.types.RouteFilter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -74507,7 +79681,7 @@ def begin_create_or_update( self, resource_group_name: str, route_filter_name: str, - route_filter_parameters: Union[_models.RouteFilter, JSON, IO[bytes]], + route_filter_parameters: Union[_models.RouteFilter, _types.RouteFilter, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.RouteFilter]: """Creates or updates a route filter in a specified resource group. @@ -74518,8 +79692,9 @@ def begin_create_or_update( :param route_filter_name: The name of the route filter. Required. :type route_filter_name: str :param route_filter_parameters: Parameters supplied to the create or update route filter - operation. Is one of the following types: RouteFilter, JSON, IO[bytes] Required. - :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter or JSON or IO[bytes] + operation. Is either a RouteFilter type or a IO[bytes] type. Required. + :type route_filter_parameters: ~azure.mgmt.network.models.RouteFilter or + ~azure.mgmt.network.types.RouteFilter or IO[bytes] :return: An instance of LROPoller that returns RouteFilter. The RouteFilter is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.RouteFilter] @@ -74528,7 +79703,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -74611,7 +79786,7 @@ def update_tags( self, resource_group_name: str, route_filter_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -74624,7 +79799,7 @@ def update_tags( :param route_filter_name: The name of the route filter. Required. :type route_filter_name: str :param parameters: Parameters supplied to update route filter tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -74665,7 +79840,7 @@ def update_tags( self, resource_group_name: str, route_filter_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.RouteFilter: """Updates tags of a route filter. @@ -74675,9 +79850,10 @@ def update_tags( :type resource_group_name: str :param route_filter_name: The name of the route filter. Required. :type route_filter_name: str - :param parameters: Parameters supplied to update route filter tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update route filter tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: RouteFilter. The RouteFilter is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.RouteFilter :raises ~azure.core.exceptions.HttpResponseError: @@ -74693,7 +79869,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteFilter] = kwargs.pop("cls", None) @@ -74762,7 +79938,7 @@ def _delete_initial(self, resource_group_name: str, route_filter_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_route_filters_delete_request( @@ -74829,7 +80005,7 @@ def begin_delete(self, resource_group_name: str, route_filter_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -74886,7 +80062,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -74967,7 +80143,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.RouteFilter"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteFilter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -75037,7 +80213,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RouteTablesOperations: +class RouteTablesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -75082,7 +80258,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) _request = build_route_tables_get_request( @@ -75134,7 +80310,7 @@ def _create_or_update_initial( self, resource_group_name: str, route_table_name: str, - parameters: Union[_models.RouteTable, JSON, IO[bytes]], + parameters: Union[_models.RouteTable, _types.RouteTable, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -75148,7 +80324,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -75241,7 +80417,7 @@ def begin_create_or_update( self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: _types.RouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -75254,7 +80430,7 @@ def begin_create_or_update( :param route_table_name: The name of the route table. Required. :type route_table_name: str :param parameters: Parameters supplied to the create or update route table operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.RouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -75297,7 +80473,7 @@ def begin_create_or_update( self, resource_group_name: str, route_table_name: str, - parameters: Union[_models.RouteTable, JSON, IO[bytes]], + parameters: Union[_models.RouteTable, _types.RouteTable, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.RouteTable]: """Create or updates a route table in a specified resource group. @@ -75307,9 +80483,10 @@ def begin_create_or_update( :type resource_group_name: str :param route_table_name: The name of the route table. Required. :type route_table_name: str - :param parameters: Parameters supplied to the create or update route table operation. Is one of - the following types: RouteTable, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.RouteTable or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update route table operation. Is either + a RouteTable type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.RouteTable or ~azure.mgmt.network.types.RouteTable + or IO[bytes] :return: An instance of LROPoller that returns RouteTable. The RouteTable is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.RouteTable] @@ -75318,7 +80495,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -75401,7 +80578,7 @@ def update_tags( self, resource_group_name: str, route_table_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -75414,7 +80591,7 @@ def update_tags( :param route_table_name: The name of the route table. Required. :type route_table_name: str :param parameters: Parameters supplied to update route table tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -75455,7 +80632,7 @@ def update_tags( self, resource_group_name: str, route_table_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.RouteTable: """Updates a route table tags. @@ -75465,9 +80642,10 @@ def update_tags( :type resource_group_name: str :param route_table_name: The name of the route table. Required. :type route_table_name: str - :param parameters: Parameters supplied to update route table tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update route table tags. Is either a TagsObject type + or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: RouteTable. The RouteTable is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.RouteTable :raises ~azure.core.exceptions.HttpResponseError: @@ -75483,7 +80661,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteTable] = kwargs.pop("cls", None) @@ -75552,7 +80730,7 @@ def _delete_initial(self, resource_group_name: str, route_table_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_route_tables_delete_request( @@ -75616,7 +80794,7 @@ def begin_delete(self, resource_group_name: str, route_table_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -75673,7 +80851,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ro _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -75754,7 +80932,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.RouteTable"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteTable]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -75824,7 +81002,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RoutesOperations: +class RoutesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -75867,7 +81045,7 @@ def get(self, resource_group_name: str, route_table_name: str, route_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Route] = kwargs.pop("cls", None) _request = build_routes_get_request( @@ -75920,7 +81098,7 @@ def _create_or_update_initial( resource_group_name: str, route_table_name: str, route_name: str, - route_parameters: Union[_models.Route, JSON, IO[bytes]], + route_parameters: Union[_models.Route, _types.Route, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -75934,7 +81112,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -76032,7 +81210,7 @@ def begin_create_or_update( resource_group_name: str, route_table_name: str, route_name: str, - route_parameters: JSON, + route_parameters: _types.Route, *, content_type: str = "application/json", **kwargs: Any @@ -76047,7 +81225,7 @@ def begin_create_or_update( :param route_name: The name of the route. Required. :type route_name: str :param route_parameters: Parameters supplied to the create or update route operation. Required. - :type route_parameters: JSON + :type route_parameters: ~azure.mgmt.network.types.Route :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -76094,7 +81272,7 @@ def begin_create_or_update( resource_group_name: str, route_table_name: str, route_name: str, - route_parameters: Union[_models.Route, JSON, IO[bytes]], + route_parameters: Union[_models.Route, _types.Route, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Route]: """Creates or updates a route in the specified route table. @@ -76106,9 +81284,10 @@ def begin_create_or_update( :type route_table_name: str :param route_name: The name of the route. Required. :type route_name: str - :param route_parameters: Parameters supplied to the create or update route operation. Is one of - the following types: Route, JSON, IO[bytes] Required. - :type route_parameters: ~azure.mgmt.network.models.Route or JSON or IO[bytes] + :param route_parameters: Parameters supplied to the create or update route operation. Is either + a Route type or a IO[bytes] type. Required. + :type route_parameters: ~azure.mgmt.network.models.Route or ~azure.mgmt.network.types.Route or + IO[bytes] :return: An instance of LROPoller that returns Route. The Route is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.Route] @@ -76117,7 +81296,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Route] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -76183,7 +81362,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_routes_delete_request( @@ -76252,7 +81431,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -76312,7 +81491,7 @@ def list(self, resource_group_name: str, route_table_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Route]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -76384,7 +81563,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SecurityPartnerProvidersOperations: +class SecurityPartnerProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -76427,7 +81606,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) _request = build_security_partner_providers_get_request( @@ -76478,7 +81657,7 @@ def _create_or_update_initial( self, resource_group_name: str, security_partner_provider_name: str, - parameters: Union[_models.SecurityPartnerProvider, JSON, IO[bytes]], + parameters: Union[_models.SecurityPartnerProvider, _types.SecurityPartnerProvider, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -76492,7 +81671,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -76586,7 +81765,7 @@ def begin_create_or_update( self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: _types.SecurityPartnerProvider, *, content_type: str = "application/json", **kwargs: Any @@ -76600,7 +81779,7 @@ def begin_create_or_update( :type security_partner_provider_name: str :param parameters: Parameters supplied to the create or update Security Partner Provider operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SecurityPartnerProvider :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -76644,7 +81823,7 @@ def begin_create_or_update( self, resource_group_name: str, security_partner_provider_name: str, - parameters: Union[_models.SecurityPartnerProvider, JSON, IO[bytes]], + parameters: Union[_models.SecurityPartnerProvider, _types.SecurityPartnerProvider, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.SecurityPartnerProvider]: """Creates or updates the specified Security Partner Provider. @@ -76655,8 +81834,9 @@ def begin_create_or_update( :param security_partner_provider_name: The name of the Security Partner Provider. Required. :type security_partner_provider_name: str :param parameters: Parameters supplied to the create or update Security Partner Provider - operation. Is one of the following types: SecurityPartnerProvider, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider or JSON or IO[bytes] + operation. Is either a SecurityPartnerProvider type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SecurityPartnerProvider or + ~azure.mgmt.network.types.SecurityPartnerProvider or IO[bytes] :return: An instance of LROPoller that returns SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.SecurityPartnerProvider] @@ -76665,7 +81845,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -76748,7 +81928,7 @@ def update_tags( self, resource_group_name: str, security_partner_provider_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -76761,7 +81941,7 @@ def update_tags( :param security_partner_provider_name: The name of the Security Partner Provider. Required. :type security_partner_provider_name: str :param parameters: Parameters supplied to update Security Partner Provider tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -76802,7 +81982,7 @@ def update_tags( self, resource_group_name: str, security_partner_provider_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.SecurityPartnerProvider: """Updates tags of a Security Partner Provider resource. @@ -76812,9 +81992,10 @@ def update_tags( :type resource_group_name: str :param security_partner_provider_name: The name of the Security Partner Provider. Required. :type security_partner_provider_name: str - :param parameters: Parameters supplied to update Security Partner Provider tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update Security Partner Provider tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: SecurityPartnerProvider. The SecurityPartnerProvider is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SecurityPartnerProvider :raises ~azure.core.exceptions.HttpResponseError: @@ -76830,7 +82011,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SecurityPartnerProvider] = kwargs.pop("cls", None) @@ -76901,7 +82082,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_security_partner_providers_delete_request( @@ -76967,7 +82148,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -77026,7 +82207,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -77107,7 +82288,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.SecurityPartnerProvider"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.SecurityPartnerProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -77177,7 +82358,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ServiceEndpointPoliciesOperations: +class ServiceEndpointPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -77227,7 +82408,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) _request = build_service_endpoint_policies_get_request( @@ -77279,7 +82460,7 @@ def _create_or_update_initial( self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: Union[_models.ServiceEndpointPolicy, JSON, IO[bytes]], + parameters: Union[_models.ServiceEndpointPolicy, _types.ServiceEndpointPolicy, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -77293,7 +82474,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -77387,7 +82568,7 @@ def begin_create_or_update( self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: _types.ServiceEndpointPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -77401,7 +82582,7 @@ def begin_create_or_update( :type service_endpoint_policy_name: str :param parameters: Parameters supplied to the create or update service endpoint policy operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ServiceEndpointPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -77445,7 +82626,7 @@ def begin_create_or_update( self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: Union[_models.ServiceEndpointPolicy, JSON, IO[bytes]], + parameters: Union[_models.ServiceEndpointPolicy, _types.ServiceEndpointPolicy, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ServiceEndpointPolicy]: """Creates or updates a service Endpoint Policies. @@ -77456,8 +82637,9 @@ def begin_create_or_update( :param service_endpoint_policy_name: The name of the service endpoint policy. Required. :type service_endpoint_policy_name: str :param parameters: Parameters supplied to the create or update service endpoint policy - operation. Is one of the following types: ServiceEndpointPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy or JSON or IO[bytes] + operation. Is either a ServiceEndpointPolicy type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceEndpointPolicy or + ~azure.mgmt.network.types.ServiceEndpointPolicy or IO[bytes] :return: An instance of LROPoller that returns ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ServiceEndpointPolicy] @@ -77466,7 +82648,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -77549,7 +82731,7 @@ def update_tags( self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -77562,7 +82744,7 @@ def update_tags( :param service_endpoint_policy_name: The name of the service endpoint policy. Required. :type service_endpoint_policy_name: str :param parameters: Parameters supplied to update service endpoint policy tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -77603,7 +82785,7 @@ def update_tags( self, resource_group_name: str, service_endpoint_policy_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ServiceEndpointPolicy: """Updates tags of a service endpoint policy. @@ -77613,9 +82795,10 @@ def update_tags( :type resource_group_name: str :param service_endpoint_policy_name: The name of the service endpoint policy. Required. :type service_endpoint_policy_name: str - :param parameters: Parameters supplied to update service endpoint policy tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update service endpoint policy tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ServiceEndpointPolicy. The ServiceEndpointPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ServiceEndpointPolicy :raises ~azure.core.exceptions.HttpResponseError: @@ -77631,7 +82814,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ServiceEndpointPolicy] = kwargs.pop("cls", None) @@ -77702,7 +82885,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_service_endpoint_policies_delete_request( @@ -77768,7 +82951,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -77827,7 +83010,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -77908,7 +83091,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.ServiceEndpointPolicy"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceEndpointPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -77978,7 +83161,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ServiceEndpointPolicyDefinitionsOperations: # pylint: disable=name-too-long +class ServiceEndpointPolicyDefinitionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -78029,7 +83212,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) _request = build_service_endpoint_policy_definitions_get_request( @@ -78082,7 +83265,9 @@ def _create_or_update_initial( resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: Union[_models.ServiceEndpointPolicyDefinition, JSON, IO[bytes]], + service_endpoint_policy_definitions: Union[ + _models.ServiceEndpointPolicyDefinition, _types.ServiceEndpointPolicyDefinition, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -78096,7 +83281,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -78199,7 +83384,7 @@ def begin_create_or_update( resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: JSON, + service_endpoint_policy_definitions: _types.ServiceEndpointPolicyDefinition, *, content_type: str = "application/json", **kwargs: Any @@ -78217,7 +83402,8 @@ def begin_create_or_update( :type service_endpoint_policy_definition_name: str :param service_endpoint_policy_definitions: Parameters supplied to the create or update service endpoint policy operation. Required. - :type service_endpoint_policy_definitions: JSON + :type service_endpoint_policy_definitions: + ~azure.mgmt.network.types.ServiceEndpointPolicyDefinition :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -78269,7 +83455,9 @@ def begin_create_or_update( resource_group_name: str, service_endpoint_policy_name: str, service_endpoint_policy_definition_name: str, - service_endpoint_policy_definitions: Union[_models.ServiceEndpointPolicyDefinition, JSON, IO[bytes]], + service_endpoint_policy_definitions: Union[ + _models.ServiceEndpointPolicyDefinition, _types.ServiceEndpointPolicyDefinition, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ServiceEndpointPolicyDefinition]: """Creates or updates a service endpoint policy definition in the specified service endpoint @@ -78284,10 +83472,11 @@ def begin_create_or_update( a resource group. This name can be used to access the resource. Required. :type service_endpoint_policy_definition_name: str :param service_endpoint_policy_definitions: Parameters supplied to the create or update service - endpoint policy operation. Is one of the following types: ServiceEndpointPolicyDefinition, - JSON, IO[bytes] Required. + endpoint policy operation. Is either a ServiceEndpointPolicyDefinition type or a IO[bytes] + type. Required. :type service_endpoint_policy_definitions: - ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition or JSON or IO[bytes] + ~azure.mgmt.network.models.ServiceEndpointPolicyDefinition or + ~azure.mgmt.network.types.ServiceEndpointPolicyDefinition or IO[bytes] :return: An instance of LROPoller that returns ServiceEndpointPolicyDefinition. The ServiceEndpointPolicyDefinition is compatible with MutableMapping :rtype: @@ -78297,7 +83486,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ServiceEndpointPolicyDefinition] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -78367,7 +83556,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_service_endpoint_policy_definitions_delete_request( @@ -78441,7 +83630,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -78504,7 +83693,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceEndpointPolicyDefinition]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -78576,7 +83765,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualNetworksOperations: +class VirtualNetworksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -78621,7 +83810,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) _request = build_virtual_networks_get_request( @@ -78673,7 +83862,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.VirtualNetwork, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetwork, _types.VirtualNetwork, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -78687,7 +83876,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -78781,7 +83970,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.VirtualNetwork, *, content_type: str = "application/json", **kwargs: Any @@ -78795,7 +83984,7 @@ def begin_create_or_update( :type virtual_network_name: str :param parameters: Parameters supplied to the create or update virtual network operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualNetwork :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -78839,7 +84028,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.VirtualNetwork, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetwork, _types.VirtualNetwork, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetwork]: """Creates or updates a virtual network in the specified resource group. @@ -78850,8 +84039,9 @@ def begin_create_or_update( :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to the create or update virtual network operation. Is - one of the following types: VirtualNetwork, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetwork or JSON or IO[bytes] + either a VirtualNetwork type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetwork or + ~azure.mgmt.network.types.VirtualNetwork or IO[bytes] :return: An instance of LROPoller that returns VirtualNetwork. The VirtualNetwork is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetwork] @@ -78860,7 +84050,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -78943,7 +84133,7 @@ def update_tags( self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -78956,7 +84146,7 @@ def update_tags( :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to update virtual network tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -78997,7 +84187,7 @@ def update_tags( self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VirtualNetwork: """Updates a virtual network tags. @@ -79007,9 +84197,10 @@ def update_tags( :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :param parameters: Parameters supplied to update virtual network tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update virtual network tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: VirtualNetwork. The VirtualNetwork is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VirtualNetwork :raises ~azure.core.exceptions.HttpResponseError: @@ -79025,7 +84216,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetwork] = kwargs.pop("cls", None) @@ -79094,7 +84285,7 @@ def _delete_initial(self, resource_group_name: str, virtual_network_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_networks_delete_request( @@ -79158,7 +84349,7 @@ def begin_delete(self, resource_group_name: str, virtual_network_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -79215,7 +84406,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -79296,7 +84487,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.VirtualNetwork"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetwork]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -79394,7 +84585,7 @@ def check_ip_address_availability( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.IPAddressAvailabilityResult] = kwargs.pop("cls", None) _request = build_virtual_networks_check_ip_address_availability_request( @@ -79460,7 +84651,7 @@ def list_usage( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkUsage]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -79551,7 +84742,7 @@ def _list_ddos_protection_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_networks_list_ddos_protection_status_request( @@ -79601,118 +84792,385 @@ def _list_ddos_protection_status_initial( return deserialized # type: ignore - @distributed_trace - def begin_list_ddos_protection_status( + @distributed_trace + def begin_list_ddos_protection_status( + self, + resource_group_name: str, + virtual_network_name: str, + *, + top: Optional[int] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]]: + """Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :keyword top: The max number of ip addresses to return. Default value is None. + :paramtype top: int + :keyword skip_token: The skipToken that is given with nextLink. Default value is None. + :paramtype skip_token: str + :return: An instance of LROPoller that returns an iterator like instance of list of + PublicIpDdosProtectionStatusResult + :rtype: + ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.models.PublicIpDdosProtectionStatusResult]] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.PublicIpDdosProtectionStatusResult]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_virtual_networks_list_ddos_protection_status_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + top=top, + skip_token=skip_token, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.PublicIpDdosProtectionStatusResult], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._list_ddos_protection_status_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + top=top, + skip_token=skip_token, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + def internal_get_next(next_link=None): + if next_link is None: + return pipeline_response + return get_next(next_link) + + return ItemPaged(internal_get_next, extract_data) + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _move_ip_configurations_initial( + self, + resource_group_name: str, + virtual_network_name: str, + body: Union[_models.MoveIpConfigurationsRequest, _types.MoveIpConfigurationsRequest, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_networks_move_ip_configurations_request( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_move_ip_configurations( self, resource_group_name: str, virtual_network_name: str, + body: _models.MoveIpConfigurationsRequest, *, - top: Optional[int] = None, - skip_token: Optional[str] = None, + content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]]: - """Gets the Ddos Protection Status of all IP Addresses under the Virtual Network. + ) -> LROPoller[None]: + """Move IP configurations from one virtual network to another. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :keyword top: The max number of ip addresses to return. Default value is None. - :paramtype top: int - :keyword skip_token: The skipToken that is given with nextLink. Default value is None. - :paramtype skip_token: str - :return: An instance of LROPoller that returns an iterator like instance of list of - PublicIpDdosProtectionStatusResult - :rtype: - ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.models.PublicIpDdosProtectionStatusResult]] + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: ~azure.mgmt.network.models.MoveIpConfigurationsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.PublicIpDdosProtectionStatusResult]] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_virtual_networks_list_ddos_protection_status_request( - resource_group_name=resource_group_name, - virtual_network_name=virtual_network_name, - subscription_id=self._config.subscription_id, - top=top, - skip_token=skip_token, - api_version=api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - else: - _request = HttpRequest("GET", next_link, headers=_headers) - path_format_arguments = { - "endpoint": self._serialize.url( - "self._config.base_url", self._config.base_url, "str", skip_quote=True - ), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - return _request + @overload + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: _types.MoveIpConfigurationsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Move IP configurations from one virtual network to another. - def extract_data(pipeline_response): - deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize( - List[_models.PublicIpDdosProtectionStatusResult], - deserialized.get("value", []), - ) - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.get("nextLink") or None, iter(list_of_elem) + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: ~azure.mgmt.network.types.MoveIpConfigurationsRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ - def get_next(next_link=None): - _request = prepare_request(next_link) + @overload + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Move IP configurations from one virtual network to another. - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Required. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + @distributed_trace + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_name", + "content_type", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_move_ip_configurations( + self, + resource_group_name: str, + virtual_network_name: str, + body: Union[_models.MoveIpConfigurationsRequest, _types.MoveIpConfigurationsRequest, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Move IP configurations from one virtual network to another. - return pipeline_response + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. Required. + :type virtual_network_name: str + :param body: Parameters supplied to move IP configurations from one virtual network to another. + Is either a MoveIpConfigurationsRequest type or a IO[bytes] type. Required. + :type body: ~azure.mgmt.network.models.MoveIpConfigurationsRequest or + ~azure.mgmt.network.types.MoveIpConfigurationsRequest or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._list_ddos_protection_status_initial( + raw_result = self._move_ip_configurations_initial( resource_group_name=resource_group_name, virtual_network_name=virtual_network_name, - top=top, - skip_token=skip_token, + body=body, api_version=api_version, + content_type=content_type, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -79721,13 +85179,9 @@ def get_next(next_link=None): raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - def internal_get_next(next_link=None): - if next_link is None: - return pipeline_response - return get_next(next_link) - - return ItemPaged(internal_get_next, extract_data) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), @@ -79742,18 +85196,16 @@ def internal_get_next(next_link=None): else: polling_method = polling if cont_token: - return LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]].from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[ItemPaged["_models.PublicIpDdosProtectionStatusResult"]]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class SubnetsOperations: +class SubnetsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -79806,7 +85258,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) _request = build_subnets_get_request( @@ -79860,7 +85312,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_network_name: str, subnet_name: str, - subnet_parameters: Union[_models.Subnet, JSON, IO[bytes]], + subnet_parameters: Union[_models.Subnet, _types.Subnet, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -79874,7 +85326,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -79973,7 +85425,7 @@ def begin_create_or_update( resource_group_name: str, virtual_network_name: str, subnet_name: str, - subnet_parameters: JSON, + subnet_parameters: _types.Subnet, *, content_type: str = "application/json", **kwargs: Any @@ -79989,7 +85441,7 @@ def begin_create_or_update( :type subnet_name: str :param subnet_parameters: Parameters supplied to the create or update subnet operation. Required. - :type subnet_parameters: JSON + :type subnet_parameters: ~azure.mgmt.network.types.Subnet :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -80037,7 +85489,7 @@ def begin_create_or_update( resource_group_name: str, virtual_network_name: str, subnet_name: str, - subnet_parameters: Union[_models.Subnet, JSON, IO[bytes]], + subnet_parameters: Union[_models.Subnet, _types.Subnet, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.Subnet]: """Creates or updates a subnet in the specified virtual network. @@ -80049,9 +85501,10 @@ def begin_create_or_update( :type virtual_network_name: str :param subnet_name: The name of the subnet. Required. :type subnet_name: str - :param subnet_parameters: Parameters supplied to the create or update subnet operation. Is one - of the following types: Subnet, JSON, IO[bytes] Required. - :type subnet_parameters: ~azure.mgmt.network.models.Subnet or JSON or IO[bytes] + :param subnet_parameters: Parameters supplied to the create or update subnet operation. Is + either a Subnet type or a IO[bytes] type. Required. + :type subnet_parameters: ~azure.mgmt.network.models.Subnet or ~azure.mgmt.network.types.Subnet + or IO[bytes] :return: An instance of LROPoller that returns Subnet. The Subnet is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.Subnet] @@ -80060,7 +85513,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Subnet] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -80126,7 +85579,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_subnets_delete_request( @@ -80195,7 +85648,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -80255,7 +85708,7 @@ def list(self, resource_group_name: str, virtual_network_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Subnet]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -80331,7 +85784,9 @@ def _prepare_network_policies_initial( resource_group_name: str, virtual_network_name: str, subnet_name: str, - prepare_network_policies_request_parameters: Union[_models.PrepareNetworkPoliciesRequest, JSON, IO[bytes]], + prepare_network_policies_request_parameters: Union[ + _models.PrepareNetworkPoliciesRequest, _types.PrepareNetworkPoliciesRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -80345,7 +85800,7 @@ def _prepare_network_policies_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -80442,7 +85897,7 @@ def begin_prepare_network_policies( resource_group_name: str, virtual_network_name: str, subnet_name: str, - prepare_network_policies_request_parameters: JSON, + prepare_network_policies_request_parameters: _types.PrepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -80458,7 +85913,8 @@ def begin_prepare_network_policies( :type subnet_name: str :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by applying network intent policies. Required. - :type prepare_network_policies_request_parameters: JSON + :type prepare_network_policies_request_parameters: + ~azure.mgmt.network.types.PrepareNetworkPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -80504,7 +85960,9 @@ def begin_prepare_network_policies( resource_group_name: str, virtual_network_name: str, subnet_name: str, - prepare_network_policies_request_parameters: Union[_models.PrepareNetworkPoliciesRequest, JSON, IO[bytes]], + prepare_network_policies_request_parameters: Union[ + _models.PrepareNetworkPoliciesRequest, _types.PrepareNetworkPoliciesRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[None]: """Prepares a subnet by applying network intent policies. @@ -80517,10 +85975,11 @@ def begin_prepare_network_policies( :param subnet_name: The name of the subnet. Required. :type subnet_name: str :param prepare_network_policies_request_parameters: Parameters supplied to prepare subnet by - applying network intent policies. Is one of the following types: PrepareNetworkPoliciesRequest, - JSON, IO[bytes] Required. + applying network intent policies. Is either a PrepareNetworkPoliciesRequest type or a IO[bytes] + type. Required. :type prepare_network_policies_request_parameters: - ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest or JSON or IO[bytes] + ~azure.mgmt.network.models.PrepareNetworkPoliciesRequest or + ~azure.mgmt.network.types.PrepareNetworkPoliciesRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -80528,7 +85987,7 @@ def begin_prepare_network_policies( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -80580,7 +86039,9 @@ def _unprepare_network_policies_initial( resource_group_name: str, virtual_network_name: str, subnet_name: str, - unprepare_network_policies_request_parameters: Union[_models.UnprepareNetworkPoliciesRequest, JSON, IO[bytes]], + unprepare_network_policies_request_parameters: Union[ + _models.UnprepareNetworkPoliciesRequest, _types.UnprepareNetworkPoliciesRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -80594,7 +86055,7 @@ def _unprepare_network_policies_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -80691,7 +86152,7 @@ def begin_unprepare_network_policies( resource_group_name: str, virtual_network_name: str, subnet_name: str, - unprepare_network_policies_request_parameters: JSON, + unprepare_network_policies_request_parameters: _types.UnprepareNetworkPoliciesRequest, *, content_type: str = "application/json", **kwargs: Any @@ -80707,7 +86168,8 @@ def begin_unprepare_network_policies( :type subnet_name: str :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet to remove network intent policies. Required. - :type unprepare_network_policies_request_parameters: JSON + :type unprepare_network_policies_request_parameters: + ~azure.mgmt.network.types.UnprepareNetworkPoliciesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -80753,7 +86215,9 @@ def begin_unprepare_network_policies( resource_group_name: str, virtual_network_name: str, subnet_name: str, - unprepare_network_policies_request_parameters: Union[_models.UnprepareNetworkPoliciesRequest, JSON, IO[bytes]], + unprepare_network_policies_request_parameters: Union[ + _models.UnprepareNetworkPoliciesRequest, _types.UnprepareNetworkPoliciesRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[None]: """Unprepares a subnet by removing network intent policies. @@ -80766,10 +86230,11 @@ def begin_unprepare_network_policies( :param subnet_name: The name of the subnet. Required. :type subnet_name: str :param unprepare_network_policies_request_parameters: Parameters supplied to unprepare subnet - to remove network intent policies. Is one of the following types: - UnprepareNetworkPoliciesRequest, JSON, IO[bytes] Required. + to remove network intent policies. Is either a UnprepareNetworkPoliciesRequest type or a + IO[bytes] type. Required. :type unprepare_network_policies_request_parameters: - ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest or JSON or IO[bytes] + ~azure.mgmt.network.models.UnprepareNetworkPoliciesRequest or + ~azure.mgmt.network.types.UnprepareNetworkPoliciesRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -80777,7 +86242,7 @@ def begin_unprepare_network_policies( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -80825,7 +86290,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VirtualNetworkPeeringsOperations: +class VirtualNetworkPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -80870,7 +86335,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) _request = build_virtual_network_peerings_get_request( @@ -80923,7 +86388,9 @@ def _create_or_update_initial( resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, - virtual_network_peering_parameters: Union[_models.VirtualNetworkPeering, JSON, IO[bytes]], + virtual_network_peering_parameters: Union[ + _models.VirtualNetworkPeering, _types.VirtualNetworkPeering, IO[bytes] + ], *, sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, **kwargs: Any @@ -80939,7 +86406,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -81043,7 +86510,7 @@ def begin_create_or_update( resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, - virtual_network_peering_parameters: JSON, + virtual_network_peering_parameters: _types.VirtualNetworkPeering, *, sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, content_type: str = "application/json", @@ -81060,7 +86527,7 @@ def begin_create_or_update( :type virtual_network_peering_name: str :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual network peering operation. Required. - :type virtual_network_peering_parameters: JSON + :type virtual_network_peering_parameters: ~azure.mgmt.network.types.VirtualNetworkPeering :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated. "true" Default value is None. :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace @@ -81115,7 +86582,9 @@ def begin_create_or_update( resource_group_name: str, virtual_network_name: str, virtual_network_peering_name: str, - virtual_network_peering_parameters: Union[_models.VirtualNetworkPeering, JSON, IO[bytes]], + virtual_network_peering_parameters: Union[ + _models.VirtualNetworkPeering, _types.VirtualNetworkPeering, IO[bytes] + ], *, sync_remote_address_space: Optional[Union[str, _models.SyncRemoteAddressSpace]] = None, **kwargs: Any @@ -81130,10 +86599,10 @@ def begin_create_or_update( :param virtual_network_peering_name: The name of the virtual network peering. Required. :type virtual_network_peering_name: str :param virtual_network_peering_parameters: Parameters supplied to the create or update virtual - network peering operation. Is one of the following types: VirtualNetworkPeering, JSON, - IO[bytes] Required. + network peering operation. Is either a VirtualNetworkPeering type or a IO[bytes] type. + Required. :type virtual_network_peering_parameters: ~azure.mgmt.network.models.VirtualNetworkPeering or - JSON or IO[bytes] + ~azure.mgmt.network.types.VirtualNetworkPeering or IO[bytes] :keyword sync_remote_address_space: Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated. "true" Default value is None. :paramtype sync_remote_address_space: str or ~azure.mgmt.network.models.SyncRemoteAddressSpace @@ -81145,7 +86614,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkPeering] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -81212,7 +86681,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_peerings_delete_request( @@ -81281,7 +86750,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -81343,7 +86812,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -81415,7 +86884,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualNetworkGatewaysOperations: # pylint: disable=too-many-public-methods +class VirtualNetworkGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -81458,7 +86927,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_request( @@ -81509,7 +86978,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VirtualNetworkGateway, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkGateway, _types.VirtualNetworkGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -81523,7 +86992,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -81617,7 +87086,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.VirtualNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -81631,7 +87100,7 @@ def begin_create_or_update( :type virtual_network_gateway_name: str :param parameters: Parameters supplied to create or update virtual network gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualNetworkGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -81675,7 +87144,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VirtualNetworkGateway, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkGateway, _types.VirtualNetworkGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkGateway]: """Creates or updates a virtual network gateway in the specified resource group. @@ -81686,8 +87155,9 @@ def begin_create_or_update( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to create or update virtual network gateway operation. - Is one of the following types: VirtualNetworkGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway or JSON or IO[bytes] + Is either a VirtualNetworkGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGateway or + ~azure.mgmt.network.types.VirtualNetworkGateway or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkGateway. The VirtualNetworkGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] @@ -81696,7 +87166,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -81751,7 +87221,7 @@ def _update_tags_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -81765,7 +87235,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -81858,7 +87328,7 @@ def begin_update_tags( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -81871,7 +87341,7 @@ def begin_update_tags( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to update virtual network gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -81914,7 +87384,7 @@ def begin_update_tags( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkGateway]: """Updates a virtual network gateway tags. @@ -81924,9 +87394,10 @@ def begin_update_tags( :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param parameters: Parameters supplied to update virtual network gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update virtual network gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkGateway. The VirtualNetworkGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetworkGateway] @@ -81935,7 +87406,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -82000,7 +87471,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_delete_request( @@ -82066,7 +87537,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -82123,7 +87594,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -82212,7 +87683,7 @@ def list_connections( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkGatewayConnectionListEntity]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -82302,7 +87773,7 @@ def _reset_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_reset_request( @@ -82378,7 +87849,7 @@ def begin_reset( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -82441,7 +87912,7 @@ def _reset_vpn_client_shared_key_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_reset_vpn_client_shared_key_request( @@ -82508,7 +87979,7 @@ def begin_reset_vpn_client_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -82555,7 +88026,7 @@ def _generatevpnclientpackage_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -82569,7 +88040,7 @@ def _generatevpnclientpackage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -82661,7 +88132,7 @@ def begin_generatevpnclientpackage( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -82676,7 +88147,7 @@ def begin_generatevpnclientpackage( :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client package operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnClientParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -82719,7 +88190,7 @@ def begin_generatevpnclientpackage( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[str]: """Generates VPN client package for P2S client of the virtual network gateway in the specified @@ -82731,9 +88202,9 @@ def begin_generatevpnclientpackage( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Is one of the following types: VpnClientParameters, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters or JSON or IO[bytes] + package operation. Is either a VpnClientParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters or + ~azure.mgmt.network.types.VpnClientParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -82741,7 +88212,7 @@ def begin_generatevpnclientpackage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -82798,7 +88269,7 @@ def _generate_vpn_profile_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -82812,7 +88283,7 @@ def _generate_vpn_profile_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -82904,7 +88375,7 @@ def begin_generate_vpn_profile( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.VpnClientParameters, *, content_type: str = "application/json", **kwargs: Any @@ -82919,7 +88390,7 @@ def begin_generate_vpn_profile( :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client package operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnClientParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -82962,7 +88433,7 @@ def begin_generate_vpn_profile( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnClientParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnClientParameters, _types.VpnClientParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[str]: """Generates VPN profile for P2S client of the virtual network gateway in the specified resource @@ -82974,9 +88445,9 @@ def begin_generate_vpn_profile( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Parameters supplied to the generate virtual network gateway VPN client - package operation. Is one of the following types: VpnClientParameters, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.VpnClientParameters or JSON or IO[bytes] + package operation. Is either a VpnClientParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnClientParameters or + ~azure.mgmt.network.types.VpnClientParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -82984,7 +88455,7 @@ def begin_generate_vpn_profile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -83051,7 +88522,7 @@ def _get_vpn_profile_package_url_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_vpn_profile_package_url_request( @@ -83118,7 +88589,7 @@ def begin_get_vpn_profile_package_url( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -83182,7 +88653,7 @@ def _get_bgp_peer_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_bgp_peer_status_request( @@ -83252,7 +88723,7 @@ def begin_get_bgp_peer_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BgpPeerStatusListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -83325,7 +88796,7 @@ def supported_vpn_devices(self, resource_group_name: str, virtual_network_gatewa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_supported_vpn_devices_request( @@ -83400,7 +88871,7 @@ def list_radius_secrets( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_list_radius_secrets_request( @@ -83461,7 +88932,7 @@ def _get_learned_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_learned_routes_request( @@ -83529,7 +89000,7 @@ def begin_get_learned_routes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -83577,8 +89048,155 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - def _get_advertised_routes_initial( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + def _get_advertised_routes_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_virtual_network_gateways_get_advertised_routes_request( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + subscription_id=self._config.subscription_id, + peer=peer, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_get_advertised_routes( + self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any + ) -> LROPoller[_models.GatewayRouteListResult]: + """This operation retrieves a list of routes the virtual network gateway is advertising to the + specified peer. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network gateway. Required. + :type virtual_network_gateway_name: str + :keyword peer: The IP address of the peer. Required. + :paramtype peer: str + :return: An instance of LROPoller that returns GatewayRouteListResult. The + GatewayRouteListResult is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.GatewayRouteListResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._get_advertised_routes_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + peer=peer, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.GatewayRouteListResult].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.GatewayRouteListResult]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_gateway_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def _get_effective_routes_initial( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -83591,14 +89209,13 @@ def _get_advertised_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - _request = build_virtual_network_gateways_get_advertised_routes_request( + _request = build_virtual_network_gateways_get_effective_routes_request( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, subscription_id=self._config.subscription_id, - peer=peer, api_version=api_version, headers=_headers, params=_params, @@ -83641,37 +89258,47 @@ def _get_advertised_routes_initial( return deserialized # type: ignore @distributed_trace - def begin_get_advertised_routes( - self, resource_group_name: str, virtual_network_gateway_name: str, *, peer: str, **kwargs: Any - ) -> LROPoller[_models.GatewayRouteListResult]: - """This operation retrieves a list of routes the virtual network gateway is advertising to the - specified peer. + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "virtual_network_gateway_name", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def begin_get_effective_routes( + self, resource_group_name: str, virtual_network_gateway_name: str, **kwargs: Any + ) -> LROPoller[_models.GatewayEffectiveRouteListResult]: + """This operation retrieves a list of effective routes for the virtual network gateway. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :keyword peer: The IP address of the peer. Required. - :paramtype peer: str - :return: An instance of LROPoller that returns GatewayRouteListResult. The - GatewayRouteListResult is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.GatewayRouteListResult] + :return: An instance of LROPoller that returns GatewayEffectiveRouteListResult. The + GatewayEffectiveRouteListResult is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.network.models.GatewayEffectiveRouteListResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[_models.GatewayRouteListResult] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.GatewayEffectiveRouteListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._get_advertised_routes_initial( + raw_result = self._get_effective_routes_initial( resource_group_name=resource_group_name, virtual_network_gateway_name=virtual_network_gateway_name, - peer=peer, api_version=api_version, cls=lambda x, y, z: x, headers=_headers, @@ -83683,7 +89310,7 @@ def begin_get_advertised_routes( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.GatewayRouteListResult, response.json()) + deserialized = _deserialize(_models.GatewayEffectiveRouteListResult, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -83701,13 +89328,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.GatewayRouteListResult].from_continuation_token( + return LROPoller[_models.GatewayEffectiveRouteListResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.GatewayRouteListResult]( + return LROPoller[_models.GatewayEffectiveRouteListResult]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -83730,7 +89357,7 @@ def _get_resiliency_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_resiliency_information_request( @@ -83807,7 +89434,7 @@ def begin_get_resiliency_information( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -83875,7 +89502,7 @@ def _get_routes_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_routes_information_request( @@ -83952,7 +89579,7 @@ def begin_get_routes_information( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -84005,7 +89632,7 @@ def _set_vpnclient_ipsec_parameters_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, JSON, IO[bytes]], + vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, _types.VpnClientIPsecParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -84019,7 +89646,7 @@ def _set_vpnclient_ipsec_parameters_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -84112,7 +89739,7 @@ def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - vpnclient_ipsec_params: JSON, + vpnclient_ipsec_params: _types.VpnClientIPsecParameters, *, content_type: str = "application/json", **kwargs: Any @@ -84127,7 +89754,7 @@ def begin_set_vpnclient_ipsec_parameters( :type virtual_network_gateway_name: str :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. Required. - :type vpnclient_ipsec_params: JSON + :type vpnclient_ipsec_params: ~azure.mgmt.network.types.VpnClientIPsecParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -84172,7 +89799,7 @@ def begin_set_vpnclient_ipsec_parameters( self, resource_group_name: str, virtual_network_gateway_name: str, - vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, JSON, IO[bytes]], + vpnclient_ipsec_params: Union[_models.VpnClientIPsecParameters, _types.VpnClientIPsecParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnClientIPsecParameters]: """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of @@ -84184,10 +89811,10 @@ def begin_set_vpnclient_ipsec_parameters( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param vpnclient_ipsec_params: Parameters supplied to the Begin Set vpnclient ipsec parameters - of Virtual Network Gateway P2S client operation through Network resource provider. Is one of - the following types: VpnClientIPsecParameters, JSON, IO[bytes] Required. - :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters or JSON or - IO[bytes] + of Virtual Network Gateway P2S client operation through Network resource provider. Is either a + VpnClientIPsecParameters type or a IO[bytes] type. Required. + :type vpnclient_ipsec_params: ~azure.mgmt.network.models.VpnClientIPsecParameters or + ~azure.mgmt.network.types.VpnClientIPsecParameters or IO[bytes] :return: An instance of LROPoller that returns VpnClientIPsecParameters. The VpnClientIPsecParameters is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnClientIPsecParameters] @@ -84196,7 +89823,7 @@ def begin_set_vpnclient_ipsec_parameters( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -84261,7 +89888,7 @@ def _get_vpnclient_ipsec_parameters_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_vpnclient_ipsec_parameters_request( @@ -84329,7 +89956,7 @@ def begin_get_vpnclient_ipsec_parameters( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnClientIPsecParameters] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -84385,7 +90012,9 @@ def _start_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -84399,7 +90028,7 @@ def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -84494,7 +90123,7 @@ def begin_start_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -84508,7 +90137,7 @@ def begin_start_packet_capture( :type virtual_network_gateway_name: str :param parameters: Virtual network gateway packet capture parameters supplied to start packet capture on gateway. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -84550,7 +90179,9 @@ def begin_start_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> LROPoller[str]: """Starts packet capture on virtual network gateway in the specified resource group. @@ -84561,10 +90192,10 @@ def begin_start_packet_capture( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway. Is one of the following types: VpnPacketCaptureStartParameters, JSON, - IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or JSON or - IO[bytes] + capture on gateway. Is either a VpnPacketCaptureStartParameters type or a IO[bytes] type. + Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStartParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -84572,7 +90203,7 @@ def begin_start_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -84630,7 +90261,7 @@ def _stop_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -84644,7 +90275,7 @@ def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -84735,7 +90366,7 @@ def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: JSON, + parameters: _types.VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -84749,7 +90380,7 @@ def begin_stop_packet_capture( :type virtual_network_gateway_name: str :param parameters: Virtual network gateway packet capture parameters supplied to stop packet capture on gateway. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -84791,7 +90422,7 @@ def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[str]: """Stops packet capture on virtual network gateway in the specified resource group. @@ -84802,10 +90433,10 @@ def begin_stop_packet_capture( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway. Is one of the following types: VpnPacketCaptureStopParameters, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or JSON or - IO[bytes] + capture on gateway. Is either a VpnPacketCaptureStopParameters type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStopParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -84813,7 +90444,7 @@ def begin_stop_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -84886,7 +90517,7 @@ def _get_failover_all_test_details_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_failover_all_test_details_request( @@ -84966,7 +90597,7 @@ def begin_get_failover_all_test_details( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -85040,7 +90671,7 @@ def _get_failover_single_test_details_initial( # pylint: disable=name-too-long _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_failover_single_test_details_request( @@ -85120,7 +90751,7 @@ def begin_get_failover_single_test_details( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -85188,7 +90819,7 @@ def _start_express_route_site_failover_simulation_initial( # pylint: disable=na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_start_express_route_site_failover_simulation_request( @@ -85257,7 +90888,7 @@ def begin_start_express_route_site_failover_simulation( # pylint: disable=name- _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -85312,7 +90943,9 @@ def _stop_express_route_site_failover_simulation_initial( # pylint: disable=nam self, resource_group_name: str, virtual_network_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -85326,7 +90959,7 @@ def _stop_express_route_site_failover_simulation_initial( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -85417,7 +91050,7 @@ def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-t self, resource_group_name: str, virtual_network_gateway_name: str, - stop_parameters: JSON, + stop_parameters: _types.ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -85431,7 +91064,7 @@ def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-t :type virtual_network_gateway_name: str :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop failover simulation on gateway. Required. - :type stop_parameters: JSON + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -85473,7 +91106,9 @@ def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-t self, resource_group_name: str, virtual_network_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[str]: """This operation stops failover simulation on the gateway for the specified peering location. @@ -85484,10 +91119,10 @@ def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-t :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param stop_parameters: Virtual network gateway stop simulation parameters supplied to stop - failover simulation on gateway. Is one of the following types: - ExpressRouteFailoverStopApiParameters, JSON, IO[bytes] Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or JSON - or IO[bytes] + failover simulation on gateway. Is either a ExpressRouteFailoverStopApiParameters type or a + IO[bytes] type. Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or + ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -85495,7 +91130,7 @@ def begin_stop_express_route_site_failover_simulation( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -85562,7 +91197,7 @@ def _get_vpnclient_connection_health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_get_vpnclient_connection_health_request( @@ -85631,7 +91266,7 @@ def begin_get_vpnclient_connection_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnClientConnectionHealthDetailListResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -85683,7 +91318,7 @@ def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint: disa self, resource_group_name: str, virtual_network_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -85697,7 +91332,7 @@ def _disconnect_virtual_network_gateway_vpn_connections_initial( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -85787,7 +91422,7 @@ def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable self, resource_group_name: str, virtual_network_gateway_name: str, - request: JSON, + request: _types.P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -85800,7 +91435,7 @@ def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param request: The parameters are supplied to disconnect vpn connections. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.P2SVpnConnectionRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -85841,7 +91476,7 @@ def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable self, resource_group_name: str, virtual_network_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Disconnect vpn connections of virtual network gateway in the specified resource group. @@ -85851,9 +91486,10 @@ def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable :type resource_group_name: str :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str - :param request: The parameters are supplied to disconnect vpn connections. Is one of the - following types: P2SVpnConnectionRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or JSON or IO[bytes] + :param request: The parameters are supplied to disconnect vpn connections. Is either a + P2SVpnConnectionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or + ~azure.mgmt.network.types.P2SVpnConnectionRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -85861,7 +91497,7 @@ def begin_disconnect_virtual_network_gateway_vpn_connections( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -85911,7 +91547,9 @@ def _invoke_prepare_migration_initial( self, resource_group_name: str, virtual_network_gateway_name: str, - migration_params: Union[_models.VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes]], + migration_params: Union[ + _models.VirtualNetworkGatewayMigrationParameters, _types.VirtualNetworkGatewayMigrationParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -85925,7 +91563,7 @@ def _invoke_prepare_migration_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -86015,7 +91653,7 @@ def begin_invoke_prepare_migration( self, resource_group_name: str, virtual_network_gateway_name: str, - migration_params: JSON, + migration_params: _types.VirtualNetworkGatewayMigrationParameters, *, content_type: str = "application/json", **kwargs: Any @@ -86029,7 +91667,7 @@ def begin_invoke_prepare_migration( :type virtual_network_gateway_name: str :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn gateway through Network resource provider. Required. - :type migration_params: JSON + :type migration_params: ~azure.mgmt.network.types.VirtualNetworkGatewayMigrationParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -86071,7 +91709,9 @@ def begin_invoke_prepare_migration( self, resource_group_name: str, virtual_network_gateway_name: str, - migration_params: Union[_models.VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes]], + migration_params: Union[ + _models.VirtualNetworkGatewayMigrationParameters, _types.VirtualNetworkGatewayMigrationParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[None]: """Trigger prepare migration for the virtual network gateway. @@ -86082,10 +91722,10 @@ def begin_invoke_prepare_migration( :param virtual_network_gateway_name: The name of the virtual network gateway. Required. :type virtual_network_gateway_name: str :param migration_params: Parameters supplied to the Begin Prepare migration on basic vpn - gateway through Network resource provider. Is one of the following types: - VirtualNetworkGatewayMigrationParameters, JSON, IO[bytes] Required. + gateway through Network resource provider. Is either a VirtualNetworkGatewayMigrationParameters + type or a IO[bytes] type. Required. :type migration_params: ~azure.mgmt.network.models.VirtualNetworkGatewayMigrationParameters or - JSON or IO[bytes] + ~azure.mgmt.network.types.VirtualNetworkGatewayMigrationParameters or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -86093,7 +91733,7 @@ def begin_invoke_prepare_migration( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -86153,7 +91793,7 @@ def _invoke_execute_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_invoke_execute_migration_request( @@ -86218,7 +91858,7 @@ def begin_invoke_execute_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -86275,7 +91915,7 @@ def _invoke_commit_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_invoke_commit_migration_request( @@ -86340,7 +91980,7 @@ def begin_invoke_commit_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -86397,7 +92037,7 @@ def _invoke_abort_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateways_invoke_abort_migration_request( @@ -86462,7 +92102,7 @@ def begin_invoke_abort_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -86538,7 +92178,7 @@ def vpn_device_configuration_script( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.VpnDeviceScriptParameters, *, content_type: str = "application/json", **kwargs: Any @@ -86552,7 +92192,7 @@ def vpn_device_configuration_script( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the generate vpn device script operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnDeviceScriptParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -86594,7 +92234,7 @@ def vpn_device_configuration_script( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnDeviceScriptParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnDeviceScriptParameters, _types.VpnDeviceScriptParameters, IO[bytes]], **kwargs: Any ) -> str: """Gets a xml format representation for vpn device configuration script. @@ -86605,9 +92245,10 @@ def vpn_device_configuration_script( :param virtual_network_gateway_connection_name: The name of the virtual network gateway connection. Required. :type virtual_network_gateway_connection_name: str - :param parameters: Parameters supplied to the generate vpn device script operation. Is one of - the following types: VpnDeviceScriptParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters or JSON or IO[bytes] + :param parameters: Parameters supplied to the generate vpn device script operation. Is either a + VpnDeviceScriptParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VpnDeviceScriptParameters or + ~azure.mgmt.network.types.VpnDeviceScriptParameters or IO[bytes] :return: str :rtype: str :raises ~azure.core.exceptions.HttpResponseError: @@ -86623,7 +92264,7 @@ def vpn_device_configuration_script( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) @@ -86681,7 +92322,7 @@ def vpn_device_configuration_script( return deserialized # type: ignore -class VirtualNetworkGatewayConnectionsOperations: # pylint: disable=too-many-public-methods,name-too-long +class VirtualNetworkGatewayConnectionsOperations: # pylint: disable=docstring-missing-param,too-many-public-methods,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -86726,7 +92367,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_connections_get_request( @@ -86777,7 +92418,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.VirtualNetworkGatewayConnection, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkGatewayConnection, _types.VirtualNetworkGatewayConnection, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -86791,7 +92432,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -86887,7 +92528,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.VirtualNetworkGatewayConnection, *, content_type: str = "application/json", **kwargs: Any @@ -86902,7 +92543,7 @@ def begin_create_or_update( :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the create or update virtual network gateway connection operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualNetworkGatewayConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -86949,7 +92590,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.VirtualNetworkGatewayConnection, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkGatewayConnection, _types.VirtualNetworkGatewayConnection, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkGatewayConnection]: """Creates or updates a virtual network gateway connection in the specified resource group. @@ -86961,10 +92602,10 @@ def begin_create_or_update( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the create or update virtual network gateway - connection operation. Is one of the following types: VirtualNetworkGatewayConnection, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection or JSON or - IO[bytes] + connection operation. Is either a VirtualNetworkGatewayConnection type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayConnection or + ~azure.mgmt.network.types.VirtualNetworkGatewayConnection or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkGatewayConnection. The VirtualNetworkGatewayConnection is compatible with MutableMapping :rtype: @@ -86974,7 +92615,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -87029,7 +92670,7 @@ def _update_tags_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -87043,7 +92684,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -87139,7 +92780,7 @@ def begin_update_tags( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -87154,7 +92795,7 @@ def begin_update_tags( :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to update virtual network gateway connection tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -87201,7 +92842,7 @@ def begin_update_tags( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkGatewayConnection]: """Updates a virtual network gateway connection tags. @@ -87213,8 +92854,9 @@ def begin_update_tags( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to update virtual network gateway connection tags. Is - one of the following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + either a TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkGatewayConnection. The VirtualNetworkGatewayConnection is compatible with MutableMapping :rtype: @@ -87224,7 +92866,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkGatewayConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -87289,7 +92931,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_connections_delete_request( @@ -87356,7 +92998,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -87415,7 +93057,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkGatewayConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -87489,7 +93131,7 @@ def _set_shared_key_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionSharedKey, JSON, IO[bytes]], + parameters: Union[_models.ConnectionSharedKey, _types.ConnectionSharedKey, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -87503,7 +93145,7 @@ def _set_shared_key_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -87600,7 +93242,7 @@ def begin_set_shared_key( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.ConnectionSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -87617,7 +93259,7 @@ def begin_set_shared_key( :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ConnectionSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -87664,7 +93306,7 @@ def begin_set_shared_key( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionSharedKey, JSON, IO[bytes]], + parameters: Union[_models.ConnectionSharedKey, _types.ConnectionSharedKey, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ConnectionSharedKey]: """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway @@ -87678,9 +93320,10 @@ def begin_set_shared_key( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the Begin Set Virtual Network Gateway connection - Shared key operation throughNetwork resource provider. Is one of the following types: - ConnectionSharedKey, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey or JSON or IO[bytes] + Shared key operation throughNetwork resource provider. Is either a ConnectionSharedKey type or + a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionSharedKey or + ~azure.mgmt.network.types.ConnectionSharedKey or IO[bytes] :return: An instance of LROPoller that returns ConnectionSharedKey. The ConnectionSharedKey is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionSharedKey] @@ -87689,7 +93332,7 @@ def begin_set_shared_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -87768,7 +93411,7 @@ def get_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionSharedKey] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_connections_get_shared_key_request( @@ -87819,7 +93462,7 @@ def _reset_shared_key_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionResetSharedKey, JSON, IO[bytes]], + parameters: Union[_models.ConnectionResetSharedKey, _types.ConnectionResetSharedKey, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -87833,7 +93476,7 @@ def _reset_shared_key_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -87928,7 +93571,7 @@ def begin_reset_shared_key( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.ConnectionResetSharedKey, *, content_type: str = "application/json", **kwargs: Any @@ -87945,7 +93588,7 @@ def begin_reset_shared_key( :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the begin reset virtual network gateway connection shared key operation through network resource provider. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ConnectionResetSharedKey :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -87992,7 +93635,7 @@ def begin_reset_shared_key( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.ConnectionResetSharedKey, JSON, IO[bytes]], + parameters: Union[_models.ConnectionResetSharedKey, _types.ConnectionResetSharedKey, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ConnectionResetSharedKey]: """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway @@ -88006,9 +93649,10 @@ def begin_reset_shared_key( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Parameters supplied to the begin reset virtual network gateway connection - shared key operation through network resource provider. Is one of the following types: - ConnectionResetSharedKey, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey or JSON or IO[bytes] + shared key operation through network resource provider. Is either a ConnectionResetSharedKey + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionResetSharedKey or + ~azure.mgmt.network.types.ConnectionResetSharedKey or IO[bytes] :return: An instance of LROPoller that returns ConnectionResetSharedKey. The ConnectionResetSharedKey is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionResetSharedKey] @@ -88017,7 +93661,7 @@ def begin_reset_shared_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionResetSharedKey] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -88072,7 +93716,9 @@ def _start_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -88086,7 +93732,7 @@ def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -88182,7 +93828,7 @@ def begin_start_packet_capture( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -88197,7 +93843,7 @@ def begin_start_packet_capture( :type virtual_network_gateway_connection_name: str :param parameters: Virtual network gateway packet capture parameters supplied to start packet capture on gateway connection. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -88240,7 +93886,9 @@ def begin_start_packet_capture( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Optional[Union[_models.VpnPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[_models.VpnPacketCaptureStartParameters, _types.VpnPacketCaptureStartParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> LROPoller[str]: """Starts packet capture on virtual network gateway connection in the specified resource group. @@ -88252,10 +93900,10 @@ def begin_start_packet_capture( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Virtual network gateway packet capture parameters supplied to start packet - capture on gateway connection. Is one of the following types: VpnPacketCaptureStartParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or JSON or - IO[bytes] + capture on gateway connection. Is either a VpnPacketCaptureStartParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStartParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -88263,7 +93911,7 @@ def begin_start_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -88321,7 +93969,7 @@ def _stop_packet_capture_initial( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -88335,7 +93983,7 @@ def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -88427,7 +94075,7 @@ def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: JSON, + parameters: _types.VpnPacketCaptureStopParameters, *, content_type: str = "application/json", **kwargs: Any @@ -88442,7 +94090,7 @@ def begin_stop_packet_capture( :type virtual_network_gateway_connection_name: str :param parameters: Virtual network gateway packet capture parameters supplied to stop packet capture on gateway connection. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -88485,7 +94133,7 @@ def begin_stop_packet_capture( self, resource_group_name: str, virtual_network_gateway_connection_name: str, - parameters: Union[_models.VpnPacketCaptureStopParameters, JSON, IO[bytes]], + parameters: Union[_models.VpnPacketCaptureStopParameters, _types.VpnPacketCaptureStopParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[str]: """Stops packet capture on virtual network gateway connection in the specified resource group. @@ -88497,10 +94145,10 @@ def begin_stop_packet_capture( connection. Required. :type virtual_network_gateway_connection_name: str :param parameters: Virtual network gateway packet capture parameters supplied to stop packet - capture on gateway connection. Is one of the following types: VpnPacketCaptureStopParameters, - JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or JSON or - IO[bytes] + capture on gateway connection. Is either a VpnPacketCaptureStopParameters type or a IO[bytes] + type. Required. + :type parameters: ~azure.mgmt.network.models.VpnPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnPacketCaptureStopParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -88508,7 +94156,7 @@ def begin_stop_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -88575,7 +94223,7 @@ def _get_ike_sas_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_connections_get_ike_sas_request( @@ -88643,7 +94291,7 @@ def begin_get_ike_sas( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -88707,7 +94355,7 @@ def _reset_connection_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_connections_reset_connection_request( @@ -88773,7 +94421,7 @@ def begin_reset_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -88817,7 +94465,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class LocalNetworkGatewaysOperations: +class LocalNetworkGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -88860,7 +94508,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) _request = build_local_network_gateways_get_request( @@ -88911,7 +94559,7 @@ def _create_or_update_initial( self, resource_group_name: str, local_network_gateway_name: str, - parameters: Union[_models.LocalNetworkGateway, JSON, IO[bytes]], + parameters: Union[_models.LocalNetworkGateway, _types.LocalNetworkGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -88925,7 +94573,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -89019,7 +94667,7 @@ def begin_create_or_update( self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: _types.LocalNetworkGateway, *, content_type: str = "application/json", **kwargs: Any @@ -89033,7 +94681,7 @@ def begin_create_or_update( :type local_network_gateway_name: str :param parameters: Parameters supplied to the create or update local network gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.LocalNetworkGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -89077,7 +94725,7 @@ def begin_create_or_update( self, resource_group_name: str, local_network_gateway_name: str, - parameters: Union[_models.LocalNetworkGateway, JSON, IO[bytes]], + parameters: Union[_models.LocalNetworkGateway, _types.LocalNetworkGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.LocalNetworkGateway]: """Creates or updates a local network gateway in the specified resource group. @@ -89088,8 +94736,9 @@ def begin_create_or_update( :param local_network_gateway_name: The name of the local network gateway. Required. :type local_network_gateway_name: str :param parameters: Parameters supplied to the create or update local network gateway operation. - Is one of the following types: LocalNetworkGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway or JSON or IO[bytes] + Is either a LocalNetworkGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.LocalNetworkGateway or + ~azure.mgmt.network.types.LocalNetworkGateway or IO[bytes] :return: An instance of LROPoller that returns LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.LocalNetworkGateway] @@ -89098,7 +94747,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -89181,7 +94830,7 @@ def update_tags( self, resource_group_name: str, local_network_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -89194,7 +94843,7 @@ def update_tags( :param local_network_gateway_name: The name of the local network gateway. Required. :type local_network_gateway_name: str :param parameters: Parameters supplied to update local network gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -89235,7 +94884,7 @@ def update_tags( self, resource_group_name: str, local_network_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.LocalNetworkGateway: """Updates a local network gateway tags. @@ -89245,9 +94894,10 @@ def update_tags( :type resource_group_name: str :param local_network_gateway_name: The name of the local network gateway. Required. :type local_network_gateway_name: str - :param parameters: Parameters supplied to update local network gateway tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update local network gateway tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: LocalNetworkGateway. The LocalNetworkGateway is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.LocalNetworkGateway :raises ~azure.core.exceptions.HttpResponseError: @@ -89263,7 +94913,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LocalNetworkGateway] = kwargs.pop("cls", None) @@ -89334,7 +94984,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_local_network_gateways_delete_request( @@ -89398,7 +95048,7 @@ def begin_delete(self, resource_group_name: str, local_network_gateway_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -89455,7 +95105,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Lo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LocalNetworkGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -89526,7 +95176,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualNetworkGatewayNatRulesOperations: +class VirtualNetworkGatewayNatRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -89573,7 +95223,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_nat_rules_get_request( @@ -89626,7 +95276,9 @@ def _create_or_update_initial( resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VirtualNetworkGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[ + _models.VirtualNetworkGatewayNatRule, _types.VirtualNetworkGatewayNatRule, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -89640,7 +95292,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -89740,7 +95392,7 @@ def begin_create_or_update( resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: _types.VirtualNetworkGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -89757,7 +95409,7 @@ def begin_create_or_update( name can be used to access the resource. Required. :type nat_rule_name: str :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: JSON + :type nat_rule_parameters: ~azure.mgmt.network.types.VirtualNetworkGatewayNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -89806,7 +95458,9 @@ def begin_create_or_update( resource_group_name: str, virtual_network_gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VirtualNetworkGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[ + _models.VirtualNetworkGatewayNatRule, _types.VirtualNetworkGatewayNatRule, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkGatewayNatRule]: """Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the @@ -89820,10 +95474,10 @@ def begin_create_or_update( :param nat_rule_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is one of the - following types: VirtualNetworkGatewayNatRule, JSON, IO[bytes] Required. - :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule or JSON or - IO[bytes] + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is either a + VirtualNetworkGatewayNatRule type or a IO[bytes] type. Required. + :type nat_rule_parameters: ~azure.mgmt.network.models.VirtualNetworkGatewayNatRule or + ~azure.mgmt.network.types.VirtualNetworkGatewayNatRule or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkGatewayNatRule. The VirtualNetworkGatewayNatRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetworkGatewayNatRule] @@ -89832,7 +95486,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkGatewayNatRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -89898,7 +95552,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_gateway_nat_rules_delete_request( @@ -89968,7 +95622,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -90030,7 +95684,7 @@ def list_by_virtual_network_gateway( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkGatewayNatRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90102,7 +95756,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualNetworkTapsOperations: +class VirtualNetworkTapsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -90143,7 +95797,7 @@ def get(self, resource_group_name: str, tap_name: str, **kwargs: Any) -> _models _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) _request = build_virtual_network_taps_get_request( @@ -90194,7 +95848,7 @@ def _create_or_update_initial( self, resource_group_name: str, tap_name: str, - parameters: Union[_models.VirtualNetworkTap, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkTap, _types.VirtualNetworkTap, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -90208,7 +95862,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -90302,7 +95956,7 @@ def begin_create_or_update( self, resource_group_name: str, tap_name: str, - parameters: JSON, + parameters: _types.VirtualNetworkTap, *, content_type: str = "application/json", **kwargs: Any @@ -90316,7 +95970,7 @@ def begin_create_or_update( :type tap_name: str :param parameters: Parameters supplied to the create or update virtual network tap operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualNetworkTap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -90360,7 +96014,7 @@ def begin_create_or_update( self, resource_group_name: str, tap_name: str, - parameters: Union[_models.VirtualNetworkTap, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkTap, _types.VirtualNetworkTap, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkTap]: """Create a VirtualNetworkTap. @@ -90371,8 +96025,9 @@ def begin_create_or_update( :param tap_name: The name of virtual network tap. Required. :type tap_name: str :param parameters: Parameters supplied to the create or update virtual network tap operation. - Is one of the following types: VirtualNetworkTap, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap or JSON or IO[bytes] + Is either a VirtualNetworkTap type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkTap or + ~azure.mgmt.network.types.VirtualNetworkTap or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetworkTap] @@ -90381,7 +96036,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -90464,7 +96119,7 @@ def update_tags( self, resource_group_name: str, tap_name: str, - tap_parameters: JSON, + tap_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -90477,7 +96132,7 @@ def update_tags( :param tap_name: The name of virtual network tap. Required. :type tap_name: str :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Required. - :type tap_parameters: JSON + :type tap_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -90518,7 +96173,7 @@ def update_tags( self, resource_group_name: str, tap_name: str, - tap_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + tap_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VirtualNetworkTap: """Update a VirtualNetworkTap. @@ -90528,9 +96183,10 @@ def update_tags( :type resource_group_name: str :param tap_name: The name of virtual network tap. Required. :type tap_name: str - :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type tap_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param tap_parameters: Parameters supplied to update VirtualNetworkTap tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type tap_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: VirtualNetworkTap. The VirtualNetworkTap is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VirtualNetworkTap :raises ~azure.core.exceptions.HttpResponseError: @@ -90546,7 +96202,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkTap] = kwargs.pop("cls", None) @@ -90615,7 +96271,7 @@ def _delete_initial(self, resource_group_name: str, tap_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_taps_delete_request( @@ -90679,7 +96335,7 @@ def begin_delete(self, resource_group_name: str, tap_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -90736,7 +96392,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90817,7 +96473,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.VirtualNetworkTap"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkTap]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -90887,7 +96543,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualRoutersOperations: +class VirtualRoutersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -90932,7 +96588,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) _request = build_virtual_routers_get_request( @@ -90984,7 +96640,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_router_name: str, - parameters: Union[_models.VirtualRouter, JSON, IO[bytes]], + parameters: Union[_models.VirtualRouter, _types.VirtualRouter, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -90998,7 +96654,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -91091,7 +96747,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_router_name: str, - parameters: JSON, + parameters: _types.VirtualRouter, *, content_type: str = "application/json", **kwargs: Any @@ -91104,7 +96760,7 @@ def begin_create_or_update( :param virtual_router_name: The name of the Virtual Router. Required. :type virtual_router_name: str :param parameters: Parameters supplied to the create or update Virtual Router. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualRouter :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -91147,7 +96803,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_router_name: str, - parameters: Union[_models.VirtualRouter, JSON, IO[bytes]], + parameters: Union[_models.VirtualRouter, _types.VirtualRouter, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualRouter]: """Creates or updates the specified Virtual Router. @@ -91157,9 +96813,10 @@ def begin_create_or_update( :type resource_group_name: str :param virtual_router_name: The name of the Virtual Router. Required. :type virtual_router_name: str - :param parameters: Parameters supplied to the create or update Virtual Router. Is one of the - following types: VirtualRouter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouter or JSON or IO[bytes] + :param parameters: Parameters supplied to the create or update Virtual Router. Is either a + VirtualRouter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouter or + ~azure.mgmt.network.types.VirtualRouter or IO[bytes] :return: An instance of LROPoller that returns VirtualRouter. The VirtualRouter is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualRouter] @@ -91168,7 +96825,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualRouter] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -91231,7 +96888,7 @@ def _delete_initial(self, resource_group_name: str, virtual_router_name: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_routers_delete_request( @@ -91295,7 +96952,7 @@ def begin_delete(self, resource_group_name: str, virtual_router_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -91352,7 +97009,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -91433,7 +97090,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VirtualRouter"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualRouter]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -91503,7 +97160,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualRouterPeeringsOperations: +class VirtualRouterPeeringsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -91549,7 +97206,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) _request = build_virtual_router_peerings_get_request( @@ -91602,7 +97259,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_router_name: str, peering_name: str, - parameters: Union[_models.VirtualRouterPeering, JSON, IO[bytes]], + parameters: Union[_models.VirtualRouterPeering, _types.VirtualRouterPeering, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -91616,7 +97273,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -91716,7 +97373,7 @@ def begin_create_or_update( resource_group_name: str, virtual_router_name: str, peering_name: str, - parameters: JSON, + parameters: _types.VirtualRouterPeering, *, content_type: str = "application/json", **kwargs: Any @@ -91733,7 +97390,7 @@ def begin_create_or_update( :type peering_name: str :param parameters: Parameters supplied to the create or update Virtual Router Peering operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualRouterPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -91782,7 +97439,7 @@ def begin_create_or_update( resource_group_name: str, virtual_router_name: str, peering_name: str, - parameters: Union[_models.VirtualRouterPeering, JSON, IO[bytes]], + parameters: Union[_models.VirtualRouterPeering, _types.VirtualRouterPeering, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualRouterPeering]: """Creates or updates the specified Virtual Router Peering. @@ -91796,8 +97453,9 @@ def begin_create_or_update( can be used to access the resource. Required. :type peering_name: str :param parameters: Parameters supplied to the create or update Virtual Router Peering - operation. Is one of the following types: VirtualRouterPeering, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering or JSON or IO[bytes] + operation. Is either a VirtualRouterPeering type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualRouterPeering or + ~azure.mgmt.network.types.VirtualRouterPeering or IO[bytes] :return: An instance of LROPoller that returns VirtualRouterPeering. The VirtualRouterPeering is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualRouterPeering] @@ -91806,7 +97464,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualRouterPeering] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -91872,7 +97530,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_router_peerings_delete_request( @@ -91942,7 +97600,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -92004,7 +97662,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualRouterPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -92076,7 +97734,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualWansOperations: +class VirtualWansOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -92117,7 +97775,7 @@ def get(self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) _request = build_virtual_wans_get_request( @@ -92168,7 +97826,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: Union[_models.VirtualWAN, JSON, IO[bytes]], + wan_parameters: Union[_models.VirtualWAN, _types.VirtualWAN, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -92182,7 +97840,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -92275,7 +97933,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: _types.VirtualWAN, *, content_type: str = "application/json", **kwargs: Any @@ -92288,7 +97946,7 @@ def begin_create_or_update( :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. :type virtual_wan_name: str :param wan_parameters: Parameters supplied to create or update VirtualWAN. Required. - :type wan_parameters: JSON + :type wan_parameters: ~azure.mgmt.network.types.VirtualWAN :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -92331,7 +97989,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: Union[_models.VirtualWAN, JSON, IO[bytes]], + wan_parameters: Union[_models.VirtualWAN, _types.VirtualWAN, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualWAN]: """Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. @@ -92341,9 +97999,10 @@ def begin_create_or_update( :type resource_group_name: str :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to create or update VirtualWAN. Is one of the - following types: VirtualWAN, JSON, IO[bytes] Required. - :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN or JSON or IO[bytes] + :param wan_parameters: Parameters supplied to create or update VirtualWAN. Is either a + VirtualWAN type or a IO[bytes] type. Required. + :type wan_parameters: ~azure.mgmt.network.models.VirtualWAN or + ~azure.mgmt.network.types.VirtualWAN or IO[bytes] :return: An instance of LROPoller that returns VirtualWAN. The VirtualWAN is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualWAN] @@ -92352,7 +98011,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -92435,7 +98094,7 @@ def update_tags( self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: JSON, + wan_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -92448,7 +98107,7 @@ def update_tags( :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. :type virtual_wan_name: str :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Required. - :type wan_parameters: JSON + :type wan_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -92489,7 +98148,7 @@ def update_tags( self, resource_group_name: str, virtual_wan_name: str, - wan_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + wan_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VirtualWAN: """Updates a VirtualWAN tags. @@ -92499,9 +98158,10 @@ def update_tags( :type resource_group_name: str :param virtual_wan_name: The name of the VirtualWAN being retrieved. Required. :type virtual_wan_name: str - :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type wan_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param wan_parameters: Parameters supplied to Update VirtualWAN tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type wan_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: VirtualWAN. The VirtualWAN is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VirtualWAN :raises ~azure.core.exceptions.HttpResponseError: @@ -92517,7 +98177,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualWAN] = kwargs.pop("cls", None) @@ -92586,7 +98246,7 @@ def _delete_initial(self, resource_group_name: str, virtual_wan_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_wans_delete_request( @@ -92650,7 +98310,7 @@ def begin_delete(self, resource_group_name: str, virtual_wan_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -92707,7 +98367,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -92788,7 +98448,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VirtualWAN"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualWAN]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -92858,7 +98518,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnSitesOperations: +class VpnSitesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -92899,7 +98559,7 @@ def get(self, resource_group_name: str, vpn_site_name: str, **kwargs: Any) -> _m _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) _request = build_vpn_sites_get_request( @@ -92950,7 +98610,7 @@ def _create_or_update_initial( self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: Union[_models.VpnSite, JSON, IO[bytes]], + vpn_site_parameters: Union[_models.VpnSite, _types.VpnSite, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -92964,7 +98624,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -93057,7 +98717,7 @@ def begin_create_or_update( self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: _types.VpnSite, *, content_type: str = "application/json", **kwargs: Any @@ -93070,7 +98730,7 @@ def begin_create_or_update( :param vpn_site_name: The name of the VpnSite being retrieved. Required. :type vpn_site_name: str :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Required. - :type vpn_site_parameters: JSON + :type vpn_site_parameters: ~azure.mgmt.network.types.VpnSite :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -93113,7 +98773,7 @@ def begin_create_or_update( self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: Union[_models.VpnSite, JSON, IO[bytes]], + vpn_site_parameters: Union[_models.VpnSite, _types.VpnSite, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnSite]: """Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. @@ -93123,9 +98783,10 @@ def begin_create_or_update( :type resource_group_name: str :param vpn_site_name: The name of the VpnSite being retrieved. Required. :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Is one of the - following types: VpnSite, JSON, IO[bytes] Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite or JSON or IO[bytes] + :param vpn_site_parameters: Parameters supplied to create or update VpnSite. Is either a + VpnSite type or a IO[bytes] type. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.VpnSite or + ~azure.mgmt.network.types.VpnSite or IO[bytes] :return: An instance of LROPoller that returns VpnSite. The VpnSite is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnSite] @@ -93134,7 +98795,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -93217,7 +98878,7 @@ def update_tags( self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: JSON, + vpn_site_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -93230,7 +98891,7 @@ def update_tags( :param vpn_site_name: The name of the VpnSite being retrieved. Required. :type vpn_site_name: str :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Required. - :type vpn_site_parameters: JSON + :type vpn_site_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -93271,7 +98932,7 @@ def update_tags( self, resource_group_name: str, vpn_site_name: str, - vpn_site_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpn_site_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VpnSite: """Updates VpnSite tags. @@ -93281,9 +98942,10 @@ def update_tags( :type resource_group_name: str :param vpn_site_name: The name of the VpnSite being retrieved. Required. :type vpn_site_name: str - :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param vpn_site_parameters: Parameters supplied to update VpnSite tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type vpn_site_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: VpnSite. The VpnSite is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VpnSite :raises ~azure.core.exceptions.HttpResponseError: @@ -93299,7 +98961,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnSite] = kwargs.pop("cls", None) @@ -93368,7 +99030,7 @@ def _delete_initial(self, resource_group_name: str, vpn_site_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_sites_delete_request( @@ -93432,7 +99094,7 @@ def begin_delete(self, resource_group_name: str, vpn_site_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -93489,7 +99151,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93570,7 +99232,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VpnSite"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnSite]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93640,7 +99302,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnSiteLinksOperations: +class VpnSiteLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -93686,7 +99348,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnSiteLink] = kwargs.pop("cls", None) _request = build_vpn_site_links_get_request( @@ -93752,7 +99414,7 @@ def list_by_vpn_site( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnSiteLink]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -93824,7 +99486,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnServerConfigurationsOperations: +class VpnServerConfigurationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -93868,7 +99530,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) _request = build_vpn_server_configurations_get_request( @@ -93919,7 +99581,9 @@ def _create_or_update_initial( self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.VpnServerConfiguration, JSON, IO[bytes]], + vpn_server_configuration_parameters: Union[ + _models.VpnServerConfiguration, _types.VpnServerConfiguration, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -93933,7 +99597,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -94029,7 +99693,7 @@ def begin_create_or_update( self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: _types.VpnServerConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -94045,7 +99709,7 @@ def begin_create_or_update( :type vpn_server_configuration_name: str :param vpn_server_configuration_parameters: Parameters supplied to create or update VpnServerConfiguration. Required. - :type vpn_server_configuration_parameters: JSON + :type vpn_server_configuration_parameters: ~azure.mgmt.network.types.VpnServerConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -94091,7 +99755,9 @@ def begin_create_or_update( self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.VpnServerConfiguration, JSON, IO[bytes]], + vpn_server_configuration_parameters: Union[ + _models.VpnServerConfiguration, _types.VpnServerConfiguration, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.VpnServerConfiguration]: """Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing @@ -94104,10 +99770,9 @@ def begin_create_or_update( group. This name can be used to access the resource. Required. :type vpn_server_configuration_name: str :param vpn_server_configuration_parameters: Parameters supplied to create or update - VpnServerConfiguration. Is one of the following types: VpnServerConfiguration, JSON, IO[bytes] - Required. + VpnServerConfiguration. Is either a VpnServerConfiguration type or a IO[bytes] type. Required. :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.VpnServerConfiguration or - JSON or IO[bytes] + ~azure.mgmt.network.types.VpnServerConfiguration or IO[bytes] :return: An instance of LROPoller that returns VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnServerConfiguration] @@ -94116,7 +99781,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -94201,7 +99866,7 @@ def update_tags( self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: JSON, + vpn_server_configuration_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -94216,7 +99881,7 @@ def update_tags( :type vpn_server_configuration_name: str :param vpn_server_configuration_parameters: Parameters supplied to update VpnServerConfiguration tags. Required. - :type vpn_server_configuration_parameters: JSON + :type vpn_server_configuration_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -94259,7 +99924,7 @@ def update_tags( self, resource_group_name: str, vpn_server_configuration_name: str, - vpn_server_configuration_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpn_server_configuration_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VpnServerConfiguration: """Updates VpnServerConfiguration tags. @@ -94271,10 +99936,9 @@ def update_tags( group. This name can be used to access the resource. Required. :type vpn_server_configuration_name: str :param vpn_server_configuration_parameters: Parameters supplied to update - VpnServerConfiguration tags. Is one of the following types: TagsObject, JSON, IO[bytes] - Required. - :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject or JSON or - IO[bytes] + VpnServerConfiguration tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type vpn_server_configuration_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: VpnServerConfiguration. The VpnServerConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VpnServerConfiguration :raises ~azure.core.exceptions.HttpResponseError: @@ -94290,7 +99954,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnServerConfiguration] = kwargs.pop("cls", None) @@ -94361,7 +100025,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_server_configurations_delete_request( @@ -94428,7 +100092,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -94487,7 +100151,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -94568,7 +100232,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VpnServerConfiguration"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnServerConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -94665,7 +100329,7 @@ def list_radius_secrets( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RadiusAuthServerListResult] = kwargs.pop("cls", None) _request = build_vpn_server_configurations_list_radius_secrets_request( @@ -94713,7 +100377,7 @@ def list_radius_secrets( return deserialized # type: ignore -class VirtualHubsOperations: +class VirtualHubsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -94754,7 +100418,7 @@ def get(self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) _request = build_virtual_hubs_get_request( @@ -94805,7 +100469,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: Union[_models.VirtualHub, JSON, IO[bytes]], + virtual_hub_parameters: Union[_models.VirtualHub, _types.VirtualHub, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -94819,7 +100483,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -94912,7 +100576,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: _types.VirtualHub, *, content_type: str = "application/json", **kwargs: Any @@ -94925,7 +100589,7 @@ def begin_create_or_update( :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Required. - :type virtual_hub_parameters: JSON + :type virtual_hub_parameters: ~azure.mgmt.network.types.VirtualHub :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -94968,7 +100632,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: Union[_models.VirtualHub, JSON, IO[bytes]], + virtual_hub_parameters: Union[_models.VirtualHub, _types.VirtualHub, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualHub]: """Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. @@ -94978,9 +100642,10 @@ def begin_create_or_update( :type resource_group_name: str :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Is one of - the following types: VirtualHub, JSON, IO[bytes] Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub or JSON or IO[bytes] + :param virtual_hub_parameters: Parameters supplied to create or update VirtualHub. Is either a + VirtualHub type or a IO[bytes] type. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.VirtualHub or + ~azure.mgmt.network.types.VirtualHub or IO[bytes] :return: An instance of LROPoller that returns VirtualHub. The VirtualHub is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualHub] @@ -94989,7 +100654,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -95072,7 +100737,7 @@ def update_tags( self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: JSON, + virtual_hub_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -95085,7 +100750,7 @@ def update_tags( :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Required. - :type virtual_hub_parameters: JSON + :type virtual_hub_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -95126,7 +100791,7 @@ def update_tags( self, resource_group_name: str, virtual_hub_name: str, - virtual_hub_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + virtual_hub_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VirtualHub: """Updates VirtualHub tags. @@ -95136,9 +100801,10 @@ def update_tags( :type resource_group_name: str :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str - :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param virtual_hub_parameters: Parameters supplied to update VirtualHub tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type virtual_hub_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: VirtualHub. The VirtualHub is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VirtualHub :raises ~azure.core.exceptions.HttpResponseError: @@ -95154,7 +100820,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualHub] = kwargs.pop("cls", None) @@ -95223,7 +100889,7 @@ def _delete_initial(self, resource_group_name: str, virtual_hub_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hubs_delete_request( @@ -95287,7 +100953,7 @@ def begin_delete(self, resource_group_name: str, virtual_hub_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -95344,7 +101010,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -95425,7 +101091,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VirtualHub"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualHub]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -95498,7 +101164,9 @@ def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too-long self, resource_group_name: str, virtual_hub_name: str, - effective_routes_parameters: Optional[Union[_models.EffectiveRoutesParameters, JSON, IO[bytes]]] = None, + effective_routes_parameters: Optional[ + Union[_models.EffectiveRoutesParameters, _types.EffectiveRoutesParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -95512,7 +101180,7 @@ def _get_effective_virtual_hub_routes_initial( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if effective_routes_parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -95608,7 +101276,7 @@ def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, virtual_hub_name: str, - effective_routes_parameters: Optional[JSON] = None, + effective_routes_parameters: Optional[_types.EffectiveRoutesParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -95622,7 +101290,7 @@ def begin_get_effective_virtual_hub_routes( :type virtual_hub_name: str :param effective_routes_parameters: Parameters supplied to get the effective routes for a specific resource. Default value is None. - :type effective_routes_parameters: JSON + :type effective_routes_parameters: ~azure.mgmt.network.types.EffectiveRoutesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -95666,7 +101334,9 @@ def begin_get_effective_virtual_hub_routes( self, resource_group_name: str, virtual_hub_name: str, - effective_routes_parameters: Optional[Union[_models.EffectiveRoutesParameters, JSON, IO[bytes]]] = None, + effective_routes_parameters: Optional[ + Union[_models.EffectiveRoutesParameters, _types.EffectiveRoutesParameters, IO[bytes]] + ] = None, **kwargs: Any ) -> LROPoller[_models.VirtualHubEffectiveRouteList]: """Gets the effective routes configured for the Virtual Hub resource or the specified resource . @@ -95677,10 +101347,10 @@ def begin_get_effective_virtual_hub_routes( :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str :param effective_routes_parameters: Parameters supplied to get the effective routes for a - specific resource. Is one of the following types: EffectiveRoutesParameters, JSON, IO[bytes] - Default value is None. - :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters or JSON - or IO[bytes] + specific resource. Is either a EffectiveRoutesParameters type or a IO[bytes] type. Default + value is None. + :type effective_routes_parameters: ~azure.mgmt.network.models.EffectiveRoutesParameters or + ~azure.mgmt.network.types.EffectiveRoutesParameters or IO[bytes] :return: An instance of LROPoller that returns VirtualHubEffectiveRouteList. The VirtualHubEffectiveRouteList is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualHubEffectiveRouteList] @@ -95689,7 +101359,7 @@ def begin_get_effective_virtual_hub_routes( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if effective_routes_parameters else None cls: ClsType[_models.VirtualHubEffectiveRouteList] = kwargs.pop("cls", None) @@ -95745,7 +101415,9 @@ def _get_inbound_routes_initial( self, resource_group_name: str, virtual_hub_name: str, - get_inbound_routes_parameters: Union[_models.GetInboundRoutesParameters, JSON, IO[bytes]], + get_inbound_routes_parameters: Union[ + _models.GetInboundRoutesParameters, _types.GetInboundRoutesParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -95759,7 +101431,7 @@ def _get_inbound_routes_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -95851,7 +101523,7 @@ def begin_get_inbound_routes( self, resource_group_name: str, virtual_hub_name: str, - get_inbound_routes_parameters: JSON, + get_inbound_routes_parameters: _types.GetInboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -95865,7 +101537,7 @@ def begin_get_inbound_routes( :type virtual_hub_name: str :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a connection resource. Required. - :type get_inbound_routes_parameters: JSON + :type get_inbound_routes_parameters: ~azure.mgmt.network.types.GetInboundRoutesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -95909,7 +101581,9 @@ def begin_get_inbound_routes( self, resource_group_name: str, virtual_hub_name: str, - get_inbound_routes_parameters: Union[_models.GetInboundRoutesParameters, JSON, IO[bytes]], + get_inbound_routes_parameters: Union[ + _models.GetInboundRoutesParameters, _types.GetInboundRoutesParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.EffectiveRouteMapRouteList]: """Gets the inbound routes configured for the Virtual Hub on a particular connection. @@ -95920,10 +101594,9 @@ def begin_get_inbound_routes( :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str :param get_inbound_routes_parameters: Parameters supplied to get the inbound routes for a - connection resource. Is one of the following types: GetInboundRoutesParameters, JSON, IO[bytes] - Required. + connection resource. Is either a GetInboundRoutesParameters type or a IO[bytes] type. Required. :type get_inbound_routes_parameters: ~azure.mgmt.network.models.GetInboundRoutesParameters or - JSON or IO[bytes] + ~azure.mgmt.network.types.GetInboundRoutesParameters or IO[bytes] :return: An instance of LROPoller that returns EffectiveRouteMapRouteList. The EffectiveRouteMapRouteList is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] @@ -95932,7 +101605,7 @@ def begin_get_inbound_routes( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -95987,7 +101660,9 @@ def _get_outbound_routes_initial( self, resource_group_name: str, virtual_hub_name: str, - get_outbound_routes_parameters: Union[_models.GetOutboundRoutesParameters, JSON, IO[bytes]], + get_outbound_routes_parameters: Union[ + _models.GetOutboundRoutesParameters, _types.GetOutboundRoutesParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -96001,7 +101676,7 @@ def _get_outbound_routes_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -96093,7 +101768,7 @@ def begin_get_outbound_routes( self, resource_group_name: str, virtual_hub_name: str, - get_outbound_routes_parameters: JSON, + get_outbound_routes_parameters: _types.GetOutboundRoutesParameters, *, content_type: str = "application/json", **kwargs: Any @@ -96107,7 +101782,7 @@ def begin_get_outbound_routes( :type virtual_hub_name: str :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a connection resource. Required. - :type get_outbound_routes_parameters: JSON + :type get_outbound_routes_parameters: ~azure.mgmt.network.types.GetOutboundRoutesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -96151,7 +101826,9 @@ def begin_get_outbound_routes( self, resource_group_name: str, virtual_hub_name: str, - get_outbound_routes_parameters: Union[_models.GetOutboundRoutesParameters, JSON, IO[bytes]], + get_outbound_routes_parameters: Union[ + _models.GetOutboundRoutesParameters, _types.GetOutboundRoutesParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.EffectiveRouteMapRouteList]: """Gets the outbound routes configured for the Virtual Hub on a particular connection. @@ -96162,10 +101839,10 @@ def begin_get_outbound_routes( :param virtual_hub_name: The name of the VirtualHub. Required. :type virtual_hub_name: str :param get_outbound_routes_parameters: Parameters supplied to get the outbound routes for a - connection resource. Is one of the following types: GetOutboundRoutesParameters, JSON, - IO[bytes] Required. + connection resource. Is either a GetOutboundRoutesParameters type or a IO[bytes] type. + Required. :type get_outbound_routes_parameters: ~azure.mgmt.network.models.GetOutboundRoutesParameters or - JSON or IO[bytes] + ~azure.mgmt.network.types.GetOutboundRoutesParameters or IO[bytes] :return: An instance of LROPoller that returns EffectiveRouteMapRouteList. The EffectiveRouteMapRouteList is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.EffectiveRouteMapRouteList] @@ -96174,7 +101851,7 @@ def begin_get_outbound_routes( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EffectiveRouteMapRouteList] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -96226,7 +101903,7 @@ def get_long_running_output(pipeline_response): ) -class RouteMapsOperations: +class RouteMapsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -96272,7 +101949,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) _request = build_route_maps_get_request( @@ -96325,7 +102002,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, route_map_name: str, - route_map_parameters: Union[_models.RouteMap, JSON, IO[bytes]], + route_map_parameters: Union[_models.RouteMap, _types.RouteMap, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -96339,7 +102016,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -96438,7 +102115,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_map_name: str, - route_map_parameters: JSON, + route_map_parameters: _types.RouteMap, *, content_type: str = "application/json", **kwargs: Any @@ -96454,7 +102131,7 @@ def begin_create_or_update( name can be used to access the resource. Required. :type route_map_name: str :param route_map_parameters: Parameters supplied to create or update a RouteMap. Required. - :type route_map_parameters: JSON + :type route_map_parameters: ~azure.mgmt.network.types.RouteMap :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -96502,7 +102179,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_map_name: str, - route_map_parameters: Union[_models.RouteMap, JSON, IO[bytes]], + route_map_parameters: Union[_models.RouteMap, _types.RouteMap, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.RouteMap]: """Creates a RouteMap if it doesn't exist else updates the existing one. @@ -96515,9 +102192,10 @@ def begin_create_or_update( :param route_map_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type route_map_name: str - :param route_map_parameters: Parameters supplied to create or update a RouteMap. Is one of the - following types: RouteMap, JSON, IO[bytes] Required. - :type route_map_parameters: ~azure.mgmt.network.models.RouteMap or JSON or IO[bytes] + :param route_map_parameters: Parameters supplied to create or update a RouteMap. Is either a + RouteMap type or a IO[bytes] type. Required. + :type route_map_parameters: ~azure.mgmt.network.models.RouteMap or + ~azure.mgmt.network.types.RouteMap or IO[bytes] :return: An instance of LROPoller that returns RouteMap. The RouteMap is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.RouteMap] @@ -96526,7 +102204,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteMap] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -96592,7 +102270,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_route_maps_delete_request( @@ -96662,7 +102340,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -96722,7 +102400,7 @@ def list(self, resource_group_name: str, virtual_hub_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteMap]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -96794,7 +102472,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnGatewaysOperations: +class VpnGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -96835,7 +102513,7 @@ def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) _request = build_vpn_gateways_get_request( @@ -96886,7 +102564,7 @@ def _create_or_update_initial( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.VpnGateway, JSON, IO[bytes]], + vpn_gateway_parameters: Union[_models.VpnGateway, _types.VpnGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -96900,7 +102578,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -96994,7 +102672,7 @@ def begin_create_or_update( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: _types.VpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -97008,7 +102686,7 @@ def begin_create_or_update( :type gateway_name: str :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn gateway. Required. - :type vpn_gateway_parameters: JSON + :type vpn_gateway_parameters: ~azure.mgmt.network.types.VpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -97052,7 +102730,7 @@ def begin_create_or_update( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.VpnGateway, JSON, IO[bytes]], + vpn_gateway_parameters: Union[_models.VpnGateway, _types.VpnGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnGateway]: """Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. @@ -97063,8 +102741,9 @@ def begin_create_or_update( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan vpn - gateway. Is one of the following types: VpnGateway, JSON, IO[bytes] Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway or JSON or IO[bytes] + gateway. Is either a VpnGateway type or a IO[bytes] type. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.VpnGateway or + ~azure.mgmt.network.types.VpnGateway or IO[bytes] :return: An instance of LROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnGateway] @@ -97073,7 +102752,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -97128,7 +102807,7 @@ def _update_tags_initial( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -97142,7 +102821,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -97236,7 +102915,7 @@ def begin_update_tags( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: JSON, + vpn_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -97250,7 +102929,7 @@ def begin_update_tags( :type gateway_name: str :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. Required. - :type vpn_gateway_parameters: JSON + :type vpn_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -97294,7 +102973,7 @@ def begin_update_tags( self, resource_group_name: str, gateway_name: str, - vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnGateway]: """Updates virtual wan vpn gateway tags. @@ -97305,8 +102984,9 @@ def begin_update_tags( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param vpn_gateway_parameters: Parameters supplied to update a virtual wan vpn gateway tags. Is - one of the following types: TagsObject, JSON, IO[bytes] Required. - :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + either a TagsObject type or a IO[bytes] type. Required. + :type vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: An instance of LROPoller that returns VpnGateway. The VpnGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnGateway] @@ -97315,7 +102995,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -97378,7 +103058,7 @@ def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_gateways_delete_request( @@ -97442,7 +103122,7 @@ def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -97499,7 +103179,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -97580,7 +103260,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.VpnGateway"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -97663,7 +103343,7 @@ def _reset_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_gateways_reset_request( @@ -97734,7 +103414,7 @@ def begin_reset( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -97787,7 +103467,11 @@ def _start_packet_capture_initial( self, resource_group_name: str, gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStartParameters, _types.VpnGatewayPacketCaptureStartParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -97801,7 +103485,7 @@ def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -97896,7 +103580,7 @@ def begin_start_packet_capture( self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnGatewayPacketCaptureStartParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -97910,7 +103594,7 @@ def begin_start_packet_capture( :type gateway_name: str :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on vpn gateway. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnGatewayPacketCaptureStartParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -97952,7 +103636,11 @@ def begin_start_packet_capture( self, resource_group_name: str, gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStartParameters, _types.VpnGatewayPacketCaptureStartParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> LROPoller[str]: """Starts packet capture on vpn gateway in the specified resource group. @@ -97963,10 +103651,10 @@ def begin_start_packet_capture( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param parameters: Vpn gateway packet capture parameters supplied to start packet capture on - vpn gateway. Is one of the following types: VpnGatewayPacketCaptureStartParameters, JSON, - IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters or JSON or - IO[bytes] + vpn gateway. Is either a VpnGatewayPacketCaptureStartParameters type or a IO[bytes] type. + Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnGatewayPacketCaptureStartParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -97974,7 +103662,7 @@ def begin_start_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -98032,7 +103720,11 @@ def _stop_packet_capture_initial( self, resource_group_name: str, gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStopParameters, _types.VpnGatewayPacketCaptureStopParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -98046,7 +103738,7 @@ def _stop_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -98141,7 +103833,7 @@ def begin_stop_packet_capture( self, resource_group_name: str, gateway_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnGatewayPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -98155,7 +103847,7 @@ def begin_stop_packet_capture( :type gateway_name: str :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn gateway. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnGatewayPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -98197,7 +103889,11 @@ def begin_stop_packet_capture( self, resource_group_name: str, gateway_name: str, - parameters: Optional[Union[_models.VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnGatewayPacketCaptureStopParameters, _types.VpnGatewayPacketCaptureStopParameters, IO[bytes] + ] + ] = None, **kwargs: Any ) -> LROPoller[str]: """Stops packet capture on vpn gateway in the specified resource group. @@ -98208,10 +103904,10 @@ def begin_stop_packet_capture( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param parameters: Vpn gateway packet capture parameters supplied to stop packet capture on vpn - gateway. Is one of the following types: VpnGatewayPacketCaptureStopParameters, JSON, IO[bytes] - Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters or JSON or - IO[bytes] + gateway. Is either a VpnGatewayPacketCaptureStopParameters type or a IO[bytes] type. Default + value is None. + :type parameters: ~azure.mgmt.network.models.VpnGatewayPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnGatewayPacketCaptureStopParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -98219,7 +103915,7 @@ def begin_stop_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -98274,7 +103970,7 @@ def get_long_running_output(pipeline_response): return LROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VpnSiteLinkConnectionsOperations: +class VpnSiteLinkConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -98326,7 +104022,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnSiteLinkConnection] = kwargs.pop("cls", None) _request = build_vpn_site_link_connections_get_request( @@ -98376,7 +104072,7 @@ def get( return deserialized # type: ignore -class P2SVpnGatewaysOperations: +class P2SVpnGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -98417,7 +104113,7 @@ def get(self, resource_group_name: str, gateway_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) _request = build_p2_svpn_gateways_get_request( @@ -98468,7 +104164,7 @@ def _create_or_update_initial( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, JSON, IO[bytes]], + p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, _types.P2SVpnGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -98482,7 +104178,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -98576,7 +104272,7 @@ def begin_create_or_update( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: _types.P2SVpnGateway, *, content_type: str = "application/json", **kwargs: Any @@ -98590,7 +104286,7 @@ def begin_create_or_update( :type gateway_name: str :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s vpn gateway. Required. - :type p2_s_vpn_gateway_parameters: JSON + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.types.P2SVpnGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -98634,7 +104330,7 @@ def begin_create_or_update( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, JSON, IO[bytes]], + p2_s_vpn_gateway_parameters: Union[_models.P2SVpnGateway, _types.P2SVpnGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.P2SVpnGateway]: """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. @@ -98645,9 +104341,9 @@ def begin_create_or_update( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param p2_s_vpn_gateway_parameters: Parameters supplied to create or Update a virtual wan p2s - vpn gateway. Is one of the following types: P2SVpnGateway, JSON, IO[bytes] Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway or JSON or - IO[bytes] + vpn gateway. Is either a P2SVpnGateway type or a IO[bytes] type. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.P2SVpnGateway or + ~azure.mgmt.network.types.P2SVpnGateway or IO[bytes] :return: An instance of LROPoller that returns P2SVpnGateway. The P2SVpnGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.P2SVpnGateway] @@ -98656,7 +104352,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -98711,7 +104407,7 @@ def _update_tags_initial( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + p2_s_vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -98725,7 +104421,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -98819,7 +104515,7 @@ def begin_update_tags( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: JSON, + p2_s_vpn_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -98833,7 +104529,7 @@ def begin_update_tags( :type gateway_name: str :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway tags. Required. - :type p2_s_vpn_gateway_parameters: JSON + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -98877,7 +104573,7 @@ def begin_update_tags( self, resource_group_name: str, gateway_name: str, - p2_s_vpn_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + p2_s_vpn_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.P2SVpnGateway]: """Updates virtual wan p2s vpn gateway tags. @@ -98888,8 +104584,9 @@ def begin_update_tags( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param p2_s_vpn_gateway_parameters: Parameters supplied to update a virtual wan p2s vpn gateway - tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type p2_s_vpn_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: An instance of LROPoller that returns P2SVpnGateway. The P2SVpnGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.P2SVpnGateway] @@ -98898,7 +104595,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -98961,7 +104658,7 @@ def _delete_initial(self, resource_group_name: str, gateway_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_p2_svpn_gateways_delete_request( @@ -99025,7 +104722,7 @@ def begin_delete(self, resource_group_name: str, gateway_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -99082,7 +104779,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -99163,7 +104860,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.P2SVpnGateway"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.P2SVpnGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -99244,7 +104941,7 @@ def _reset_initial(self, resource_group_name: str, gateway_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_p2_svpn_gateways_reset_request( @@ -99311,7 +105008,7 @@ def begin_reset( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -99363,7 +105060,7 @@ def _generate_vpn_profile_initial( self, resource_group_name: str, gateway_name: str, - parameters: Union[_models.P2SVpnProfileParameters, JSON, IO[bytes]], + parameters: Union[_models.P2SVpnProfileParameters, _types.P2SVpnProfileParameters, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -99377,7 +105074,7 @@ def _generate_vpn_profile_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -99469,7 +105166,7 @@ def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - parameters: JSON, + parameters: _types.P2SVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -99483,7 +105180,7 @@ def begin_generate_vpn_profile( :type gateway_name: str :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.P2SVpnProfileParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -99527,7 +105224,7 @@ def begin_generate_vpn_profile( self, resource_group_name: str, gateway_name: str, - parameters: Union[_models.P2SVpnProfileParameters, JSON, IO[bytes]], + parameters: Union[_models.P2SVpnProfileParameters, _types.P2SVpnProfileParameters, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnProfileResponse]: """Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. @@ -99538,8 +105235,9 @@ def begin_generate_vpn_profile( :param gateway_name: The name of the gateway. Required. :type gateway_name: str :param parameters: Parameters supplied to the generate P2SVpnGateway VPN client package - operation. Is one of the following types: P2SVpnProfileParameters, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters or JSON or IO[bytes] + operation. Is either a P2SVpnProfileParameters type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.P2SVpnProfileParameters or + ~azure.mgmt.network.types.P2SVpnProfileParameters or IO[bytes] :return: An instance of LROPoller that returns VpnProfileResponse. The VpnProfileResponse is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnProfileResponse] @@ -99548,7 +105246,7 @@ def begin_generate_vpn_profile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnProfileResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -99613,7 +105311,7 @@ def _get_p2_s_vpn_connection_health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_p2_svpn_gateways_get_p2_s_vpn_connection_health_request( @@ -99681,7 +105379,7 @@ def begin_get_p2_s_vpn_connection_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.P2SVpnGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -99733,7 +105431,7 @@ def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=name-to self, resource_group_name: str, gateway_name: str, - request: Union[_models.P2SVpnConnectionHealthRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionHealthRequest, _types.P2SVpnConnectionHealthRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -99747,7 +105445,7 @@ def _get_p2_s_vpn_connection_health_detailed_initial( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -99840,7 +105538,7 @@ def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-l self, resource_group_name: str, gateway_name: str, - request: JSON, + request: _types.P2SVpnConnectionHealthRequest, *, content_type: str = "application/json", **kwargs: Any @@ -99855,7 +105553,7 @@ def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-l :type gateway_name: str :param request: Request parameters supplied to get p2s vpn connections detailed health. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.P2SVpnConnectionHealthRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -99900,7 +105598,7 @@ def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-l self, resource_group_name: str, gateway_name: str, - request: Union[_models.P2SVpnConnectionHealthRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionHealthRequest, _types.P2SVpnConnectionHealthRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.P2SVpnConnectionHealth]: """Gets the sas url to get the connection health detail of P2S clients of the virtual wan @@ -99911,9 +105609,10 @@ def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-l :type resource_group_name: str :param gateway_name: The name of the gateway. Required. :type gateway_name: str - :param request: Request parameters supplied to get p2s vpn connections detailed health. Is one - of the following types: P2SVpnConnectionHealthRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest or JSON or IO[bytes] + :param request: Request parameters supplied to get p2s vpn connections detailed health. Is + either a P2SVpnConnectionHealthRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionHealthRequest or + ~azure.mgmt.network.types.P2SVpnConnectionHealthRequest or IO[bytes] :return: An instance of LROPoller that returns P2SVpnConnectionHealth. The P2SVpnConnectionHealth is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.P2SVpnConnectionHealth] @@ -99922,7 +105621,7 @@ def begin_get_p2_s_vpn_connection_health_detailed( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.P2SVpnConnectionHealth] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -99977,7 +105676,7 @@ def _disconnect_p2_s_vpn_connections_initial( self, resource_group_name: str, p2_s_vpn_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -99991,7 +105690,7 @@ def _disconnect_p2_s_vpn_connections_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -100082,7 +105781,7 @@ def begin_disconnect_p2_s_vpn_connections( self, resource_group_name: str, p2_s_vpn_gateway_name: str, - request: JSON, + request: _types.P2SVpnConnectionRequest, *, content_type: str = "application/json", **kwargs: Any @@ -100096,7 +105795,7 @@ def begin_disconnect_p2_s_vpn_connections( :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. :type p2_s_vpn_gateway_name: str :param request: The parameters are supplied to disconnect p2s vpn connections. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.P2SVpnConnectionRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -100138,7 +105837,7 @@ def begin_disconnect_p2_s_vpn_connections( self, resource_group_name: str, p2_s_vpn_gateway_name: str, - request: Union[_models.P2SVpnConnectionRequest, JSON, IO[bytes]], + request: Union[_models.P2SVpnConnectionRequest, _types.P2SVpnConnectionRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource @@ -100149,9 +105848,10 @@ def begin_disconnect_p2_s_vpn_connections( :type resource_group_name: str :param p2_s_vpn_gateway_name: The name of the P2S Vpn Gateway. Required. :type p2_s_vpn_gateway_name: str - :param request: The parameters are supplied to disconnect p2s vpn connections. Is one of the - following types: P2SVpnConnectionRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or JSON or IO[bytes] + :param request: The parameters are supplied to disconnect p2s vpn connections. Is either a + P2SVpnConnectionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.P2SVpnConnectionRequest or + ~azure.mgmt.network.types.P2SVpnConnectionRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -100159,7 +105859,7 @@ def begin_disconnect_p2_s_vpn_connections( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -100206,7 +105906,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ExpressRouteGatewaysOperations: # pylint: disable=too-many-public-methods +class ExpressRouteGatewaysOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -100249,7 +105949,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) _request = build_express_route_gateways_get_request( @@ -100300,7 +106000,7 @@ def _create_or_update_initial( self, resource_group_name: str, express_route_gateway_name: str, - put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, JSON, IO[bytes]], + put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, _types.ExpressRouteGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -100314,7 +106014,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -100408,7 +106108,7 @@ def begin_create_or_update( self, resource_group_name: str, express_route_gateway_name: str, - put_express_route_gateway_parameters: JSON, + put_express_route_gateway_parameters: _types.ExpressRouteGateway, *, content_type: str = "application/json", **kwargs: Any @@ -100422,7 +106122,7 @@ def begin_create_or_update( :type express_route_gateway_name: str :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT operation. Required. - :type put_express_route_gateway_parameters: JSON + :type put_express_route_gateway_parameters: ~azure.mgmt.network.types.ExpressRouteGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -100466,7 +106166,7 @@ def begin_create_or_update( self, resource_group_name: str, express_route_gateway_name: str, - put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, JSON, IO[bytes]], + put_express_route_gateway_parameters: Union[_models.ExpressRouteGateway, _types.ExpressRouteGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRouteGateway]: """Creates or updates a ExpressRoute gateway in a specified resource group. @@ -100477,9 +106177,9 @@ def begin_create_or_update( :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. :type express_route_gateway_name: str :param put_express_route_gateway_parameters: Parameters required in an ExpressRoute gateway PUT - operation. Is one of the following types: ExpressRouteGateway, JSON, IO[bytes] Required. + operation. Is either a ExpressRouteGateway type or a IO[bytes] type. Required. :type put_express_route_gateway_parameters: ~azure.mgmt.network.models.ExpressRouteGateway or - JSON or IO[bytes] + ~azure.mgmt.network.types.ExpressRouteGateway or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteGateway. The ExpressRouteGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteGateway] @@ -100488,7 +106188,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -100543,7 +106243,7 @@ def _update_tags_initial( self, resource_group_name: str, express_route_gateway_name: str, - express_route_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -100557,7 +106257,7 @@ def _update_tags_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -100651,7 +106351,7 @@ def begin_update_tags( self, resource_group_name: str, express_route_gateway_name: str, - express_route_gateway_parameters: JSON, + express_route_gateway_parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -100665,7 +106365,7 @@ def begin_update_tags( :type express_route_gateway_name: str :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express route gateway tags. Required. - :type express_route_gateway_parameters: JSON + :type express_route_gateway_parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -100709,7 +106409,7 @@ def begin_update_tags( self, resource_group_name: str, express_route_gateway_name: str, - express_route_gateway_parameters: Union[_models.TagsObject, JSON, IO[bytes]], + express_route_gateway_parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ExpressRouteGateway]: """Updates express route gateway tags. @@ -100720,9 +106420,9 @@ def begin_update_tags( :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. :type express_route_gateway_name: str :param express_route_gateway_parameters: Parameters supplied to update a virtual wan express - route gateway tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required. - :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject or JSON or - IO[bytes] + route gateway tags. Is either a TagsObject type or a IO[bytes] type. Required. + :type express_route_gateway_parameters: ~azure.mgmt.network.models.TagsObject or + ~azure.mgmt.network.types.TagsObject or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteGateway. The ExpressRouteGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteGateway] @@ -100731,7 +106431,7 @@ def begin_update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -100796,7 +106496,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_delete_request( @@ -100861,7 +106561,7 @@ def begin_delete(self, resource_group_name: str, express_route_gateway_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -100926,7 +106626,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) _request = build_express_route_gateways_list_by_resource_group_request( @@ -100991,7 +106691,7 @@ def list_by_subscription(self, **kwargs: Any) -> _models.ExpressRouteGatewayList _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteGatewayList] = kwargs.pop("cls", None) _request = build_express_route_gateways_list_by_subscription_request( @@ -101049,7 +106749,7 @@ def list_by_subscription(self, **kwargs: Any) -> _models.ExpressRouteGatewayList "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_failover_all_tests_details_initial( self, @@ -101071,7 +106771,7 @@ def _get_failover_all_tests_details_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_get_failover_all_tests_details_request( @@ -101135,7 +106835,7 @@ def _get_failover_all_tests_details_initial( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_failover_all_tests_details( self, @@ -101167,7 +106867,7 @@ def begin_get_failover_all_tests_details( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteFailoverTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -101234,7 +106934,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_failover_single_test_details_initial( # pylint: disable=name-too-long self, @@ -101256,7 +106956,7 @@ def _get_failover_single_test_details_initial( # pylint: disable=name-too-long _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_get_failover_single_test_details_request( @@ -101320,7 +107020,7 @@ def _get_failover_single_test_details_initial( # pylint: disable=name-too-long "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_failover_single_test_details( self, @@ -101351,7 +107051,7 @@ def begin_get_failover_single_test_details( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteFailoverSingleTestDetails]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -101417,7 +107117,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _start_site_failover_test_initial( self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any @@ -101433,7 +107133,7 @@ def _start_site_failover_test_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_start_site_failover_test_request( @@ -101495,7 +107195,7 @@ def _start_site_failover_test_initial( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_start_site_failover_test( self, resource_group_name: str, express_route_gateway_name: str, *, peering_location: str, **kwargs: Any @@ -101516,7 +107216,7 @@ def begin_start_site_failover_test( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -101579,13 +107279,15 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _stop_site_failover_test_initial( self, resource_group_name: str, express_route_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -101599,7 +107301,7 @@ def _stop_site_failover_test_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -101690,7 +107392,7 @@ def begin_stop_site_failover_test( self, resource_group_name: str, express_route_gateway_name: str, - stop_parameters: JSON, + stop_parameters: _types.ExpressRouteFailoverStopApiParameters, *, content_type: str = "application/json", **kwargs: Any @@ -101704,7 +107406,7 @@ def begin_stop_site_failover_test( :type express_route_gateway_name: str :param stop_parameters: Parameters supplied to stop the failover simulation on the express route gateway. Required. - :type stop_parameters: JSON + :type stop_parameters: ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -101754,13 +107456,15 @@ def begin_stop_site_failover_test( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_stop_site_failover_test( self, resource_group_name: str, express_route_gateway_name: str, - stop_parameters: Union[_models.ExpressRouteFailoverStopApiParameters, JSON, IO[bytes]], + stop_parameters: Union[ + _models.ExpressRouteFailoverStopApiParameters, _types.ExpressRouteFailoverStopApiParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[str]: """Stops failover simulation on the ExpressRoute gateway for the specified peering location. @@ -101771,10 +107475,10 @@ def begin_stop_site_failover_test( :param express_route_gateway_name: The name of the ExpressRoute gateway. Required. :type express_route_gateway_name: str :param stop_parameters: Parameters supplied to stop the failover simulation on the express - route gateway. Is one of the following types: ExpressRouteFailoverStopApiParameters, JSON, - IO[bytes] Required. - :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or JSON - or IO[bytes] + route gateway. Is either a ExpressRouteFailoverStopApiParameters type or a IO[bytes] type. + Required. + :type stop_parameters: ~azure.mgmt.network.models.ExpressRouteFailoverStopApiParameters or + ~azure.mgmt.network.types.ExpressRouteFailoverStopApiParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -101782,7 +107486,7 @@ def begin_stop_site_failover_test( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -101847,7 +107551,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_routes_information_initial( self, @@ -101868,7 +107572,7 @@ def _get_routes_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_get_routes_information_request( @@ -101930,7 +107634,7 @@ def _get_routes_information_initial( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_routes_information( self, @@ -101958,7 +107662,7 @@ def begin_get_routes_information( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.GatewayRouteSetsInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102023,7 +107727,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def _get_resiliency_information_initial( self, @@ -102044,7 +107748,7 @@ def _get_resiliency_information_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_gateways_get_resiliency_information_request( @@ -102106,7 +107810,7 @@ def _get_resiliency_information_initial( "accept", ] }, - api_versions_list=["2025-07-01"], + api_versions_list=["2025-07-01", "2025-09-01"], ) def begin_get_resiliency_information( self, @@ -102134,7 +107838,7 @@ def begin_get_resiliency_information( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.GatewayResiliencyInformation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102188,7 +107892,7 @@ def get_long_running_output(pipeline_response): ) -class HubRouteTablesOperations: +class HubRouteTablesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -102234,7 +107938,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) _request = build_hub_route_tables_get_request( @@ -102287,7 +107991,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - route_table_parameters: Union[_models.HubRouteTable, JSON, IO[bytes]], + route_table_parameters: Union[_models.HubRouteTable, _types.HubRouteTable, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -102301,7 +108005,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -102400,7 +108104,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - route_table_parameters: JSON, + route_table_parameters: _types.HubRouteTable, *, content_type: str = "application/json", **kwargs: Any @@ -102416,7 +108120,7 @@ def begin_create_or_update( name can be used to access the resource. Required. :type route_table_name: str :param route_table_parameters: Parameters supplied to create or update RouteTable. Required. - :type route_table_parameters: JSON + :type route_table_parameters: ~azure.mgmt.network.types.HubRouteTable :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -102464,7 +108168,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - route_table_parameters: Union[_models.HubRouteTable, JSON, IO[bytes]], + route_table_parameters: Union[_models.HubRouteTable, _types.HubRouteTable, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.HubRouteTable]: """Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. @@ -102477,9 +108181,10 @@ def begin_create_or_update( :param route_table_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type route_table_name: str - :param route_table_parameters: Parameters supplied to create or update RouteTable. Is one of - the following types: HubRouteTable, JSON, IO[bytes] Required. - :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable or JSON or IO[bytes] + :param route_table_parameters: Parameters supplied to create or update RouteTable. Is either a + HubRouteTable type or a IO[bytes] type. Required. + :type route_table_parameters: ~azure.mgmt.network.models.HubRouteTable or + ~azure.mgmt.network.types.HubRouteTable or IO[bytes] :return: An instance of LROPoller that returns HubRouteTable. The HubRouteTable is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.HubRouteTable] @@ -102488,7 +108193,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HubRouteTable] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -102554,7 +108259,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_hub_route_tables_delete_request( @@ -102624,7 +108329,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -102686,7 +108391,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.HubRouteTable]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -102758,7 +108463,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ConnectionPoliciesOperations: +class ConnectionPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -102804,7 +108509,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) _request = build_connection_policies_get_request( @@ -102857,7 +108562,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, - resource: Union[_models.ConnectionPolicy, JSON, IO[bytes]], + resource: Union[_models.ConnectionPolicy, _types.ConnectionPolicy, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -102871,7 +108576,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -102970,7 +108675,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, - resource: JSON, + resource: _types.ConnectionPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -102986,7 +108691,7 @@ def begin_create_or_update( VirtualHub. This name can be used to access the resource. Required. :type connection_policy_name: str :param resource: Parameters supplied to create or update a ConnectionPolicy. Required. - :type resource: JSON + :type resource: ~azure.mgmt.network.types.ConnectionPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -103034,7 +108739,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_policy_name: str, - resource: Union[_models.ConnectionPolicy, JSON, IO[bytes]], + resource: Union[_models.ConnectionPolicy, _types.ConnectionPolicy, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ConnectionPolicy]: """Creates a ConnectionPolicy if it doesn't exist else updates the existing one. @@ -103047,9 +108752,10 @@ def begin_create_or_update( :param connection_policy_name: The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource. Required. :type connection_policy_name: str - :param resource: Parameters supplied to create or update a ConnectionPolicy. Is one of the - following types: ConnectionPolicy, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.network.models.ConnectionPolicy or JSON or IO[bytes] + :param resource: Parameters supplied to create or update a ConnectionPolicy. Is either a + ConnectionPolicy type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.ConnectionPolicy or + ~azure.mgmt.network.types.ConnectionPolicy or IO[bytes] :return: An instance of LROPoller that returns ConnectionPolicy. The ConnectionPolicy is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionPolicy] @@ -103058,7 +108764,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionPolicy] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -103124,7 +108830,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_connection_policies_delete_request( @@ -103194,7 +108900,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -103256,7 +108962,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectionPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -103328,7 +109034,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class WebApplicationFirewallPoliciesOperations: +class WebApplicationFirewallPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -103370,7 +109076,7 @@ def get(self, resource_group_name: str, policy_name: str, **kwargs: Any) -> _mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) _request = build_web_application_firewall_policies_get_request( @@ -103450,7 +109156,7 @@ def create_or_update( self, resource_group_name: str, policy_name: str, - parameters: JSON, + parameters: _types.WebApplicationFirewallPolicy, *, content_type: str = "application/json", **kwargs: Any @@ -103463,7 +109169,7 @@ def create_or_update( :param policy_name: The name of the policy. Required. :type policy_name: str :param parameters: Policy to be created. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.WebApplicationFirewallPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -103506,7 +109212,7 @@ def create_or_update( self, resource_group_name: str, policy_name: str, - parameters: Union[_models.WebApplicationFirewallPolicy, JSON, IO[bytes]], + parameters: Union[_models.WebApplicationFirewallPolicy, _types.WebApplicationFirewallPolicy, IO[bytes]], **kwargs: Any ) -> _models.WebApplicationFirewallPolicy: """Creates or update policy with specified rule set name within a resource group. @@ -103516,9 +109222,10 @@ def create_or_update( :type resource_group_name: str :param policy_name: The name of the policy. Required. :type policy_name: str - :param parameters: Policy to be created. Is one of the following types: - WebApplicationFirewallPolicy, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy or JSON or IO[bytes] + :param parameters: Policy to be created. Is either a WebApplicationFirewallPolicy type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.WebApplicationFirewallPolicy or + ~azure.mgmt.network.types.WebApplicationFirewallPolicy or IO[bytes] :return: WebApplicationFirewallPolicy. The WebApplicationFirewallPolicy is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.WebApplicationFirewallPolicy @@ -103535,7 +109242,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.WebApplicationFirewallPolicy] = kwargs.pop("cls", None) @@ -103604,7 +109311,7 @@ def _delete_initial(self, resource_group_name: str, policy_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_web_application_firewall_policies_delete_request( @@ -103668,7 +109375,7 @@ def begin_delete(self, resource_group_name: str, policy_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -103725,7 +109432,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.We _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -103806,7 +109513,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.WebApplicationFirewallPo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.WebApplicationFirewallPolicy]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -103876,7 +109583,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualNetworkAppliancesOperations: +class VirtualNetworkAppliancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -103919,7 +109626,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) _request = build_virtual_network_appliances_get_request( @@ -103970,7 +109677,7 @@ def _create_or_update_initial( self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: Union[_models.VirtualNetworkAppliance, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkAppliance, _types.VirtualNetworkAppliance, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -103984,7 +109691,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -104078,7 +109785,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: _types.VirtualNetworkAppliance, *, content_type: str = "application/json", **kwargs: Any @@ -104092,7 +109799,7 @@ def begin_create_or_update( :type virtual_network_appliance_name: str :param parameters: Parameters supplied to the create or update virtual network appliance operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VirtualNetworkAppliance :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -104136,7 +109843,7 @@ def begin_create_or_update( self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: Union[_models.VirtualNetworkAppliance, JSON, IO[bytes]], + parameters: Union[_models.VirtualNetworkAppliance, _types.VirtualNetworkAppliance, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VirtualNetworkAppliance]: """Creates or updates a virtual network appliance. @@ -104147,8 +109854,9 @@ def begin_create_or_update( :param virtual_network_appliance_name: The name of the virtual network appliance. Required. :type virtual_network_appliance_name: str :param parameters: Parameters supplied to the create or update virtual network appliance - operation. Is one of the following types: VirtualNetworkAppliance, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance or JSON or IO[bytes] + operation. Is either a VirtualNetworkAppliance type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.VirtualNetworkAppliance or + ~azure.mgmt.network.types.VirtualNetworkAppliance or IO[bytes] :return: An instance of LROPoller that returns VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualNetworkAppliance] @@ -104157,7 +109865,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -104240,7 +109948,7 @@ def update_tags( self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -104253,7 +109961,7 @@ def update_tags( :param virtual_network_appliance_name: The name of the virtual network appliance. Required. :type virtual_network_appliance_name: str :param parameters: Parameters supplied to update virtual network appliance tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -104294,7 +110002,7 @@ def update_tags( self, resource_group_name: str, virtual_network_appliance_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.VirtualNetworkAppliance: """Updates a virtual network appliance tags. @@ -104304,9 +110012,10 @@ def update_tags( :type resource_group_name: str :param virtual_network_appliance_name: The name of the virtual network appliance. Required. :type virtual_network_appliance_name: str - :param parameters: Parameters supplied to update virtual network appliance tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update virtual network appliance tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: VirtualNetworkAppliance. The VirtualNetworkAppliance is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.VirtualNetworkAppliance :raises ~azure.core.exceptions.HttpResponseError: @@ -104322,7 +110031,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkAppliance] = kwargs.pop("cls", None) @@ -104393,7 +110102,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_network_appliances_delete_request( @@ -104459,7 +110168,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -104516,7 +110225,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -104597,7 +110306,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.VirtualNetworkAppliance" _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualNetworkAppliance]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -104667,7 +110376,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ServiceGatewaysOperations: +class ServiceGatewaysOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -104708,7 +110417,7 @@ def get(self, resource_group_name: str, service_gateway_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) _request = build_service_gateways_get_request( @@ -104759,7 +110468,7 @@ def _create_or_update_initial( self, resource_group_name: str, service_gateway_name: str, - parameters: Union[_models.ServiceGateway, JSON, IO[bytes]], + parameters: Union[_models.ServiceGateway, _types.ServiceGateway, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -104773,7 +110482,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -104867,7 +110576,7 @@ def begin_create_or_update( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: _types.ServiceGateway, *, content_type: str = "application/json", **kwargs: Any @@ -104881,7 +110590,7 @@ def begin_create_or_update( :type service_gateway_name: str :param parameters: Parameters supplied to the create or update service gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ServiceGateway :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -104925,7 +110634,7 @@ def begin_create_or_update( self, resource_group_name: str, service_gateway_name: str, - parameters: Union[_models.ServiceGateway, JSON, IO[bytes]], + parameters: Union[_models.ServiceGateway, _types.ServiceGateway, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.ServiceGateway]: """Creates or updates a service gateway. @@ -104936,8 +110645,9 @@ def begin_create_or_update( :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str :param parameters: Parameters supplied to the create or update service gateway operation. Is - one of the following types: ServiceGateway, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ServiceGateway or JSON or IO[bytes] + either a ServiceGateway type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceGateway or + ~azure.mgmt.network.types.ServiceGateway or IO[bytes] :return: An instance of LROPoller that returns ServiceGateway. The ServiceGateway is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ServiceGateway] @@ -104946,7 +110656,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -105029,7 +110739,7 @@ def update_tags( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -105042,7 +110752,7 @@ def update_tags( :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str :param parameters: Parameters supplied to update service gateway tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -105083,7 +110793,7 @@ def update_tags( self, resource_group_name: str, service_gateway_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ServiceGateway: """Updates a service gateway tags. @@ -105093,9 +110803,10 @@ def update_tags( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to update service gateway tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update service gateway tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ServiceGateway. The ServiceGateway is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ServiceGateway :raises ~azure.core.exceptions.HttpResponseError: @@ -105111,7 +110822,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ServiceGateway] = kwargs.pop("cls", None) @@ -105180,7 +110891,7 @@ def _delete_initial(self, resource_group_name: str, service_gateway_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_service_gateways_delete_request( @@ -105244,7 +110955,7 @@ def begin_delete(self, resource_group_name: str, service_gateway_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -105301,7 +111012,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Se _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105382,7 +111093,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.ServiceGateway"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceGateway]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -105451,84 +111162,8 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - def _update_address_locations_initial( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateAddressLocationsRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - - _request = build_service_gateways_update_address_locations_request( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - @overload - def begin_update_address_locations( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, @@ -105536,7 +111171,7 @@ def begin_update_address_locations( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates or updates address locations within the service gateway. The request supports both full and partial update modes at two levels: location and address. @@ -105556,27 +111191,28 @@ def begin_update_address_locations( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. + :param parameters: Parameters supplied to create or update address locations in service gateway + operation. Required. :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update_address_locations( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: _types.ServiceGatewayUpdateAddressLocationsRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates or updates address locations within the service gateway. The request supports both full and partial update modes at two levels: location and address. @@ -105596,19 +111232,20 @@ def begin_update_address_locations( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. - :type parameters: JSON + :param parameters: Parameters supplied to create or update address locations in service gateway + operation. Required. + :type parameters: ~azure.mgmt.network.types.ServiceGatewayUpdateAddressLocationsRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update_address_locations( + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, @@ -105616,7 +111253,7 @@ def begin_update_address_locations( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates or updates address locations within the service gateway. The request supports both full and partial update modes at two levels: location and address. @@ -105636,25 +111273,44 @@ def begin_update_address_locations( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Required. + :param parameters: Parameters supplied to create or update address locations in service gateway + operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_update_address_locations( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "service_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def update_address_locations( self, resource_group_name: str, service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateAddressLocationsRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ServiceGatewayUpdateAddressLocationsRequest, + _types.ServiceGatewayUpdateAddressLocationsRequest, + IO[bytes], + ], **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates or updates address locations within the service gateway. The request supports both full and partial update modes at two levels: location and address. @@ -105674,71 +111330,16 @@ def begin_update_address_locations( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates address locations in service - gateway operation. Is one of the following types: ServiceGatewayUpdateAddressLocationsRequest, - JSON, IO[bytes] Required. + :param parameters: Parameters supplied to create or update address locations in service gateway + operation. Is either a ServiceGatewayUpdateAddressLocationsRequest type or a IO[bytes] type. + Required. :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest or - JSON or IO[bytes] - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + ~azure.mgmt.network.types.ServiceGatewayUpdateAddressLocationsRequest or IO[bytes] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_address_locations_initial( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_services_initial( - self, - resource_group_name: str, - service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateServicesRequest, JSON, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -105750,9 +111351,9 @@ def _update_services_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + cls: ClsType[_models.ServiceGatewayActionOkResponseBody] = kwargs.pop("cls", None) content_type = content_type or "application/json" _content = None @@ -105761,7 +111362,7 @@ def _update_services_initial( else: _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - _request = build_service_gateways_update_services_request( + _request = build_service_gateways_update_address_locations_request( resource_group_name=resource_group_name, service_gateway_name=service_gateway_name, subscription_id=self._config.subscription_id, @@ -105777,18 +111378,19 @@ def _update_services_initial( _request.url = self._client.format_url(_request.url, **path_format_arguments) _decompress = kwargs.pop("decompress", True) - _stream = True + _stream = kwargs.pop("stream", False) pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access _request, stream=_stream, **kwargs ) response = pipeline_response.http_response - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass map_error(status_code=response.status_code, response=response, error_map=error_map) error = _failsafe_deserialize( _models.CloudError, @@ -105796,20 +111398,18 @@ def _update_services_initial( ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ServiceGatewayActionOkResponseBody, response.json()) if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore @overload - def begin_update_services( + def update_services( self, resource_group_name: str, service_gateway_name: str, @@ -105817,7 +111417,7 @@ def begin_update_services( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates, updates, or deletes services within the service gateway. The request supports both full and partial update modes at the service level. @@ -105829,27 +111429,28 @@ def begin_update_services( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway + :param parameters: Parameters supplied to create or update services in service gateway operation. Required. :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update_services( + def update_services( self, resource_group_name: str, service_gateway_name: str, - parameters: JSON, + parameters: _types.ServiceGatewayUpdateServicesRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates, updates, or deletes services within the service gateway. The request supports both full and partial update modes at the service level. @@ -105861,19 +111462,20 @@ def begin_update_services( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway + :param parameters: Parameters supplied to create or update services in service gateway operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ServiceGatewayUpdateServicesRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_update_services( + def update_services( self, resource_group_name: str, service_gateway_name: str, @@ -105881,7 +111483,7 @@ def begin_update_services( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates, updates, or deletes services within the service gateway. The request supports both full and partial update modes at the service level. @@ -105893,25 +111495,42 @@ def begin_update_services( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway + :param parameters: Parameters supplied to create or update services in service gateway operation. Required. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_update_services( + @api_version_validation( + method_added_on="2025-09-01", + params_added_on={ + "2025-09-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "service_gateway_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-09-01"], + ) + def update_services( self, resource_group_name: str, service_gateway_name: str, - parameters: Union[_models.ServiceGatewayUpdateServicesRequest, JSON, IO[bytes]], + parameters: Union[ + _models.ServiceGatewayUpdateServicesRequest, _types.ServiceGatewayUpdateServicesRequest, IO[bytes] + ], **kwargs: Any - ) -> LROPoller[None]: + ) -> _models.ServiceGatewayActionOkResponseBody: """Creates, updates, or deletes services within the service gateway. The request supports both full and partial update modes at the service level. @@ -105923,63 +111542,82 @@ def begin_update_services( :type resource_group_name: str :param service_gateway_name: The name of the service gateway. Required. :type service_gateway_name: str - :param parameters: Parameters supplied to the create or updates services in service gateway - operation. Is one of the following types: ServiceGatewayUpdateServicesRequest, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest or JSON or - IO[bytes] - :return: An instance of LROPoller that returns None - :rtype: ~azure.core.polling.LROPoller[None] + :param parameters: Parameters supplied to create or update services in service gateway + operation. Is either a ServiceGatewayUpdateServicesRequest type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest or + ~azure.mgmt.network.types.ServiceGatewayUpdateServicesRequest or IO[bytes] + :return: ServiceGatewayActionOkResponseBody. The ServiceGatewayActionOkResponseBody is + compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.ServiceGatewayActionOkResponseBody :raises ~azure.core.exceptions.HttpResponseError: """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_services_initial( - resource_group_name=resource_group_name, - service_gateway_name=service_gateway_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) + cls: ClsType[_models.ServiceGatewayActionOkResponseBody] = kwargs.pop("cls", None) - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + _request = build_service_gateways_update_services_request( + resource_group_name=resource_group_name, + service_gateway_name=service_gateway_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) path_format_arguments = { "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), } + _request.url = self._client.format_url(_request.url, **path_format_arguments) - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + deserialized = _deserialize(_models.ServiceGatewayActionOkResponseBody, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore @distributed_trace def get_address_locations( @@ -106000,7 +111638,7 @@ def get_address_locations( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceGatewayAddressLocationResponse]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106089,7 +111727,7 @@ def get_services( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceGatewayService]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106161,7 +111799,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class InterconnectGroupsOperations: +class InterconnectGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106202,7 +111840,7 @@ def get(self, resource_group_name: str, interconnect_group_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) _request = build_interconnect_groups_get_request( @@ -106282,7 +111920,7 @@ def create_or_update( self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: _types.InterconnectGroup, *, content_type: str = "application/json", **kwargs: Any @@ -106296,7 +111934,7 @@ def create_or_update( :type interconnect_group_name: str :param parameters: Parameters supplied to the create or update interconnect group operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.InterconnectGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -106338,7 +111976,7 @@ def create_or_update( self, resource_group_name: str, interconnect_group_name: str, - parameters: Union[_models.InterconnectGroup, JSON, IO[bytes]], + parameters: Union[_models.InterconnectGroup, _types.InterconnectGroup, IO[bytes]], **kwargs: Any ) -> _models.InterconnectGroup: """Creates or updates an interconnect group. @@ -106349,8 +111987,9 @@ def create_or_update( :param interconnect_group_name: The name of the interconnect group. Required. :type interconnect_group_name: str :param parameters: Parameters supplied to the create or update interconnect group operation. Is - one of the following types: InterconnectGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.InterconnectGroup or JSON or IO[bytes] + either a InterconnectGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.InterconnectGroup or + ~azure.mgmt.network.types.InterconnectGroup or IO[bytes] :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -106366,7 +112005,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) @@ -106455,7 +112094,7 @@ def update_tags( self, resource_group_name: str, interconnect_group_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -106468,7 +112107,7 @@ def update_tags( :param interconnect_group_name: The name of the interconnect group. Required. :type interconnect_group_name: str :param parameters: Parameters supplied to update interconnect group tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -106509,7 +112148,7 @@ def update_tags( self, resource_group_name: str, interconnect_group_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.InterconnectGroup: """Updates interconnect group tags. @@ -106519,9 +112158,10 @@ def update_tags( :type resource_group_name: str :param interconnect_group_name: The name of the interconnect group. Required. :type interconnect_group_name: str - :param parameters: Parameters supplied to update interconnect group tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update interconnect group tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: InterconnectGroup. The InterconnectGroup is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.InterconnectGroup :raises ~azure.core.exceptions.HttpResponseError: @@ -106537,7 +112177,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InterconnectGroup] = kwargs.pop("cls", None) @@ -106620,7 +112260,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_interconnect_groups_delete_request( @@ -106668,7 +112308,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.In _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106749,7 +112389,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.InterconnectGroup"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.InterconnectGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -106832,7 +112472,7 @@ def _get_node_availability_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_interconnect_groups_get_node_availability_request( @@ -106900,7 +112540,7 @@ def begin_get_node_availability( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.InterconnectGroupNodeAvailability] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -106949,7 +112589,7 @@ def get_long_running_output(pipeline_response): ) -class SubgroupsOperations: +class SubgroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -106994,7 +112634,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Subgroup] = kwargs.pop("cls", None) _request = build_subgroups_get_request( @@ -107035,33 +112675,1472 @@ def get( if _stream: deserialized = response.iter_bytes() if _decompress else response.iter_raw() else: - deserialized = _deserialize(_models.Subgroup, response.json()) + deserialized = _deserialize(_models.Subgroup, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list( + self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.Subgroup"]: + """Gets all subgroups in an interconnect group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param interconnect_group_name: The name of the interconnect group. Required. + :type interconnect_group_name: str + :return: An iterator like instance of Subgroup + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.Subgroup] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.Subgroup]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_subgroups_list_request( + resource_group_name=resource_group_name, + interconnect_group_name=interconnect_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Subgroup], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class FirstPartyServiceTagsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.NetworkManagementClient`'s + :attr:`first_party_service_tags` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> _models.FirstPartyServiceTag: + """Gets the specified first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :return: FirstPartyServiceTag. The FirstPartyServiceTag is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.FirstPartyServiceTag + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) + + _request = build_first_party_service_tags_get_request( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.FirstPartyServiceTag, _types.FirstPartyServiceTag, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_first_party_service_tags_create_or_update_request( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: _models.FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. + :type parameters: ~azure.mgmt.network.models.FirstPartyServiceTag + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: _types.FirstPartyServiceTag, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. + :type parameters: ~azure.mgmt.network.types.FirstPartyServiceTag + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.FirstPartyServiceTag, _types.FirstPartyServiceTag, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Creates or updates a first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to the create or update first party service tag + operation. Is either a FirstPartyServiceTag type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.FirstPartyServiceTag or + ~azure.mgmt.network.types.FirstPartyServiceTag or IO[bytes] + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.FirstPartyServiceTag].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.FirstPartyServiceTag]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_tags_initial( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_first_party_service_tags_update_tags_request( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: _models.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: _types.TagsObject, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. + :type parameters: ~azure.mgmt.network.types.TagsObject + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update_tags( + self, + resource_group_name: str, + first_party_service_tag_name: str, + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.FirstPartyServiceTag]: + """Updates a first party service tag tags. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :param parameters: Parameters supplied to update first party service tag tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] + :return: An instance of LROPoller that returns FirstPartyServiceTag. The FirstPartyServiceTag + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FirstPartyServiceTag] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.FirstPartyServiceTag, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.FirstPartyServiceTag].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.FirstPartyServiceTag]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_first_party_service_tags_delete_request( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, resource_group_name: str, first_party_service_tag_name: str, **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified first party service tag. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param first_party_service_tag_name: The name of the first party service tag. Required. + :type first_party_service_tag_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + first_party_service_tag_name=first_party_service_tag_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.FirstPartyServiceTag"]: + """Gets all the first party service tags in a resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of FirstPartyServiceTag + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirstPartyServiceTag]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_first_party_service_tags_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirstPartyServiceTag], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_all(self, **kwargs: Any) -> ItemPaged["_models.FirstPartyServiceTag"]: + """Gets all the first party service tags in a subscription. + + :return: An iterator like instance of FirstPartyServiceTag + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.FirstPartyServiceTag] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.FirstPartyServiceTag]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_first_party_service_tags_list_all_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + _request = HttpRequest("GET", next_link, headers=_headers) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.FirstPartyServiceTag], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class AddressPrefixSetsOperations: # pylint: disable=docstring-missing-param + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.network.NetworkManagementClient`'s + :attr:`address_prefix_sets` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: NetworkManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> _models.AddressPrefixSet: + """Gets the specified address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :return: AddressPrefixSet. The AddressPrefixSet is compatible with MutableMapping + :rtype: ~azure.mgmt.network.models.AddressPrefixSet + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[_models.AddressPrefixSet] = kwargs.pop("cls", None) + + _request = build_address_prefix_sets_get_request( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AddressPrefixSet, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + def _create_or_update_initial( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: Union[_models.AddressPrefixSet, _types.AddressPrefixSet, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(resource, (IOBase, bytes)): + _content = resource + else: + _content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_address_prefix_sets_create_or_update_request( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: _models.AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: ~azure.mgmt.network.models.AddressPrefixSet + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: _types.AddressPrefixSet, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: ~azure.mgmt.network.types.AddressPrefixSet + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. + Required. + :type resource: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + resource: Union[_models.AddressPrefixSet, _types.AddressPrefixSet, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.AddressPrefixSet]: + """Creates or updates an address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :param resource: Parameters supplied to the create or update address prefix set operation. Is + either a AddressPrefixSet type or a IO[bytes] type. Required. + :type resource: ~azure.mgmt.network.models.AddressPrefixSet or + ~azure.mgmt.network.types.AddressPrefixSet or IO[bytes] + :return: An instance of LROPoller that returns AddressPrefixSet. The AddressPrefixSet is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.AddressPrefixSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.AddressPrefixSet] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + resource=resource, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.AddressPrefixSet, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.AddressPrefixSet].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.AddressPrefixSet]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_address_prefix_sets_delete_request( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + application_security_group_name: str, + address_prefix_set_name: str, + **kwargs: Any + ) -> LROPoller[None]: + """Deletes the specified address prefix set. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :param address_prefix_set_name: The name of the address prefix set. Required. + :type address_prefix_set_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + address_prefix_set_name=address_prefix_set_name, + api_version=api_version, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @distributed_trace def list( - self, resource_group_name: str, interconnect_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.Subgroup"]: - """Gets all subgroups in an interconnect group. + self, resource_group_name: str, application_security_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.AddressPrefixSet"]: + """Gets all address prefix sets in an application security group. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. :type resource_group_name: str - :param interconnect_group_name: The name of the interconnect group. Required. - :type interconnect_group_name: str - :return: An iterator like instance of Subgroup - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.Subgroup] + :param application_security_group_name: The name of the application security group. Required. + :type application_security_group_name: str + :return: An iterator like instance of AddressPrefixSet + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.AddressPrefixSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - cls: ClsType[List[_models.Subgroup]] = kwargs.pop("cls", None) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + cls: ClsType[List[_models.AddressPrefixSet]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -107074,9 +114153,9 @@ def list( def prepare_request(next_link=None): if not next_link: - _request = build_subgroups_list_request( + _request = build_address_prefix_sets_list_request( resource_group_name=resource_group_name, - interconnect_group_name=interconnect_group_name, + application_security_group_name=application_security_group_name, subscription_id=self._config.subscription_id, api_version=api_version, headers=_headers, @@ -107103,7 +114182,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() list_of_elem = _deserialize( - List[_models.Subgroup], + List[_models.AddressPrefixSet], deserialized.get("value", []), ) if cls: @@ -107132,7 +114211,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ApplicationGatewayPrivateLinkResourcesOperations: # pylint: disable=name-too-long +class ApplicationGatewayPrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -107168,7 +114247,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayPrivateLinkResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -107240,7 +114319,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ApplicationGatewayWafDynamicManifestsDefaultOperations: # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestsDefaultOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -107279,7 +114358,7 @@ def get(self, location: str, **kwargs: Any) -> _models.ApplicationGatewayWafDyna _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ApplicationGatewayWafDynamicManifestResult] = kwargs.pop("cls", None) _request = build_application_gateway_waf_dynamic_manifests_default_get_request( @@ -107326,7 +114405,7 @@ def get(self, location: str, **kwargs: Any) -> _models.ApplicationGatewayWafDyna return deserialized # type: ignore -class ApplicationGatewayWafDynamicManifestsOperations: # pylint: disable=name-too-long +class ApplicationGatewayWafDynamicManifestsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -107357,7 +114436,7 @@ def get(self, location: str, **kwargs: Any) -> ItemPaged["_models.ApplicationGat _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ApplicationGatewayWafDynamicManifestResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -107428,7 +114507,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class WebCategoriesOperations: +class WebCategoriesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -107469,7 +114548,7 @@ def get(self, name: str, *, expand: Optional[str] = None, **kwargs: Any) -> _mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.AzureWebCategory] = kwargs.pop("cls", None) _request = build_web_categories_get_request( @@ -107527,7 +114606,7 @@ def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.AzureWebCate _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureWebCategory]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -107597,7 +114676,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteProviderPortsLocationOperations: # pylint: disable=name-too-long +class ExpressRouteProviderPortsLocationOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -107637,7 +114716,7 @@ def list(self, *, filter: Optional[str] = None, **kwargs: Any) -> _models.Expres _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteProviderPortListResult] = kwargs.pop("cls", None) _request = build_express_route_provider_ports_location_list_request( @@ -107684,7 +114763,7 @@ def list(self, *, filter: Optional[str] = None, **kwargs: Any) -> _models.Expres return deserialized # type: ignore -class NetworkInterfaceLoadBalancersOperations: +class NetworkInterfaceLoadBalancersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -107719,7 +114798,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancer]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -107791,7 +114870,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VipSwapOperations: +class VipSwapOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -107832,7 +114911,7 @@ def get(self, group_name: str, resource_name: str, **kwargs: Any) -> _models.Swa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") cls: ClsType[_models.SwapResource] = kwargs.pop("cls", None) @@ -107885,7 +114964,7 @@ def _create_initial( self, group_name: str, resource_name: str, - parameters: Union[_models.SwapResource, JSON, IO[bytes]], + parameters: Union[_models.SwapResource, _types.SwapResource, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -107899,7 +114978,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -107991,7 +115070,7 @@ def begin_create( self, group_name: str, resource_name: str, - parameters: JSON, + parameters: _types.SwapResource, *, content_type: str = "application/json", **kwargs: Any @@ -108004,7 +115083,7 @@ def begin_create( :type resource_name: str :param parameters: SwapResource object where slot type should be the target slot after vip swap for the specified cloud service. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SwapResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -108045,7 +115124,7 @@ def begin_create( self, group_name: str, resource_name: str, - parameters: Union[_models.SwapResource, JSON, IO[bytes]], + parameters: Union[_models.SwapResource, _types.SwapResource, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Performs vip swap operation on swappable cloud services. @@ -108055,9 +115134,9 @@ def begin_create( :param resource_name: The name of the cloud service. Required. :type resource_name: str :param parameters: SwapResource object where slot type should be the target slot after vip swap - for the specified cloud service. Is one of the following types: SwapResource, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.SwapResource or JSON or IO[bytes] + for the specified cloud service. Is either a SwapResource type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.SwapResource or + ~azure.mgmt.network.types.SwapResource or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -108065,7 +115144,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) singleton_resource: Literal["swap"] = kwargs.pop("singleton_resource", "swap") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -108137,7 +115216,7 @@ def list(self, group_name: str, resource_name: str, **kwargs: Any) -> _models.Sw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.SwapResourceListResult] = kwargs.pop("cls", None) _request = build_vip_swap_list_request( @@ -108185,7 +115264,7 @@ def list(self, group_name: str, resource_name: str, **kwargs: Any) -> _models.Sw return deserialized # type: ignore -class CustomIPPrefixesOperations: +class CustomIPPrefixesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -108230,7 +115309,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) _request = build_custom_ip_prefixes_get_request( @@ -108282,7 +115361,7 @@ def _create_or_update_initial( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.CustomIpPrefix, JSON, IO[bytes]], + parameters: Union[_models.CustomIpPrefix, _types.CustomIpPrefix, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -108296,7 +115375,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -108388,7 +115467,7 @@ def begin_create_or_update( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: _types.CustomIpPrefix, *, content_type: str = "application/json", **kwargs: Any @@ -108402,7 +115481,7 @@ def begin_create_or_update( :type custom_ip_prefix_name: str :param parameters: Parameters supplied to the create or update custom IP prefix operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.CustomIpPrefix :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -108446,7 +115525,7 @@ def begin_create_or_update( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.CustomIpPrefix, JSON, IO[bytes]], + parameters: Union[_models.CustomIpPrefix, _types.CustomIpPrefix, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CustomIpPrefix]: """Creates or updates a custom IP prefix. @@ -108457,8 +115536,9 @@ def begin_create_or_update( :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str :param parameters: Parameters supplied to the create or update custom IP prefix operation. Is - one of the following types: CustomIpPrefix, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.CustomIpPrefix or JSON or IO[bytes] + either a CustomIpPrefix type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.CustomIpPrefix or + ~azure.mgmt.network.types.CustomIpPrefix or IO[bytes] :return: An instance of LROPoller that returns CustomIpPrefix. The CustomIpPrefix is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.CustomIpPrefix] @@ -108467,7 +115547,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -108550,7 +115630,7 @@ def update_tags( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -108563,7 +115643,7 @@ def update_tags( :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str :param parameters: Parameters supplied to update custom IP prefix tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -108604,7 +115684,7 @@ def update_tags( self, resource_group_name: str, custom_ip_prefix_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.CustomIpPrefix: """Updates custom IP prefix tags. @@ -108614,9 +115694,10 @@ def update_tags( :type resource_group_name: str :param custom_ip_prefix_name: The name of the custom IP prefix. Required. :type custom_ip_prefix_name: str - :param parameters: Parameters supplied to update custom IP prefix tags. Is one of the following - types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update custom IP prefix tags. Is either a TagsObject + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: CustomIpPrefix. The CustomIpPrefix is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.CustomIpPrefix :raises ~azure.core.exceptions.HttpResponseError: @@ -108632,7 +115713,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CustomIpPrefix] = kwargs.pop("cls", None) @@ -108701,7 +115782,7 @@ def _delete_initial(self, resource_group_name: str, custom_ip_prefix_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_custom_ip_prefixes_delete_request( @@ -108765,7 +115846,7 @@ def begin_delete(self, resource_group_name: str, custom_ip_prefix_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -108822,7 +115903,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Cu _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.CustomIpPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -108903,7 +115984,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.CustomIpPrefix"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.CustomIpPrefix]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -108973,7 +116054,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DscpConfigurationOperations: +class DscpConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -109014,7 +116095,7 @@ def get(self, resource_group_name: str, dscp_configuration_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DscpConfiguration] = kwargs.pop("cls", None) _request = build_dscp_configuration_get_request( @@ -109065,7 +116146,7 @@ def _create_or_update_initial( self, resource_group_name: str, dscp_configuration_name: str, - parameters: Union[_models.DscpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.DscpConfiguration, _types.DscpConfiguration, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -109079,7 +116160,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -109171,7 +116252,7 @@ def begin_create_or_update( self, resource_group_name: str, dscp_configuration_name: str, - parameters: JSON, + parameters: _types.DscpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -109185,7 +116266,7 @@ def begin_create_or_update( :type dscp_configuration_name: str :param parameters: Parameters supplied to the create or update DscpConfiguration operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.DscpConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -109229,7 +116310,7 @@ def begin_create_or_update( self, resource_group_name: str, dscp_configuration_name: str, - parameters: Union[_models.DscpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.DscpConfiguration, _types.DscpConfiguration, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DscpConfiguration]: """Creates or updates a DSCP Configuration. @@ -109240,8 +116321,9 @@ def begin_create_or_update( :param dscp_configuration_name: The name of the resource. Required. :type dscp_configuration_name: str :param parameters: Parameters supplied to the create or update DscpConfiguration operation. Is - one of the following types: DscpConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.DscpConfiguration or JSON or IO[bytes] + either a DscpConfiguration type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.DscpConfiguration or + ~azure.mgmt.network.types.DscpConfiguration or IO[bytes] :return: An instance of LROPoller that returns DscpConfiguration. The DscpConfiguration is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.DscpConfiguration] @@ -109250,7 +116332,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DscpConfiguration] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -109313,7 +116395,7 @@ def _delete_initial(self, resource_group_name: str, dscp_configuration_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dscp_configuration_delete_request( @@ -109377,7 +116459,7 @@ def begin_delete(self, resource_group_name: str, dscp_configuration_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -109434,7 +116516,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.Ds _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DscpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -109515,7 +116597,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.DscpConfiguration"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.DscpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -109585,7 +116667,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteCrossConnectionPeeringsOperations: # pylint: disable=name-too-long +class ExpressRouteCrossConnectionPeeringsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -109622,7 +116704,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteCrossConnectionPeering]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -109707,7 +116789,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_cross_connection_peerings_delete_request( @@ -109776,7 +116858,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -109849,7 +116931,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteCrossConnectionPeering] = kwargs.pop("cls", None) _request = build_express_route_cross_connection_peerings_get_request( @@ -109902,7 +116984,9 @@ def _create_or_update_initial( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCrossConnectionPeering, JSON, IO[bytes]], + peering_parameters: Union[ + _models.ExpressRouteCrossConnectionPeering, _types.ExpressRouteCrossConnectionPeering, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -109916,7 +117000,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -110016,7 +117100,7 @@ def begin_create_or_update( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: JSON, + peering_parameters: _types.ExpressRouteCrossConnectionPeering, *, content_type: str = "application/json", **kwargs: Any @@ -110032,7 +117116,7 @@ def begin_create_or_update( :type peering_name: str :param peering_parameters: Parameters supplied to the create or update ExpressRouteCrossConnection peering operation. Required. - :type peering_parameters: JSON + :type peering_parameters: ~azure.mgmt.network.types.ExpressRouteCrossConnectionPeering :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -110082,7 +117166,9 @@ def begin_create_or_update( resource_group_name: str, cross_connection_name: str, peering_name: str, - peering_parameters: Union[_models.ExpressRouteCrossConnectionPeering, JSON, IO[bytes]], + peering_parameters: Union[ + _models.ExpressRouteCrossConnectionPeering, _types.ExpressRouteCrossConnectionPeering, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ExpressRouteCrossConnectionPeering]: """Creates or updates a peering in the specified ExpressRouteCrossConnection. @@ -110095,10 +117181,10 @@ def begin_create_or_update( :param peering_name: The name of the peering. Required. :type peering_name: str :param peering_parameters: Parameters supplied to the create or update - ExpressRouteCrossConnection peering operation. Is one of the following types: - ExpressRouteCrossConnectionPeering, JSON, IO[bytes] Required. - :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnectionPeering or JSON - or IO[bytes] + ExpressRouteCrossConnection peering operation. Is either a ExpressRouteCrossConnectionPeering + type or a IO[bytes] type. Required. + :type peering_parameters: ~azure.mgmt.network.models.ExpressRouteCrossConnectionPeering or + ~azure.mgmt.network.types.ExpressRouteCrossConnectionPeering or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteCrossConnectionPeering. The ExpressRouteCrossConnectionPeering is compatible with MutableMapping :rtype: @@ -110108,7 +117194,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteCrossConnectionPeering] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -110161,7 +117247,7 @@ def get_long_running_output(pipeline_response): ) -class ExpressRouteLinksOperations: +class ExpressRouteLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -110206,7 +117292,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteLink] = kwargs.pop("cls", None) _request = build_express_route_links_get_request( @@ -110272,7 +117358,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteLink]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -110344,7 +117430,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class FirewallPolicyIdpsSignaturesOperations: +class FirewallPolicyIdpsSignaturesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -110394,7 +117480,7 @@ def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.IDPSQueryObject, *, content_type: str = "application/json", **kwargs: Any @@ -110408,7 +117494,7 @@ def list( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.IDPSQueryObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -110450,7 +117536,7 @@ def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.IDPSQueryObject, JSON, IO[bytes]], + parameters: Union[_models.IDPSQueryObject, _types.IDPSQueryObject, IO[bytes]], **kwargs: Any ) -> _models.QueryResults: """Retrieves the current status of IDPS signatures for the relevant policy. Maximal amount of @@ -110461,8 +117547,9 @@ def list( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Is one of the following types: IDPSQueryObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.IDPSQueryObject or JSON or IO[bytes] + :param parameters: Is either a IDPSQueryObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.IDPSQueryObject or + ~azure.mgmt.network.types.IDPSQueryObject or IO[bytes] :return: QueryResults. The QueryResults is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.QueryResults :raises ~azure.core.exceptions.HttpResponseError: @@ -110478,7 +117565,7 @@ def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.QueryResults] = kwargs.pop("cls", None) @@ -110536,7 +117623,7 @@ def list( return deserialized # type: ignore -class FirewallPolicyIdpsSignaturesFilterValuesOperations: # pylint: disable=name-too-long +class FirewallPolicyIdpsSignaturesFilterValuesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -110586,7 +117673,7 @@ def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: JSON, + parameters: _types.SignatureOverridesFilterValuesQuery, *, content_type: str = "application/json", **kwargs: Any @@ -110599,7 +117686,7 @@ def list( :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str :param parameters: Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.SignatureOverridesFilterValuesQuery :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -110642,7 +117729,9 @@ def list( self, resource_group_name: str, firewall_policy_name: str, - parameters: Union[_models.SignatureOverridesFilterValuesQuery, JSON, IO[bytes]], + parameters: Union[ + _models.SignatureOverridesFilterValuesQuery, _types.SignatureOverridesFilterValuesQuery, IO[bytes] + ], **kwargs: Any ) -> _models.SignatureOverridesFilterValuesResponse: """Retrieves the current filter values for the signatures overrides. @@ -110652,10 +117741,10 @@ def list( :type resource_group_name: str :param firewall_policy_name: The name of the Firewall Policy. Required. :type firewall_policy_name: str - :param parameters: Is one of the following types: SignatureOverridesFilterValuesQuery, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.SignatureOverridesFilterValuesQuery or JSON or - IO[bytes] + :param parameters: Is either a SignatureOverridesFilterValuesQuery type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.SignatureOverridesFilterValuesQuery or + ~azure.mgmt.network.types.SignatureOverridesFilterValuesQuery or IO[bytes] :return: SignatureOverridesFilterValuesResponse. The SignatureOverridesFilterValuesResponse is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.SignatureOverridesFilterValuesResponse @@ -110672,7 +117761,7 @@ def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SignatureOverridesFilterValuesResponse] = kwargs.pop("cls", None) @@ -110730,7 +117819,7 @@ def list( return deserialized # type: ignore -class FirewallPolicyDeploymentsOperations: +class FirewallPolicyDeploymentsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -110759,7 +117848,7 @@ def _deploy_initial(self, resource_group_name: str, firewall_policy_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_firewall_policy_deployments_deploy_request( @@ -110825,7 +117914,7 @@ def begin_deploy(self, resource_group_name: str, firewall_policy_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -110869,7 +117958,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class NetworkManagerCommitsOperations: +class NetworkManagerCommitsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -110890,7 +117979,7 @@ def _post_initial( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerCommit, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerCommit, _types.NetworkManagerCommit, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -110904,7 +117993,7 @@ def _post_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -110995,7 +118084,7 @@ def begin_post( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.NetworkManagerCommit, *, content_type: str = "application/json", **kwargs: Any @@ -111008,7 +118097,7 @@ def begin_post( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network commit is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerCommit :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -111051,7 +118140,7 @@ def begin_post( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerCommit, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerCommit, _types.NetworkManagerCommit, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NetworkManagerCommit]: """Post a Network Manager Commit. @@ -111061,9 +118150,10 @@ def begin_post( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Parameters supplied to specify which Managed Network commit is. Is one of - the following types: NetworkManagerCommit, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerCommit or JSON or IO[bytes] + :param parameters: Parameters supplied to specify which Managed Network commit is. Is either a + NetworkManagerCommit type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerCommit or + ~azure.mgmt.network.types.NetworkManagerCommit or IO[bytes] :return: An instance of LROPoller that returns NetworkManagerCommit. The NetworkManagerCommit is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NetworkManagerCommit] @@ -111072,7 +118162,7 @@ def begin_post( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerCommit] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -111124,7 +118214,7 @@ def get_long_running_output(pipeline_response): ) -class NetworkManagerDeploymentStatusOperations: +class NetworkManagerDeploymentStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -111179,7 +118269,7 @@ def list( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.NetworkManagerDeploymentStatusParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -111194,7 +118284,7 @@ def list( :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network deployment status is. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerDeploymentStatusParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -111245,7 +118335,9 @@ def list( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.NetworkManagerDeploymentStatusParameter, JSON, IO[bytes]], + parameters: Union[ + _models.NetworkManagerDeploymentStatusParameter, _types.NetworkManagerDeploymentStatusParameter, IO[bytes] + ], *, top: Optional[int] = None, **kwargs: Any @@ -111258,10 +118350,9 @@ def list( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Parameters supplied to specify which Managed Network deployment status is. - Is one of the following types: NetworkManagerDeploymentStatusParameter, JSON, IO[bytes] - Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerDeploymentStatusParameter or JSON or - IO[bytes] + Is either a NetworkManagerDeploymentStatusParameter type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerDeploymentStatusParameter or + ~azure.mgmt.network.types.NetworkManagerDeploymentStatusParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -111281,7 +118372,7 @@ def list( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerDeploymentStatusListResult] = kwargs.pop("cls", None) @@ -111340,7 +118431,7 @@ def list( return deserialized # type: ignore -class LoadBalancerNetworkInterfacesOperations: +class LoadBalancerNetworkInterfacesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -111375,7 +118466,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkInterface]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -111447,7 +118538,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LoadBalancerBackendAddressPoolsOperations: # pylint: disable=name-too-long +class LoadBalancerBackendAddressPoolsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -111492,7 +118583,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BackendAddressPool] = kwargs.pop("cls", None) _request = build_load_balancer_backend_address_pools_get_request( @@ -111545,7 +118636,7 @@ def _create_or_update_initial( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: Union[_models.BackendAddressPool, JSON, IO[bytes]], + parameters: Union[_models.BackendAddressPool, _types.BackendAddressPool, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -111559,7 +118650,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -111658,7 +118749,7 @@ def begin_create_or_update( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: JSON, + parameters: _types.BackendAddressPool, *, content_type: str = "application/json", **kwargs: Any @@ -111674,7 +118765,7 @@ def begin_create_or_update( :type backend_address_pool_name: str :param parameters: Parameters supplied to the create or update load balancer backend address pool operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BackendAddressPool :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -111722,7 +118813,7 @@ def begin_create_or_update( resource_group_name: str, load_balancer_name: str, backend_address_pool_name: str, - parameters: Union[_models.BackendAddressPool, JSON, IO[bytes]], + parameters: Union[_models.BackendAddressPool, _types.BackendAddressPool, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.BackendAddressPool]: """Creates or updates a load balancer backend address pool. @@ -111735,8 +118826,9 @@ def begin_create_or_update( :param backend_address_pool_name: The name of the backend address pool. Required. :type backend_address_pool_name: str :param parameters: Parameters supplied to the create or update load balancer backend address - pool operation. Is one of the following types: BackendAddressPool, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BackendAddressPool or JSON or IO[bytes] + pool operation. Is either a BackendAddressPool type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.BackendAddressPool or + ~azure.mgmt.network.types.BackendAddressPool or IO[bytes] :return: An instance of LROPoller that returns BackendAddressPool. The BackendAddressPool is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.BackendAddressPool] @@ -111745,7 +118837,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BackendAddressPool] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -111811,7 +118903,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_load_balancer_backend_address_pools_delete_request( @@ -111880,7 +118972,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -111942,7 +119034,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BackendAddressPool]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -112014,7 +119106,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LoadBalancerFrontendIPConfigurationsOperations: # pylint: disable=name-too-long +class LoadBalancerFrontendIPConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -112061,7 +119153,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.FrontendIPConfiguration] = kwargs.pop("cls", None) _request = build_load_balancer_frontend_ip_configurations_get_request( @@ -112127,7 +119219,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.FrontendIPConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -112199,7 +119291,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LoadBalancerLoadBalancingRulesOperations: +class LoadBalancerLoadBalancingRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -112244,7 +119336,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LoadBalancingRule] = kwargs.pop("cls", None) _request = build_load_balancer_load_balancing_rules_get_request( @@ -112310,7 +119402,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.LoadBalancingRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -112395,7 +119487,7 @@ def _health_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_load_balancer_load_balancing_rules_health_request( @@ -112464,7 +119556,7 @@ def begin_health( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.LoadBalancerHealthPerRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -112514,7 +119606,7 @@ def get_long_running_output(pipeline_response): ) -class LoadBalancerOutboundRulesOperations: +class LoadBalancerOutboundRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -112559,7 +119651,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.OutboundRule] = kwargs.pop("cls", None) _request = build_load_balancer_outbound_rules_get_request( @@ -112625,7 +119717,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.OutboundRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -112697,7 +119789,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class LoadBalancerProbesOperations: +class LoadBalancerProbesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -112740,7 +119832,7 @@ def get(self, resource_group_name: str, load_balancer_name: str, probe_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.Probe] = kwargs.pop("cls", None) _request = build_load_balancer_probes_get_request( @@ -112804,7 +119896,7 @@ def list(self, resource_group_name: str, load_balancer_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Probe]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -112876,7 +119968,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SubscriptionNetworkManagerConnectionsOperations: # pylint: disable=name-too-long +class SubscriptionNetworkManagerConnectionsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -112915,7 +120007,7 @@ def get(self, network_manager_connection_name: str, **kwargs: Any) -> _models.Ne _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) _request = build_subscription_network_manager_connections_get_request( @@ -112989,7 +120081,7 @@ def create_or_update( def create_or_update( self, network_manager_connection_name: str, - parameters: JSON, + parameters: _types.NetworkManagerConnection, *, content_type: str = "application/json", **kwargs: Any @@ -112999,7 +120091,7 @@ def create_or_update( :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str :param parameters: Network manager connection to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NetworkManagerConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -113037,16 +120129,17 @@ def create_or_update( def create_or_update( self, network_manager_connection_name: str, - parameters: Union[_models.NetworkManagerConnection, JSON, IO[bytes]], + parameters: Union[_models.NetworkManagerConnection, _types.NetworkManagerConnection, IO[bytes]], **kwargs: Any ) -> _models.NetworkManagerConnection: """Create a network manager connection on this subscription. :param network_manager_connection_name: Name for the network manager connection. Required. :type network_manager_connection_name: str - :param parameters: Network manager connection to be created/updated. Is one of the following - types: NetworkManagerConnection, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or JSON or IO[bytes] + :param parameters: Network manager connection to be created/updated. Is either a + NetworkManagerConnection type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NetworkManagerConnection or + ~azure.mgmt.network.types.NetworkManagerConnection or IO[bytes] :return: NetworkManagerConnection. The NetworkManagerConnection is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NetworkManagerConnection @@ -113063,7 +120156,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerConnection] = kwargs.pop("cls", None) @@ -113142,7 +120235,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_subscription_network_manager_connections_delete_request( @@ -113196,7 +120289,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkManagerConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -113268,7 +120361,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AdminRulesOperations: +class AdminRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -113324,7 +120417,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BaseAdminRule] = kwargs.pop("cls", None) _request = build_admin_rules_get_request( @@ -113419,7 +120512,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: JSON, + admin_rule: _types.BaseAdminRule, *, content_type: str = "application/json", **kwargs: Any @@ -113439,7 +120532,7 @@ def create_or_update( :param rule_name: The name of the rule. Required. :type rule_name: str :param admin_rule: The admin rule to create or update. Required. - :type admin_rule: JSON + :type admin_rule: ~azure.mgmt.network.types.BaseAdminRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -113493,7 +120586,7 @@ def create_or_update( configuration_name: str, rule_collection_name: str, rule_name: str, - admin_rule: Union[_models.BaseAdminRule, JSON, IO[bytes]], + admin_rule: Union[_models.BaseAdminRule, _types.BaseAdminRule, IO[bytes]], **kwargs: Any ) -> _models.BaseAdminRule: """Creates or updates an admin rule. @@ -113510,9 +120603,10 @@ def create_or_update( :type rule_collection_name: str :param rule_name: The name of the rule. Required. :type rule_name: str - :param admin_rule: The admin rule to create or update. Is one of the following types: - BaseAdminRule, JSON, IO[bytes] Required. - :type admin_rule: ~azure.mgmt.network.models.BaseAdminRule or JSON or IO[bytes] + :param admin_rule: The admin rule to create or update. Is either a BaseAdminRule type or a + IO[bytes] type. Required. + :type admin_rule: ~azure.mgmt.network.models.BaseAdminRule or + ~azure.mgmt.network.types.BaseAdminRule or IO[bytes] :return: BaseAdminRule. The BaseAdminRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.BaseAdminRule :raises ~azure.core.exceptions.HttpResponseError: @@ -113528,7 +120622,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BaseAdminRule] = kwargs.pop("cls", None) @@ -113610,7 +120704,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_admin_rules_delete_request( @@ -113699,7 +120793,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -113785,7 +120879,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BaseAdminRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -113861,7 +120955,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterProfilesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterProfilesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -113906,7 +121000,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspProfile] = kwargs.pop("cls", None) _request = build_network_security_perimeter_profiles_get_request( @@ -113991,7 +121085,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: JSON, + parameters: _types.NspProfile, *, content_type: str = "application/json", **kwargs: Any @@ -114007,7 +121101,7 @@ def create_or_update( :type profile_name: str :param parameters: Parameters that hold the NspProfile resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspProfile :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -114053,7 +121147,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, profile_name: str, - parameters: Union[_models.NspProfile, JSON, IO[bytes]], + parameters: Union[_models.NspProfile, _types.NspProfile, IO[bytes]], **kwargs: Any ) -> _models.NspProfile: """Creates or updates a network profile. @@ -114065,9 +121159,10 @@ def create_or_update( :type network_security_perimeter_name: str :param profile_name: The name of the NSP profile. Required. :type profile_name: str - :param parameters: Parameters that hold the NspProfile resource to be created/updated. Is one - of the following types: NspProfile, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspProfile or JSON or IO[bytes] + :param parameters: Parameters that hold the NspProfile resource to be created/updated. Is + either a NspProfile type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspProfile or ~azure.mgmt.network.types.NspProfile + or IO[bytes] :return: NspProfile. The NspProfile is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspProfile :raises ~azure.core.exceptions.HttpResponseError: @@ -114083,7 +121178,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspProfile] = kwargs.pop("cls", None) @@ -114169,7 +121264,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_profiles_delete_request( @@ -114236,7 +121331,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspProfile]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -114310,7 +121405,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterAccessRulesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAccessRulesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -114362,7 +121457,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspAccessRule] = kwargs.pop("cls", None) _request = build_network_security_perimeter_access_rules_get_request( @@ -114452,7 +121547,7 @@ def create_or_update( network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: JSON, + parameters: _types.NspAccessRule, *, content_type: str = "application/json", **kwargs: Any @@ -114470,7 +121565,7 @@ def create_or_update( :type access_rule_name: str :param parameters: Parameters that hold the NspAccessRule resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspAccessRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -114520,7 +121615,7 @@ def create_or_update( network_security_perimeter_name: str, profile_name: str, access_rule_name: str, - parameters: Union[_models.NspAccessRule, JSON, IO[bytes]], + parameters: Union[_models.NspAccessRule, _types.NspAccessRule, IO[bytes]], **kwargs: Any ) -> _models.NspAccessRule: """Creates or updates a network access rule. @@ -114535,8 +121630,9 @@ def create_or_update( :param access_rule_name: The name of the NSP access rule. Required. :type access_rule_name: str :param parameters: Parameters that hold the NspAccessRule resource to be created/updated. Is - one of the following types: NspAccessRule, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspAccessRule or JSON or IO[bytes] + either a NspAccessRule type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspAccessRule or + ~azure.mgmt.network.types.NspAccessRule or IO[bytes] :return: NspAccessRule. The NspAccessRule is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspAccessRule :raises ~azure.core.exceptions.HttpResponseError: @@ -114552,7 +121648,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspAccessRule] = kwargs.pop("cls", None) @@ -114646,7 +121742,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_access_rules_delete_request( @@ -114717,7 +121813,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspAccessRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -114829,7 +121925,7 @@ def reconcile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json")) cls: ClsType[Any] = kwargs.pop("cls", None) @@ -114884,7 +121980,7 @@ def reconcile( return deserialized # type: ignore -class NetworkSecurityPerimeterAssociationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAssociationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -114929,7 +122025,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspAssociation] = kwargs.pop("cls", None) _request = build_network_security_perimeter_associations_get_request( @@ -114982,7 +122078,7 @@ def _create_or_update_initial( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: Union[_models.NspAssociation, JSON, IO[bytes]], + parameters: Union[_models.NspAssociation, _types.NspAssociation, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -114996,7 +122092,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -115098,7 +122194,7 @@ def begin_create_or_update( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: JSON, + parameters: _types.NspAssociation, *, content_type: str = "application/json", **kwargs: Any @@ -115114,7 +122210,7 @@ def begin_create_or_update( :type association_name: str :param parameters: Parameters that hold the NspAssociation resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspAssociation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -115162,7 +122258,7 @@ def begin_create_or_update( resource_group_name: str, network_security_perimeter_name: str, association_name: str, - parameters: Union[_models.NspAssociation, JSON, IO[bytes]], + parameters: Union[_models.NspAssociation, _types.NspAssociation, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.NspAssociation]: """Creates or updates a NSP resource association. @@ -115175,8 +122271,9 @@ def begin_create_or_update( :param association_name: The name of the NSP association. Required. :type association_name: str :param parameters: Parameters that hold the NspAssociation resource to be created/updated. Is - one of the following types: NspAssociation, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspAssociation or JSON or IO[bytes] + either a NspAssociation type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspAssociation or + ~azure.mgmt.network.types.NspAssociation or IO[bytes] :return: An instance of LROPoller that returns NspAssociation. The NspAssociation is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.NspAssociation] @@ -115185,7 +122282,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspAssociation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -115251,7 +122348,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_associations_delete_request( @@ -115322,7 +122419,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -115398,7 +122495,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspAssociation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -115506,7 +122603,7 @@ def reconcile( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json")) cls: ClsType[Any] = kwargs.pop("cls", None) @@ -115560,7 +122657,7 @@ def reconcile( return deserialized # type: ignore -class NetworkSecurityPerimeterLinksOperations: +class NetworkSecurityPerimeterLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -115605,7 +122702,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLink] = kwargs.pop("cls", None) _request = build_network_security_perimeter_links_get_request( @@ -115689,7 +122786,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: JSON, + parameters: _types.NspLink, *, content_type: str = "application/json", **kwargs: Any @@ -115704,7 +122801,7 @@ def create_or_update( :param link_name: The name of the NSP link. Required. :type link_name: str :param parameters: Parameters that hold the NspLink resource to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspLink :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -115749,7 +122846,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, link_name: str, - parameters: Union[_models.NspLink, JSON, IO[bytes]], + parameters: Union[_models.NspLink, _types.NspLink, IO[bytes]], **kwargs: Any ) -> _models.NspLink: """Creates or updates NSP link resource. @@ -115761,9 +122858,10 @@ def create_or_update( :type network_security_perimeter_name: str :param link_name: The name of the NSP link. Required. :type link_name: str - :param parameters: Parameters that hold the NspLink resource to be created/updated. Is one of - the following types: NspLink, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspLink or JSON or IO[bytes] + :param parameters: Parameters that hold the NspLink resource to be created/updated. Is either a + NspLink type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspLink or ~azure.mgmt.network.types.NspLink or + IO[bytes] :return: NspLink. The NspLink is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspLink :raises ~azure.core.exceptions.HttpResponseError: @@ -115779,7 +122877,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspLink] = kwargs.pop("cls", None) @@ -115851,7 +122949,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_links_delete_request( @@ -115920,7 +123018,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -115996,7 +123094,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLink]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -116070,7 +123168,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterLinkReferencesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterLinkReferencesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -116115,7 +123213,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLinkReference] = kwargs.pop("cls", None) _request = build_network_security_perimeter_link_references_get_request( @@ -116177,7 +123275,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_security_perimeter_link_references_delete_request( @@ -116246,7 +123344,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -116322,7 +123420,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLinkReference]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -116396,7 +123494,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterLoggingConfigurationsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterLoggingConfigurationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -116446,7 +123544,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NspLoggingConfiguration] = kwargs.pop("cls", None) _request = build_network_security_perimeter_logging_configurations_get_request( @@ -116532,7 +123630,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: JSON, + parameters: _types.NspLoggingConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -116549,7 +123647,7 @@ def create_or_update( :type logging_configuration_name: str :param parameters: Parameters that hold the NspLoggingConfiguration to be created/updated. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.NspLoggingConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -116596,7 +123694,7 @@ def create_or_update( resource_group_name: str, network_security_perimeter_name: str, logging_configuration_name: str, - parameters: Union[_models.NspLoggingConfiguration, JSON, IO[bytes]], + parameters: Union[_models.NspLoggingConfiguration, _types.NspLoggingConfiguration, IO[bytes]], **kwargs: Any ) -> _models.NspLoggingConfiguration: """Creates or updates NSP logging configuration. @@ -116610,8 +123708,9 @@ def create_or_update( 'instance' as name. Required. :type logging_configuration_name: str :param parameters: Parameters that hold the NspLoggingConfiguration to be created/updated. Is - one of the following types: NspLoggingConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.NspLoggingConfiguration or JSON or IO[bytes] + either a NspLoggingConfiguration type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.NspLoggingConfiguration or + ~azure.mgmt.network.types.NspLoggingConfiguration or IO[bytes] :return: NspLoggingConfiguration. The NspLoggingConfiguration is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.NspLoggingConfiguration :raises ~azure.core.exceptions.HttpResponseError: @@ -116627,7 +123726,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NspLoggingConfiguration] = kwargs.pop("cls", None) @@ -116718,7 +123817,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_network_security_perimeter_logging_configurations_delete_request( @@ -116771,7 +123870,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspLoggingConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -116843,7 +123942,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualApplianceSkusOperations: +class VirtualApplianceSkusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -116882,7 +123981,7 @@ def get(self, sku_name: str, **kwargs: Any) -> _models.NetworkVirtualApplianceSk _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.NetworkVirtualApplianceSku] = kwargs.pop("cls", None) _request = build_virtual_appliance_skus_get_request( @@ -116939,7 +124038,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.NetworkVirtualApplianceSku"] _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NetworkVirtualApplianceSku]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -117009,7 +124108,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class InboundSecurityRuleOperations: +class InboundSecurityRuleOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -117055,7 +124154,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.InboundSecurityRule] = kwargs.pop("cls", None) _request = build_inbound_security_rule_get_request( @@ -117108,7 +124207,7 @@ def _create_or_update_initial( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: Union[_models.InboundSecurityRule, JSON, IO[bytes]], + parameters: Union[_models.InboundSecurityRule, _types.InboundSecurityRule, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -117122,7 +124221,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -117222,7 +124321,7 @@ def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: JSON, + parameters: _types.InboundSecurityRule, *, content_type: str = "application/json", **kwargs: Any @@ -117239,7 +124338,7 @@ def begin_create_or_update( :type rule_collection_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance Inbound Security Rules operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.InboundSecurityRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -117288,7 +124387,7 @@ def begin_create_or_update( resource_group_name: str, network_virtual_appliance_name: str, rule_collection_name: str, - parameters: Union[_models.InboundSecurityRule, JSON, IO[bytes]], + parameters: Union[_models.InboundSecurityRule, _types.InboundSecurityRule, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.InboundSecurityRule]: """Creates or updates the specified Network Virtual Appliance Inbound Security Rules. @@ -117302,9 +124401,10 @@ def begin_create_or_update( This name can be used to access the resource. Required. :type rule_collection_name: str :param parameters: Parameters supplied to the create or update Network Virtual Appliance - Inbound Security Rules operation. Is one of the following types: InboundSecurityRule, JSON, - IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.InboundSecurityRule or JSON or IO[bytes] + Inbound Security Rules operation. Is either a InboundSecurityRule type or a IO[bytes] type. + Required. + :type parameters: ~azure.mgmt.network.models.InboundSecurityRule or + ~azure.mgmt.network.types.InboundSecurityRule or IO[bytes] :return: An instance of LROPoller that returns InboundSecurityRule. The InboundSecurityRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.InboundSecurityRule] @@ -117313,7 +124413,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.InboundSecurityRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -117366,7 +124466,7 @@ def get_long_running_output(pipeline_response): ) -class PacketCapturesOperations: +class PacketCapturesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -117388,7 +124488,7 @@ def _create_initial( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: Union[_models.PacketCapture, JSON, IO[bytes]], + parameters: Union[_models.PacketCapture, _types.PacketCapture, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -117402,7 +124502,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -117499,7 +124599,7 @@ def begin_create( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: JSON, + parameters: _types.PacketCapture, *, content_type: str = "application/json", **kwargs: Any @@ -117514,7 +124614,7 @@ def begin_create( :param packet_capture_name: The name of the packet capture session. Required. :type packet_capture_name: str :param parameters: Parameters that define the create packet capture operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PacketCapture :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -117561,7 +124661,7 @@ def begin_create( resource_group_name: str, network_watcher_name: str, packet_capture_name: str, - parameters: Union[_models.PacketCapture, JSON, IO[bytes]], + parameters: Union[_models.PacketCapture, _types.PacketCapture, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PacketCaptureResult]: """Create and start a packet capture on the specified VM. @@ -117573,9 +124673,10 @@ def begin_create( :type network_watcher_name: str :param packet_capture_name: The name of the packet capture session. Required. :type packet_capture_name: str - :param parameters: Parameters that define the create packet capture operation. Is one of the - following types: PacketCapture, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PacketCapture or JSON or IO[bytes] + :param parameters: Parameters that define the create packet capture operation. Is either a + PacketCapture type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PacketCapture or + ~azure.mgmt.network.types.PacketCapture or IO[bytes] :return: An instance of LROPoller that returns PacketCaptureResult. The PacketCaptureResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PacketCaptureResult] @@ -117584,7 +124685,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PacketCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -117670,7 +124771,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PacketCaptureResult] = kwargs.pop("cls", None) _request = build_packet_captures_get_request( @@ -117732,7 +124833,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_delete_request( @@ -117801,7 +124902,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -117859,7 +124960,7 @@ def _stop_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_stop_request( @@ -117928,7 +125029,7 @@ def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -117986,7 +125087,7 @@ def _get_status_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_packet_captures_get_status_request( @@ -118057,7 +125158,7 @@ def begin_get_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PacketCaptureQueryStatusResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -118124,7 +125225,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PacketCaptureResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -118196,7 +125297,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ConnectionMonitorsOperations: +class ConnectionMonitorsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -118241,7 +125342,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) _request = build_connection_monitors_get_request( @@ -118294,7 +125395,7 @@ def _create_or_update_initial( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.ConnectionMonitor, JSON, IO[bytes]], + parameters: Union[_models.ConnectionMonitor, _types.ConnectionMonitor, IO[bytes]], *, migrate: Optional[str] = None, **kwargs: Any @@ -118310,7 +125411,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -118414,7 +125515,7 @@ def begin_create_or_update( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: _types.ConnectionMonitor, *, migrate: Optional[str] = None, content_type: str = "application/json", @@ -118431,7 +125532,7 @@ def begin_create_or_update( :type connection_monitor_name: str :param parameters: Parameters that define the operation to create a connection monitor. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ConnectionMonitor :keyword migrate: Value indicating whether connection monitor V1 should be migrated to V2 format. Default value is None. :paramtype migrate: str @@ -118486,7 +125587,7 @@ def begin_create_or_update( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.ConnectionMonitor, JSON, IO[bytes]], + parameters: Union[_models.ConnectionMonitor, _types.ConnectionMonitor, IO[bytes]], *, migrate: Optional[str] = None, **kwargs: Any @@ -118500,9 +125601,10 @@ def begin_create_or_update( :type network_watcher_name: str :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str - :param parameters: Parameters that define the operation to create a connection monitor. Is one - of the following types: ConnectionMonitor, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ConnectionMonitor or JSON or IO[bytes] + :param parameters: Parameters that define the operation to create a connection monitor. Is + either a ConnectionMonitor type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ConnectionMonitor or + ~azure.mgmt.network.types.ConnectionMonitor or IO[bytes] :keyword migrate: Value indicating whether connection monitor V1 should be migrated to V2 format. Default value is None. :paramtype migrate: str @@ -118514,7 +125616,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -118603,7 +125705,7 @@ def update_tags( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: JSON, + parameters: _types.TagsObject, *, content_type: str = "application/json", **kwargs: Any @@ -118618,7 +125720,7 @@ def update_tags( :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str :param parameters: Parameters supplied to update connection monitor tags. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.TagsObject :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -118663,7 +125765,7 @@ def update_tags( resource_group_name: str, network_watcher_name: str, connection_monitor_name: str, - parameters: Union[_models.TagsObject, JSON, IO[bytes]], + parameters: Union[_models.TagsObject, _types.TagsObject, IO[bytes]], **kwargs: Any ) -> _models.ConnectionMonitorResult: """Update tags of the specified connection monitor. @@ -118675,9 +125777,10 @@ def update_tags( :type network_watcher_name: str :param connection_monitor_name: The name of the connection monitor. Required. :type connection_monitor_name: str - :param parameters: Parameters supplied to update connection monitor tags. Is one of the - following types: TagsObject, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.TagsObject or JSON or IO[bytes] + :param parameters: Parameters supplied to update connection monitor tags. Is either a + TagsObject type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.TagsObject or ~azure.mgmt.network.types.TagsObject + or IO[bytes] :return: ConnectionMonitorResult. The ConnectionMonitorResult is compatible with MutableMapping :rtype: ~azure.mgmt.network.models.ConnectionMonitorResult :raises ~azure.core.exceptions.HttpResponseError: @@ -118693,7 +125796,7 @@ def update_tags( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionMonitorResult] = kwargs.pop("cls", None) @@ -118765,7 +125868,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_connection_monitors_delete_request( @@ -118834,7 +125937,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -118896,7 +125999,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectionMonitorResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -118981,7 +126084,7 @@ def _stop_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_connection_monitors_stop_request( @@ -119050,7 +126153,7 @@ def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -119095,7 +126198,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class PrivateDnsZoneGroupsOperations: +class PrivateDnsZoneGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -119126,7 +126229,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_private_dns_zone_groups_delete_request( @@ -119195,7 +126298,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -119267,7 +126370,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.PrivateDnsZoneGroup] = kwargs.pop("cls", None) _request = build_private_dns_zone_groups_get_request( @@ -119320,7 +126423,7 @@ def _create_or_update_initial( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: Union[_models.PrivateDnsZoneGroup, JSON, IO[bytes]], + parameters: Union[_models.PrivateDnsZoneGroup, _types.PrivateDnsZoneGroup, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -119334,7 +126437,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -119433,7 +126536,7 @@ def begin_create_or_update( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: JSON, + parameters: _types.PrivateDnsZoneGroup, *, content_type: str = "application/json", **kwargs: Any @@ -119449,7 +126552,7 @@ def begin_create_or_update( :type private_dns_zone_group_name: str :param parameters: Parameters supplied to the create or update private dns zone group operation. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.PrivateDnsZoneGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -119497,7 +126600,7 @@ def begin_create_or_update( resource_group_name: str, private_endpoint_name: str, private_dns_zone_group_name: str, - parameters: Union[_models.PrivateDnsZoneGroup, JSON, IO[bytes]], + parameters: Union[_models.PrivateDnsZoneGroup, _types.PrivateDnsZoneGroup, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.PrivateDnsZoneGroup]: """Creates or updates a private dns zone group in the specified private endpoint. @@ -119510,8 +126613,9 @@ def begin_create_or_update( :param private_dns_zone_group_name: The name of the private endpoint. Required. :type private_dns_zone_group_name: str :param parameters: Parameters supplied to the create or update private dns zone group - operation. Is one of the following types: PrivateDnsZoneGroup, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.PrivateDnsZoneGroup or JSON or IO[bytes] + operation. Is either a PrivateDnsZoneGroup type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.PrivateDnsZoneGroup or + ~azure.mgmt.network.types.PrivateDnsZoneGroup or IO[bytes] :return: An instance of LROPoller that returns PrivateDnsZoneGroup. The PrivateDnsZoneGroup is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.PrivateDnsZoneGroup] @@ -119520,7 +126624,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateDnsZoneGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -119590,7 +126694,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PrivateDnsZoneGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -119662,7 +126766,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RouteFilterRulesOperations: +class RouteFilterRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -119693,7 +126797,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_route_filter_rules_delete_request( @@ -119765,7 +126869,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -119837,7 +126941,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RouteFilterRule] = kwargs.pop("cls", None) _request = build_route_filter_rules_get_request( @@ -119890,7 +126994,7 @@ def _create_or_update_initial( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: Union[_models.RouteFilterRule, JSON, IO[bytes]], + route_filter_rule_parameters: Union[_models.RouteFilterRule, _types.RouteFilterRule, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -119904,7 +127008,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -120003,7 +127107,7 @@ def begin_create_or_update( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: JSON, + route_filter_rule_parameters: _types.RouteFilterRule, *, content_type: str = "application/json", **kwargs: Any @@ -120019,7 +127123,7 @@ def begin_create_or_update( :type rule_name: str :param route_filter_rule_parameters: Parameters supplied to the create or update route filter rule operation. Required. - :type route_filter_rule_parameters: JSON + :type route_filter_rule_parameters: ~azure.mgmt.network.types.RouteFilterRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -120067,7 +127171,7 @@ def begin_create_or_update( resource_group_name: str, route_filter_name: str, rule_name: str, - route_filter_rule_parameters: Union[_models.RouteFilterRule, JSON, IO[bytes]], + route_filter_rule_parameters: Union[_models.RouteFilterRule, _types.RouteFilterRule, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.RouteFilterRule]: """Creates or updates a route in the specified route filter. @@ -120080,9 +127184,9 @@ def begin_create_or_update( :param rule_name: The name of the route filter rule. Required. :type rule_name: str :param route_filter_rule_parameters: Parameters supplied to the create or update route filter - rule operation. Is one of the following types: RouteFilterRule, JSON, IO[bytes] Required. - :type route_filter_rule_parameters: ~azure.mgmt.network.models.RouteFilterRule or JSON or - IO[bytes] + rule operation. Is either a RouteFilterRule type or a IO[bytes] type. Required. + :type route_filter_rule_parameters: ~azure.mgmt.network.models.RouteFilterRule or + ~azure.mgmt.network.types.RouteFilterRule or IO[bytes] :return: An instance of LROPoller that returns RouteFilterRule. The RouteFilterRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.RouteFilterRule] @@ -120091,7 +127195,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RouteFilterRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -120161,7 +127265,7 @@ def list_by_route_filter( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RouteFilterRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -120233,7 +127337,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ResourceNavigationLinksOperations: +class ResourceNavigationLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -120279,7 +127383,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ResourceNavigationLinksListResult] = kwargs.pop("cls", None) _request = build_resource_navigation_links_list_request( @@ -120328,7 +127432,7 @@ def list( return deserialized # type: ignore -class ServiceAssociationLinksOperations: +class ServiceAssociationLinksOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -120374,7 +127478,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceAssociationLinksListResult] = kwargs.pop("cls", None) _request = build_service_association_links_list_request( @@ -120423,7 +127527,7 @@ def list( return deserialized # type: ignore -class VpnSitesConfigurationOperations: +class VpnSitesConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -120444,7 +127548,7 @@ def _download_initial( self, resource_group_name: str, virtual_wan_name: str, - request: Union[_models.GetVpnSitesConfigurationRequest, JSON, IO[bytes]], + request: Union[_models.GetVpnSitesConfigurationRequest, _types.GetVpnSitesConfigurationRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -120458,7 +127562,7 @@ def _download_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -120548,7 +127652,7 @@ def begin_download( self, resource_group_name: str, virtual_wan_name: str, - request: JSON, + request: _types.GetVpnSitesConfigurationRequest, *, content_type: str = "application/json", **kwargs: Any @@ -120561,7 +127665,7 @@ def begin_download( :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str :param request: Parameters supplied to download vpn-sites configuration. Required. - :type request: JSON + :type request: ~azure.mgmt.network.types.GetVpnSitesConfigurationRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -120602,7 +127706,7 @@ def begin_download( self, resource_group_name: str, virtual_wan_name: str, - request: Union[_models.GetVpnSitesConfigurationRequest, JSON, IO[bytes]], + request: Union[_models.GetVpnSitesConfigurationRequest, _types.GetVpnSitesConfigurationRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Gives the sas-url to download the configurations for vpn-sites in a resource group. @@ -120612,9 +127716,10 @@ def begin_download( :type resource_group_name: str :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str - :param request: Parameters supplied to download vpn-sites configuration. Is one of the - following types: GetVpnSitesConfigurationRequest, JSON, IO[bytes] Required. - :type request: ~azure.mgmt.network.models.GetVpnSitesConfigurationRequest or JSON or IO[bytes] + :param request: Parameters supplied to download vpn-sites configuration. Is either a + GetVpnSitesConfigurationRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.network.models.GetVpnSitesConfigurationRequest or + ~azure.mgmt.network.types.GetVpnSitesConfigurationRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -120622,7 +127727,7 @@ def begin_download( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -120669,7 +127774,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VpnServerConfigurationsAssociatedWithVirtualWanOperations: # pylint: disable=name-too-long +class VpnServerConfigurationsAssociatedWithVirtualWanOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -120698,7 +127803,7 @@ def _list_initial(self, resource_group_name: str, virtual_wan_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_server_configurations_associated_with_virtual_wan_list_request( @@ -120766,7 +127871,7 @@ def begin_list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnServerConfigurationsResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -120815,7 +127920,7 @@ def get_long_running_output(pipeline_response): ) -class ConfigurationPolicyGroupsOperations: +class ConfigurationPolicyGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -120867,7 +127972,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnServerConfigurationPolicyGroup] = kwargs.pop("cls", None) _request = build_configuration_policy_groups_get_request( @@ -120921,7 +128026,7 @@ def _create_or_update_initial( vpn_server_configuration_name: str, configuration_policy_group_name: str, vpn_server_configuration_policy_group_parameters: Union[ - _models.VpnServerConfigurationPolicyGroup, JSON, IO[bytes] + _models.VpnServerConfigurationPolicyGroup, _types.VpnServerConfigurationPolicyGroup, IO[bytes] ], **kwargs: Any ) -> Iterator[bytes]: @@ -120936,7 +128041,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -121039,7 +128144,7 @@ def begin_create_or_update( resource_group_name: str, vpn_server_configuration_name: str, configuration_policy_group_name: str, - vpn_server_configuration_policy_group_parameters: JSON, + vpn_server_configuration_policy_group_parameters: _types.VpnServerConfigurationPolicyGroup, *, content_type: str = "application/json", **kwargs: Any @@ -121057,7 +128162,8 @@ def begin_create_or_update( :type configuration_policy_group_name: str :param vpn_server_configuration_policy_group_parameters: Parameters supplied to create or update a VpnServerConfiguration PolicyGroup. Required. - :type vpn_server_configuration_policy_group_parameters: JSON + :type vpn_server_configuration_policy_group_parameters: + ~azure.mgmt.network.types.VpnServerConfigurationPolicyGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -121110,7 +128216,7 @@ def begin_create_or_update( vpn_server_configuration_name: str, configuration_policy_group_name: str, vpn_server_configuration_policy_group_parameters: Union[ - _models.VpnServerConfigurationPolicyGroup, JSON, IO[bytes] + _models.VpnServerConfigurationPolicyGroup, _types.VpnServerConfigurationPolicyGroup, IO[bytes] ], **kwargs: Any ) -> LROPoller[_models.VpnServerConfigurationPolicyGroup]: @@ -121126,10 +128232,11 @@ def begin_create_or_update( resource group. This name can be used to access the resource. Required. :type configuration_policy_group_name: str :param vpn_server_configuration_policy_group_parameters: Parameters supplied to create or - update a VpnServerConfiguration PolicyGroup. Is one of the following types: - VpnServerConfigurationPolicyGroup, JSON, IO[bytes] Required. + update a VpnServerConfiguration PolicyGroup. Is either a VpnServerConfigurationPolicyGroup type + or a IO[bytes] type. Required. :type vpn_server_configuration_policy_group_parameters: - ~azure.mgmt.network.models.VpnServerConfigurationPolicyGroup or JSON or IO[bytes] + ~azure.mgmt.network.models.VpnServerConfigurationPolicyGroup or + ~azure.mgmt.network.types.VpnServerConfigurationPolicyGroup or IO[bytes] :return: An instance of LROPoller that returns VpnServerConfigurationPolicyGroup. The VpnServerConfigurationPolicyGroup is compatible with MutableMapping :rtype: @@ -121139,7 +128246,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnServerConfigurationPolicyGroup] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -121209,7 +128316,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_configuration_policy_groups_delete_request( @@ -121284,7 +128391,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -121348,7 +128455,7 @@ def list_by_vpn_server_configuration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnServerConfigurationPolicyGroup]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -121420,7 +128527,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class HubVirtualNetworkConnectionsOperations: +class HubVirtualNetworkConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -121442,7 +128549,9 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: Union[_models.HubVirtualNetworkConnection, JSON, IO[bytes]], + hub_virtual_network_connection_parameters: Union[ + _models.HubVirtualNetworkConnection, _types.HubVirtualNetworkConnection, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -121456,7 +128565,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -121556,7 +128665,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: JSON, + hub_virtual_network_connection_parameters: _types.HubVirtualNetworkConnection, *, content_type: str = "application/json", **kwargs: Any @@ -121572,7 +128681,8 @@ def begin_create_or_update( :type connection_name: str :param hub_virtual_network_connection_parameters: Parameters supplied to create or update a hub virtual network connection. Required. - :type hub_virtual_network_connection_parameters: JSON + :type hub_virtual_network_connection_parameters: + ~azure.mgmt.network.types.HubVirtualNetworkConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -121620,7 +128730,9 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - hub_virtual_network_connection_parameters: Union[_models.HubVirtualNetworkConnection, JSON, IO[bytes]], + hub_virtual_network_connection_parameters: Union[ + _models.HubVirtualNetworkConnection, _types.HubVirtualNetworkConnection, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.HubVirtualNetworkConnection]: """Creates a hub virtual network connection if it doesn't exist else updates the existing one. @@ -121633,10 +128745,11 @@ def begin_create_or_update( :param connection_name: Required. :type connection_name: str :param hub_virtual_network_connection_parameters: Parameters supplied to create or update a hub - virtual network connection. Is one of the following types: HubVirtualNetworkConnection, JSON, - IO[bytes] Required. + virtual network connection. Is either a HubVirtualNetworkConnection type or a IO[bytes] type. + Required. :type hub_virtual_network_connection_parameters: - ~azure.mgmt.network.models.HubVirtualNetworkConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.HubVirtualNetworkConnection or + ~azure.mgmt.network.types.HubVirtualNetworkConnection or IO[bytes] :return: An instance of LROPoller that returns HubVirtualNetworkConnection. The HubVirtualNetworkConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.HubVirtualNetworkConnection] @@ -121645,7 +128758,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HubVirtualNetworkConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -121711,7 +128824,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_hub_virtual_network_connections_delete_request( @@ -121780,7 +128893,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -121853,7 +128966,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.HubVirtualNetworkConnection] = kwargs.pop("cls", None) _request = build_hub_virtual_network_connections_get_request( @@ -121919,7 +129032,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.HubVirtualNetworkConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -121991,7 +129104,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VirtualHubRouteTableV2SOperations: +class VirtualHubRouteTableV2SOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -122036,7 +129149,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualHubRouteTableV2] = kwargs.pop("cls", None) _request = build_virtual_hub_route_table_v2_s_get_request( @@ -122089,7 +129202,9 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: Union[_models.VirtualHubRouteTableV2, JSON, IO[bytes]], + virtual_hub_route_table_v2_parameters: Union[ + _models.VirtualHubRouteTableV2, _types.VirtualHubRouteTableV2, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -122103,7 +129218,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -122203,7 +129318,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: JSON, + virtual_hub_route_table_v2_parameters: _types.VirtualHubRouteTableV2, *, content_type: str = "application/json", **kwargs: Any @@ -122220,7 +129335,7 @@ def begin_create_or_update( :type route_table_name: str :param virtual_hub_route_table_v2_parameters: Parameters supplied to create or update VirtualHubRouteTableV2. Required. - :type virtual_hub_route_table_v2_parameters: JSON + :type virtual_hub_route_table_v2_parameters: ~azure.mgmt.network.types.VirtualHubRouteTableV2 :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -122269,7 +129384,9 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, route_table_name: str, - virtual_hub_route_table_v2_parameters: Union[_models.VirtualHubRouteTableV2, JSON, IO[bytes]], + virtual_hub_route_table_v2_parameters: Union[ + _models.VirtualHubRouteTableV2, _types.VirtualHubRouteTableV2, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.VirtualHubRouteTableV2]: """Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing @@ -122283,10 +129400,9 @@ def begin_create_or_update( :param route_table_name: The name of the VirtualHubRouteTableV2. Required. :type route_table_name: str :param virtual_hub_route_table_v2_parameters: Parameters supplied to create or update - VirtualHubRouteTableV2. Is one of the following types: VirtualHubRouteTableV2, JSON, IO[bytes] - Required. + VirtualHubRouteTableV2. Is either a VirtualHubRouteTableV2 type or a IO[bytes] type. Required. :type virtual_hub_route_table_v2_parameters: ~azure.mgmt.network.models.VirtualHubRouteTableV2 - or JSON or IO[bytes] + or ~azure.mgmt.network.types.VirtualHubRouteTableV2 or IO[bytes] :return: An instance of LROPoller that returns VirtualHubRouteTableV2. The VirtualHubRouteTableV2 is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VirtualHubRouteTableV2] @@ -122295,7 +129411,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualHubRouteTableV2] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -122361,7 +129477,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_route_table_v2_s_delete_request( @@ -122430,7 +129546,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -122492,7 +129608,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VirtualHubRouteTableV2]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -122564,7 +129680,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnConnectionsOperations: +class VpnConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -122609,7 +129725,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnConnection] = kwargs.pop("cls", None) _request = build_vpn_connections_get_request( @@ -122662,7 +129778,7 @@ def _create_or_update_initial( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: Union[_models.VpnConnection, JSON, IO[bytes]], + vpn_connection_parameters: Union[_models.VpnConnection, _types.VpnConnection, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -122676,7 +129792,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -122776,7 +129892,7 @@ def begin_create_or_update( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: JSON, + vpn_connection_parameters: _types.VpnConnection, *, content_type: str = "application/json", **kwargs: Any @@ -122793,7 +129909,7 @@ def begin_create_or_update( :type connection_name: str :param vpn_connection_parameters: Parameters supplied to create or Update a VPN Connection. Required. - :type vpn_connection_parameters: JSON + :type vpn_connection_parameters: ~azure.mgmt.network.types.VpnConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -122842,7 +129958,7 @@ def begin_create_or_update( resource_group_name: str, gateway_name: str, connection_name: str, - vpn_connection_parameters: Union[_models.VpnConnection, JSON, IO[bytes]], + vpn_connection_parameters: Union[_models.VpnConnection, _types.VpnConnection, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnConnection]: """Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the @@ -122856,8 +129972,9 @@ def begin_create_or_update( :param connection_name: The name of the vpn connection. Required. :type connection_name: str :param vpn_connection_parameters: Parameters supplied to create or Update a VPN Connection. Is - one of the following types: VpnConnection, JSON, IO[bytes] Required. - :type vpn_connection_parameters: ~azure.mgmt.network.models.VpnConnection or JSON or IO[bytes] + either a VpnConnection type or a IO[bytes] type. Required. + :type vpn_connection_parameters: ~azure.mgmt.network.models.VpnConnection or + ~azure.mgmt.network.types.VpnConnection or IO[bytes] :return: An instance of LROPoller that returns VpnConnection. The VpnConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnConnection] @@ -122866,7 +129983,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -122932,7 +130049,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_connections_delete_request( @@ -123001,7 +130118,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -123050,7 +130167,285 @@ def _start_packet_capture_initial( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStartParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStartParameters, + _types.VpnConnectionPacketCaptureStartParameters, + IO[bytes], + ] + ] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" if parameters else None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + else: + _content = None + + _request = build_vpn_connections_start_packet_capture_request( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + vpn_connection_name=vpn_connection_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.CloudError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_start_packet_capture( + self, + resource_group_name: str, + gateway_name: str, + vpn_connection_name: str, + parameters: Optional[_models.VpnConnectionPacketCaptureStartParameters] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[str]: + """Starts packet capture on Vpn connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the vpn gateway. Required. + :type gateway_name: str + :param vpn_connection_name: The name of the vpn connection. Required. + :type vpn_connection_name: str + :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on + gateway connection. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns str + :rtype: ~azure.core.polling.LROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_start_packet_capture( + self, + resource_group_name: str, + gateway_name: str, + vpn_connection_name: str, + parameters: Optional[_types.VpnConnectionPacketCaptureStartParameters] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[str]: + """Starts packet capture on Vpn connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the vpn gateway. Required. + :type gateway_name: str + :param vpn_connection_name: The name of the vpn connection. Required. + :type vpn_connection_name: str + :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on + gateway connection. Default value is None. + :type parameters: ~azure.mgmt.network.types.VpnConnectionPacketCaptureStartParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns str + :rtype: ~azure.core.polling.LROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_start_packet_capture( + self, + resource_group_name: str, + gateway_name: str, + vpn_connection_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[str]: + """Starts packet capture on Vpn connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the vpn gateway. Required. + :type gateway_name: str + :param vpn_connection_name: The name of the vpn connection. Required. + :type vpn_connection_name: str + :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on + gateway connection. Default value is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns str + :rtype: ~azure.core.polling.LROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_start_packet_capture( + self, + resource_group_name: str, + gateway_name: str, + vpn_connection_name: str, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStartParameters, + _types.VpnConnectionPacketCaptureStartParameters, + IO[bytes], + ] + ] = None, + **kwargs: Any + ) -> LROPoller[str]: + """Starts packet capture on Vpn connection in the specified resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param gateway_name: The name of the vpn gateway. Required. + :type gateway_name: str + :param vpn_connection_name: The name of the vpn connection. Required. + :type vpn_connection_name: str + :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on + gateway connection. Is either a VpnConnectionPacketCaptureStartParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters or + ~azure.mgmt.network.types.VpnConnectionPacketCaptureStartParameters or IO[bytes] + :return: An instance of LROPoller that returns str + :rtype: ~azure.core.polling.LROPoller[str] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + content_type = content_type if parameters else None + cls: ClsType[str] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_packet_capture_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + vpn_connection_name=vpn_connection_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(str, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[str].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _stop_packet_capture_initial( + self, + resource_group_name: str, + gateway_name: str, + vpn_connection_name: str, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStopParameters, + _types.VpnConnectionPacketCaptureStopParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -123064,267 +130459,7 @@ def _start_packet_capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" if parameters else None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - if parameters is not None: - _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore - else: - _content = None - - _request = build_vpn_connections_start_packet_capture_request( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - vpn_connection_name=vpn_connection_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = _failsafe_deserialize( - _models.CloudError, - response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = response.iter_bytes() if _decompress else response.iter_raw() - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_start_packet_capture( - self, - resource_group_name: str, - gateway_name: str, - vpn_connection_name: str, - parameters: Optional[_models.VpnConnectionPacketCaptureStartParameters] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[str]: - """Starts packet capture on Vpn connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the vpn gateway. Required. - :type gateway_name: str - :param vpn_connection_name: The name of the vpn connection. Required. - :type vpn_connection_name: str - :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on - gateway connection. Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns str - :rtype: ~azure.core.polling.LROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_packet_capture( - self, - resource_group_name: str, - gateway_name: str, - vpn_connection_name: str, - parameters: Optional[JSON] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[str]: - """Starts packet capture on Vpn connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the vpn gateway. Required. - :type gateway_name: str - :param vpn_connection_name: The name of the vpn connection. Required. - :type vpn_connection_name: str - :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on - gateway connection. Default value is None. - :type parameters: JSON - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns str - :rtype: ~azure.core.polling.LROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_packet_capture( - self, - resource_group_name: str, - gateway_name: str, - vpn_connection_name: str, - parameters: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[str]: - """Starts packet capture on Vpn connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the vpn gateway. Required. - :type gateway_name: str - :param vpn_connection_name: The name of the vpn connection. Required. - :type vpn_connection_name: str - :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on - gateway connection. Default value is None. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns str - :rtype: ~azure.core.polling.LROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_packet_capture( - self, - resource_group_name: str, - gateway_name: str, - vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStartParameters, JSON, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[str]: - """Starts packet capture on Vpn connection in the specified resource group. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - Required. - :type resource_group_name: str - :param gateway_name: The name of the vpn gateway. Required. - :type gateway_name: str - :param vpn_connection_name: The name of the vpn connection. Required. - :type vpn_connection_name: str - :param parameters: Vpn Connection packet capture parameters supplied to start packet capture on - gateway connection. Is one of the following types: VpnConnectionPacketCaptureStartParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStartParameters or JSON - or IO[bytes] - :return: An instance of LROPoller that returns str - :rtype: ~azure.core.polling.LROPoller[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - content_type = content_type if parameters else None - cls: ClsType[str] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_packet_capture_initial( - resource_group_name=resource_group_name, - gateway_name=gateway_name, - vpn_connection_name=vpn_connection_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - response_headers = {} - response = pipeline_response.http_response - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - - deserialized = _deserialize(str, response.json()) - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - path_format_arguments = { - "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), - } - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[str].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_packet_capture_initial( - self, - resource_group_name: str, - gateway_name: str, - vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStopParameters, JSON, IO[bytes]]] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -123424,7 +130559,7 @@ def begin_stop_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[JSON] = None, + parameters: Optional[_types.VpnConnectionPacketCaptureStopParameters] = None, *, content_type: str = "application/json", **kwargs: Any @@ -123440,7 +130575,7 @@ def begin_stop_packet_capture( :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. Default value is None. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.VpnConnectionPacketCaptureStopParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -123486,7 +130621,13 @@ def begin_stop_packet_capture( resource_group_name: str, gateway_name: str, vpn_connection_name: str, - parameters: Optional[Union[_models.VpnConnectionPacketCaptureStopParameters, JSON, IO[bytes]]] = None, + parameters: Optional[ + Union[ + _models.VpnConnectionPacketCaptureStopParameters, + _types.VpnConnectionPacketCaptureStopParameters, + IO[bytes], + ] + ] = None, **kwargs: Any ) -> LROPoller[str]: """Stops packet capture on Vpn connection in the specified resource group. @@ -123499,10 +130640,10 @@ def begin_stop_packet_capture( :param vpn_connection_name: The name of the vpn connection. Required. :type vpn_connection_name: str :param parameters: Vpn Connection packet capture parameters supplied to stop packet capture on - gateway connection. Is one of the following types: VpnConnectionPacketCaptureStopParameters, - JSON, IO[bytes] Default value is None. - :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStopParameters or JSON - or IO[bytes] + gateway connection. Is either a VpnConnectionPacketCaptureStopParameters type or a IO[bytes] + type. Default value is None. + :type parameters: ~azure.mgmt.network.models.VpnConnectionPacketCaptureStopParameters or + ~azure.mgmt.network.types.VpnConnectionPacketCaptureStopParameters or IO[bytes] :return: An instance of LROPoller that returns str :rtype: ~azure.core.polling.LROPoller[str] :raises ~azure.core.exceptions.HttpResponseError: @@ -123510,7 +130651,7 @@ def begin_stop_packet_capture( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) content_type = content_type if parameters else None cls: ClsType[str] = kwargs.pop("cls", None) @@ -123583,7 +130724,7 @@ def list_by_vpn_gateway( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -123655,7 +130796,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VpnLinkConnectionsOperations: +class VpnLinkConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -123708,7 +130849,7 @@ def get_default_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) _request = build_vpn_link_connections_get_default_shared_key_request( @@ -123763,7 +130904,9 @@ def _set_or_init_default_shared_key_initial( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: Union[_models.ConnectionSharedKeyResult, JSON, IO[bytes]], + connection_shared_key_parameters: Union[ + _models.ConnectionSharedKeyResult, _types.ConnectionSharedKeyResult, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -123777,7 +130920,7 @@ def _set_or_init_default_shared_key_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -123883,7 +131026,7 @@ def begin_set_or_init_default_shared_key( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: JSON, + connection_shared_key_parameters: _types.ConnectionSharedKeyResult, *, content_type: str = "application/json", **kwargs: Any @@ -123903,7 +131046,7 @@ def begin_set_or_init_default_shared_key( :type link_connection_name: str :param connection_shared_key_parameters: Parameters supplied to set or auto generate the shared key for the vpn link connection. Required. - :type connection_shared_key_parameters: JSON + :type connection_shared_key_parameters: ~azure.mgmt.network.types.ConnectionSharedKeyResult :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -123957,7 +131100,9 @@ def begin_set_or_init_default_shared_key( gateway_name: str, connection_name: str, link_connection_name: str, - connection_shared_key_parameters: Union[_models.ConnectionSharedKeyResult, JSON, IO[bytes]], + connection_shared_key_parameters: Union[ + _models.ConnectionSharedKeyResult, _types.ConnectionSharedKeyResult, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ConnectionSharedKeyResult]: """Sets or auto generates the shared key based on the user input. If users give a shared key @@ -123974,10 +131119,10 @@ def begin_set_or_init_default_shared_key( :param link_connection_name: The name of the vpn link connection. Required. :type link_connection_name: str :param connection_shared_key_parameters: Parameters supplied to set or auto generate the shared - key for the vpn link connection. Is one of the following types: ConnectionSharedKeyResult, - JSON, IO[bytes] Required. + key for the vpn link connection. Is either a ConnectionSharedKeyResult type or a IO[bytes] + type. Required. :type connection_shared_key_parameters: ~azure.mgmt.network.models.ConnectionSharedKeyResult or - JSON or IO[bytes] + ~azure.mgmt.network.types.ConnectionSharedKeyResult or IO[bytes] :return: An instance of LROPoller that returns ConnectionSharedKeyResult. The ConnectionSharedKeyResult is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ConnectionSharedKeyResult] @@ -123986,7 +131131,7 @@ def begin_set_or_init_default_shared_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -124066,7 +131211,7 @@ def get_all_shared_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ConnectionSharedKeyResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -124175,7 +131320,7 @@ def list_default_shared_key( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ConnectionSharedKeyResult] = kwargs.pop("cls", None) _request = build_vpn_link_connections_list_default_shared_key_request( @@ -124245,7 +131390,7 @@ def list_by_vpn_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnSiteLinkConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -124336,7 +131481,7 @@ def _reset_connection_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_link_connections_reset_connection_request( @@ -124412,7 +131557,7 @@ def begin_reset_connection( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -124476,7 +131621,7 @@ def _get_ike_sas_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_vpn_link_connections_get_ike_sas_request( @@ -124553,7 +131698,7 @@ def begin_get_ike_sas( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[str] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -124606,7 +131751,7 @@ def get_long_running_output(pipeline_response): return LROPoller[str](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class NatRulesOperations: +class NatRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -124652,7 +131797,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VpnGatewayNatRule] = kwargs.pop("cls", None) _request = build_nat_rules_get_request( @@ -124705,7 +131850,7 @@ def _create_or_update_initial( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VpnGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[_models.VpnGatewayNatRule, _types.VpnGatewayNatRule, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -124719,7 +131864,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -124819,7 +131964,7 @@ def begin_create_or_update( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: JSON, + nat_rule_parameters: _types.VpnGatewayNatRule, *, content_type: str = "application/json", **kwargs: Any @@ -124836,7 +131981,7 @@ def begin_create_or_update( name can be used to access the resource. Required. :type nat_rule_name: str :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Required. - :type nat_rule_parameters: JSON + :type nat_rule_parameters: ~azure.mgmt.network.types.VpnGatewayNatRule :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -124885,7 +132030,7 @@ def begin_create_or_update( resource_group_name: str, gateway_name: str, nat_rule_name: str, - nat_rule_parameters: Union[_models.VpnGatewayNatRule, JSON, IO[bytes]], + nat_rule_parameters: Union[_models.VpnGatewayNatRule, _types.VpnGatewayNatRule, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.VpnGatewayNatRule]: """Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat @@ -124899,9 +132044,10 @@ def begin_create_or_update( :param nat_rule_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type nat_rule_name: str - :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is one of the - following types: VpnGatewayNatRule, JSON, IO[bytes] Required. - :type nat_rule_parameters: ~azure.mgmt.network.models.VpnGatewayNatRule or JSON or IO[bytes] + :param nat_rule_parameters: Parameters supplied to create or Update a Nat Rule. Is either a + VpnGatewayNatRule type or a IO[bytes] type. Required. + :type nat_rule_parameters: ~azure.mgmt.network.models.VpnGatewayNatRule or + ~azure.mgmt.network.types.VpnGatewayNatRule or IO[bytes] :return: An instance of LROPoller that returns VpnGatewayNatRule. The VpnGatewayNatRule is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnGatewayNatRule] @@ -124910,7 +132056,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnGatewayNatRule] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -124976,7 +132122,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_nat_rules_delete_request( @@ -125046,7 +132192,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -125108,7 +132254,7 @@ def list_by_vpn_gateway( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.VpnGatewayNatRule]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -125180,7 +132326,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteConnectionsOperations: +class ExpressRouteConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -125202,7 +132348,9 @@ def _create_or_update_initial( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: Union[_models.ExpressRouteConnection, JSON, IO[bytes]], + put_express_route_connection_parameters: Union[ + _models.ExpressRouteConnection, _types.ExpressRouteConnection, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -125216,7 +132364,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -125316,7 +132464,7 @@ def begin_create_or_update( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: JSON, + put_express_route_connection_parameters: _types.ExpressRouteConnection, *, content_type: str = "application/json", **kwargs: Any @@ -125332,7 +132480,7 @@ def begin_create_or_update( :type connection_name: str :param put_express_route_connection_parameters: Parameters required in an ExpressRouteConnection PUT operation. Required. - :type put_express_route_connection_parameters: JSON + :type put_express_route_connection_parameters: ~azure.mgmt.network.types.ExpressRouteConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -125380,7 +132528,9 @@ def begin_create_or_update( resource_group_name: str, express_route_gateway_name: str, connection_name: str, - put_express_route_connection_parameters: Union[_models.ExpressRouteConnection, JSON, IO[bytes]], + put_express_route_connection_parameters: Union[ + _models.ExpressRouteConnection, _types.ExpressRouteConnection, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.ExpressRouteConnection]: """Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. @@ -125393,10 +132543,11 @@ def begin_create_or_update( :param connection_name: The name of the express route connection. Required. :type connection_name: str :param put_express_route_connection_parameters: Parameters required in an - ExpressRouteConnection PUT operation. Is one of the following types: ExpressRouteConnection, - JSON, IO[bytes] Required. + ExpressRouteConnection PUT operation. Is either a ExpressRouteConnection type or a IO[bytes] + type. Required. :type put_express_route_connection_parameters: - ~azure.mgmt.network.models.ExpressRouteConnection or JSON or IO[bytes] + ~azure.mgmt.network.models.ExpressRouteConnection or + ~azure.mgmt.network.types.ExpressRouteConnection or IO[bytes] :return: An instance of LROPoller that returns ExpressRouteConnection. The ExpressRouteConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.ExpressRouteConnection] @@ -125405,7 +132556,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExpressRouteConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -125485,7 +132636,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteConnection] = kwargs.pop("cls", None) _request = build_express_route_connections_get_request( @@ -125547,7 +132698,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_express_route_connections_delete_request( @@ -125616,7 +132767,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -125687,7 +132838,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteConnectionList] = kwargs.pop("cls", None) _request = build_express_route_connections_list_request( @@ -125735,7 +132886,7 @@ def list( return deserialized # type: ignore -class VirtualHubBgpConnectionOperations: +class VirtualHubBgpConnectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -125780,7 +132931,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.BgpConnection] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connection_get_request( @@ -125833,7 +132984,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: Union[_models.BgpConnection, JSON, IO[bytes]], + parameters: Union[_models.BgpConnection, _types.BgpConnection, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -125847,7 +132998,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -125946,7 +133097,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: JSON, + parameters: _types.BgpConnection, *, content_type: str = "application/json", **kwargs: Any @@ -125962,7 +133113,7 @@ def begin_create_or_update( :param connection_name: The name of the connection. Required. :type connection_name: str :param parameters: Parameters of Bgp connection. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.BgpConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -126010,7 +133161,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, connection_name: str, - parameters: Union[_models.BgpConnection, JSON, IO[bytes]], + parameters: Union[_models.BgpConnection, _types.BgpConnection, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.BgpConnection]: """Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing @@ -126023,9 +133174,10 @@ def begin_create_or_update( :type virtual_hub_name: str :param connection_name: The name of the connection. Required. :type connection_name: str - :param parameters: Parameters of Bgp connection. Is one of the following types: BgpConnection, - JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.BgpConnection or JSON or IO[bytes] + :param parameters: Parameters of Bgp connection. Is either a BgpConnection type or a IO[bytes] + type. Required. + :type parameters: ~azure.mgmt.network.models.BgpConnection or + ~azure.mgmt.network.types.BgpConnection or IO[bytes] :return: An instance of LROPoller that returns BgpConnection. The BgpConnection is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.BgpConnection] @@ -126034,7 +133186,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BgpConnection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -126100,7 +133252,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connection_delete_request( @@ -126169,7 +133321,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -126214,7 +133366,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class VirtualHubBgpConnectionsOperations: +class VirtualHubBgpConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -126249,7 +133401,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BgpConnection]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -126334,7 +133486,7 @@ def _list_learned_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connections_list_learned_routes_request( @@ -126403,7 +133555,7 @@ def begin_list_learned_routes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[dict[str, List[_models.PeerRoute]]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -126466,7 +133618,7 @@ def _list_advertised_routes_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_bgp_connections_list_advertised_routes_request( @@ -126535,7 +133687,7 @@ def begin_list_advertised_routes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[dict[str, List[_models.PeerRoute]]] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -126585,7 +133737,7 @@ def get_long_running_output(pipeline_response): ) -class VirtualHubIpConfigurationOperations: +class VirtualHubIpConfigurationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -126631,7 +133783,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.HubIpConfiguration] = kwargs.pop("cls", None) _request = build_virtual_hub_ip_configuration_get_request( @@ -126684,7 +133836,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: Union[_models.HubIpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.HubIpConfiguration, _types.HubIpConfiguration, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -126698,7 +133850,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -126798,7 +133950,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: JSON, + parameters: _types.HubIpConfiguration, *, content_type: str = "application/json", **kwargs: Any @@ -126815,7 +133967,7 @@ def begin_create_or_update( name can be used to access the resource. Required. :type ip_config_name: str :param parameters: Hub Ip Configuration parameters. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.HubIpConfiguration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -126864,7 +134016,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, ip_config_name: str, - parameters: Union[_models.HubIpConfiguration, JSON, IO[bytes]], + parameters: Union[_models.HubIpConfiguration, _types.HubIpConfiguration, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.HubIpConfiguration]: """Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing @@ -126878,9 +134030,10 @@ def begin_create_or_update( :param ip_config_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type ip_config_name: str - :param parameters: Hub Ip Configuration parameters. Is one of the following types: - HubIpConfiguration, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.HubIpConfiguration or JSON or IO[bytes] + :param parameters: Hub Ip Configuration parameters. Is either a HubIpConfiguration type or a + IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.HubIpConfiguration or + ~azure.mgmt.network.types.HubIpConfiguration or IO[bytes] :return: An instance of LROPoller that returns HubIpConfiguration. The HubIpConfiguration is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.HubIpConfiguration] @@ -126889,7 +134042,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HubIpConfiguration] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -126955,7 +134108,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_hub_ip_configuration_delete_request( @@ -127025,7 +134178,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -127087,7 +134240,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.HubIpConfiguration]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -127159,7 +134312,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RoutingIntentOperations: +class RoutingIntentOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -127205,7 +134358,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.RoutingIntent] = kwargs.pop("cls", None) _request = build_routing_intent_get_request( @@ -127258,7 +134411,7 @@ def _create_or_update_initial( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: Union[_models.RoutingIntent, JSON, IO[bytes]], + routing_intent_parameters: Union[_models.RoutingIntent, _types.RoutingIntent, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -127272,7 +134425,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -127372,7 +134525,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: JSON, + routing_intent_parameters: _types.RoutingIntent, *, content_type: str = "application/json", **kwargs: Any @@ -127389,7 +134542,7 @@ def begin_create_or_update( :type routing_intent_name: str :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Required. - :type routing_intent_parameters: JSON + :type routing_intent_parameters: ~azure.mgmt.network.types.RoutingIntent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -127438,7 +134591,7 @@ def begin_create_or_update( resource_group_name: str, virtual_hub_name: str, routing_intent_name: str, - routing_intent_parameters: Union[_models.RoutingIntent, JSON, IO[bytes]], + routing_intent_parameters: Union[_models.RoutingIntent, _types.RoutingIntent, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.RoutingIntent]: """Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. @@ -127451,9 +134604,10 @@ def begin_create_or_update( :param routing_intent_name: The name of the resource that is unique within a resource group. This name can be used to access the resource. Required. :type routing_intent_name: str - :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Is one - of the following types: RoutingIntent, JSON, IO[bytes] Required. - :type routing_intent_parameters: ~azure.mgmt.network.models.RoutingIntent or JSON or IO[bytes] + :param routing_intent_parameters: Parameters supplied to create or update RoutingIntent. Is + either a RoutingIntent type or a IO[bytes] type. Required. + :type routing_intent_parameters: ~azure.mgmt.network.models.RoutingIntent or + ~azure.mgmt.network.types.RoutingIntent or IO[bytes] :return: An instance of LROPoller that returns RoutingIntent. The RoutingIntent is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.RoutingIntent] @@ -127462,7 +134616,7 @@ def begin_create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RoutingIntent] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -127528,7 +134682,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_routing_intent_delete_request( @@ -127598,7 +134752,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -127660,7 +134814,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.RoutingIntent]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -127732,7 +134886,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AvailableDelegationsOperations: +class AvailableDelegationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -127762,7 +134916,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.AvailableDele _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableDelegation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -127833,7 +134987,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AvailableResourceGroupDelegationsOperations: # pylint: disable=name-too-long +class AvailableResourceGroupDelegationsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -127866,7 +135020,7 @@ def list(self, location: str, resource_group_name: str, **kwargs: Any) -> ItemPa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableDelegation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -127938,7 +135092,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AvailableServiceAliasesOperations: +class AvailableServiceAliasesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -127968,7 +135122,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.AvailableServ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableServiceAlias]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128056,7 +135210,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailableServiceAlias]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128128,7 +135282,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AzureFirewallFqdnTagsOperations: +class AzureFirewallFqdnTagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -128156,7 +135310,7 @@ def list_all(self, **kwargs: Any) -> ItemPaged["_models.AzureFirewallFqdnTag"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AzureFirewallFqdnTag]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128226,7 +135380,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AvailableEndpointServicesOperations: +class AvailableEndpointServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -128256,7 +135410,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.EndpointServi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.EndpointServiceResult]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128327,7 +135481,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ExpressRouteServiceProvidersOperations: +class ExpressRouteServiceProvidersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -128355,7 +135509,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.ExpressRouteServiceProvider" _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ExpressRouteServiceProvider]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128425,7 +135579,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterAssociableResourceTypesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterAssociableResourceTypesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -128456,7 +135610,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.PerimeterAsso _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.PerimeterAssociableResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128527,7 +135681,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class NetworkSecurityPerimeterOperationStatusesOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterOperationStatusesOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -128567,7 +135721,7 @@ def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.Operat _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None) _request = build_network_security_perimeter_operation_statuses_get_request( @@ -128615,7 +135769,7 @@ def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.Operat return deserialized # type: ignore -class NetworkSecurityPerimeterServiceTagsOperations: # pylint: disable=name-too-long +class NetworkSecurityPerimeterServiceTagsOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -128646,7 +135800,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.NspServiceTag _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.NspServiceTagsResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128717,7 +135871,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class AvailablePrivateEndpointTypesOperations: +class AvailablePrivateEndpointTypesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -128748,7 +135902,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.AvailablePriv _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailablePrivateEndpointType]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128837,7 +135991,7 @@ def list_by_resource_group( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.AvailablePrivateEndpointType]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -128909,7 +136063,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class BgpServiceCommunitiesOperations: +class BgpServiceCommunitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -128937,7 +136091,7 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.BgpServiceCommunity"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BgpServiceCommunity]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -129007,7 +136161,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ServiceTagsOperations: +class ServiceTagsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -129045,7 +136199,7 @@ def list(self, location: str, **kwargs: Any) -> _models.ServiceTagsListResult: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ServiceTagsListResult] = kwargs.pop("cls", None) _request = build_service_tags_list_request( @@ -129092,7 +136246,7 @@ def list(self, location: str, **kwargs: Any) -> _models.ServiceTagsListResult: return deserialized # type: ignore -class ServiceTagInformationOperations: +class ServiceTagInformationOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -129134,7 +136288,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.ServiceTagInformation]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -129207,7 +136361,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -129237,7 +136391,7 @@ def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.Usage]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -129324,13 +136478,13 @@ class _NetworkManagementClientOperationsMixin( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _put_bastion_shareable_link_initial( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -129344,7 +136498,7 @@ def _put_bastion_shareable_link_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -129437,7 +136591,7 @@ def begin_put_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -129451,7 +136605,7 @@ def begin_put_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -129505,13 +136659,13 @@ def begin_put_bastion_shareable_link( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_put_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[ItemPaged["_models.BastionShareableLink"]]: """Creates a Bastion Shareable Links for all the VMs specified in the request. @@ -129521,10 +136675,10 @@ def begin_put_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An instance of LROPoller that returns an iterator like instance of list of BastionShareableLink :rtype: @@ -129535,7 +136689,7 @@ def begin_put_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionShareableLink]] = kwargs.pop("cls", None) @@ -129667,13 +136821,13 @@ def internal_get_next(next_link=None): params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _delete_bastion_shareable_link_initial( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -129687,7 +136841,7 @@ def _delete_bastion_shareable_link_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -129778,7 +136932,7 @@ def begin_delete_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -129792,7 +136946,7 @@ def begin_delete_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -129835,13 +136989,13 @@ def begin_delete_bastion_shareable_link( params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_delete_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[None]: """Deletes the Bastion Shareable Links for all the VMs specified in the request. @@ -129851,10 +137005,10 @@ def begin_delete_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -129862,7 +137016,7 @@ def begin_delete_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -129913,13 +137067,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _delete_bastion_shareable_link_by_token_initial( # pylint: disable=name-too-long self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: Union[_models.BastionShareableLinkTokenListRequest, JSON, IO[bytes]], + bsl_token_request: Union[ + _models.BastionShareableLinkTokenListRequest, _types.BastionShareableLinkTokenListRequest, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -129933,7 +137089,7 @@ def _delete_bastion_shareable_link_by_token_initial( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -130023,7 +137179,7 @@ def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-lo self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: JSON, + bsl_token_request: _types.BastionShareableLinkTokenListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -130037,7 +137193,7 @@ def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-lo :type bastion_host_name: str :param bsl_token_request: Post request for Delete Bastion Shareable Link By Token endpoint. Required. - :type bsl_token_request: JSON + :type bsl_token_request: ~azure.mgmt.network.types.BastionShareableLinkTokenListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -130080,13 +137236,15 @@ def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-lo params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "content_type"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-long self, resource_group_name: str, bastion_host_name: str, - bsl_token_request: Union[_models.BastionShareableLinkTokenListRequest, JSON, IO[bytes]], + bsl_token_request: Union[ + _models.BastionShareableLinkTokenListRequest, _types.BastionShareableLinkTokenListRequest, IO[bytes] + ], **kwargs: Any ) -> LROPoller[None]: """Deletes the Bastion Shareable Links for all the tokens specified in the request. @@ -130097,9 +137255,9 @@ def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-lo :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param bsl_token_request: Post request for Delete Bastion Shareable Link By Token endpoint. Is - one of the following types: BastionShareableLinkTokenListRequest, JSON, IO[bytes] Required. + either a BastionShareableLinkTokenListRequest type or a IO[bytes] type. Required. :type bsl_token_request: ~azure.mgmt.network.models.BastionShareableLinkTokenListRequest or - JSON or IO[bytes] + ~azure.mgmt.network.types.BastionShareableLinkTokenListRequest or IO[bytes] :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -130107,7 +137265,7 @@ def begin_delete_bastion_shareable_link_by_token( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -130186,7 +137344,7 @@ def get_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: JSON, + bsl_request: _types.BastionShareableLinkListRequest, *, content_type: str = "application/json", **kwargs: Any @@ -130200,7 +137358,7 @@ def get_bastion_shareable_link( :type bastion_host_name: str :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Required. - :type bsl_request: JSON + :type bsl_request: ~azure.mgmt.network.types.BastionShareableLinkListRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -130250,13 +137408,13 @@ def get_bastion_shareable_link( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def get_bastion_shareable_link( self, resource_group_name: str, bastion_host_name: str, - bsl_request: Union[_models.BastionShareableLinkListRequest, JSON, IO[bytes]], + bsl_request: Union[_models.BastionShareableLinkListRequest, _types.BastionShareableLinkListRequest, IO[bytes]], **kwargs: Any ) -> ItemPaged["_models.BastionShareableLink"]: """Return the Bastion Shareable Links for all the VMs specified in the request. @@ -130266,10 +137424,10 @@ def get_bastion_shareable_link( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is one - of the following types: BastionShareableLinkListRequest, JSON, IO[bytes] Required. - :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or JSON or - IO[bytes] + :param bsl_request: Post request for Create/Delete/Get Bastion Shareable Link endpoints. Is + either a BastionShareableLinkListRequest type or a IO[bytes] type. Required. + :type bsl_request: ~azure.mgmt.network.models.BastionShareableLinkListRequest or + ~azure.mgmt.network.types.BastionShareableLinkListRequest or IO[bytes] :return: An iterator like instance of BastionShareableLink :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.BastionShareableLink] :raises ~azure.core.exceptions.HttpResponseError: @@ -130277,7 +137435,7 @@ def get_bastion_shareable_link( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionShareableLink]] = kwargs.pop("cls", None) @@ -130362,7 +137520,7 @@ def get_next(next_link=None): params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _get_active_sessions_initial( self, resource_group_name: str, bastion_host_name: str, **kwargs: Any @@ -130378,7 +137536,7 @@ def _get_active_sessions_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_network_management_get_active_sessions_request( @@ -130432,7 +137590,7 @@ def _get_active_sessions_initial( params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "bastion_host_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_get_active_sessions( self, resource_group_name: str, bastion_host_name: str, **kwargs: Any @@ -130454,7 +137612,7 @@ def begin_get_active_sessions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[List[_models.BastionActiveSession]] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -130602,7 +137760,7 @@ def disconnect_active_sessions( self, resource_group_name: str, bastion_host_name: str, - session_ids: JSON, + session_ids: _types.SessionIds, *, content_type: str = "application/json", **kwargs: Any @@ -130615,7 +137773,7 @@ def disconnect_active_sessions( :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str :param session_ids: The list of sessionids to disconnect. Required. - :type session_ids: JSON + :type session_ids: ~azure.mgmt.network.types.SessionIds :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -130664,13 +137822,13 @@ def disconnect_active_sessions( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def disconnect_active_sessions( self, resource_group_name: str, bastion_host_name: str, - session_ids: Union[_models.SessionIds, JSON, IO[bytes]], + session_ids: Union[_models.SessionIds, _types.SessionIds, IO[bytes]], **kwargs: Any ) -> ItemPaged["_models.BastionSessionState"]: """Returns the list of currently active sessions on the Bastion. @@ -130680,9 +137838,10 @@ def disconnect_active_sessions( :type resource_group_name: str :param bastion_host_name: The name of the Bastion Host. Required. :type bastion_host_name: str - :param session_ids: The list of sessionids to disconnect. Is one of the following types: - SessionIds, JSON, IO[bytes] Required. - :type session_ids: ~azure.mgmt.network.models.SessionIds or JSON or IO[bytes] + :param session_ids: The list of sessionids to disconnect. Is either a SessionIds type or a + IO[bytes] type. Required. + :type session_ids: ~azure.mgmt.network.models.SessionIds or + ~azure.mgmt.network.types.SessionIds or IO[bytes] :return: An iterator like instance of BastionSessionState :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.models.BastionSessionState] :raises ~azure.core.exceptions.HttpResponseError: @@ -130690,7 +137849,7 @@ def disconnect_active_sessions( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[List[_models.BastionSessionState]] = kwargs.pop("cls", None) @@ -130774,7 +137933,7 @@ def get_next(next_link=None): @api_version_validation( method_added_on="2025-05-01", params_added_on={"2025-05-01": ["api_version", "subscription_id", "providerport", "accept"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def express_route_provider_port(self, providerport: str, **kwargs: Any) -> _models.ExpressRouteProviderPort: """Retrieves detail of a provider port. @@ -130797,7 +137956,7 @@ def express_route_provider_port(self, providerport: str, **kwargs: Any) -> _mode _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.ExpressRouteProviderPort] = kwargs.pop("cls", None) _request = build_network_management_express_route_provider_port_request( @@ -130880,7 +138039,7 @@ def list_active_connectivity_configurations( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.ActiveConfigurationParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -130894,7 +138053,7 @@ def list_active_connectivity_configurations( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Active Configuration Parameter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ActiveConfigurationParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -130953,13 +138112,13 @@ def list_active_connectivity_configurations( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def list_active_connectivity_configurations( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.ActiveConfigurationParameter, JSON, IO[bytes]], + parameters: Union[_models.ActiveConfigurationParameter, _types.ActiveConfigurationParameter, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -130971,9 +138130,10 @@ def list_active_connectivity_configurations( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Active Configuration Parameter. Is one of the following types: - ActiveConfigurationParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or JSON or IO[bytes] + :param parameters: Active Configuration Parameter. Is either a ActiveConfigurationParameter + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or + ~azure.mgmt.network.types.ActiveConfigurationParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -130993,7 +138153,7 @@ def list_active_connectivity_configurations( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActiveConnectivityConfigurationsListResult] = kwargs.pop("cls", None) @@ -131088,7 +138248,7 @@ def list_active_security_admin_rules( self, resource_group_name: str, network_manager_name: str, - parameters: JSON, + parameters: _types.ActiveConfigurationParameter, *, top: Optional[int] = None, content_type: str = "application/json", @@ -131102,7 +138262,7 @@ def list_active_security_admin_rules( :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str :param parameters: Active Configuration Parameter. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.ActiveConfigurationParameter :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131161,13 +138321,13 @@ def list_active_security_admin_rules( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def list_active_security_admin_rules( self, resource_group_name: str, network_manager_name: str, - parameters: Union[_models.ActiveConfigurationParameter, JSON, IO[bytes]], + parameters: Union[_models.ActiveConfigurationParameter, _types.ActiveConfigurationParameter, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -131179,9 +138339,10 @@ def list_active_security_admin_rules( :type resource_group_name: str :param network_manager_name: The name of the network manager. Required. :type network_manager_name: str - :param parameters: Active Configuration Parameter. Is one of the following types: - ActiveConfigurationParameter, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or JSON or IO[bytes] + :param parameters: Active Configuration Parameter. Is either a ActiveConfigurationParameter + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.ActiveConfigurationParameter or + ~azure.mgmt.network.types.ActiveConfigurationParameter or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131201,7 +138362,7 @@ def list_active_security_admin_rules( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActiveSecurityAdminRulesListResult] = kwargs.pop("cls", None) @@ -131296,7 +138457,7 @@ def list_network_manager_effective_connectivity_configurations( # pylint: disab self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.QueryRequestOptions, *, top: Optional[int] = None, content_type: str = "application/json", @@ -131310,7 +138471,7 @@ def list_network_manager_effective_connectivity_configurations( # pylint: disab :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to list correct page. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryRequestOptions :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131369,13 +138530,13 @@ def list_network_manager_effective_connectivity_configurations( # pylint: disab "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def list_network_manager_effective_connectivity_configurations( # pylint: disable=name-too-long self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.QueryRequestOptions, JSON, IO[bytes]], + parameters: Union[_models.QueryRequestOptions, _types.QueryRequestOptions, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -131387,9 +138548,10 @@ def list_network_manager_effective_connectivity_configurations( # pylint: disab :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :param parameters: Parameters supplied to list correct page. Is one of the following types: - QueryRequestOptions, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or JSON or IO[bytes] + :param parameters: Parameters supplied to list correct page. Is either a QueryRequestOptions + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or + ~azure.mgmt.network.types.QueryRequestOptions or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131409,7 +138571,7 @@ def list_network_manager_effective_connectivity_configurations( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerEffectiveConnectivityConfigurationListResult] = kwargs.pop("cls", None) @@ -131506,7 +138668,7 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name self, resource_group_name: str, virtual_network_name: str, - parameters: JSON, + parameters: _types.QueryRequestOptions, *, top: Optional[int] = None, content_type: str = "application/json", @@ -131520,7 +138682,7 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str :param parameters: Parameters supplied to list correct page. Required. - :type parameters: JSON + :type parameters: ~azure.mgmt.network.types.QueryRequestOptions :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131579,13 +138741,13 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def list_network_manager_effective_security_admin_rules( # pylint: disable=name-too-long self, resource_group_name: str, virtual_network_name: str, - parameters: Union[_models.QueryRequestOptions, JSON, IO[bytes]], + parameters: Union[_models.QueryRequestOptions, _types.QueryRequestOptions, IO[bytes]], *, top: Optional[int] = None, **kwargs: Any @@ -131597,9 +138759,10 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name :type resource_group_name: str :param virtual_network_name: The name of the virtual network. Required. :type virtual_network_name: str - :param parameters: Parameters supplied to list correct page. Is one of the following types: - QueryRequestOptions, JSON, IO[bytes] Required. - :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or JSON or IO[bytes] + :param parameters: Parameters supplied to list correct page. Is either a QueryRequestOptions + type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.network.models.QueryRequestOptions or + ~azure.mgmt.network.types.QueryRequestOptions or IO[bytes] :keyword top: An optional query parameter which specifies the maximum number of records to be returned by the server. Default value is None. :paramtype top: int @@ -131619,7 +138782,7 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NetworkManagerEffectiveSecurityAdminRulesListResult] = kwargs.pop("cls", None) @@ -131683,7 +138846,7 @@ def list_network_manager_effective_security_admin_rules( # pylint: disable=name params_added_on={ "2025-05-01": ["api_version", "subscription_id", "resource_group_name", "virtual_wan_name", "accept"] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def supported_security_providers( self, resource_group_name: str, virtual_wan_name: str, **kwargs: Any @@ -131711,7 +138874,7 @@ def supported_security_providers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.VirtualWanSecurityProviders] = kwargs.pop("cls", None) _request = build_network_management_supported_security_providers_request( @@ -131770,13 +138933,15 @@ def supported_security_providers( "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def _generatevirtualwanvpnserverconfigurationvpnprofile_initial( # pylint: disable=name-too-long self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: Union[_models.VirtualWanVpnProfileParameters, JSON, IO[bytes]], + vpn_client_params: Union[ + _models.VirtualWanVpnProfileParameters, _types.VirtualWanVpnProfileParameters, IO[bytes] + ], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -131790,7 +138955,7 @@ def _generatevirtualwanvpnserverconfigurationvpnprofile_initial( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -131883,7 +139048,7 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: JSON, + vpn_client_params: _types.VirtualWanVpnProfileParameters, *, content_type: str = "application/json", **kwargs: Any @@ -131898,7 +139063,7 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable :type virtual_wan_name: str :param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation operation. Required. - :type vpn_client_params: JSON + :type vpn_client_params: ~azure.mgmt.network.types.VirtualWanVpnProfileParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -131951,13 +139116,15 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable "accept", ] }, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable=name-too-long self, resource_group_name: str, virtual_wan_name: str, - vpn_client_params: Union[_models.VirtualWanVpnProfileParameters, JSON, IO[bytes]], + vpn_client_params: Union[ + _models.VirtualWanVpnProfileParameters, _types.VirtualWanVpnProfileParameters, IO[bytes] + ], **kwargs: Any ) -> LROPoller[_models.VpnProfileResponse]: """Generates a unique VPN profile for P2S clients for VirtualWan and associated @@ -131969,10 +139136,9 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable :param virtual_wan_name: The name of the VirtualWAN. Required. :type virtual_wan_name: str :param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation - operation. Is one of the following types: VirtualWanVpnProfileParameters, JSON, IO[bytes] - Required. - :type vpn_client_params: ~azure.mgmt.network.models.VirtualWanVpnProfileParameters or JSON or - IO[bytes] + operation. Is either a VirtualWanVpnProfileParameters type or a IO[bytes] type. Required. + :type vpn_client_params: ~azure.mgmt.network.models.VirtualWanVpnProfileParameters or + ~azure.mgmt.network.types.VirtualWanVpnProfileParameters or IO[bytes] :return: An instance of LROPoller that returns VpnProfileResponse. The VpnProfileResponse is compatible with MutableMapping :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.models.VpnProfileResponse] @@ -131981,7 +139147,7 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VpnProfileResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -132036,7 +139202,7 @@ def get_long_running_output(pipeline_response): @api_version_validation( method_added_on="2025-05-01", params_added_on={"2025-05-01": ["api_version", "subscription_id", "location", "domain_name_label", "accept"]}, - api_versions_list=["2025-05-01", "2025-07-01"], + api_versions_list=["2025-05-01", "2025-07-01", "2025-09-01"], ) def check_dns_name_availability( self, location: str, *, domain_name_label: str, **kwargs: Any @@ -132064,7 +139230,7 @@ def check_dns_name_availability( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01")) cls: ClsType[_models.DnsNameAvailabilityResult] = kwargs.pop("cls", None) _request = build_network_management_check_dns_name_availability_request( diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_patch.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_patch.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/types.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/types.py new file mode 100644 index 000000000000..c81e152babc3 --- /dev/null +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/types.py @@ -0,0 +1,20257 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, Literal, Optional, TYPE_CHECKING, Union +from typing_extensions import Required, TypedDict + +from .models._enums import AdminRuleKind, FirewallPolicyRuleCollectionType, FirewallPolicyRuleType + +if TYPE_CHECKING: + from .models import ( + Access, + AccessMode, + AccessRuleDirection, + ActionType, + AddressPrefixType, + AddressSpaceAggregationOption, + AddressUpdateAction, + AdminState, + AdvertisedPublicPrefixPropertiesValidationState, + ApplicationGatewayClientAuthVerificationModes, + ApplicationGatewayClientRevocationOptions, + ApplicationGatewayCookieBasedAffinity, + ApplicationGatewayCustomErrorStatusCode, + ApplicationGatewayFirewallMode, + ApplicationGatewayFirewallRateLimitDuration, + ApplicationGatewayFirewallUserSessionVariable, + ApplicationGatewayLoadDistributionAlgorithm, + ApplicationGatewayOperationalState, + ApplicationGatewayProtocol, + ApplicationGatewayRedirectType, + ApplicationGatewayRequestRoutingRuleType, + ApplicationGatewaySkuFamily, + ApplicationGatewaySkuName, + ApplicationGatewaySslCipherSuite, + ApplicationGatewaySslPolicyName, + ApplicationGatewaySslPolicyType, + ApplicationGatewaySslProtocol, + ApplicationGatewayTier, + ApplicationGatewayUnAuthorizedRequestAction, + AssociationAccessMode, + AuthenticationMethod, + AuthorizationUseStatus, + AutoLearnPrivateRangesMode, + AzureFirewallApplicationRuleProtocolType, + AzureFirewallNatRCActionType, + AzureFirewallNetworkRuleProtocol, + AzureFirewallPacketCaptureFlagsType, + AzureFirewallPacketCaptureOperationType, + AzureFirewallRCActionType, + AzureFirewallSkuName, + AzureFirewallSkuTier, + AzureFirewallThreatIntelMode, + BastionHostSkuName, + CircuitConnectionStatus, + CommissionedState, + ConfigurationType, + ConnectedGroupAddressOverlap, + ConnectedGroupPrivateEndpointsScale, + ConnectionAnalyzerEndpointType, + ConnectionAnalyzerStatus, + ConnectionAuthenticationType, + ConnectionMonitorEndpointFilterItemType, + ConnectionMonitorEndpointFilterType, + ConnectionMonitorTestConfigurationProtocol, + ConnectivityTopology, + CoverageLevel, + CreatedByType, + CustomIpPrefixType, + DdosDetectionMode, + DdosSettingsProtectionMode, + DdosTrafficType, + DeleteExistingPeering, + DeleteOptions, + DestinationPortBehavior, + DhGroup, + DiagnosticOperation, + Direction, + DisableBgpRoutePropagation, + DisablePeeringRoute, + EnableOnlyIpv6PeeringState, + EndpointType, + ExceptionEntryMatchVariable, + ExceptionEntrySelectorMatchOperator, + ExceptionEntryValueMatchOperator, + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, + ExpressRouteCircuitPeeringState, + ExpressRouteCircuitSkuFamily, + ExpressRouteCircuitSkuTier, + ExpressRouteLagBillingType, + ExpressRouteLagEncapsulation, + ExpressRouteLagLacpTimer, + ExpressRouteLinkAdminState, + ExpressRouteLinkConnectorType, + ExpressRouteLinkMacSecCipher, + ExpressRouteLinkMacSecSciState, + ExpressRoutePeeringState, + ExpressRoutePeeringType, + ExpressRoutePortAuthorizationUseStatus, + ExpressRoutePortsBillingType, + ExpressRoutePortsEncapsulation, + ExtendedLocationTypes, + FirewallPolicyFilterRuleCollectionActionType, + FirewallPolicyIDPSQuerySortOrder, + FirewallPolicyIntrusionDetectionProfileType, + FirewallPolicyIntrusionDetectionProtocol, + FirewallPolicyIntrusionDetectionStateType, + FirewallPolicyNatRuleCollectionActionType, + FirewallPolicyRuleApplicationProtocolType, + FirewallPolicyRuleNetworkProtocol, + FirewallPolicySkuTier, + FlowLogFormatType, + GatewayLoadBalancerTunnelInterfaceType, + GatewayLoadBalancerTunnelProtocol, + Geo, + GroupConnectivity, + GroupMemberType, + HTTPConfigurationMethod, + HTTPMethod, + HubBgpConnectionStatus, + HubRoutingPreference, + IPAllocationMethod, + IPVersion, + IkeEncryption, + IkeIntegrity, + InboundSecurityRuleType, + InboundSecurityRulesProtocol, + InterconnectGroupScope, + IpAllocationType, + IpFlowProtocol, + IpType, + IpsecEncryption, + IpsecIntegrity, + IsGlobal, + IsRollback, + LabelSelectorOperator, + LoadBalancerBackendAddressAdminState, + LoadBalancerMode, + LoadBalancerOutboundRuleProtocol, + LoadBalancerScope, + LoadBalancerSkuName, + LoadBalancerSkuTier, + LoadDistribution, + ManagedRuleEnabledState, + MigrationType, + Nat64State, + NatGatewaySkuName, + NetworkIntentPolicyBasedService, + NetworkInterfaceAuxiliaryMode, + NetworkInterfaceAuxiliarySku, + NetworkInterfaceMigrationPhase, + NetworkInterfaceNicType, + NetworkProtocol, + NextStep, + NicTypeInRequest, + NicTypeInResponse, + NspLinkProvisioningState, + NspLinkStatus, + NspProvisioningState, + NvaNicType, + OfficeTrafficCategory, + OutputType, + OwaspCrsExclusionEntryMatchVariable, + OwaspCrsExclusionEntrySelectorMatchOperator, + PacketCaptureTargetType, + PcProtocol, + PeeringEnforcement, + PfsGroup, + PreferredIPVersion, + PreferredRoutingGateway, + PrivateEndpointBillingSku, + PrivateEndpointIPVersionType, + PrivateEndpointVNetPolicies, + ProbeNoHealthyBackendsBehavior, + ProbeProtocol, + ProcessorArchitecture, + Protocol, + ProtocolType, + ProvisioningState, + PublicIPAddressMigrationPhase, + PublicIPAddressSkuName, + PublicIPAddressSkuTier, + PublicIPPrefixSkuName, + PublicIPPrefixSkuTier, + PublicIpAddressDnsSettingsDomainNameLabelScope, + ResiliencyLevel, + ResiliencyModel, + ResourceIdentityType, + RouteFilterRuleType, + RouteMapActionType, + RouteMapMatchCondition, + RouteNextHopType, + RouteTableUsageMode, + RoutingRuleDestinationType, + RoutingRuleNextHopType, + RoutingState, + ScopeConnectionState, + ScrubbingRuleEntryMatchOperator, + ScrubbingRuleEntryMatchVariable, + ScrubbingRuleEntryState, + SecurityConfigurationRuleAccess, + SecurityConfigurationRuleDirection, + SecurityConfigurationRuleProtocol, + SecurityPartnerProviderConnectionStatus, + SecurityProviderName, + SecurityRuleAccess, + SecurityRuleDirection, + SecurityRuleProtocol, + SensitivityType, + ServiceGatewaySkuName, + ServiceGatewaySkuTier, + ServiceProviderProvisioningState, + ServiceType, + ServiceUpdateAction, + SharingScope, + SlotType, + SubgroupProfileScope, + SyncMode, + TransportProtocol, + UpdateAction, + UseHubGateway, + VerbosityLevel, + VirtualNetworkApplianceIpVersionType, + VirtualNetworkEncryptionEnforcement, + VirtualNetworkGatewayConnectionMode, + VirtualNetworkGatewayConnectionProtocol, + VirtualNetworkGatewayConnectionStatus, + VirtualNetworkGatewayConnectionType, + VirtualNetworkGatewayMigrationPhase, + VirtualNetworkGatewayMigrationState, + VirtualNetworkGatewayMigrationType, + VirtualNetworkGatewaySkuName, + VirtualNetworkGatewaySkuTier, + VirtualNetworkGatewayType, + VirtualNetworkPeeringLevel, + VirtualNetworkPeeringState, + VirtualNetworkPrivateEndpointNetworkPolicies, + VirtualNetworkPrivateLinkServiceNetworkPolicies, + VnetLocalRouteOverrideCriteria, + VpnAuthenticationType, + VpnClientProtocol, + VpnConnectionStatus, + VpnGatewayGeneration, + VpnGatewayTunnelingProtocol, + VpnLinkConnectionMode, + VpnNatRuleMode, + VpnNatRuleType, + VpnPolicyMemberAttributeType, + VpnType, + WebApplicationFirewallAction, + WebApplicationFirewallEnabledState, + WebApplicationFirewallMatchVariable, + WebApplicationFirewallMode, + WebApplicationFirewallOperator, + WebApplicationFirewallPolicyResourceState, + WebApplicationFirewallRuleType, + WebApplicationFirewallScrubbingState, + WebApplicationFirewallState, + WebApplicationFirewallTransform, + ) + + +class AadAuthenticationParameters(TypedDict, total=False): + """AAD Vpn authentication type related parameters. + + :ivar aadTenant: AAD Vpn authentication parameter AAD tenant. + :vartype aadTenant: str + :ivar aadAudience: AAD Vpn authentication parameter AAD audience. + :vartype aadAudience: str + :ivar aadIssuer: AAD Vpn authentication parameter AAD issuer. + :vartype aadIssuer: str + """ + + aadTenant: str + """AAD Vpn authentication parameter AAD tenant.""" + aadAudience: str + """AAD Vpn authentication parameter AAD audience.""" + aadIssuer: str + """AAD Vpn authentication parameter AAD issuer.""" + + +class Action(TypedDict, total=False): + """Action to be taken on a route matching a RouteMap criterion. + + :ivar type: Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and + 'Drop.'. Known values are: "Unknown", "Remove", "Add", "Replace", and "Drop". + :vartype type: Union[str, "RouteMapActionType"] + :ivar parameters: List of parameters relevant to the action.For instance if type is drop then + parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN + numbers to be added. + :vartype parameters: list["Parameter"] + """ + + type: Union[str, "RouteMapActionType"] + """Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.'. Known + values are: \"Unknown\", \"Remove\", \"Add\", \"Replace\", and \"Drop\".""" + parameters: list["Parameter"] + """List of parameters relevant to the action.For instance if type is drop then parameters has list + of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be + added.""" + + +class ActiveConfigurationParameter(TypedDict, total=False): + """Effective Virtual Networks Parameter. + + :ivar regions: List of regions. + :vartype regions: list[str] + :ivar skipToken: When present, the value can be passed to a subsequent query call (together + with the same query and scopes used in the current request) to retrieve the next page of data. + :vartype skipToken: str + """ + + regions: list[str] + """List of regions.""" + skipToken: str + """When present, the value can be passed to a subsequent query call (together with the same query + and scopes used in the current request) to retrieve the next page of data.""" + + +class AddressPrefixItem(TypedDict, total=False): + """Address prefix item. + + :ivar addressPrefix: Address prefix. + :vartype addressPrefix: str + :ivar addressPrefixType: Address prefix type. Known values are: "IPPrefix", "ServiceTag", and + "NetworkGroup". + :vartype addressPrefixType: Union[str, "AddressPrefixType"] + """ + + addressPrefix: str + """Address prefix.""" + addressPrefixType: Union[str, "AddressPrefixType"] + """Address prefix type. Known values are: \"IPPrefix\", \"ServiceTag\", and \"NetworkGroup\".""" + + +class ProxyResource(TypedDict, total=False): + """Proxy resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AddressPrefixSet(ProxyResource): + """Address prefix set child resource of an application security group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Properties of the address prefix set. + :vartype properties: "AddressPrefixSetPropertiesFormat" + """ + + properties: "AddressPrefixSetPropertiesFormat" + """Properties of the address prefix set.""" + + +class AddressPrefixSetPropertiesFormat(TypedDict, total=False): + """Properties of address prefix set. + + :ivar addressPrefixes: The list of address prefixes in CIDR notation. Supports both IPv4 and + IPv6 CIDR notation (e.g. '10.0.0.0/16', '2001:db8::/32'). Required. + :vartype addressPrefixes: list[str] + :ivar provisioningState: The provisioning state of the address prefix set resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + addressPrefixes: Required[list[str]] + """The list of address prefixes in CIDR notation. Supports both IPv4 and IPv6 CIDR notation (e.g. + '10.0.0.0/16', '2001:db8::/32'). Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the address prefix set resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AddressSpace(TypedDict, total=False): + """AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual + network. + + :ivar addressPrefixes: A list of address blocks reserved for this virtual network in CIDR + notation. + :vartype addressPrefixes: list[str] + :ivar ipamPoolPrefixAllocations: A list of IPAM Pools allocating IP address prefixes. + :vartype ipamPoolPrefixAllocations: list["IpamPoolPrefixAllocation"] + """ + + addressPrefixes: list[str] + """A list of address blocks reserved for this virtual network in CIDR notation.""" + ipamPoolPrefixAllocations: list["IpamPoolPrefixAllocation"] + """A list of IPAM Pools allocating IP address prefixes.""" + + +class AdminPropertiesFormat(TypedDict, total=False): + """Security admin rule resource. + + :ivar description: A description for this rule. Restricted to 140 chars. + :vartype description: str + :ivar protocol: Network protocol this rule applies to. Required. Known values are: "Tcp", + "Udp", "Icmp", "Esp", "Any", and "Ah". + :vartype protocol: Union[str, "SecurityConfigurationRuleProtocol"] + :ivar sources: The CIDR or source IP ranges. + :vartype sources: list["AddressPrefixItem"] + :ivar destinations: The destination address prefixes. CIDR or destination IP ranges. + :vartype destinations: list["AddressPrefixItem"] + :ivar sourcePortRanges: The source port ranges. + :vartype sourcePortRanges: list[str] + :ivar destinationPortRanges: The destination port ranges. + :vartype destinationPortRanges: list[str] + :ivar access: Indicates the access allowed for this particular rule. Required. Known values + are: "Allow", "Deny", and "AlwaysAllow". + :vartype access: Union[str, "SecurityConfigurationRuleAccess"] + :ivar priority: The priority of the rule. The value can be between 1 and 4096. The priority + number must be unique for each rule in the collection. The lower the priority number, the + higher the priority of the rule. Required. + :vartype priority: int + :ivar direction: Indicates if the traffic matched against the rule in inbound or outbound. + Required. Known values are: "Inbound" and "Outbound". + :vartype direction: Union[str, "SecurityConfigurationRuleDirection"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description for this rule. Restricted to 140 chars.""" + protocol: Required[Union[str, "SecurityConfigurationRuleProtocol"]] + """Network protocol this rule applies to. Required. Known values are: \"Tcp\", \"Udp\", \"Icmp\", + \"Esp\", \"Any\", and \"Ah\".""" + sources: list["AddressPrefixItem"] + """The CIDR or source IP ranges.""" + destinations: list["AddressPrefixItem"] + """The destination address prefixes. CIDR or destination IP ranges.""" + sourcePortRanges: list[str] + """The source port ranges.""" + destinationPortRanges: list[str] + """The destination port ranges.""" + access: Required[Union[str, "SecurityConfigurationRuleAccess"]] + """Indicates the access allowed for this particular rule. Required. Known values are: \"Allow\", + \"Deny\", and \"AlwaysAllow\".""" + priority: Required[int] + """The priority of the rule. The value can be between 1 and 4096. The priority number must be + unique for each rule in the collection. The lower the priority number, the higher the priority + of the rule. Required.""" + direction: Required[Union[str, "SecurityConfigurationRuleDirection"]] + """Indicates if the traffic matched against the rule in inbound or outbound. Required. Known + values are: \"Inbound\" and \"Outbound\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class ChildResource(TypedDict, total=False): + """Proxy resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AdminRule(TypedDict, total=False): + """Network admin rule. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + :ivar properties: Indicates the properties of the security admin rule. + :vartype properties: "AdminPropertiesFormat" + :ivar kind: Whether the rule is custom or default. Required. Custom. + :vartype kind: Literal[AdminRuleKind.CUSTOM] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + properties: "AdminPropertiesFormat" + """Indicates the properties of the security admin rule.""" + kind: Required[Literal[AdminRuleKind.CUSTOM]] + """Whether the rule is custom or default. Required. Custom.""" + + +class AdminRuleCollection(ChildResource): + """Defines the admin rule collection. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager admin rule collection. + :vartype properties: "AdminRuleCollectionPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "AdminRuleCollectionPropertiesFormat" + """Indicates the properties for the network manager admin rule collection.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class AdminRuleCollectionPropertiesFormat(TypedDict, total=False): + """Defines the admin rule collection properties. + + :ivar description: A description of the admin rule collection. + :vartype description: str + :ivar appliesToGroups: Groups for configuration. Required. + :vartype appliesToGroups: list["NetworkManagerSecurityGroupItem"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the admin rule collection.""" + appliesToGroups: Required[list["NetworkManagerSecurityGroupItem"]] + """Groups for configuration. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class AdvertisedPublicPrefixProperties(TypedDict, total=False): + """Prefix properties required to perform validation using openssl signature. + + :ivar prefix: Advertised Public Prefix. + :vartype prefix: str + :ivar validationId: Validation string that contains circuit peering info. + :vartype validationId: str + :ivar signature: Signed string generated by encrypting validationId with a private key. + :vartype signature: str + :ivar validationState: Advertised Public Prefix State that denotes if the prefix is validated + or not. Known values are: "NotConfigured", "Configuring", "Configured", "ValidationNeeded", + "ValidationFailed", "ManualValidationNeeded", "AsnValidationFailed", + "CertificateMissingInRoutingRegistry", "InvalidSignatureEncoding", and + "SignatureVerificationFailed". + :vartype validationState: Union[str, "AdvertisedPublicPrefixPropertiesValidationState"] + """ + + prefix: str + """Advertised Public Prefix.""" + validationId: str + """Validation string that contains circuit peering info.""" + signature: str + """Signed string generated by encrypting validationId with a private key.""" + validationState: Union[str, "AdvertisedPublicPrefixPropertiesValidationState"] + """Advertised Public Prefix State that denotes if the prefix is validated or not. Known values + are: \"NotConfigured\", \"Configuring\", \"Configured\", \"ValidationNeeded\", + \"ValidationFailed\", \"ManualValidationNeeded\", \"AsnValidationFailed\", + \"CertificateMissingInRoutingRegistry\", \"InvalidSignatureEncoding\", and + \"SignatureVerificationFailed\".""" + + +class AfcConfiguration(TypedDict, total=False): + """AFC configuration for the Azure Firewall. + + :ivar serviceEndpoint: The endpoint URL of the AFC control plane associated with this Azure + Firewall. + :vartype serviceEndpoint: str + """ + + serviceEndpoint: str + """The endpoint URL of the AFC control plane associated with this Azure Firewall.""" + + +class Resource(TypedDict, total=False): + """Common resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + location: str + """Resource location.""" + tags: dict[str, str] + """Resource tags.""" + + +class ApplicationGateway(Resource): + """Application gateway resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the application gateway. + :vartype properties: "ApplicationGatewayPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar zones: A list of availability zones denoting where the resource needs to come from. + :vartype zones: list[str] + :ivar identity: The identity of the application gateway, if configured. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "ApplicationGatewayPropertiesFormat" + """Properties of the application gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + zones: list[str] + """A list of availability zones denoting where the resource needs to come from.""" + identity: "ManagedServiceIdentity" + """The identity of the application gateway, if configured.""" + + +class SubResource(TypedDict, total=False): + """Reference to another subresource. + + :ivar id: Resource ID. + :vartype id: str + """ + + id: str + """Resource ID.""" + + +class ApplicationGatewayAuthenticationCertificate(SubResource): # pylint: disable=name-too-long + """Authentication certificates of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway authentication certificate. + :vartype properties: "ApplicationGatewayAuthenticationCertificatePropertiesFormat" + :ivar name: Name of the authentication certificate that is unique within an Application + Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayAuthenticationCertificatePropertiesFormat" + """Properties of the application gateway authentication certificate.""" + name: str + """Name of the authentication certificate that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayAuthenticationCertificatePropertiesFormat( + TypedDict, total=False +): # pylint: disable=name-too-long + """Authentication certificates properties of an application gateway. + + :ivar data: Certificate public data. + :vartype data: str + :ivar provisioningState: The provisioning state of the authentication certificate resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + data: str + """Certificate public data.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the authentication certificate resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayAutoscaleConfiguration(TypedDict, total=False): + """Application Gateway autoscale configuration. + + :ivar minCapacity: Lower bound on number of Application Gateway capacity. Required. + :vartype minCapacity: int + :ivar maxCapacity: Upper bound on number of Application Gateway capacity. + :vartype maxCapacity: int + """ + + minCapacity: Required[int] + """Lower bound on number of Application Gateway capacity. Required.""" + maxCapacity: int + """Upper bound on number of Application Gateway capacity.""" + + +class ApplicationGatewayBackendAddress(TypedDict, total=False): + """Backend address of an application gateway. + + :ivar fqdn: Fully qualified domain name (FQDN). + :vartype fqdn: str + :ivar ipAddress: IP address. + :vartype ipAddress: str + """ + + fqdn: str + """Fully qualified domain name (FQDN).""" + ipAddress: str + """IP address.""" + + +class ApplicationGatewayBackendAddressPool(SubResource): + """Backend Address Pool of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway backend address pool. + :vartype properties: "ApplicationGatewayBackendAddressPoolPropertiesFormat" + :ivar name: Name of the backend address pool that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayBackendAddressPoolPropertiesFormat" + """Properties of the application gateway backend address pool.""" + name: str + """Name of the backend address pool that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayBackendAddressPoolPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Backend Address Pool of an application gateway. + + :ivar backendIPConfigurations: Collection of references to IPs defined in network interfaces. + :vartype backendIPConfigurations: list["NetworkInterfaceIPConfiguration"] + :ivar backendAddresses: Backend addresses. + :vartype backendAddresses: list["ApplicationGatewayBackendAddress"] + :ivar provisioningState: The provisioning state of the backend address pool resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + backendIPConfigurations: list["NetworkInterfaceIPConfiguration"] + """Collection of references to IPs defined in network interfaces.""" + backendAddresses: list["ApplicationGatewayBackendAddress"] + """Backend addresses.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the backend address pool resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayBackendHttpSettings(SubResource): + """Backend address pool settings of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway backend HTTP settings. + :vartype properties: "ApplicationGatewayBackendHttpSettingsPropertiesFormat" + :ivar name: Name of the backend http settings that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayBackendHttpSettingsPropertiesFormat" + """Properties of the application gateway backend HTTP settings.""" + name: str + """Name of the backend http settings that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayBackendHttpSettingsPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Backend address pool settings of an application gateway. + + :ivar port: The destination port on the backend. + :vartype port: int + :ivar protocol: The protocol used to communicate with the backend. Known values are: "Http", + "Https", "Tcp", and "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar cookieBasedAffinity: Cookie based affinity. Known values are: "Enabled" and "Disabled". + :vartype cookieBasedAffinity: Union[str, "ApplicationGatewayCookieBasedAffinity"] + :ivar requestTimeout: Request timeout in seconds. Application Gateway will fail the request if + response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 + seconds. + :vartype requestTimeout: int + :ivar probe: Probe resource of an application gateway. + :vartype probe: "SubResource" + :ivar authenticationCertificates: Array of references to application gateway authentication + certificates. + :vartype authenticationCertificates: list["SubResource"] + :ivar trustedRootCertificates: Array of references to application gateway trusted root + certificates. + :vartype trustedRootCertificates: list["SubResource"] + :ivar connectionDraining: Connection draining of the backend http settings resource. + :vartype connectionDraining: "ApplicationGatewayConnectionDraining" + :ivar hostName: Host header to be sent to the backend servers. + :vartype hostName: str + :ivar pickHostNameFromBackendAddress: Whether to pick host header should be picked from the + host name of the backend server. Default value is false. + :vartype pickHostNameFromBackendAddress: bool + :ivar affinityCookieName: Cookie name to use for the affinity cookie. + :vartype affinityCookieName: str + :ivar probeEnabled: Whether the probe is enabled. Default value is false. + :vartype probeEnabled: bool + :ivar path: Path which should be used as a prefix for all HTTP requests. Null means no path + will be prefixed. Default value is null. + :vartype path: str + :ivar dedicatedBackendConnection: Enable or disable dedicated connection per backend server. + Default is set to false. + :vartype dedicatedBackendConnection: bool + :ivar validateCertChainAndExpiry: Verify or skip both chain and expiry validations of the + certificate on the backend server. Default is set to true. + :vartype validateCertChainAndExpiry: bool + :ivar validateSNI: When enabled, verifies if the Common Name of the certificate provided by the + backend server matches the Server Name Indication (SNI) value. Default value is true. + :vartype validateSNI: bool + :ivar sniName: Specify an SNI value to match the common name of the certificate on the backend. + By default, the application gateway uses the incoming request’s host header as the SNI. Default + value is null. + :vartype sniName: str + :ivar provisioningState: The provisioning state of the backend HTTP settings resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + port: int + """The destination port on the backend.""" + protocol: Union[str, "ApplicationGatewayProtocol"] + """The protocol used to communicate with the backend. Known values are: \"Http\", \"Https\", + \"Tcp\", and \"Tls\".""" + cookieBasedAffinity: Union[str, "ApplicationGatewayCookieBasedAffinity"] + """Cookie based affinity. Known values are: \"Enabled\" and \"Disabled\".""" + requestTimeout: int + """Request timeout in seconds. Application Gateway will fail the request if response is not + received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds.""" + probe: "SubResource" + """Probe resource of an application gateway.""" + authenticationCertificates: list["SubResource"] + """Array of references to application gateway authentication certificates.""" + trustedRootCertificates: list["SubResource"] + """Array of references to application gateway trusted root certificates.""" + connectionDraining: "ApplicationGatewayConnectionDraining" + """Connection draining of the backend http settings resource.""" + hostName: str + """Host header to be sent to the backend servers.""" + pickHostNameFromBackendAddress: bool + """Whether to pick host header should be picked from the host name of the backend server. Default + value is false.""" + affinityCookieName: str + """Cookie name to use for the affinity cookie.""" + probeEnabled: bool + """Whether the probe is enabled. Default value is false.""" + path: str + """Path which should be used as a prefix for all HTTP requests. Null means no path will be + prefixed. Default value is null.""" + dedicatedBackendConnection: bool + """Enable or disable dedicated connection per backend server. Default is set to false.""" + validateCertChainAndExpiry: bool + """Verify or skip both chain and expiry validations of the certificate on the backend server. + Default is set to true.""" + validateSNI: bool + """When enabled, verifies if the Common Name of the certificate provided by the backend server + matches the Server Name Indication (SNI) value. Default value is true.""" + sniName: str + """Specify an SNI value to match the common name of the certificate on the backend. By default, + the application gateway uses the incoming request’s host header as the SNI. Default value is + null.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the backend HTTP settings resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayBackendSettings(SubResource): + """Backend address pool settings of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway backend settings. + :vartype properties: "ApplicationGatewayBackendSettingsPropertiesFormat" + :ivar name: Name of the backend settings that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayBackendSettingsPropertiesFormat" + """Properties of the application gateway backend settings.""" + name: str + """Name of the backend settings that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayBackendSettingsPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Backend address pool settings of an application gateway. + + :ivar port: The destination port on the backend. + :vartype port: int + :ivar protocol: The protocol used to communicate with the backend. Known values are: "Http", + "Https", "Tcp", and "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar timeout: Connection timeout in seconds. Application Gateway will fail the request if + response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 + seconds. + :vartype timeout: int + :ivar probe: Probe resource of an application gateway. + :vartype probe: "SubResource" + :ivar trustedRootCertificates: Array of references to application gateway trusted root + certificates. + :vartype trustedRootCertificates: list["SubResource"] + :ivar hostName: Server name indication to be sent to the backend servers for Tls protocol. + :vartype hostName: str + :ivar pickHostNameFromBackendAddress: Whether to pick server name indication from the host name + of the backend server for Tls protocol. Default value is false. + :vartype pickHostNameFromBackendAddress: bool + :ivar enableL4ClientIpPreservation: Whether to send Proxy Protocol header to backend servers + over TCP or TLS protocols. Default value is false. + :vartype enableL4ClientIpPreservation: bool + :ivar provisioningState: The provisioning state of the backend HTTP settings resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + port: int + """The destination port on the backend.""" + protocol: Union[str, "ApplicationGatewayProtocol"] + """The protocol used to communicate with the backend. Known values are: \"Http\", \"Https\", + \"Tcp\", and \"Tls\".""" + timeout: int + """Connection timeout in seconds. Application Gateway will fail the request if response is not + received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds.""" + probe: "SubResource" + """Probe resource of an application gateway.""" + trustedRootCertificates: list["SubResource"] + """Array of references to application gateway trusted root certificates.""" + hostName: str + """Server name indication to be sent to the backend servers for Tls protocol.""" + pickHostNameFromBackendAddress: bool + """Whether to pick server name indication from the host name of the backend server for Tls + protocol. Default value is false.""" + enableL4ClientIpPreservation: bool + """Whether to send Proxy Protocol header to backend servers over TCP or TLS protocols. Default + value is false.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the backend HTTP settings resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayClientAuthConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """Application gateway client authentication configuration. + + :ivar verifyClientCertIssuerDN: Verify client certificate issuer name on the application + gateway. + :vartype verifyClientCertIssuerDN: bool + :ivar verifyClientRevocation: Verify client certificate revocation status. Known values are: + "None" and "OCSP". + :vartype verifyClientRevocation: Union[str, "ApplicationGatewayClientRevocationOptions"] + :ivar verifyClientAuthMode: Verify client Authentication mode. Known values are: "Strict" and + "Passthrough". + :vartype verifyClientAuthMode: Union[str, "ApplicationGatewayClientAuthVerificationModes"] + """ + + verifyClientCertIssuerDN: bool + """Verify client certificate issuer name on the application gateway.""" + verifyClientRevocation: Union[str, "ApplicationGatewayClientRevocationOptions"] + """Verify client certificate revocation status. Known values are: \"None\" and \"OCSP\".""" + verifyClientAuthMode: Union[str, "ApplicationGatewayClientAuthVerificationModes"] + """Verify client Authentication mode. Known values are: \"Strict\" and \"Passthrough\".""" + + +class ApplicationGatewayConnectionDraining(TypedDict, total=False): + """Connection draining allows open connections to a backend server to be active for a specified + time after the backend server got removed from the configuration. + + :ivar enabled: Whether connection draining is enabled or not. Required. + :vartype enabled: bool + :ivar drainTimeoutInSec: The number of seconds connection draining is active. Acceptable values + are from 1 second to 3600 seconds. Required. + :vartype drainTimeoutInSec: int + """ + + enabled: Required[bool] + """Whether connection draining is enabled or not. Required.""" + drainTimeoutInSec: Required[int] + """The number of seconds connection draining is active. Acceptable values are from 1 second to + 3600 seconds. Required.""" + + +class ApplicationGatewayCustomError(TypedDict, total=False): + """Custom error of an application gateway. + + :ivar statusCode: Status code of the application gateway custom error. Known values are: + "HttpStatus400", "HttpStatus403", "HttpStatus404", "HttpStatus405", "HttpStatus408", + "HttpStatus500", "HttpStatus502", "HttpStatus503", and "HttpStatus504". + :vartype statusCode: Union[str, "ApplicationGatewayCustomErrorStatusCode"] + :ivar customErrorPageUrl: Error page URL of the application gateway custom error. + :vartype customErrorPageUrl: str + """ + + statusCode: Union[str, "ApplicationGatewayCustomErrorStatusCode"] + """Status code of the application gateway custom error. Known values are: \"HttpStatus400\", + \"HttpStatus403\", \"HttpStatus404\", \"HttpStatus405\", \"HttpStatus408\", \"HttpStatus500\", + \"HttpStatus502\", \"HttpStatus503\", and \"HttpStatus504\".""" + customErrorPageUrl: str + """Error page URL of the application gateway custom error.""" + + +class ApplicationGatewayEntraJWTValidationConfig(SubResource): # pylint: disable=name-too-long + """Entra JWT Validation Configuration of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway entra jwt validation configuration. + :vartype properties: "ApplicationGatewayEntraJWTValidationConfigPropertiesFormat" + :ivar name: Name of the entra jwt validation configuration that is unique within an application + gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ApplicationGatewayEntraJWTValidationConfigPropertiesFormat" + """Properties of the application gateway entra jwt validation configuration.""" + name: str + """Name of the entra jwt validation configuration that is unique within an application gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ApplicationGatewayEntraJWTValidationConfigPropertiesFormat( + TypedDict, total=False +): # pylint: disable=name-too-long + """Properties of entra jwt validation configuration of the application gateway. + + :ivar unAuthorizedRequestAction: Unauthorized request action. Known values are: "Deny" and + "Allow". + :vartype unAuthorizedRequestAction: Union[str, "ApplicationGatewayUnAuthorizedRequestAction"] + :ivar tenantId: The Tenant ID of the Microsoft Entra ID application. + :vartype tenantId: str + :ivar clientId: The Client ID of the Microsoft Entra ID application. + :vartype clientId: str + :ivar audiences: List of acceptable audience claims that can be present in the token (aud + claim). A maximum of 5 audiences are permitted. + :vartype audiences: list[str] + :ivar provisioningState: The provisioning state of the entra jwt validation configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + unAuthorizedRequestAction: Union[str, "ApplicationGatewayUnAuthorizedRequestAction"] + """Unauthorized request action. Known values are: \"Deny\" and \"Allow\".""" + tenantId: str + """The Tenant ID of the Microsoft Entra ID application.""" + clientId: str + """The Client ID of the Microsoft Entra ID application.""" + audiences: list[str] + """List of acceptable audience claims that can be present in the token (aud claim). A maximum of 5 + audiences are permitted.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the entra jwt validation configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayFirewallDisabledRuleGroup(TypedDict, total=False): # pylint: disable=name-too-long + """Allows to disable rules within a rule group or an entire rule group. + + :ivar ruleGroupName: The name of the rule group that will be disabled. Required. + :vartype ruleGroupName: str + :ivar rules: The list of rules that will be disabled. If null, all rules of the rule group will + be disabled. + :vartype rules: list[int] + """ + + ruleGroupName: Required[str] + """The name of the rule group that will be disabled. Required.""" + rules: list[int] + """The list of rules that will be disabled. If null, all rules of the rule group will be disabled.""" + + +class ApplicationGatewayFirewallExclusion(TypedDict, total=False): + """Allow to exclude some variable satisfy the condition for the WAF check. + + :ivar matchVariable: The variable to be excluded. Required. + :vartype matchVariable: str + :ivar selectorMatchOperator: When matchVariable is a collection, operate on the selector to + specify which elements in the collection this exclusion applies to. Required. + :vartype selectorMatchOperator: str + :ivar selector: When matchVariable is a collection, operator used to specify which elements in + the collection this exclusion applies to. Required. + :vartype selector: str + """ + + matchVariable: Required[str] + """The variable to be excluded. Required.""" + selectorMatchOperator: Required[str] + """When matchVariable is a collection, operate on the selector to specify which elements in the + collection this exclusion applies to. Required.""" + selector: Required[str] + """When matchVariable is a collection, operator used to specify which elements in the collection + this exclusion applies to. Required.""" + + +class ApplicationGatewayForContainersReferenceDefinition(TypedDict, total=False): # pylint: disable=name-too-long + """Defines an application gateway for containers reference. + + :ivar id: Resource Id of the application gateway for containers. Required. + :vartype id: str + """ + + id: Required[str] + """Resource Id of the application gateway for containers. Required.""" + + +class ApplicationGatewayFrontendIPConfiguration(SubResource): # pylint: disable=name-too-long + """Frontend IP configuration of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway frontend IP configuration. + :vartype properties: "ApplicationGatewayFrontendIPConfigurationPropertiesFormat" + :ivar name: Name of the frontend IP configuration that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayFrontendIPConfigurationPropertiesFormat" + """Properties of the application gateway frontend IP configuration.""" + name: str + """Name of the frontend IP configuration that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayFrontendIPConfigurationPropertiesFormat( + TypedDict, total=False +): # pylint: disable=name-too-long + """Properties of Frontend IP configuration of an application gateway. + + :ivar privateIPAddress: PrivateIPAddress of the network interface IP Configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: Reference to the subnet resource. + :vartype subnet: "SubResource" + :ivar publicIPAddress: Reference to the PublicIP resource. + :vartype publicIPAddress: "SubResource" + :ivar privateLinkConfiguration: Reference to the application gateway private link + configuration. + :vartype privateLinkConfiguration: "SubResource" + :ivar provisioningState: The provisioning state of the frontend IP configuration resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAddress: str + """PrivateIPAddress of the network interface IP Configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "SubResource" + """Reference to the subnet resource.""" + publicIPAddress: "SubResource" + """Reference to the PublicIP resource.""" + privateLinkConfiguration: "SubResource" + """Reference to the application gateway private link configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the frontend IP configuration resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayFrontendPort(SubResource): + """Frontend port of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway frontend port. + :vartype properties: "ApplicationGatewayFrontendPortPropertiesFormat" + :ivar name: Name of the frontend port that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayFrontendPortPropertiesFormat" + """Properties of the application gateway frontend port.""" + name: str + """Name of the frontend port that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayFrontendPortPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Frontend port of an application gateway. + + :ivar port: Frontend port. + :vartype port: int + :ivar provisioningState: The provisioning state of the frontend port resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + port: int + """Frontend port.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the frontend port resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayGlobalConfiguration(TypedDict, total=False): + """Application Gateway global configuration. + + :ivar enableRequestBuffering: Enable request buffering. + :vartype enableRequestBuffering: bool + :ivar enableResponseBuffering: Enable response buffering. + :vartype enableResponseBuffering: bool + :ivar disableDefaultServerHeaderInResponse: Disable default server header in response. + :vartype disableDefaultServerHeaderInResponse: bool + """ + + enableRequestBuffering: bool + """Enable request buffering.""" + enableResponseBuffering: bool + """Enable response buffering.""" + disableDefaultServerHeaderInResponse: bool + """Disable default server header in response.""" + + +class ApplicationGatewayHeaderConfiguration(TypedDict, total=False): + """Header configuration of the Actions set in Application Gateway. + + :ivar headerName: Header name of the header configuration. + :vartype headerName: str + :ivar headerValueMatcher: An optional field under "Rewrite Action". It lets you capture and + modify the value(s) of a specific header when multiple headers with the same name exist. + Currently supported for Set-Cookie Response header only. For more details, visit + `https://aka.ms/appgwheadercrud `_. + :vartype headerValueMatcher: "HeaderValueMatcher" + :ivar headerValue: Header value of the header configuration. + :vartype headerValue: str + """ + + headerName: str + """Header name of the header configuration.""" + headerValueMatcher: "HeaderValueMatcher" + """An optional field under \"Rewrite Action\". It lets you capture and modify the value(s) of a + specific header when multiple headers with the same name exist. Currently supported for + Set-Cookie Response header only. For more details, visit `https://aka.ms/appgwheadercrud + `_.""" + headerValue: str + """Header value of the header configuration.""" + + +class ApplicationGatewayHttpListener(SubResource): + """Http listener of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway HTTP listener. + :vartype properties: "ApplicationGatewayHttpListenerPropertiesFormat" + :ivar name: Name of the HTTP listener that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayHttpListenerPropertiesFormat" + """Properties of the application gateway HTTP listener.""" + name: str + """Name of the HTTP listener that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayHttpListenerPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of HTTP listener of an application gateway. + + :ivar frontendIPConfiguration: Frontend IP configuration resource of an application gateway. + :vartype frontendIPConfiguration: "SubResource" + :ivar frontendPort: Frontend port resource of an application gateway. + :vartype frontendPort: "SubResource" + :ivar protocol: Protocol of the HTTP listener. Known values are: "Http", "Https", "Tcp", and + "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar hostName: Host name of HTTP listener. + :vartype hostName: str + :ivar sslCertificate: SSL certificate resource of an application gateway. + :vartype sslCertificate: "SubResource" + :ivar sslProfile: SSL profile resource of the application gateway. + :vartype sslProfile: "SubResource" + :ivar requireServerNameIndication: Applicable only if protocol is https. Enables SNI for + multi-hosting. + :vartype requireServerNameIndication: bool + :ivar provisioningState: The provisioning state of the HTTP listener resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar customErrorConfigurations: Custom error configurations of the HTTP listener. + :vartype customErrorConfigurations: list["ApplicationGatewayCustomError"] + :ivar firewallPolicy: Reference to the FirewallPolicy resource. + :vartype firewallPolicy: "SubResource" + :ivar hostNames: List of Host names for HTTP Listener that allows special wildcard characters + as well. + :vartype hostNames: list[str] + """ + + frontendIPConfiguration: "SubResource" + """Frontend IP configuration resource of an application gateway.""" + frontendPort: "SubResource" + """Frontend port resource of an application gateway.""" + protocol: Union[str, "ApplicationGatewayProtocol"] + """Protocol of the HTTP listener. Known values are: \"Http\", \"Https\", \"Tcp\", and \"Tls\".""" + hostName: str + """Host name of HTTP listener.""" + sslCertificate: "SubResource" + """SSL certificate resource of an application gateway.""" + sslProfile: "SubResource" + """SSL profile resource of the application gateway.""" + requireServerNameIndication: bool + """Applicable only if protocol is https. Enables SNI for multi-hosting.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the HTTP listener resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + customErrorConfigurations: list["ApplicationGatewayCustomError"] + """Custom error configurations of the HTTP listener.""" + firewallPolicy: "SubResource" + """Reference to the FirewallPolicy resource.""" + hostNames: list[str] + """List of Host names for HTTP Listener that allows special wildcard characters as well.""" + + +class ApplicationGatewayIPConfiguration(SubResource): + """IP configuration of an application gateway. Currently 1 public and 1 private IP configuration + is allowed. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway IP configuration. + :vartype properties: "ApplicationGatewayIPConfigurationPropertiesFormat" + :ivar name: Name of the IP configuration that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayIPConfigurationPropertiesFormat" + """Properties of the application gateway IP configuration.""" + name: str + """Name of the IP configuration that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayIPConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of IP configuration of an application gateway. + + :ivar subnet: Reference to the subnet resource. A subnet from where application gateway gets + its private address. + :vartype subnet: "SubResource" + :ivar provisioningState: The provisioning state of the application gateway IP configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + subnet: "SubResource" + """Reference to the subnet resource. A subnet from where application gateway gets its private + address.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application gateway IP configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayListener(SubResource): + """Listener of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway listener. + :vartype properties: "ApplicationGatewayListenerPropertiesFormat" + :ivar name: Name of the listener that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayListenerPropertiesFormat" + """Properties of the application gateway listener.""" + name: str + """Name of the listener that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayListenerPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of listener of an application gateway. + + :ivar frontendIPConfiguration: Frontend IP configuration resource of an application gateway. + :vartype frontendIPConfiguration: "SubResource" + :ivar frontendPort: Frontend port resource of an application gateway. + :vartype frontendPort: "SubResource" + :ivar protocol: Protocol of the listener. Known values are: "Http", "Https", "Tcp", and "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar sslCertificate: SSL certificate resource of an application gateway. + :vartype sslCertificate: "SubResource" + :ivar sslProfile: SSL profile resource of the application gateway. + :vartype sslProfile: "SubResource" + :ivar provisioningState: The provisioning state of the listener resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar hostNames: List of Server Name Indications(SNI) for TLS Multi-site Listener that allows + special wildcard characters as well. + :vartype hostNames: list[str] + """ + + frontendIPConfiguration: "SubResource" + """Frontend IP configuration resource of an application gateway.""" + frontendPort: "SubResource" + """Frontend port resource of an application gateway.""" + protocol: Union[str, "ApplicationGatewayProtocol"] + """Protocol of the listener. Known values are: \"Http\", \"Https\", \"Tcp\", and \"Tls\".""" + sslCertificate: "SubResource" + """SSL certificate resource of an application gateway.""" + sslProfile: "SubResource" + """SSL profile resource of the application gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the listener resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + hostNames: list[str] + """List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard + characters as well.""" + + +class ApplicationGatewayLoadDistributionPolicy(SubResource): + """Load Distribution Policy of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway load distribution policy. + :vartype properties: "ApplicationGatewayLoadDistributionPolicyPropertiesFormat" + :ivar name: Name of the load distribution policy that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayLoadDistributionPolicyPropertiesFormat" + """Properties of the application gateway load distribution policy.""" + name: str + """Name of the load distribution policy that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayLoadDistributionPolicyPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Load Distribution Policy of an application gateway. + + :ivar loadDistributionTargets: Load Distribution Targets resource of an application gateway. + :vartype loadDistributionTargets: list["ApplicationGatewayLoadDistributionTarget"] + :ivar loadDistributionAlgorithm: Load Distribution Targets resource of an application gateway. + Known values are: "RoundRobin", "LeastConnections", and "IpHash". + :vartype loadDistributionAlgorithm: Union[str, "ApplicationGatewayLoadDistributionAlgorithm"] + :ivar provisioningState: The provisioning state of the Load Distribution Policy resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + loadDistributionTargets: list["ApplicationGatewayLoadDistributionTarget"] + """Load Distribution Targets resource of an application gateway.""" + loadDistributionAlgorithm: Union[str, "ApplicationGatewayLoadDistributionAlgorithm"] + """Load Distribution Targets resource of an application gateway. Known values are: \"RoundRobin\", + \"LeastConnections\", and \"IpHash\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the Load Distribution Policy resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayLoadDistributionTarget(SubResource): + """Load Distribution Target of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway load distribution target. + :vartype properties: "ApplicationGatewayLoadDistributionTargetPropertiesFormat" + :ivar name: Name of the load distribution policy that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayLoadDistributionTargetPropertiesFormat" + """Properties of the application gateway load distribution target.""" + name: str + """Name of the load distribution policy that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayLoadDistributionTargetPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """ApplicationGatewayLoadDistributionTargetPropertiesFormat. + + :ivar weightPerServer: Weight per server. Range between 1 and 100. + :vartype weightPerServer: int + :ivar backendAddressPool: Backend address pool resource of the application gateway. + :vartype backendAddressPool: "SubResource" + """ + + weightPerServer: int + """Weight per server. Range between 1 and 100.""" + backendAddressPool: "SubResource" + """Backend address pool resource of the application gateway.""" + + +class ApplicationGatewayManagedHsm(TypedDict, total=False): + """Managed HSM properties of an application gateway. + + :ivar keyId: Key identifier of a key stored in Managed HSM. + :vartype keyId: str + :ivar publicCertData: Base-64 encoded value of a base-64 public certificate. + :vartype publicCertData: str + """ + + keyId: str + """Key identifier of a key stored in Managed HSM.""" + publicCertData: str + """Base-64 encoded value of a base-64 public certificate.""" + + +class ApplicationGatewayOnDemandProbe(TypedDict, total=False): + """Details of on demand test probe request. + + :ivar protocol: The protocol used for the probe. Known values are: "Http", "Https", "Tcp", and + "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar host: Host name to send the probe to. + :vartype host: str + :ivar path: Relative path of probe. Valid path starts from '/'. Probe is sent to + ://:. + :vartype path: str + :ivar timeout: The probe timeout in seconds. Probe marked as failed if valid response is not + received with this timeout period. Acceptable values are from 1 second to 86400 seconds. + :vartype timeout: int + :ivar pickHostNameFromBackendHttpSettings: Whether the host header should be picked from the + backend http settings. Default value is false. + :vartype pickHostNameFromBackendHttpSettings: bool + :ivar enableProbeProxyProtocolHeader: Whether to send Proxy Protocol header along with the + Health Probe over TCP or TLS protocol. Default value is false. + :vartype enableProbeProxyProtocolHeader: bool + :ivar match: Criterion for classifying a healthy probe response. + :vartype match: "ApplicationGatewayProbeHealthResponseMatch" + :ivar backendAddressPool: Reference to backend pool of application gateway to which probe + request will be sent. + :vartype backendAddressPool: "SubResource" + :ivar backendHttpSettings: Reference to backend http setting of application gateway to be used + for test probe. + :vartype backendHttpSettings: "SubResource" + """ + + protocol: Union[str, "ApplicationGatewayProtocol"] + """The protocol used for the probe. Known values are: \"Http\", \"Https\", \"Tcp\", and \"Tls\".""" + host: str + """Host name to send the probe to.""" + path: str + """Relative path of probe. Valid path starts from '/'. Probe is sent to + ://:.""" + timeout: int + """The probe timeout in seconds. Probe marked as failed if valid response is not received with + this timeout period. Acceptable values are from 1 second to 86400 seconds.""" + pickHostNameFromBackendHttpSettings: bool + """Whether the host header should be picked from the backend http settings. Default value is + false.""" + enableProbeProxyProtocolHeader: bool + """Whether to send Proxy Protocol header along with the Health Probe over TCP or TLS protocol. + Default value is false.""" + match: "ApplicationGatewayProbeHealthResponseMatch" + """Criterion for classifying a healthy probe response.""" + backendAddressPool: "SubResource" + """Reference to backend pool of application gateway to which probe request will be sent.""" + backendHttpSettings: "SubResource" + """Reference to backend http setting of application gateway to be used for test probe.""" + + +class ApplicationGatewayPathRule(SubResource): + """Path rule of URL path map of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway path rule. + :vartype properties: "ApplicationGatewayPathRulePropertiesFormat" + :ivar name: Name of the path rule that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayPathRulePropertiesFormat" + """Properties of the application gateway path rule.""" + name: str + """Name of the path rule that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayPathRulePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of path rule of an application gateway. + + :ivar paths: Path rules of URL path map. + :vartype paths: list[str] + :ivar backendAddressPool: Backend address pool resource of URL path map path rule. + :vartype backendAddressPool: "SubResource" + :ivar backendHttpSettings: Backend http settings resource of URL path map path rule. + :vartype backendHttpSettings: "SubResource" + :ivar redirectConfiguration: Redirect configuration resource of URL path map path rule. + :vartype redirectConfiguration: "SubResource" + :ivar rewriteRuleSet: Rewrite rule set resource of URL path map path rule. + :vartype rewriteRuleSet: "SubResource" + :ivar loadDistributionPolicy: Load Distribution Policy resource of URL path map path rule. + :vartype loadDistributionPolicy: "SubResource" + :ivar provisioningState: The provisioning state of the path rule resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar firewallPolicy: Reference to the FirewallPolicy resource. + :vartype firewallPolicy: "SubResource" + """ + + paths: list[str] + """Path rules of URL path map.""" + backendAddressPool: "SubResource" + """Backend address pool resource of URL path map path rule.""" + backendHttpSettings: "SubResource" + """Backend http settings resource of URL path map path rule.""" + redirectConfiguration: "SubResource" + """Redirect configuration resource of URL path map path rule.""" + rewriteRuleSet: "SubResource" + """Rewrite rule set resource of URL path map path rule.""" + loadDistributionPolicy: "SubResource" + """Load Distribution Policy resource of URL path map path rule.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the path rule resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + firewallPolicy: "SubResource" + """Reference to the FirewallPolicy resource.""" + + +class SubResourceModel(SubResource): + """Reference to another subresource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + name: str + """Name of the resource.""" + type: str + """Resource type.""" + + +class ApplicationGatewayPrivateEndpointConnection(SubResourceModel): # pylint: disable=name-too-long + """Private Endpoint connection on an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the application gateway private endpoint connection. + :vartype properties: "ApplicationGatewayPrivateEndpointConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ApplicationGatewayPrivateEndpointConnectionProperties" + """Properties of the application gateway private endpoint connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ApplicationGatewayPrivateEndpointConnectionProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Private Link Resource of an application gateway. + + :ivar privateEndpoint: The resource of private end point. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: A collection of information about the state of the + connection between service consumer and provider. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar provisioningState: The provisioning state of the application gateway private endpoint + connection resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", + "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar linkIdentifier: The consumer link id. + :vartype linkIdentifier: str + """ + + privateEndpoint: "PrivateEndpoint" + """The resource of private end point.""" + privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + """A collection of information about the state of the connection between service consumer and + provider.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application gateway private endpoint connection resource. Known + values are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and + \"Deleting\".""" + linkIdentifier: str + """The consumer link id.""" + + +class ApplicationGatewayPrivateLinkConfiguration(SubResource): # pylint: disable=name-too-long + """Private Link Configuration on an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway private link configuration. + :vartype properties: "ApplicationGatewayPrivateLinkConfigurationProperties" + :ivar name: Name of the private link configuration that is unique within an Application + Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayPrivateLinkConfigurationProperties" + """Properties of the application gateway private link configuration.""" + name: str + """Name of the private link configuration that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayPrivateLinkConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of private link configuration on an application gateway. + + :ivar ipConfigurations: An array of application gateway private link ip configurations. + :vartype ipConfigurations: list["ApplicationGatewayPrivateLinkIpConfiguration"] + :ivar provisioningState: The provisioning state of the application gateway private link + configuration. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + ipConfigurations: list["ApplicationGatewayPrivateLinkIpConfiguration"] + """An array of application gateway private link ip configurations.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application gateway private link configuration. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayPrivateLinkIpConfiguration(SubResource): # pylint: disable=name-too-long + """The application gateway private link ip configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of an application gateway private link ip configuration. + :vartype properties: "ApplicationGatewayPrivateLinkIpConfigurationProperties" + :ivar name: The name of application gateway private link ip configuration. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: The resource type. + :vartype type: str + """ + + properties: "ApplicationGatewayPrivateLinkIpConfigurationProperties" + """Properties of an application gateway private link ip configuration.""" + name: str + """The name of application gateway private link ip configuration.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """The resource type.""" + + +class ApplicationGatewayPrivateLinkIpConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of an application gateway private link IP configuration. + + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: Reference to the subnet resource. + :vartype subnet: "SubResource" + :ivar primary: Whether the ip configuration is primary or not. + :vartype primary: bool + :ivar provisioningState: The provisioning state of the application gateway private link IP + configuration. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "SubResource" + """Reference to the subnet resource.""" + primary: bool + """Whether the ip configuration is primary or not.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application gateway private link IP configuration. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayProbe(SubResource): + """Probe of the application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway probe. + :vartype properties: "ApplicationGatewayProbePropertiesFormat" + :ivar name: Name of the probe that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayProbePropertiesFormat" + """Properties of the application gateway probe.""" + name: str + """Name of the probe that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayProbeHealthResponseMatch(TypedDict, total=False): # pylint: disable=name-too-long + """Application gateway probe health response match. + + :ivar body: Body that must be contained in the health response. Default value is empty. + :vartype body: str + :ivar statusCodes: Allowed ranges of healthy status codes. Default range of healthy status + codes is 200-399. + :vartype statusCodes: list[str] + """ + + body: str + """Body that must be contained in the health response. Default value is empty.""" + statusCodes: list[str] + """Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.""" + + +class ApplicationGatewayProbePropertiesFormat(TypedDict, total=False): + """Properties of probe of an application gateway. + + :ivar protocol: The protocol used for the probe. Known values are: "Http", "Https", "Tcp", and + "Tls". + :vartype protocol: Union[str, "ApplicationGatewayProtocol"] + :ivar host: Host name to send the probe to. + :vartype host: str + :ivar path: Relative path of probe. Valid path starts from '/'. Probe is sent to + ://:. + :vartype path: str + :ivar interval: The probing interval in seconds. This is the time interval between two + consecutive probes. Acceptable values are from 1 second to 86400 seconds. + :vartype interval: int + :ivar timeout: The probe timeout in seconds. Probe marked as failed if valid response is not + received with this timeout period. Acceptable values are from 1 second to 86400 seconds. + :vartype timeout: int + :ivar unhealthyThreshold: The probe retry count. Backend server is marked down after + consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second + to 20. + :vartype unhealthyThreshold: int + :ivar pickHostNameFromBackendHttpSettings: Whether the host header should be picked from the + backend http settings. Default value is false. + :vartype pickHostNameFromBackendHttpSettings: bool + :ivar pickHostNameFromBackendSettings: Whether the server name indication should be picked from + the backend settings for Tls protocol. Default value is false. + :vartype pickHostNameFromBackendSettings: bool + :ivar minServers: Minimum number of servers that are always marked healthy. Default value is 0. + :vartype minServers: int + :ivar match: Criterion for classifying a healthy probe response. + :vartype match: "ApplicationGatewayProbeHealthResponseMatch" + :ivar enableProbeProxyProtocolHeader: Whether to send Proxy Protocol header along with the + Health Probe over TCP or TLS protocol. Default value is false. + :vartype enableProbeProxyProtocolHeader: bool + :ivar provisioningState: The provisioning state of the probe resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar port: Custom port which will be used for probing the backend servers. The valid value + ranges from 1 to 65535. In case not set, port from http settings will be used. This property is + valid for Basic, Standard_v2 and WAF_v2 only. + :vartype port: int + """ + + protocol: Union[str, "ApplicationGatewayProtocol"] + """The protocol used for the probe. Known values are: \"Http\", \"Https\", \"Tcp\", and \"Tls\".""" + host: str + """Host name to send the probe to.""" + path: str + """Relative path of probe. Valid path starts from '/'. Probe is sent to + ://:.""" + interval: int + """The probing interval in seconds. This is the time interval between two consecutive probes. + Acceptable values are from 1 second to 86400 seconds.""" + timeout: int + """The probe timeout in seconds. Probe marked as failed if valid response is not received with + this timeout period. Acceptable values are from 1 second to 86400 seconds.""" + unhealthyThreshold: int + """The probe retry count. Backend server is marked down after consecutive probe failure count + reaches UnhealthyThreshold. Acceptable values are from 1 second to 20.""" + pickHostNameFromBackendHttpSettings: bool + """Whether the host header should be picked from the backend http settings. Default value is + false.""" + pickHostNameFromBackendSettings: bool + """Whether the server name indication should be picked from the backend settings for Tls protocol. + Default value is false.""" + minServers: int + """Minimum number of servers that are always marked healthy. Default value is 0.""" + match: "ApplicationGatewayProbeHealthResponseMatch" + """Criterion for classifying a healthy probe response.""" + enableProbeProxyProtocolHeader: bool + """Whether to send Proxy Protocol header along with the Health Probe over TCP or TLS protocol. + Default value is false.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the probe resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + port: int + """Custom port which will be used for probing the backend servers. The valid value ranges from 1 + to 65535. In case not set, port from http settings will be used. This property is valid for + Basic, Standard_v2 and WAF_v2 only.""" + + +class ApplicationGatewayPropertiesFormat(TypedDict, total=False): + """Properties of the application gateway. + + :ivar sku: SKU of the application gateway resource. + :vartype sku: "ApplicationGatewaySku" + :ivar sslPolicy: SSL policy of the application gateway resource. + :vartype sslPolicy: "ApplicationGatewaySslPolicy" + :ivar operationalState: Operational state of the application gateway resource. Known values + are: "Stopped", "Starting", "Running", and "Stopping". + :vartype operationalState: Union[str, "ApplicationGatewayOperationalState"] + :ivar gatewayIPConfigurations: Subnets of the application gateway resource. For default limits, + see `Application Gateway limits + `_. + :vartype gatewayIPConfigurations: list["ApplicationGatewayIPConfiguration"] + :ivar authenticationCertificates: Authentication certificates of the application gateway + resource. For default limits, see `Application Gateway limits + `_. + :vartype authenticationCertificates: list["ApplicationGatewayAuthenticationCertificate"] + :ivar trustedRootCertificates: Trusted Root certificates of the application gateway resource. + For default limits, see `Application Gateway limits + `_. + :vartype trustedRootCertificates: list["ApplicationGatewayTrustedRootCertificate"] + :ivar trustedClientCertificates: Trusted client certificates of the application gateway + resource. For default limits, see `Application Gateway limits + `_. + :vartype trustedClientCertificates: list["ApplicationGatewayTrustedClientCertificate"] + :ivar sslCertificates: SSL certificates of the application gateway resource. For default + limits, see `Application Gateway limits + `_. + :vartype sslCertificates: list["ApplicationGatewaySslCertificate"] + :ivar frontendIPConfigurations: Frontend IP addresses of the application gateway resource. For + default limits, see `Application Gateway limits + `_. + :vartype frontendIPConfigurations: list["ApplicationGatewayFrontendIPConfiguration"] + :ivar frontendPorts: Frontend ports of the application gateway resource. For default limits, + see `Application Gateway limits + `_. + :vartype frontendPorts: list["ApplicationGatewayFrontendPort"] + :ivar probes: Probes of the application gateway resource. + :vartype probes: list["ApplicationGatewayProbe"] + :ivar backendAddressPools: Backend address pool of the application gateway resource. For + default limits, see `Application Gateway limits + `_. + :vartype backendAddressPools: list["ApplicationGatewayBackendAddressPool"] + :ivar backendHttpSettingsCollection: Backend http settings of the application gateway resource. + For default limits, see `Application Gateway limits + `_. + :vartype backendHttpSettingsCollection: list["ApplicationGatewayBackendHttpSettings"] + :ivar backendSettingsCollection: Backend settings of the application gateway resource. For + default limits, see `Application Gateway limits + `_. + :vartype backendSettingsCollection: list["ApplicationGatewayBackendSettings"] + :ivar httpListeners: Http listeners of the application gateway resource. For default limits, + see `Application Gateway limits + `_. + :vartype httpListeners: list["ApplicationGatewayHttpListener"] + :ivar listeners: Listeners of the application gateway resource. For default limits, see + `Application Gateway limits + `_. + :vartype listeners: list["ApplicationGatewayListener"] + :ivar sslProfiles: SSL profiles of the application gateway resource. For default limits, see + `Application Gateway limits + `_. + :vartype sslProfiles: list["ApplicationGatewaySslProfile"] + :ivar urlPathMaps: URL path map of the application gateway resource. For default limits, see + `Application Gateway limits + `_. + :vartype urlPathMaps: list["ApplicationGatewayUrlPathMap"] + :ivar requestRoutingRules: Request routing rules of the application gateway resource. + :vartype requestRoutingRules: list["ApplicationGatewayRequestRoutingRule"] + :ivar routingRules: Routing rules of the application gateway resource. + :vartype routingRules: list["ApplicationGatewayRoutingRule"] + :ivar rewriteRuleSets: Rewrite rules for the application gateway resource. + :vartype rewriteRuleSets: list["ApplicationGatewayRewriteRuleSet"] + :ivar redirectConfigurations: Redirect configurations of the application gateway resource. For + default limits, see `Application Gateway limits + `_. + :vartype redirectConfigurations: list["ApplicationGatewayRedirectConfiguration"] + :ivar webApplicationFirewallConfiguration: Web application firewall configuration. + :vartype webApplicationFirewallConfiguration: + "ApplicationGatewayWebApplicationFirewallConfiguration" + :ivar firewallPolicy: Reference to the FirewallPolicy resource. + :vartype firewallPolicy: "SubResource" + :ivar enableHttp2: Whether HTTP2 is enabled on the application gateway resource. + :vartype enableHttp2: bool + :ivar enableFips: Whether FIPS is enabled on the application gateway resource. + :vartype enableFips: bool + :ivar autoscaleConfiguration: Autoscale Configuration. + :vartype autoscaleConfiguration: "ApplicationGatewayAutoscaleConfiguration" + :ivar privateLinkConfigurations: PrivateLink configurations on application gateway. + :vartype privateLinkConfigurations: list["ApplicationGatewayPrivateLinkConfiguration"] + :ivar privateEndpointConnections: Private Endpoint connections on application gateway. + :vartype privateEndpointConnections: list["ApplicationGatewayPrivateEndpointConnection"] + :ivar resourceGuid: The resource GUID property of the application gateway resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the application gateway resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar customErrorConfigurations: Custom error configurations of the application gateway + resource. + :vartype customErrorConfigurations: list["ApplicationGatewayCustomError"] + :ivar forceFirewallPolicyAssociation: If true, associates a firewall policy with an application + gateway regardless whether the policy differs from the WAF Config. + :vartype forceFirewallPolicyAssociation: bool + :ivar loadDistributionPolicies: Load distribution policies of the application gateway resource. + :vartype loadDistributionPolicies: list["ApplicationGatewayLoadDistributionPolicy"] + :ivar entraJWTValidationConfigs: Entra JWT validation configurations for the application + gateway resource. For default limits, see `Application Gateway limits + `_. + :vartype entraJWTValidationConfigs: list["ApplicationGatewayEntraJWTValidationConfig"] + :ivar globalConfiguration: Global Configuration. + :vartype globalConfiguration: "ApplicationGatewayGlobalConfiguration" + :ivar defaultPredefinedSslPolicy: The default predefined SSL Policy applied on the application + gateway resource. Known values are: "AppGwSslPolicy20150501", "AppGwSslPolicy20170401", + "AppGwSslPolicy20170401S", "AppGwSslPolicy20220101", and "AppGwSslPolicy20220101S". + :vartype defaultPredefinedSslPolicy: Union[str, "ApplicationGatewaySslPolicyName"] + """ + + sku: "ApplicationGatewaySku" + """SKU of the application gateway resource.""" + sslPolicy: "ApplicationGatewaySslPolicy" + """SSL policy of the application gateway resource.""" + operationalState: Union[str, "ApplicationGatewayOperationalState"] + """Operational state of the application gateway resource. Known values are: \"Stopped\", + \"Starting\", \"Running\", and \"Stopping\".""" + gatewayIPConfigurations: list["ApplicationGatewayIPConfiguration"] + """Subnets of the application gateway resource. For default limits, see `Application Gateway + limits + `_.""" + authenticationCertificates: list["ApplicationGatewayAuthenticationCertificate"] + """Authentication certificates of the application gateway resource. For default limits, see + `Application Gateway limits + `_.""" + trustedRootCertificates: list["ApplicationGatewayTrustedRootCertificate"] + """Trusted Root certificates of the application gateway resource. For default limits, see + `Application Gateway limits + `_.""" + trustedClientCertificates: list["ApplicationGatewayTrustedClientCertificate"] + """Trusted client certificates of the application gateway resource. For default limits, see + `Application Gateway limits + `_.""" + sslCertificates: list["ApplicationGatewaySslCertificate"] + """SSL certificates of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + frontendIPConfigurations: list["ApplicationGatewayFrontendIPConfiguration"] + """Frontend IP addresses of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + frontendPorts: list["ApplicationGatewayFrontendPort"] + """Frontend ports of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + probes: list["ApplicationGatewayProbe"] + """Probes of the application gateway resource.""" + backendAddressPools: list["ApplicationGatewayBackendAddressPool"] + """Backend address pool of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + backendHttpSettingsCollection: list["ApplicationGatewayBackendHttpSettings"] + """Backend http settings of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + backendSettingsCollection: list["ApplicationGatewayBackendSettings"] + """Backend settings of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + httpListeners: list["ApplicationGatewayHttpListener"] + """Http listeners of the application gateway resource. For default limits, see `Application + Gateway limits + `_.""" + listeners: list["ApplicationGatewayListener"] + """Listeners of the application gateway resource. For default limits, see `Application Gateway + limits + `_.""" + sslProfiles: list["ApplicationGatewaySslProfile"] + """SSL profiles of the application gateway resource. For default limits, see `Application Gateway + limits + `_.""" + urlPathMaps: list["ApplicationGatewayUrlPathMap"] + """URL path map of the application gateway resource. For default limits, see `Application Gateway + limits + `_.""" + requestRoutingRules: list["ApplicationGatewayRequestRoutingRule"] + """Request routing rules of the application gateway resource.""" + routingRules: list["ApplicationGatewayRoutingRule"] + """Routing rules of the application gateway resource.""" + rewriteRuleSets: list["ApplicationGatewayRewriteRuleSet"] + """Rewrite rules for the application gateway resource.""" + redirectConfigurations: list["ApplicationGatewayRedirectConfiguration"] + """Redirect configurations of the application gateway resource. For default limits, see + `Application Gateway limits + `_.""" + webApplicationFirewallConfiguration: "ApplicationGatewayWebApplicationFirewallConfiguration" + """Web application firewall configuration.""" + firewallPolicy: "SubResource" + """Reference to the FirewallPolicy resource.""" + enableHttp2: bool + """Whether HTTP2 is enabled on the application gateway resource.""" + enableFips: bool + """Whether FIPS is enabled on the application gateway resource.""" + autoscaleConfiguration: "ApplicationGatewayAutoscaleConfiguration" + """Autoscale Configuration.""" + privateLinkConfigurations: list["ApplicationGatewayPrivateLinkConfiguration"] + """PrivateLink configurations on application gateway.""" + privateEndpointConnections: list["ApplicationGatewayPrivateEndpointConnection"] + """Private Endpoint connections on application gateway.""" + resourceGuid: str + """The resource GUID property of the application gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + customErrorConfigurations: list["ApplicationGatewayCustomError"] + """Custom error configurations of the application gateway resource.""" + forceFirewallPolicyAssociation: bool + """If true, associates a firewall policy with an application gateway regardless whether the policy + differs from the WAF Config.""" + loadDistributionPolicies: list["ApplicationGatewayLoadDistributionPolicy"] + """Load distribution policies of the application gateway resource.""" + entraJWTValidationConfigs: list["ApplicationGatewayEntraJWTValidationConfig"] + """Entra JWT validation configurations for the application gateway resource. For default limits, + see `Application Gateway limits + `_.""" + globalConfiguration: "ApplicationGatewayGlobalConfiguration" + """Global Configuration.""" + defaultPredefinedSslPolicy: Union[str, "ApplicationGatewaySslPolicyName"] + """The default predefined SSL Policy applied on the application gateway resource. Known values + are: \"AppGwSslPolicy20150501\", \"AppGwSslPolicy20170401\", \"AppGwSslPolicy20170401S\", + \"AppGwSslPolicy20220101\", and \"AppGwSslPolicy20220101S\".""" + + +class ApplicationGatewayRedirectConfiguration(SubResource): + """Redirect configuration of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway redirect configuration. + :vartype properties: "ApplicationGatewayRedirectConfigurationPropertiesFormat" + :ivar name: Name of the redirect configuration that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayRedirectConfigurationPropertiesFormat" + """Properties of the application gateway redirect configuration.""" + name: str + """Name of the redirect configuration that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayRedirectConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of redirect configuration of the application gateway. + + :ivar redirectType: HTTP redirection type. Known values are: "Permanent", "Found", "SeeOther", + and "Temporary". + :vartype redirectType: Union[str, "ApplicationGatewayRedirectType"] + :ivar targetListener: Reference to a listener to redirect the request to. + :vartype targetListener: "SubResource" + :ivar targetUrl: Url to redirect the request to. + :vartype targetUrl: str + :ivar includePath: Include path in the redirected url. + :vartype includePath: bool + :ivar includeQueryString: Include query string in the redirected url. + :vartype includeQueryString: bool + :ivar requestRoutingRules: Request routing specifying redirect configuration. + :vartype requestRoutingRules: list["SubResource"] + :ivar urlPathMaps: Url path maps specifying default redirect configuration. + :vartype urlPathMaps: list["SubResource"] + :ivar pathRules: Path rules specifying redirect configuration. + :vartype pathRules: list["SubResource"] + """ + + redirectType: Union[str, "ApplicationGatewayRedirectType"] + """HTTP redirection type. Known values are: \"Permanent\", \"Found\", \"SeeOther\", and + \"Temporary\".""" + targetListener: "SubResource" + """Reference to a listener to redirect the request to.""" + targetUrl: str + """Url to redirect the request to.""" + includePath: bool + """Include path in the redirected url.""" + includeQueryString: bool + """Include query string in the redirected url.""" + requestRoutingRules: list["SubResource"] + """Request routing specifying redirect configuration.""" + urlPathMaps: list["SubResource"] + """Url path maps specifying default redirect configuration.""" + pathRules: list["SubResource"] + """Path rules specifying redirect configuration.""" + + +class ApplicationGatewayRequestRoutingRule(SubResource): + """Request routing rule of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway request routing rule. + :vartype properties: "ApplicationGatewayRequestRoutingRulePropertiesFormat" + :ivar name: Name of the request routing rule that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayRequestRoutingRulePropertiesFormat" + """Properties of the application gateway request routing rule.""" + name: str + """Name of the request routing rule that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayRequestRoutingRulePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of request routing rule of the application gateway. + + :ivar ruleType: Rule type. Known values are: "Basic" and "PathBasedRouting". + :vartype ruleType: Union[str, "ApplicationGatewayRequestRoutingRuleType"] + :ivar priority: Priority of the request routing rule. + :vartype priority: int + :ivar backendAddressPool: Backend address pool resource of the application gateway. + :vartype backendAddressPool: "SubResource" + :ivar backendHttpSettings: Backend http settings resource of the application gateway. + :vartype backendHttpSettings: "SubResource" + :ivar httpListener: Http listener resource of the application gateway. + :vartype httpListener: "SubResource" + :ivar urlPathMap: URL path map resource of the application gateway. + :vartype urlPathMap: "SubResource" + :ivar rewriteRuleSet: Rewrite Rule Set resource in Basic rule of the application gateway. + :vartype rewriteRuleSet: "SubResource" + :ivar redirectConfiguration: Redirect configuration resource of the application gateway. + :vartype redirectConfiguration: "SubResource" + :ivar loadDistributionPolicy: Load Distribution Policy resource of the application gateway. + :vartype loadDistributionPolicy: "SubResource" + :ivar entraJWTValidationConfig: Entra JWT validation configuration resource of the application + gateway. + :vartype entraJWTValidationConfig: "SubResource" + :ivar provisioningState: The provisioning state of the request routing rule resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + ruleType: Union[str, "ApplicationGatewayRequestRoutingRuleType"] + """Rule type. Known values are: \"Basic\" and \"PathBasedRouting\".""" + priority: int + """Priority of the request routing rule.""" + backendAddressPool: "SubResource" + """Backend address pool resource of the application gateway.""" + backendHttpSettings: "SubResource" + """Backend http settings resource of the application gateway.""" + httpListener: "SubResource" + """Http listener resource of the application gateway.""" + urlPathMap: "SubResource" + """URL path map resource of the application gateway.""" + rewriteRuleSet: "SubResource" + """Rewrite Rule Set resource in Basic rule of the application gateway.""" + redirectConfiguration: "SubResource" + """Redirect configuration resource of the application gateway.""" + loadDistributionPolicy: "SubResource" + """Load Distribution Policy resource of the application gateway.""" + entraJWTValidationConfig: "SubResource" + """Entra JWT validation configuration resource of the application gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the request routing rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayRewriteRule(TypedDict, total=False): + """Rewrite rule of an application gateway. + + :ivar name: Name of the rewrite rule that is unique within an Application Gateway. + :vartype name: str + :ivar ruleSequence: Rule Sequence of the rewrite rule that determines the order of execution of + a particular rule in a RewriteRuleSet. + :vartype ruleSequence: int + :ivar conditions: Conditions based on which the action set execution will be evaluated. + :vartype conditions: list["ApplicationGatewayRewriteRuleCondition"] + :ivar actionSet: Set of actions to be done as part of the rewrite Rule. + :vartype actionSet: "ApplicationGatewayRewriteRuleActionSet" + """ + + name: str + """Name of the rewrite rule that is unique within an Application Gateway.""" + ruleSequence: int + """Rule Sequence of the rewrite rule that determines the order of execution of a particular rule + in a RewriteRuleSet.""" + conditions: list["ApplicationGatewayRewriteRuleCondition"] + """Conditions based on which the action set execution will be evaluated.""" + actionSet: "ApplicationGatewayRewriteRuleActionSet" + """Set of actions to be done as part of the rewrite Rule.""" + + +class ApplicationGatewayRewriteRuleActionSet(TypedDict, total=False): + """Set of actions in the Rewrite Rule in Application Gateway. + + :ivar requestHeaderConfigurations: Request Header Actions in the Action Set. + :vartype requestHeaderConfigurations: list["ApplicationGatewayHeaderConfiguration"] + :ivar responseHeaderConfigurations: Response Header Actions in the Action Set. + :vartype responseHeaderConfigurations: list["ApplicationGatewayHeaderConfiguration"] + :ivar urlConfiguration: Url Configuration Action in the Action Set. + :vartype urlConfiguration: "ApplicationGatewayUrlConfiguration" + """ + + requestHeaderConfigurations: list["ApplicationGatewayHeaderConfiguration"] + """Request Header Actions in the Action Set.""" + responseHeaderConfigurations: list["ApplicationGatewayHeaderConfiguration"] + """Response Header Actions in the Action Set.""" + urlConfiguration: "ApplicationGatewayUrlConfiguration" + """Url Configuration Action in the Action Set.""" + + +class ApplicationGatewayRewriteRuleCondition(TypedDict, total=False): + """Set of conditions in the Rewrite Rule in Application Gateway. + + :ivar variable: The condition parameter of the RewriteRuleCondition. + :vartype variable: str + :ivar pattern: The pattern, either fixed string or regular expression, that evaluates the + truthfulness of the condition. + :vartype pattern: str + :ivar ignoreCase: Setting this parameter to truth value with force the pattern to do a case + in-sensitive comparison. + :vartype ignoreCase: bool + :ivar negate: Setting this value as truth will force to check the negation of the condition + given by the user. + :vartype negate: bool + """ + + variable: str + """The condition parameter of the RewriteRuleCondition.""" + pattern: str + """The pattern, either fixed string or regular expression, that evaluates the truthfulness of the + condition.""" + ignoreCase: bool + """Setting this parameter to truth value with force the pattern to do a case in-sensitive + comparison.""" + negate: bool + """Setting this value as truth will force to check the negation of the condition given by the + user.""" + + +class ApplicationGatewayRewriteRuleSet(SubResource): + """Rewrite rule set of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway rewrite rule set. + :vartype properties: "ApplicationGatewayRewriteRuleSetPropertiesFormat" + :ivar name: Name of the rewrite rule set that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ApplicationGatewayRewriteRuleSetPropertiesFormat" + """Properties of the application gateway rewrite rule set.""" + name: str + """Name of the rewrite rule set that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ApplicationGatewayRewriteRuleSetPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of rewrite rule set of the application gateway. + + :ivar rewriteRules: Rewrite rules in the rewrite rule set. + :vartype rewriteRules: list["ApplicationGatewayRewriteRule"] + :ivar provisioningState: The provisioning state of the rewrite rule set resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + rewriteRules: list["ApplicationGatewayRewriteRule"] + """Rewrite rules in the rewrite rule set.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the rewrite rule set resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayRoutingRule(SubResource): + """Routing rule of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway routing rule. + :vartype properties: "ApplicationGatewayRoutingRulePropertiesFormat" + :ivar name: Name of the routing rule that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayRoutingRulePropertiesFormat" + """Properties of the application gateway routing rule.""" + name: str + """Name of the routing rule that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayRoutingRulePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of routing rule of the application gateway. + + :ivar ruleType: Rule type. Known values are: "Basic" and "PathBasedRouting". + :vartype ruleType: Union[str, "ApplicationGatewayRequestRoutingRuleType"] + :ivar priority: Priority of the routing rule. Required. + :vartype priority: int + :ivar backendAddressPool: Backend address pool resource of the application gateway. + :vartype backendAddressPool: "SubResource" + :ivar backendSettings: Backend settings resource of the application gateway. + :vartype backendSettings: "SubResource" + :ivar listener: Listener resource of the application gateway. + :vartype listener: "SubResource" + :ivar provisioningState: The provisioning state of the request routing rule resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + ruleType: Union[str, "ApplicationGatewayRequestRoutingRuleType"] + """Rule type. Known values are: \"Basic\" and \"PathBasedRouting\".""" + priority: Required[int] + """Priority of the routing rule. Required.""" + backendAddressPool: "SubResource" + """Backend address pool resource of the application gateway.""" + backendSettings: "SubResource" + """Backend settings resource of the application gateway.""" + listener: "SubResource" + """Listener resource of the application gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the request routing rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewaySku(TypedDict, total=False): + """SKU of an application gateway. + + :ivar name: Name of an application gateway SKU. Known values are: "Standard_Small", + "Standard_Medium", "Standard_Large", "WAF_Medium", "WAF_Large", "Standard_v2", "WAF_v2", and + "Basic". + :vartype name: Union[str, "ApplicationGatewaySkuName"] + :ivar tier: Tier of an application gateway. Known values are: "Standard", "WAF", "Standard_v2", + "WAF_v2", and "Basic". + :vartype tier: Union[str, "ApplicationGatewayTier"] + :ivar capacity: Capacity (instance count) of an application gateway. + :vartype capacity: int + :ivar family: Family of an application gateway SKU. Known values are: "Generation_1" and + "Generation_2". + :vartype family: Union[str, "ApplicationGatewaySkuFamily"] + """ + + name: Union[str, "ApplicationGatewaySkuName"] + """Name of an application gateway SKU. Known values are: \"Standard_Small\", \"Standard_Medium\", + \"Standard_Large\", \"WAF_Medium\", \"WAF_Large\", \"Standard_v2\", \"WAF_v2\", and \"Basic\".""" + tier: Union[str, "ApplicationGatewayTier"] + """Tier of an application gateway. Known values are: \"Standard\", \"WAF\", \"Standard_v2\", + \"WAF_v2\", and \"Basic\".""" + capacity: int + """Capacity (instance count) of an application gateway.""" + family: Union[str, "ApplicationGatewaySkuFamily"] + """Family of an application gateway SKU. Known values are: \"Generation_1\" and \"Generation_2\".""" + + +class ApplicationGatewaySslCertificate(SubResource): + """SSL certificates of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway SSL certificate. + :vartype properties: "ApplicationGatewaySslCertificatePropertiesFormat" + :ivar name: Name of the SSL certificate that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewaySslCertificatePropertiesFormat" + """Properties of the application gateway SSL certificate.""" + name: str + """Name of the SSL certificate that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewaySslCertificatePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of SSL certificates of an application gateway. + + :ivar data: Base-64 encoded pfx certificate. Only applicable in PUT Request. + :vartype data: str + :ivar password: Password for the pfx file specified in data. Only applicable in PUT request. + :vartype password: str + :ivar publicCertData: Base-64 encoded Public cert data corresponding to pfx specified in data. + Only applicable in GET request. + :vartype publicCertData: str + :ivar keyVaultSecretId: Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or + 'Certificate' object stored in KeyVault. + :vartype keyVaultSecretId: str + :ivar hsm: Managed HSM properties of the Application Gateway resource. + :vartype hsm: "ApplicationGatewayManagedHsm" + :ivar provisioningState: The provisioning state of the SSL certificate resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + data: str + """Base-64 encoded pfx certificate. Only applicable in PUT Request.""" + password: str + """Password for the pfx file specified in data. Only applicable in PUT request.""" + publicCertData: str + """Base-64 encoded Public cert data corresponding to pfx specified in data. Only applicable in GET + request.""" + keyVaultSecretId: str + """Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in + KeyVault.""" + hsm: "ApplicationGatewayManagedHsm" + """Managed HSM properties of the Application Gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the SSL certificate resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewaySslPolicy(TypedDict, total=False): + """Application Gateway Ssl policy. + + :ivar disabledSslProtocols: Ssl protocols to be disabled on application gateway. + :vartype disabledSslProtocols: list[Union[str, "ApplicationGatewaySslProtocol"]] + :ivar policyType: Type of Ssl Policy. Known values are: "Predefined", "Custom", and "CustomV2". + :vartype policyType: Union[str, "ApplicationGatewaySslPolicyType"] + :ivar policyName: Name of Ssl predefined policy. Known values are: "AppGwSslPolicy20150501", + "AppGwSslPolicy20170401", "AppGwSslPolicy20170401S", "AppGwSslPolicy20220101", and + "AppGwSslPolicy20220101S". + :vartype policyName: Union[str, "ApplicationGatewaySslPolicyName"] + :ivar cipherSuites: Ssl cipher suites to be enabled in the specified order to application + gateway. + :vartype cipherSuites: list[Union[str, "ApplicationGatewaySslCipherSuite"]] + :ivar minProtocolVersion: Minimum version of Ssl protocol to be supported on application + gateway. Known values are: "TLSv1_0", "TLSv1_1", "TLSv1_2", and "TLSv1_3". + :vartype minProtocolVersion: Union[str, "ApplicationGatewaySslProtocol"] + """ + + disabledSslProtocols: list[Union[str, "ApplicationGatewaySslProtocol"]] + """Ssl protocols to be disabled on application gateway.""" + policyType: Union[str, "ApplicationGatewaySslPolicyType"] + """Type of Ssl Policy. Known values are: \"Predefined\", \"Custom\", and \"CustomV2\".""" + policyName: Union[str, "ApplicationGatewaySslPolicyName"] + """Name of Ssl predefined policy. Known values are: \"AppGwSslPolicy20150501\", + \"AppGwSslPolicy20170401\", \"AppGwSslPolicy20170401S\", \"AppGwSslPolicy20220101\", and + \"AppGwSslPolicy20220101S\".""" + cipherSuites: list[Union[str, "ApplicationGatewaySslCipherSuite"]] + """Ssl cipher suites to be enabled in the specified order to application gateway.""" + minProtocolVersion: Union[str, "ApplicationGatewaySslProtocol"] + """Minimum version of Ssl protocol to be supported on application gateway. Known values are: + \"TLSv1_0\", \"TLSv1_1\", \"TLSv1_2\", and \"TLSv1_3\".""" + + +class ApplicationGatewaySslProfile(SubResource): + """SSL profile of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway SSL profile. + :vartype properties: "ApplicationGatewaySslProfilePropertiesFormat" + :ivar name: Name of the SSL profile that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewaySslProfilePropertiesFormat" + """Properties of the application gateway SSL profile.""" + name: str + """Name of the SSL profile that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewaySslProfilePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of SSL profile of an application gateway. + + :ivar trustedClientCertificates: Array of references to application gateway trusted client + certificates. + :vartype trustedClientCertificates: list["SubResource"] + :ivar sslPolicy: SSL policy of the application gateway resource. + :vartype sslPolicy: "ApplicationGatewaySslPolicy" + :ivar clientAuthConfiguration: Client authentication configuration of the application gateway + resource. + :vartype clientAuthConfiguration: "ApplicationGatewayClientAuthConfiguration" + :ivar provisioningState: The provisioning state of the HTTP listener resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + trustedClientCertificates: list["SubResource"] + """Array of references to application gateway trusted client certificates.""" + sslPolicy: "ApplicationGatewaySslPolicy" + """SSL policy of the application gateway resource.""" + clientAuthConfiguration: "ApplicationGatewayClientAuthConfiguration" + """Client authentication configuration of the application gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the HTTP listener resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayTrustedClientCertificate(SubResource): # pylint: disable=name-too-long + """Trusted client certificates of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway trusted client certificate. + :vartype properties: "ApplicationGatewayTrustedClientCertificatePropertiesFormat" + :ivar name: Name of the trusted client certificate that is unique within an Application + Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayTrustedClientCertificatePropertiesFormat" + """Properties of the application gateway trusted client certificate.""" + name: str + """Name of the trusted client certificate that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayTrustedClientCertificatePropertiesFormat( + TypedDict, total=False +): # pylint: disable=name-too-long + """Trusted client certificates properties of an application gateway. + + :ivar data: Certificate public data. + :vartype data: str + :ivar validatedCertData: Validated certificate data. + :vartype validatedCertData: str + :ivar clientCertIssuerDN: Distinguished name of client certificate issuer. + :vartype clientCertIssuerDN: str + :ivar provisioningState: The provisioning state of the trusted client certificate resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + data: str + """Certificate public data.""" + validatedCertData: str + """Validated certificate data.""" + clientCertIssuerDN: str + """Distinguished name of client certificate issuer.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the trusted client certificate resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayTrustedRootCertificate(SubResource): + """Trusted Root certificates of an application gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway trusted root certificate. + :vartype properties: "ApplicationGatewayTrustedRootCertificatePropertiesFormat" + :ivar name: Name of the trusted root certificate that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayTrustedRootCertificatePropertiesFormat" + """Properties of the application gateway trusted root certificate.""" + name: str + """Name of the trusted root certificate that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayTrustedRootCertificatePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Trusted Root certificates properties of an application gateway. + + :ivar data: Certificate public data. + :vartype data: str + :ivar keyVaultSecretId: Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or + 'Certificate' object stored in KeyVault. + :vartype keyVaultSecretId: str + :ivar provisioningState: The provisioning state of the trusted root certificate resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + data: str + """Certificate public data.""" + keyVaultSecretId: str + """Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in + KeyVault.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the trusted root certificate resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayUrlConfiguration(TypedDict, total=False): + """Url configuration of the Actions set in Application Gateway. + + :ivar modifiedPath: Url path which user has provided for url rewrite. Null means no path will + be updated. Default value is null. + :vartype modifiedPath: str + :ivar modifiedQueryString: Query string which user has provided for url rewrite. Null means no + query string will be updated. Default value is null. + :vartype modifiedQueryString: str + :ivar reroute: If set as true, it will re-evaluate the url path map provided in path based + request routing rules using modified path. Default value is false. + :vartype reroute: bool + """ + + modifiedPath: str + """Url path which user has provided for url rewrite. Null means no path will be updated. Default + value is null.""" + modifiedQueryString: str + """Query string which user has provided for url rewrite. Null means no query string will be + updated. Default value is null.""" + reroute: bool + """If set as true, it will re-evaluate the url path map provided in path based request routing + rules using modified path. Default value is false.""" + + +class ApplicationGatewayUrlPathMap(SubResource): + """UrlPathMaps give a url path to the backend mapping information for PathBasedRouting. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the application gateway URL path map. + :vartype properties: "ApplicationGatewayUrlPathMapPropertiesFormat" + :ivar name: Name of the URL path map that is unique within an Application Gateway. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "ApplicationGatewayUrlPathMapPropertiesFormat" + """Properties of the application gateway URL path map.""" + name: str + """Name of the URL path map that is unique within an Application Gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class ApplicationGatewayUrlPathMapPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of UrlPathMap of the application gateway. + + :ivar defaultBackendAddressPool: Default backend address pool resource of URL path map. + :vartype defaultBackendAddressPool: "SubResource" + :ivar defaultBackendHttpSettings: Default backend http settings resource of URL path map. + :vartype defaultBackendHttpSettings: "SubResource" + :ivar defaultRewriteRuleSet: Default Rewrite rule set resource of URL path map. + :vartype defaultRewriteRuleSet: "SubResource" + :ivar defaultRedirectConfiguration: Default redirect configuration resource of URL path map. + :vartype defaultRedirectConfiguration: "SubResource" + :ivar defaultLoadDistributionPolicy: Default Load Distribution Policy resource of URL path map. + :vartype defaultLoadDistributionPolicy: "SubResource" + :ivar pathRules: Path rule of URL path map resource. + :vartype pathRules: list["ApplicationGatewayPathRule"] + :ivar provisioningState: The provisioning state of the URL path map resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + defaultBackendAddressPool: "SubResource" + """Default backend address pool resource of URL path map.""" + defaultBackendHttpSettings: "SubResource" + """Default backend http settings resource of URL path map.""" + defaultRewriteRuleSet: "SubResource" + """Default Rewrite rule set resource of URL path map.""" + defaultRedirectConfiguration: "SubResource" + """Default redirect configuration resource of URL path map.""" + defaultLoadDistributionPolicy: "SubResource" + """Default Load Distribution Policy resource of URL path map.""" + pathRules: list["ApplicationGatewayPathRule"] + """Path rule of URL path map resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the URL path map resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ApplicationGatewayWebApplicationFirewallConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """Application gateway web application firewall configuration. + + :ivar enabled: Whether the web application firewall is enabled or not. Required. + :vartype enabled: bool + :ivar firewallMode: Web application firewall mode. Required. Known values are: "Detection" and + "Prevention". + :vartype firewallMode: Union[str, "ApplicationGatewayFirewallMode"] + :ivar ruleSetType: The type of the web application firewall rule set. Possible values are: + 'OWASP'. Required. + :vartype ruleSetType: str + :ivar ruleSetVersion: The version of the rule set type. Required. + :vartype ruleSetVersion: str + :ivar disabledRuleGroups: The disabled rule groups. + :vartype disabledRuleGroups: list["ApplicationGatewayFirewallDisabledRuleGroup"] + :ivar requestBodyCheck: Whether allow WAF to check request Body. + :vartype requestBodyCheck: bool + :ivar maxRequestBodySize: Maximum request body size for WAF. + :vartype maxRequestBodySize: int + :ivar maxRequestBodySizeInKb: Maximum request body size in Kb for WAF. + :vartype maxRequestBodySizeInKb: int + :ivar fileUploadLimitInMb: Maximum file upload size in Mb for WAF. + :vartype fileUploadLimitInMb: int + :ivar exclusions: The exclusion list. + :vartype exclusions: list["ApplicationGatewayFirewallExclusion"] + """ + + enabled: Required[bool] + """Whether the web application firewall is enabled or not. Required.""" + firewallMode: Required[Union[str, "ApplicationGatewayFirewallMode"]] + """Web application firewall mode. Required. Known values are: \"Detection\" and \"Prevention\".""" + ruleSetType: Required[str] + """The type of the web application firewall rule set. Possible values are: 'OWASP'. Required.""" + ruleSetVersion: Required[str] + """The version of the rule set type. Required.""" + disabledRuleGroups: list["ApplicationGatewayFirewallDisabledRuleGroup"] + """The disabled rule groups.""" + requestBodyCheck: bool + """Whether allow WAF to check request Body.""" + maxRequestBodySize: int + """Maximum request body size for WAF.""" + maxRequestBodySizeInKb: int + """Maximum request body size in Kb for WAF.""" + fileUploadLimitInMb: int + """Maximum file upload size in Mb for WAF.""" + exclusions: list["ApplicationGatewayFirewallExclusion"] + """The exclusion list.""" + + +class ApplicationRule(TypedDict, total=False): + """Rule of type application. + + :ivar name: Name of the rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses or Service Tags. + :vartype destinationAddresses: list[str] + :ivar protocols: Array of Application Protocols. + :vartype protocols: list["FirewallPolicyRuleApplicationProtocol"] + :ivar targetFqdns: List of FQDNs for this rule. + :vartype targetFqdns: list[str] + :ivar targetUrls: List of Urls for this rule condition. + :vartype targetUrls: list[str] + :ivar fqdnTags: List of FQDN Tags for this rule. + :vartype fqdnTags: list[str] + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + :ivar sourceKubeSelectorGroups: List of source Kubernetes Selector Groups for this rule. + :vartype sourceKubeSelectorGroups: list[str] + :ivar terminateTLS: Terminate TLS connections for this rule. + :vartype terminateTLS: bool + :ivar webCategories: List of destination azure web categories. + :vartype webCategories: list[str] + :ivar httpHeadersToInsert: List of HTTP/S headers to insert. + :vartype httpHeadersToInsert: list["FirewallPolicyHttpHeaderToInsert"] + :ivar ruleType: Rule Type. Required. ApplicationRule. + :vartype ruleType: Literal[FirewallPolicyRuleType.APPLICATION_RULE] + """ + + name: str + """Name of the rule.""" + description: str + """Description of the rule.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses or Service Tags.""" + protocols: list["FirewallPolicyRuleApplicationProtocol"] + """Array of Application Protocols.""" + targetFqdns: list[str] + """List of FQDNs for this rule.""" + targetUrls: list[str] + """List of Urls for this rule condition.""" + fqdnTags: list[str] + """List of FQDN Tags for this rule.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + sourceKubeSelectorGroups: list[str] + """List of source Kubernetes Selector Groups for this rule.""" + terminateTLS: bool + """Terminate TLS connections for this rule.""" + webCategories: list[str] + """List of destination azure web categories.""" + httpHeadersToInsert: list["FirewallPolicyHttpHeaderToInsert"] + """List of HTTP/S headers to insert.""" + ruleType: Required[Literal[FirewallPolicyRuleType.APPLICATION_RULE]] + """Rule Type. Required. ApplicationRule.""" + + +class ApplicationSecurityGroup(Resource): + """An application security group in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the application security group. + :vartype properties: "ApplicationSecurityGroupPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ApplicationSecurityGroupPropertiesFormat" + """Properties of the application security group.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ApplicationSecurityGroupPropertiesFormat(TypedDict, total=False): + """Application security group properties. + + :ivar resourceGuid: The resource GUID property of the application security group resource. It + uniquely identifies a resource, even if the user changes its name or migrate the resource + across subscriptions or resource groups. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the application security group resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + resourceGuid: str + """The resource GUID property of the application security group resource. It uniquely identifies a + resource, even if the user changes its name or migrate the resource across subscriptions or + resource groups.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application security group resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AuthorizationPropertiesFormat(TypedDict, total=False): + """Properties of ExpressRouteCircuitAuthorization. + + :ivar authorizationKey: The authorization key. + :vartype authorizationKey: str + :ivar authorizationUseStatus: The authorization use status. Known values are: "Available" and + "InUse". + :vartype authorizationUseStatus: Union[str, "AuthorizationUseStatus"] + :ivar connectionResourceUri: The reference to the ExpressRoute connection resource using the + authorization. + :vartype connectionResourceUri: str + :ivar provisioningState: The provisioning state of the authorization resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + authorizationKey: str + """The authorization key.""" + authorizationUseStatus: Union[str, "AuthorizationUseStatus"] + """The authorization use status. Known values are: \"Available\" and \"InUse\".""" + connectionResourceUri: str + """The reference to the ExpressRoute connection resource using the authorization.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the authorization resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AvailableProvidersListParameters(TypedDict, total=False): + """Constraints that determine the list of available Internet service providers. + + :ivar azureLocations: A list of Azure regions. + :vartype azureLocations: list[str] + :ivar country: The country for available providers list. + :vartype country: str + :ivar state: The state for available providers list. + :vartype state: str + :ivar city: The city or town for available providers list. + :vartype city: str + """ + + azureLocations: list[str] + """A list of Azure regions.""" + country: str + """The country for available providers list.""" + state: str + """The state for available providers list.""" + city: str + """The city or town for available providers list.""" + + +class AzureFirewall(Resource): + """Azure Firewall resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the azure firewall. + :vartype properties: "AzureFirewallPropertiesFormat" + :ivar extendedLocation: The extended location of type local virtual network gateway. + :vartype extendedLocation: "ExtendedLocation" + :ivar zones: A list of availability zones denoting where the resource needs to come from. + :vartype zones: list[str] + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "AzureFirewallPropertiesFormat" + """Properties of the azure firewall.""" + extendedLocation: "ExtendedLocation" + """The extended location of type local virtual network gateway.""" + zones: list[str] + """A list of availability zones denoting where the resource needs to come from.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AzureFirewallApplicationRule(TypedDict, total=False): + """Properties of an application rule. + + :ivar name: Name of the application rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar protocols: Array of ApplicationRuleProtocols. + :vartype protocols: list["AzureFirewallApplicationRuleProtocol"] + :ivar targetFqdns: List of FQDNs for this rule. + :vartype targetFqdns: list[str] + :ivar fqdnTags: List of FQDN Tags for this rule. + :vartype fqdnTags: list[str] + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + """ + + name: str + """Name of the application rule.""" + description: str + """Description of the rule.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + protocols: list["AzureFirewallApplicationRuleProtocol"] + """Array of ApplicationRuleProtocols.""" + targetFqdns: list[str] + """List of FQDNs for this rule.""" + fqdnTags: list[str] + """List of FQDN Tags for this rule.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + + +class AzureFirewallApplicationRuleCollection(SubResource): + """Application rule collection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the azure firewall application rule collection. + :vartype properties: "AzureFirewallApplicationRuleCollectionPropertiesFormat" + :ivar name: The name of the resource that is unique within the Azure firewall. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "AzureFirewallApplicationRuleCollectionPropertiesFormat" + """Properties of the azure firewall application rule collection.""" + name: str + """The name of the resource that is unique within the Azure firewall. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AzureFirewallApplicationRuleCollectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the application rule collection. + + :ivar priority: Priority of the application rule collection resource. + :vartype priority: int + :ivar action: The action type of a rule collection. + :vartype action: "AzureFirewallRCAction" + :ivar rules: Collection of rules used by a application rule collection. + :vartype rules: list["AzureFirewallApplicationRule"] + :ivar provisioningState: The provisioning state of the application rule collection resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + priority: int + """Priority of the application rule collection resource.""" + action: "AzureFirewallRCAction" + """The action type of a rule collection.""" + rules: list["AzureFirewallApplicationRule"] + """Collection of rules used by a application rule collection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the application rule collection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AzureFirewallApplicationRuleProtocol(TypedDict, total=False): + """Properties of the application rule protocol. + + :ivar protocolType: Protocol type. Known values are: "Http", "Https", and "Mssql". + :vartype protocolType: Union[str, "AzureFirewallApplicationRuleProtocolType"] + :ivar port: Port number for the protocol, cannot be greater than 64000. This field is optional. + :vartype port: int + """ + + protocolType: Union[str, "AzureFirewallApplicationRuleProtocolType"] + """Protocol type. Known values are: \"Http\", \"Https\", and \"Mssql\".""" + port: int + """Port number for the protocol, cannot be greater than 64000. This field is optional.""" + + +class AzureFirewallAutoscaleConfiguration(TypedDict, total=False): + """Azure Firewall Autoscale Configuration parameters. + + :ivar minCapacity: The minimum number of capacity units for this azure firewall. Use null to + reset the value to the service default. + :vartype minCapacity: int + :ivar maxCapacity: The maximum number of capacity units for this azure firewall. Use null to + reset the value to the service default. + :vartype maxCapacity: int + """ + + minCapacity: Optional[int] + """The minimum number of capacity units for this azure firewall. Use null to reset the value to + the service default.""" + maxCapacity: Optional[int] + """The maximum number of capacity units for this azure firewall. Use null to reset the value to + the service default.""" + + +class AzureFirewallIPConfiguration(SubResource): + """IP configuration of an Azure Firewall. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the azure firewall IP configuration. + :vartype properties: "AzureFirewallIPConfigurationPropertiesFormat" + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "AzureFirewallIPConfigurationPropertiesFormat" + """Properties of the azure firewall IP configuration.""" + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class AzureFirewallIPConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of IP configuration of an Azure Firewall. + + :ivar privateIPAddress: The Firewall Internal Load Balancer IP to be used as the next hop in + User Defined Routes. + :vartype privateIPAddress: str + :ivar subnet: Reference to the subnet resource. This resource must be named + 'AzureFirewallSubnet' or 'AzureFirewallManagementSubnet'. + :vartype subnet: "SubResource" + :ivar publicIPAddress: Reference to the PublicIP resource. This field is a mandatory input if + subnet is not null. + :vartype publicIPAddress: "SubResource" + :ivar provisioningState: The provisioning state of the Azure firewall IP configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAddress: str + """The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes.""" + subnet: "SubResource" + """Reference to the subnet resource. This resource must be named 'AzureFirewallSubnet' or + 'AzureFirewallManagementSubnet'.""" + publicIPAddress: "SubResource" + """Reference to the PublicIP resource. This field is a mandatory input if subnet is not null.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the Azure firewall IP configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AzureFirewallIpGroups(TypedDict, total=False): + """IpGroups associated with azure firewall. + + :ivar id: Resource ID. + :vartype id: str + :ivar changeNumber: The iteration number. + :vartype changeNumber: str + """ + + id: str + """Resource ID.""" + changeNumber: str + """The iteration number.""" + + +class AzureFirewallNatRCAction(TypedDict, total=False): + """AzureFirewall NAT Rule Collection Action. + + :ivar type: The type of action. Known values are: "Snat" and "Dnat". + :vartype type: Union[str, "AzureFirewallNatRCActionType"] + """ + + type: Union[str, "AzureFirewallNatRCActionType"] + """The type of action. Known values are: \"Snat\" and \"Dnat\".""" + + +class AzureFirewallNatRule(TypedDict, total=False): + """Properties of a NAT rule. + + :ivar name: Name of the NAT rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses for this rule. Supports IP ranges, + prefixes, and service tags. + :vartype destinationAddresses: list[str] + :ivar destinationPorts: List of destination ports. + :vartype destinationPorts: list[str] + :ivar protocols: Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. + :vartype protocols: list[Union[str, "AzureFirewallNetworkRuleProtocol"]] + :ivar translatedAddress: The translated address for this NAT rule. + :vartype translatedAddress: str + :ivar translatedPort: The translated port for this NAT rule. + :vartype translatedPort: str + :ivar translatedFqdn: The translated FQDN for this NAT rule. + :vartype translatedFqdn: str + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + """ + + name: str + """Name of the NAT rule.""" + description: str + """Description of the rule.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags.""" + destinationPorts: list[str] + """List of destination ports.""" + protocols: list[Union[str, "AzureFirewallNetworkRuleProtocol"]] + """Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule.""" + translatedAddress: str + """The translated address for this NAT rule.""" + translatedPort: str + """The translated port for this NAT rule.""" + translatedFqdn: str + """The translated FQDN for this NAT rule.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + + +class AzureFirewallNatRuleCollection(SubResource): + """NAT rule collection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the azure firewall NAT rule collection. + :vartype properties: "AzureFirewallNatRuleCollectionProperties" + :ivar name: The name of the resource that is unique within the Azure firewall. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "AzureFirewallNatRuleCollectionProperties" + """Properties of the azure firewall NAT rule collection.""" + name: str + """The name of the resource that is unique within the Azure firewall. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AzureFirewallNatRuleCollectionProperties(TypedDict, total=False): + """Properties of the NAT rule collection. + + :ivar priority: Priority of the NAT rule collection resource. + :vartype priority: int + :ivar action: The action type of a NAT rule collection. + :vartype action: "AzureFirewallNatRCAction" + :ivar rules: Collection of rules used by a NAT rule collection. + :vartype rules: list["AzureFirewallNatRule"] + :ivar provisioningState: The provisioning state of the NAT rule collection resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + priority: int + """Priority of the NAT rule collection resource.""" + action: "AzureFirewallNatRCAction" + """The action type of a NAT rule collection.""" + rules: list["AzureFirewallNatRule"] + """Collection of rules used by a NAT rule collection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the NAT rule collection resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AzureFirewallNetworkRule(TypedDict, total=False): + """Properties of the network rule. + + :ivar name: Name of the network rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar protocols: Array of AzureFirewallNetworkRuleProtocols. + :vartype protocols: list[Union[str, "AzureFirewallNetworkRuleProtocol"]] + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses. + :vartype destinationAddresses: list[str] + :ivar destinationPorts: List of destination ports. + :vartype destinationPorts: list[str] + :ivar destinationFqdns: List of destination FQDNs. + :vartype destinationFqdns: list[str] + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + :ivar destinationIpGroups: List of destination IpGroups for this rule. + :vartype destinationIpGroups: list[str] + """ + + name: str + """Name of the network rule.""" + description: str + """Description of the rule.""" + protocols: list[Union[str, "AzureFirewallNetworkRuleProtocol"]] + """Array of AzureFirewallNetworkRuleProtocols.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses.""" + destinationPorts: list[str] + """List of destination ports.""" + destinationFqdns: list[str] + """List of destination FQDNs.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + destinationIpGroups: list[str] + """List of destination IpGroups for this rule.""" + + +class AzureFirewallNetworkRuleCollection(SubResource): + """Network rule collection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the azure firewall network rule collection. + :vartype properties: "AzureFirewallNetworkRuleCollectionPropertiesFormat" + :ivar name: The name of the resource that is unique within the Azure firewall. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "AzureFirewallNetworkRuleCollectionPropertiesFormat" + """Properties of the azure firewall network rule collection.""" + name: str + """The name of the resource that is unique within the Azure firewall. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class AzureFirewallNetworkRuleCollectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the network rule collection. + + :ivar priority: Priority of the network rule collection resource. + :vartype priority: int + :ivar action: The action type of a rule collection. + :vartype action: "AzureFirewallRCAction" + :ivar rules: Collection of rules used by a network rule collection. + :vartype rules: list["AzureFirewallNetworkRule"] + :ivar provisioningState: The provisioning state of the network rule collection resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + priority: int + """Priority of the network rule collection resource.""" + action: "AzureFirewallRCAction" + """The action type of a rule collection.""" + rules: list["AzureFirewallNetworkRule"] + """Collection of rules used by a network rule collection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network rule collection resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class AzureFirewallPacketCaptureFlags(TypedDict, total=False): + """Properties of the AzureFirewallRCAction. + + :ivar type: Flags to capture. Known values are: "fin", "syn", "rst", "push", "ack", and "urg". + :vartype type: Union[str, "AzureFirewallPacketCaptureFlagsType"] + """ + + type: Union[str, "AzureFirewallPacketCaptureFlagsType"] + """Flags to capture. Known values are: \"fin\", \"syn\", \"rst\", \"push\", \"ack\", and \"urg\".""" + + +class AzureFirewallPacketCaptureRule(TypedDict, total=False): + """Group of src/dest ips and ports to be captured. + + :ivar sources: List of source IP addresses/subnets to be captured. + :vartype sources: list[str] + :ivar destinations: List of destination IP addresses/subnets to be captured. + :vartype destinations: list[str] + :ivar destinationPorts: List of ports to be captured. + :vartype destinationPorts: list[str] + """ + + sources: list[str] + """List of source IP addresses/subnets to be captured.""" + destinations: list[str] + """List of destination IP addresses/subnets to be captured.""" + destinationPorts: list[str] + """List of ports to be captured.""" + + +class AzureFirewallPropertiesFormat(TypedDict, total=False): + """Properties of the Azure Firewall. + + :ivar applicationRuleCollections: Collection of application rule collections used by Azure + Firewall. + :vartype applicationRuleCollections: list["AzureFirewallApplicationRuleCollection"] + :ivar natRuleCollections: Collection of NAT rule collections used by Azure Firewall. + :vartype natRuleCollections: list["AzureFirewallNatRuleCollection"] + :ivar networkRuleCollections: Collection of network rule collections used by Azure Firewall. + :vartype networkRuleCollections: list["AzureFirewallNetworkRuleCollection"] + :ivar ipConfigurations: IP configuration of the Azure Firewall resource. + :vartype ipConfigurations: list["AzureFirewallIPConfiguration"] + :ivar managementIpConfiguration: IP configuration of the Azure Firewall used for management + traffic. + :vartype managementIpConfiguration: "AzureFirewallIPConfiguration" + :ivar provisioningState: The provisioning state of the Azure firewall resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar threatIntelMode: The operation mode for Threat Intelligence. Known values are: "Alert", + "Deny", and "Off". + :vartype threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + :ivar virtualHub: The virtualHub to which the firewall belongs. + :vartype virtualHub: "SubResource" + :ivar firewallPolicy: The firewallPolicy associated with this azure firewall. + :vartype firewallPolicy: "SubResource" + :ivar hubIPAddresses: IP addresses associated with AzureFirewall. + :vartype hubIPAddresses: "HubIPAddresses" + :ivar ipGroups: IpGroups associated with AzureFirewall. + :vartype ipGroups: list["AzureFirewallIpGroups"] + :ivar sku: The Azure Firewall Resource SKU. + :vartype sku: "AzureFirewallSku" + :ivar additionalProperties: The additional properties used to further config this azure + firewall. + :vartype additionalProperties: dict[str, str] + :ivar autoscaleConfiguration: Properties to provide a custom autoscale configuration to this + azure firewall. + :vartype autoscaleConfiguration: "AzureFirewallAutoscaleConfiguration" + :ivar afcConfiguration: AFC configuration for the Azure Firewall. + :vartype afcConfiguration: "AfcConfiguration" + """ + + applicationRuleCollections: list["AzureFirewallApplicationRuleCollection"] + """Collection of application rule collections used by Azure Firewall.""" + natRuleCollections: list["AzureFirewallNatRuleCollection"] + """Collection of NAT rule collections used by Azure Firewall.""" + networkRuleCollections: list["AzureFirewallNetworkRuleCollection"] + """Collection of network rule collections used by Azure Firewall.""" + ipConfigurations: list["AzureFirewallIPConfiguration"] + """IP configuration of the Azure Firewall resource.""" + managementIpConfiguration: "AzureFirewallIPConfiguration" + """IP configuration of the Azure Firewall used for management traffic.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the Azure firewall resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + """The operation mode for Threat Intelligence. Known values are: \"Alert\", \"Deny\", and \"Off\".""" + virtualHub: "SubResource" + """The virtualHub to which the firewall belongs.""" + firewallPolicy: "SubResource" + """The firewallPolicy associated with this azure firewall.""" + hubIPAddresses: "HubIPAddresses" + """IP addresses associated with AzureFirewall.""" + ipGroups: list["AzureFirewallIpGroups"] + """IpGroups associated with AzureFirewall.""" + sku: "AzureFirewallSku" + """The Azure Firewall Resource SKU.""" + additionalProperties: dict[str, str] + """The additional properties used to further config this azure firewall.""" + autoscaleConfiguration: "AzureFirewallAutoscaleConfiguration" + """Properties to provide a custom autoscale configuration to this azure firewall.""" + afcConfiguration: "AfcConfiguration" + """AFC configuration for the Azure Firewall.""" + + +class AzureFirewallPublicIPAddress(TypedDict, total=False): + """Public IP Address associated with azure firewall. + + :ivar address: Public IP Address value. + :vartype address: str + """ + + address: str + """Public IP Address value.""" + + +class AzureFirewallRCAction(TypedDict, total=False): + """Properties of the AzureFirewallRCAction. + + :ivar type: The type of action. Known values are: "Allow" and "Deny". + :vartype type: Union[str, "AzureFirewallRCActionType"] + """ + + type: Union[str, "AzureFirewallRCActionType"] + """The type of action. Known values are: \"Allow\" and \"Deny\".""" + + +class AzureFirewallSku(TypedDict, total=False): + """SKU of an Azure Firewall. + + :ivar name: Name of an Azure Firewall SKU. Known values are: "AZFW_VNet" and "AZFW_Hub". + :vartype name: Union[str, "AzureFirewallSkuName"] + :ivar tier: Tier of an Azure Firewall. Known values are: "Standard", "Premium", and "Basic". + :vartype tier: Union[str, "AzureFirewallSkuTier"] + """ + + name: Union[str, "AzureFirewallSkuName"] + """Name of an Azure Firewall SKU. Known values are: \"AZFW_VNet\" and \"AZFW_Hub\".""" + tier: Union[str, "AzureFirewallSkuTier"] + """Tier of an Azure Firewall. Known values are: \"Standard\", \"Premium\", and \"Basic\".""" + + +class AzureReachabilityReportLocation(TypedDict, total=False): + """Parameters that define a geographic location. + + :ivar country: The name of the country. Required. + :vartype country: str + :ivar state: The name of the state. + :vartype state: str + :ivar city: The name of the city or town. + :vartype city: str + """ + + country: Required[str] + """The name of the country. Required.""" + state: str + """The name of the state.""" + city: str + """The name of the city or town.""" + + +class AzureReachabilityReportParameters(TypedDict, total=False): + """Geographic and time constraints for Azure reachability report. + + :ivar providerLocation: Parameters that define a geographic location. Required. + :vartype providerLocation: "AzureReachabilityReportLocation" + :ivar providers: List of Internet service providers. + :vartype providers: list[str] + :ivar azureLocations: Optional Azure regions to scope the query to. + :vartype azureLocations: list[str] + :ivar startTime: The start time for the Azure reachability report. Required. + :vartype startTime: str + :ivar endTime: The end time for the Azure reachability report. Required. + :vartype endTime: str + """ + + providerLocation: Required["AzureReachabilityReportLocation"] + """Parameters that define a geographic location. Required.""" + providers: list[str] + """List of Internet service providers.""" + azureLocations: list[str] + """Optional Azure regions to scope the query to.""" + startTime: Required[str] + """The start time for the Azure reachability report. Required.""" + endTime: Required[str] + """The end time for the Azure reachability report. Required.""" + + +class BackendAddressPool(SubResourceModel): + """Pool of backend IP addresses. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of load balancer backend address pool. + :vartype properties: "BackendAddressPoolPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "BackendAddressPoolPropertiesFormat" + """Properties of load balancer backend address pool.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class BackendAddressPoolPropertiesFormat(TypedDict, total=False): + """Properties of the backend address pool. + + :ivar location: The location of the backend address pool. + :vartype location: str + :ivar tunnelInterfaces: An array of gateway load balancer tunnel interfaces. + :vartype tunnelInterfaces: list["GatewayLoadBalancerTunnelInterface"] + :ivar loadBalancerBackendAddresses: An array of backend addresses. + :vartype loadBalancerBackendAddresses: list["LoadBalancerBackendAddress"] + :ivar backendIPConfigurations: An array of references to IP addresses defined in network + interfaces. + :vartype backendIPConfigurations: list["NetworkInterfaceIPConfiguration"] + :ivar loadBalancingRules: An array of references to load balancing rules that use this backend + address pool. + :vartype loadBalancingRules: list["SubResource"] + :ivar outboundRule: A reference to an outbound rule that uses this backend address pool. + :vartype outboundRule: "SubResource" + :ivar outboundRules: An array of references to outbound rules that use this backend address + pool. + :vartype outboundRules: list["SubResource"] + :ivar inboundNatRules: An array of references to inbound NAT rules that use this backend + address pool. + :vartype inboundNatRules: list["SubResource"] + :ivar provisioningState: The provisioning state of the backend address pool resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar drainPeriodInSeconds: Amount of seconds Load Balancer waits for before sending RESET to + client and backend address. + :vartype drainPeriodInSeconds: int + :ivar virtualNetwork: A reference to a virtual network. + :vartype virtualNetwork: "SubResource" + :ivar syncMode: Backend address synchronous mode for the backend pool. Known values are: + "Automatic" and "Manual". + :vartype syncMode: Union[str, "SyncMode"] + """ + + location: str + """The location of the backend address pool.""" + tunnelInterfaces: list["GatewayLoadBalancerTunnelInterface"] + """An array of gateway load balancer tunnel interfaces.""" + loadBalancerBackendAddresses: list["LoadBalancerBackendAddress"] + """An array of backend addresses.""" + backendIPConfigurations: list["NetworkInterfaceIPConfiguration"] + """An array of references to IP addresses defined in network interfaces.""" + loadBalancingRules: list["SubResource"] + """An array of references to load balancing rules that use this backend address pool.""" + outboundRule: "SubResource" + """A reference to an outbound rule that uses this backend address pool.""" + outboundRules: list["SubResource"] + """An array of references to outbound rules that use this backend address pool.""" + inboundNatRules: list["SubResource"] + """An array of references to inbound NAT rules that use this backend address pool.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the backend address pool resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + drainPeriodInSeconds: int + """Amount of seconds Load Balancer waits for before sending RESET to client and backend address.""" + virtualNetwork: "SubResource" + """A reference to a virtual network.""" + syncMode: Union[str, "SyncMode"] + """Backend address synchronous mode for the backend pool. Known values are: \"Automatic\" and + \"Manual\".""" + + +class BastionHost(Resource): + """Bastion Host resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Represents the bastion host resource. + :vartype properties: "BastionHostPropertiesFormat" + :ivar zones: A list of availability zones denoting where the resource needs to come from. + :vartype zones: list[str] + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar sku: The sku of this Bastion Host. + :vartype sku: "Sku" + """ + + properties: "BastionHostPropertiesFormat" + """Represents the bastion host resource.""" + zones: list[str] + """A list of availability zones denoting where the resource needs to come from.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + sku: "Sku" + """The sku of this Bastion Host.""" + + +class BastionHostIPConfiguration(SubResource): + """IP configuration of an Bastion Host. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Represents the ip configuration associated with the resource. + :vartype properties: "BastionHostIPConfigurationPropertiesFormat" + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Ip configuration type. + :vartype type: str + """ + + properties: "BastionHostIPConfigurationPropertiesFormat" + """Represents the ip configuration associated with the resource.""" + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Ip configuration type.""" + + +class BastionHostIPConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of IP configuration of an Bastion Host. + + :ivar subnet: Reference of the subnet resource. Required. + :vartype subnet: "SubResource" + :ivar publicIPAddress: Reference of the PublicIP resource. Null for private only bastion. + :vartype publicIPAddress: "SubResource" + :ivar provisioningState: The provisioning state of the bastion host IP configuration resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateIPAllocationMethod: Private IP allocation method. Known values are: "Static" and + "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """ + + subnet: Required["SubResource"] + """Reference of the subnet resource. Required.""" + publicIPAddress: "SubResource" + """Reference of the PublicIP resource. Null for private only bastion.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the bastion host IP configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """Private IP allocation method. Known values are: \"Static\" and \"Dynamic\".""" + + +class BastionHostPropertiesFormat(TypedDict, total=False): + """Properties of the Bastion Host. + + :ivar ipConfigurations: IP configuration of the Bastion Host resource. + :vartype ipConfigurations: list["BastionHostIPConfiguration"] + :ivar dnsName: FQDN for the endpoint on which bastion host is accessible. + :vartype dnsName: str + :ivar virtualNetwork: Reference to an existing virtual network required for Developer Bastion + Host only. + :vartype virtualNetwork: "SubResource" + :ivar networkAcls: + :vartype networkAcls: "BastionHostPropertiesFormatNetworkAcls" + :ivar provisioningState: The provisioning state of the bastion host resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar scaleUnits: The scale units for the Bastion Host resource. + :vartype scaleUnits: int + :ivar disableCopyPaste: Enable/Disable Copy/Paste feature of the Bastion Host resource. + :vartype disableCopyPaste: bool + :ivar enableFileCopy: Enable/Disable File Copy feature of the Bastion Host resource. + :vartype enableFileCopy: bool + :ivar enableIpConnect: Enable/Disable IP Connect feature of the Bastion Host resource. + :vartype enableIpConnect: bool + :ivar enableShareableLink: Enable/Disable Shareable Link of the Bastion Host resource. + :vartype enableShareableLink: bool + :ivar enableTunneling: Enable/Disable Tunneling feature of the Bastion Host resource. + :vartype enableTunneling: bool + :ivar enableKerberos: Enable/Disable Kerberos feature of the Bastion Host resource. + :vartype enableKerberos: bool + :ivar enableSessionRecording: Enable/Disable Session Recording feature of the Bastion Host + resource. + :vartype enableSessionRecording: bool + :ivar enablePrivateOnlyBastion: Enable/Disable Private Only feature of the Bastion Host + resource. + :vartype enablePrivateOnlyBastion: bool + """ + + ipConfigurations: list["BastionHostIPConfiguration"] + """IP configuration of the Bastion Host resource.""" + dnsName: str + """FQDN for the endpoint on which bastion host is accessible.""" + virtualNetwork: "SubResource" + """Reference to an existing virtual network required for Developer Bastion Host only.""" + networkAcls: "BastionHostPropertiesFormatNetworkAcls" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the bastion host resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + scaleUnits: int + """The scale units for the Bastion Host resource.""" + disableCopyPaste: bool + """Enable/Disable Copy/Paste feature of the Bastion Host resource.""" + enableFileCopy: bool + """Enable/Disable File Copy feature of the Bastion Host resource.""" + enableIpConnect: bool + """Enable/Disable IP Connect feature of the Bastion Host resource.""" + enableShareableLink: bool + """Enable/Disable Shareable Link of the Bastion Host resource.""" + enableTunneling: bool + """Enable/Disable Tunneling feature of the Bastion Host resource.""" + enableKerberos: bool + """Enable/Disable Kerberos feature of the Bastion Host resource.""" + enableSessionRecording: bool + """Enable/Disable Session Recording feature of the Bastion Host resource.""" + enablePrivateOnlyBastion: bool + """Enable/Disable Private Only feature of the Bastion Host resource.""" + + +class BastionHostPropertiesFormatNetworkAcls(TypedDict, total=False): + """BastionHostPropertiesFormatNetworkAcls. + + :ivar ipRules: Sets the IP ACL rules for Developer Bastion Host. + :vartype ipRules: list["IPRule"] + """ + + ipRules: list["IPRule"] + """Sets the IP ACL rules for Developer Bastion Host.""" + + +class BastionShareableLink(TypedDict, total=False): + """Bastion Shareable Link. + + :ivar vm: Reference of the virtual machine resource. Required. + :vartype vm: "VM" + :ivar bsl: The unique Bastion Shareable Link to the virtual machine. + :vartype bsl: str + :ivar createdAt: The time when the link was created. + :vartype createdAt: str + :ivar message: Optional field indicating the warning or error message related to the vm in case + of partial failure. + :vartype message: str + """ + + vm: Required["VM"] + """Reference of the virtual machine resource. Required.""" + bsl: str + """The unique Bastion Shareable Link to the virtual machine.""" + createdAt: str + """The time when the link was created.""" + message: str + """Optional field indicating the warning or error message related to the vm in case of partial + failure.""" + + +class BastionShareableLinkListRequest(TypedDict, total=False): + """Post request for Create/Delete/Get Bastion Shareable Link endpoints. + + :ivar vms: List of VM references. + :vartype vms: list["BastionShareableLink"] + """ + + vms: list["BastionShareableLink"] + """List of VM references.""" + + +class BastionShareableLinkTokenListRequest(TypedDict, total=False): + """Post request for Delete Bastion Shareable Link By Token endpoint. + + :ivar tokens: List of Bastion Shareable Link Token. + :vartype tokens: list[str] + """ + + tokens: list[str] + """List of Bastion Shareable Link Token.""" + + +class BgpConnection(SubResourceModel): + """Virtual Appliance Site resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the Bgp connections. + :vartype properties: "BgpConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "BgpConnectionProperties" + """The properties of the Bgp connections.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class BgpConnectionProperties(TypedDict, total=False): + """Properties of the bgp connection. + + :ivar peerAsn: Peer ASN. + :vartype peerAsn: int + :ivar peerIp: Peer IP. + :vartype peerIp: str + :ivar hubVirtualNetworkConnection: The reference to the HubVirtualNetworkConnection resource. + :vartype hubVirtualNetworkConnection: "SubResource" + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar connectionState: The current state of the VirtualHub to Peer. Known values are: + "Unknown", "Connecting", "Connected", and "NotConnected". + :vartype connectionState: Union[str, "HubBgpConnectionStatus"] + :ivar routingConfiguration: The routing configuration indicating the associated and propagated + route tables for this connection. + :vartype routingConfiguration: "RoutingConfiguration" + """ + + peerAsn: int + """Peer ASN.""" + peerIp: str + """Peer IP.""" + hubVirtualNetworkConnection: "SubResource" + """The reference to the HubVirtualNetworkConnection resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + connectionState: Union[str, "HubBgpConnectionStatus"] + """The current state of the VirtualHub to Peer. Known values are: \"Unknown\", \"Connecting\", + \"Connected\", and \"NotConnected\".""" + routingConfiguration: "RoutingConfiguration" + """The routing configuration indicating the associated and propagated route tables for this + connection.""" + + +class BgpSettings(TypedDict, total=False): + """BGP settings details. + + :ivar asn: The BGP speaker's ASN. + :vartype asn: int + :ivar bgpPeeringAddress: The BGP peering address and BGP identifier of this BGP speaker. + :vartype bgpPeeringAddress: str + :ivar peerWeight: The weight added to routes learned from this BGP speaker. + :vartype peerWeight: int + :ivar bgpPeeringAddresses: BGP peering address with IP configuration ID for virtual network + gateway. + :vartype bgpPeeringAddresses: list["IPConfigurationBgpPeeringAddress"] + """ + + asn: int + """The BGP speaker's ASN.""" + bgpPeeringAddress: str + """The BGP peering address and BGP identifier of this BGP speaker.""" + peerWeight: int + """The weight added to routes learned from this BGP speaker.""" + bgpPeeringAddresses: list["IPConfigurationBgpPeeringAddress"] + """BGP peering address with IP configuration ID for virtual network gateway.""" + + +class BreakOutCategoryPolicies(TypedDict, total=False): + """Network Virtual Appliance Sku Properties. + + :ivar allow: Flag to control breakout of o365 allow category. + :vartype allow: bool + :ivar optimize: Flag to control breakout of o365 optimize category. + :vartype optimize: bool + :ivar default: Flag to control breakout of o365 default category. + :vartype default: bool + """ + + allow: bool + """Flag to control breakout of o365 allow category.""" + optimize: bool + """Flag to control breakout of o365 optimize category.""" + default: bool + """Flag to control breakout of o365 default category.""" + + +class CertificateAuthentication(TypedDict, total=False): + """Certificate Authentication information for a certificate based authentication connection. + + :ivar outboundAuthCertificate: Keyvault secret ID for outbound authentication certificate. + :vartype outboundAuthCertificate: str + :ivar inboundAuthCertificateSubjectName: Inbound authentication certificate subject name. + :vartype inboundAuthCertificateSubjectName: str + :ivar inboundAuthCertificateChain: Inbound authentication certificate public keys. + :vartype inboundAuthCertificateChain: list[str] + """ + + outboundAuthCertificate: str + """Keyvault secret ID for outbound authentication certificate.""" + inboundAuthCertificateSubjectName: str + """Inbound authentication certificate subject name.""" + inboundAuthCertificateChain: list[str] + """Inbound authentication certificate public keys.""" + + +class CheckPrivateLinkServiceVisibilityRequest(TypedDict, total=False): + """Request body of the CheckPrivateLinkServiceVisibility API service call. + + :ivar privateLinkServiceAlias: The alias of the private link service. + :vartype privateLinkServiceAlias: str + """ + + privateLinkServiceAlias: str + """The alias of the private link service.""" + + +class Commit(ChildResource): + """The commit resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: The Commit properties. + :vartype properties: "CommitProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "CommitProperties" + """The Commit properties.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class CommitProperties(TypedDict, total=False): + """Properties of commit. + + :ivar description: A description of the commit. + :vartype description: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + :ivar commitType: Commit Type. Required. Known values are: "SecurityAdmin", "Connectivity", + "SecurityUser", and "Routing". + :vartype commitType: Union[str, "ConfigurationType"] + :ivar configurationIds: List of configuration IDs. + :vartype configurationIds: list[str] + :ivar targetLocations: List of target locations. Required. + :vartype targetLocations: list[str] + :ivar activeLocations: List of active locations. + :vartype activeLocations: list[str] + :ivar forceUpdateTag: A value that, when changed, forces the commit to be re-evaluated and + redeployed. + :vartype forceUpdateTag: str + """ + + description: str + """A description of the commit.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + commitType: Required[Union[str, "ConfigurationType"]] + """Commit Type. Required. Known values are: \"SecurityAdmin\", \"Connectivity\", \"SecurityUser\", + and \"Routing\".""" + configurationIds: list[str] + """List of configuration IDs.""" + targetLocations: Required[list[str]] + """List of target locations. Required.""" + activeLocations: list[str] + """List of active locations.""" + forceUpdateTag: str + """A value that, when changed, forces the commit to be re-evaluated and redeployed.""" + + +class CommonResource(TypedDict, total=False): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + id: str + """Fully qualified resource ID for the resource. E.g. + \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\".""" + name: str + """The name of the resource.""" + type: str + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class CommonProxyResource(CommonResource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + +class CommonTrackedResource(CommonResource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: dict[str, str] + """Resource tags.""" + location: Required[str] + """The geo-location where the resource lives. Required.""" + + +class ConnectionAnalyzer(TypedDict, total=False): + """Defines a connection analyzer resource. + + :ivar name: Name of the connection analyzer. + :vartype name: str + :ivar id: Resource ID of the connection analyzer. + :vartype id: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar location: Resource location. Required. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the connection analyzer. Required. + :vartype properties: "ConnectionAnalyzerProperties" + """ + + name: str + """Name of the connection analyzer.""" + id: str + """Resource ID of the connection analyzer.""" + type: str + """Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + location: Required[str] + """Resource location. Required.""" + tags: dict[str, str] + """Resource tags.""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + properties: Required["ConnectionAnalyzerProperties"] + """Properties of the connection analyzer. Required.""" + + +class ConnectionAnalyzerEndpoint(TypedDict, total=False): + """Describes a source or destination endpoint of a connection analyzer. + + The schema is intentionally permissive (a flat object) because the set of + valid fields is determined by ``type`` and is enforced server-side by the + Network Resource Provider. The required and allowed fields per ``type`` are: + + + + * `VM`, `VMSS`, `BastionHost`, `ApplicationGateway`: `resourceId` is + required and must be the ARM resource ID of the corresponding resource + (a virtual machine, virtual machine scale set or VMSS instance, Azure + Bastion host, or Application Gateway, respectively); `address` is not + used; `port` is optional. + * `ExternalAddress`: `address` is required and must be an IP address or + FQDN reachable from outside Azure; `resourceId` is not used; `port` is + optional. + + Requests that supply fields not allowed for the chosen ``type``, or omit a + required field, are rejected by the service with a validation error. This + follows the same convention used by ``ConnectivitySource`` and + ``ConnectivityDestination`` on Network Watcher. + + :ivar type: The type of the endpoint. Determines which of ``resourceId`` and ``address`` are + required; see the model-level documentation for the per-type contract. Required. Known values + are: "VM", "VMSS", "ExternalAddress", "BastionHost", and "ApplicationGateway". + :vartype type: Union[str, "ConnectionAnalyzerEndpointType"] + :ivar resourceId: ARM resource ID of the endpoint resource. Required when ``type`` is ``VM``, + ``VMSS``, ``BastionHost``, or ``ApplicationGateway``. Not used when ``type`` is + ``ExternalAddress``. + :vartype resourceId: str + :ivar address: IP address or FQDN of the endpoint. Required when ``type`` is + ``ExternalAddress``. Not used for the resource-typed endpoint kinds (``VM``, ``VMSS``, + ``BastionHost``, ``ApplicationGateway``). + :vartype address: str + :ivar port: Port to use for the endpoint (0-65535). + :vartype port: int + """ + + type: Required[Union[str, "ConnectionAnalyzerEndpointType"]] + """The type of the endpoint. Determines which of ``resourceId`` and ``address`` are required; see + the model-level documentation for the per-type contract. Required. Known values are: \"VM\", + \"VMSS\", \"ExternalAddress\", \"BastionHost\", and \"ApplicationGateway\".""" + resourceId: str + """ARM resource ID of the endpoint resource. Required when ``type`` is ``VM``, ``VMSS``, + ``BastionHost``, or ``ApplicationGateway``. Not used when ``type`` is ``ExternalAddress``.""" + address: str + """IP address or FQDN of the endpoint. Required when ``type`` is ``ExternalAddress``. Not used for + the resource-typed endpoint kinds (``VM``, ``VMSS``, ``BastionHost``, ``ApplicationGateway``).""" + port: int + """Port to use for the endpoint (0-65535).""" + + +class ConnectionAnalyzerProperties(TypedDict, total=False): + """Properties of a connection analyzer. + + :ivar source: Source endpoint of the connection analyzer. Required. + :vartype source: "ConnectionAnalyzerEndpoint" + :ivar destination: Destination endpoint of the connection analyzer. Required. + :vartype destination: "ConnectionAnalyzerEndpoint" + :ivar diagnosticOperations: List of diagnostic operations to run. Required. + :vartype diagnosticOperations: list[Union[str, "DiagnosticOperation"]] + :ivar protocolSettings: Protocol-level settings. + :vartype protocolSettings: "ProtocolSettings" + :ivar diagnosticOperationsSettings: Per-operation diagnostic settings. + :vartype diagnosticOperationsSettings: "DiagnosticOperationsSettings" + :ivar expiryInDays: Time-to-live (days) before the analyzer expires. + :vartype expiryInDays: int + :ivar outputSettings: Output settings (e.g. storage account). + :vartype outputSettings: "OutputSettings" + :ivar requestTime: UTC time when the connection analyzer request was received. + :vartype requestTime: str + :ivar provisioningState: The provisioning state of the connection analyzer resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar status: Current execution status of the connection analyzer. Known values are: + "NotStarted", "Running", "Succeeded", and "Failed". + :vartype status: Union[str, "ConnectionAnalyzerStatus"] + """ + + source: Required["ConnectionAnalyzerEndpoint"] + """Source endpoint of the connection analyzer. Required.""" + destination: Required["ConnectionAnalyzerEndpoint"] + """Destination endpoint of the connection analyzer. Required.""" + diagnosticOperations: Required[list[Union[str, "DiagnosticOperation"]]] + """List of diagnostic operations to run. Required.""" + protocolSettings: "ProtocolSettings" + """Protocol-level settings.""" + diagnosticOperationsSettings: "DiagnosticOperationsSettings" + """Per-operation diagnostic settings.""" + expiryInDays: int + """Time-to-live (days) before the analyzer expires.""" + outputSettings: "OutputSettings" + """Output settings (e.g. storage account).""" + requestTime: str + """UTC time when the connection analyzer request was received.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the connection analyzer resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + status: Union[str, "ConnectionAnalyzerStatus"] + """Current execution status of the connection analyzer. Known values are: \"NotStarted\", + \"Running\", \"Succeeded\", and \"Failed\".""" + + +class ConnectionMonitor(TypedDict, total=False): + """Parameters that define the operation to create a connection monitor. + + :ivar location: Connection monitor location. + :vartype location: str + :ivar tags: Connection monitor tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the connection monitor. Required. + :vartype properties: "ConnectionMonitorParameters" + """ + + location: str + """Connection monitor location.""" + tags: dict[str, str] + """Connection monitor tags.""" + properties: Required["ConnectionMonitorParameters"] + """Properties of the connection monitor. Required.""" + + +class ConnectionMonitorDestination(TypedDict, total=False): + """Describes the destination of connection monitor. + + :ivar resourceId: The ID of the resource used as the destination by connection monitor. + :vartype resourceId: str + :ivar address: Address of the connection monitor destination (IP or domain name). + :vartype address: str + :ivar port: The destination port used by connection monitor. + :vartype port: int + """ + + resourceId: str + """The ID of the resource used as the destination by connection monitor.""" + address: str + """Address of the connection monitor destination (IP or domain name).""" + port: int + """The destination port used by connection monitor.""" + + +class ConnectionMonitorEndpoint(TypedDict, total=False): + """Describes the connection monitor endpoint. + + :ivar name: The name of the connection monitor endpoint. Required. + :vartype name: str + :ivar type: The endpoint type. Known values are: "AzureVM", "AzureVNet", "AzureSubnet", + "ExternalAddress", "MMAWorkspaceMachine", "MMAWorkspaceNetwork", "AzureArcVM", "AzureVMSS", and + "AzureArcNetwork". + :vartype type: Union[str, "EndpointType"] + :ivar resourceId: Resource ID of the connection monitor endpoint are supported for AzureVM, + AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM + endpoint type. + :vartype resourceId: str + :ivar address: Address of the connection monitor endpoint. Supported for AzureVM, + ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type. + :vartype address: str + :ivar filter: Filter field is getting deprecated and should not be used. Instead use + Include/Exclude scope fields for it. + :vartype filter: "ConnectionMonitorEndpointFilter" + :ivar scope: Endpoint scope defines which target resource to monitor in case of compound + resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. + :vartype scope: "ConnectionMonitorEndpointScope" + :ivar coverageLevel: Test coverage for the endpoint. Known values are: "Default", "Low", + "BelowAverage", "Average", "AboveAverage", and "Full". + :vartype coverageLevel: Union[str, "CoverageLevel"] + :ivar locationDetails: Location details is optional and only being used for 'AzureArcNetwork' + type endpoints, which contains region details. + :vartype locationDetails: "ConnectionMonitorEndpointLocationDetails" + :ivar subscriptionId: Subscription ID for connection monitor endpoint. It's an optional + parameter which is being used for 'AzureArcNetwork' type endpoint. + :vartype subscriptionId: str + """ + + name: Required[str] + """The name of the connection monitor endpoint. Required.""" + type: Union[str, "EndpointType"] + """The endpoint type. Known values are: \"AzureVM\", \"AzureVNet\", \"AzureSubnet\", + \"ExternalAddress\", \"MMAWorkspaceMachine\", \"MMAWorkspaceNetwork\", \"AzureArcVM\", + \"AzureVMSS\", and \"AzureArcNetwork\".""" + resourceId: str + """Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, + AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type.""" + address: str + """Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, + MMAWorkspaceMachine endpoint type.""" + filter: "ConnectionMonitorEndpointFilter" + """Filter field is getting deprecated and should not be used. Instead use Include/Exclude scope + fields for it.""" + scope: "ConnectionMonitorEndpointScope" + """Endpoint scope defines which target resource to monitor in case of compound resource endpoints + like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork.""" + coverageLevel: Union[str, "CoverageLevel"] + """Test coverage for the endpoint. Known values are: \"Default\", \"Low\", \"BelowAverage\", + \"Average\", \"AboveAverage\", and \"Full\".""" + locationDetails: "ConnectionMonitorEndpointLocationDetails" + """Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which + contains region details.""" + subscriptionId: str + """Subscription ID for connection monitor endpoint. It's an optional parameter which is being used + for 'AzureArcNetwork' type endpoint.""" + + +class ConnectionMonitorEndpointFilter(TypedDict, total=False): + """Describes the connection monitor endpoint filter. + + :ivar type: The behavior of the endpoint filter. Currently only 'Include' is supported. + "Include" + :vartype type: Union[str, "ConnectionMonitorEndpointFilterType"] + :ivar items: List of items in the filter. + :vartype items: list["ConnectionMonitorEndpointFilterItem"] + """ + + type: Union[str, "ConnectionMonitorEndpointFilterType"] + """The behavior of the endpoint filter. Currently only 'Include' is supported. \"Include\"""" + items: list["ConnectionMonitorEndpointFilterItem"] + """List of items in the filter.""" + + +class ConnectionMonitorEndpointFilterItem(TypedDict, total=False): + """Describes the connection monitor endpoint filter item. + + :ivar type: The type of item included in the filter. Currently only 'AgentAddress' is + supported. "AgentAddress" + :vartype type: Union[str, "ConnectionMonitorEndpointFilterItemType"] + :ivar address: The address of the filter item. + :vartype address: str + """ + + type: Union[str, "ConnectionMonitorEndpointFilterItemType"] + """The type of item included in the filter. Currently only 'AgentAddress' is supported. + \"AgentAddress\"""" + address: str + """The address of the filter item.""" + + +class ConnectionMonitorEndpointLocationDetails(TypedDict, total=False): + """Connection monitor endpoint location details only being used for 'AzureArcNetwork' type + endpoints, which contains the region details. + + :ivar region: Region for connection monitor endpoint. + :vartype region: str + """ + + region: str + """Region for connection monitor endpoint.""" + + +class ConnectionMonitorEndpointScope(TypedDict, total=False): + """Describes the connection monitor endpoint scope. + + :ivar include: List of items which needs to be included to the endpoint scope. + :vartype include: list["ConnectionMonitorEndpointScopeItem"] + :ivar exclude: List of items which needs to be excluded from the endpoint scope. + :vartype exclude: list["ConnectionMonitorEndpointScopeItem"] + """ + + include: list["ConnectionMonitorEndpointScopeItem"] + """List of items which needs to be included to the endpoint scope.""" + exclude: list["ConnectionMonitorEndpointScopeItem"] + """List of items which needs to be excluded from the endpoint scope.""" + + +class ConnectionMonitorEndpointScopeItem(TypedDict, total=False): + """Describes the connection monitor endpoint scope item. + + :ivar address: The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or + IPv4/IPv6 IP address. + :vartype address: str + """ + + address: str + """The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP + address.""" + + +class ConnectionMonitorHttpConfiguration(TypedDict, total=False): + """Describes the HTTP configuration. + + :ivar port: The port to connect to. + :vartype port: int + :ivar method: The HTTP method to use. Known values are: "Get" and "Post". + :vartype method: Union[str, "HTTPConfigurationMethod"] + :ivar path: The path component of the URI. For instance, "/dir1/dir2". + :vartype path: str + :ivar requestHeaders: The HTTP headers to transmit with the request. + :vartype requestHeaders: list["HTTPHeader"] + :ivar validStatusCodeRanges: HTTP status codes to consider successful. For instance, + "2xx,301-304,418". + :vartype validStatusCodeRanges: list[str] + :ivar preferHTTPS: Value indicating whether HTTPS is preferred over HTTP in cases where the + choice is not explicit. + :vartype preferHTTPS: bool + """ + + port: int + """The port to connect to.""" + method: Union[str, "HTTPConfigurationMethod"] + """The HTTP method to use. Known values are: \"Get\" and \"Post\".""" + path: str + """The path component of the URI. For instance, \"/dir1/dir2\".""" + requestHeaders: list["HTTPHeader"] + """The HTTP headers to transmit with the request.""" + validStatusCodeRanges: list[str] + """HTTP status codes to consider successful. For instance, \"2xx,301-304,418\".""" + preferHTTPS: bool + """Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not + explicit.""" + + +class ConnectionMonitorIcmpConfiguration(TypedDict, total=False): + """Describes the ICMP configuration. + + :ivar disableTraceRoute: Value indicating whether path evaluation with trace route should be + disabled. + :vartype disableTraceRoute: bool + """ + + disableTraceRoute: bool + """Value indicating whether path evaluation with trace route should be disabled.""" + + +class ConnectionMonitorOutput(TypedDict, total=False): + """Describes a connection monitor output destination. + + :ivar type: Connection monitor output destination type. Currently, only "Workspace" is + supported. "Workspace" + :vartype type: Union[str, "OutputType"] + :ivar workspaceSettings: Describes the settings for producing output into a log analytics + workspace. + :vartype workspaceSettings: "ConnectionMonitorWorkspaceSettings" + """ + + type: Union[str, "OutputType"] + """Connection monitor output destination type. Currently, only \"Workspace\" is supported. + \"Workspace\"""" + workspaceSettings: "ConnectionMonitorWorkspaceSettings" + """Describes the settings for producing output into a log analytics workspace.""" + + +class ConnectionMonitorParameters(TypedDict, total=False): + """Parameters that define the operation to create a connection monitor. + + :ivar source: Describes the source of connection monitor. + :vartype source: "ConnectionMonitorSource" + :ivar destination: Describes the destination of connection monitor. + :vartype destination: "ConnectionMonitorDestination" + :ivar autoStart: Determines if the connection monitor will start automatically once created. + :vartype autoStart: bool + :ivar monitoringIntervalInSeconds: Monitoring interval in seconds. + :vartype monitoringIntervalInSeconds: int + :ivar endpoints: List of connection monitor endpoints. + :vartype endpoints: list["ConnectionMonitorEndpoint"] + :ivar testConfigurations: List of connection monitor test configurations. + :vartype testConfigurations: list["ConnectionMonitorTestConfiguration"] + :ivar testGroups: List of connection monitor test groups. + :vartype testGroups: list["ConnectionMonitorTestGroup"] + :ivar outputs: List of connection monitor outputs. + :vartype outputs: list["ConnectionMonitorOutput"] + :ivar notes: Optional notes to be associated with the connection monitor. + :vartype notes: str + """ + + source: "ConnectionMonitorSource" + """Describes the source of connection monitor.""" + destination: "ConnectionMonitorDestination" + """Describes the destination of connection monitor.""" + autoStart: bool + """Determines if the connection monitor will start automatically once created.""" + monitoringIntervalInSeconds: int + """Monitoring interval in seconds.""" + endpoints: list["ConnectionMonitorEndpoint"] + """List of connection monitor endpoints.""" + testConfigurations: list["ConnectionMonitorTestConfiguration"] + """List of connection monitor test configurations.""" + testGroups: list["ConnectionMonitorTestGroup"] + """List of connection monitor test groups.""" + outputs: list["ConnectionMonitorOutput"] + """List of connection monitor outputs.""" + notes: str + """Optional notes to be associated with the connection monitor.""" + + +class ConnectionMonitorSource(TypedDict, total=False): + """Describes the source of connection monitor. + + :ivar resourceId: The ID of the resource used as the source by connection monitor. Required. + :vartype resourceId: str + :ivar port: The source port used by connection monitor. + :vartype port: int + """ + + resourceId: Required[str] + """The ID of the resource used as the source by connection monitor. Required.""" + port: int + """The source port used by connection monitor.""" + + +class ConnectionMonitorSuccessThreshold(TypedDict, total=False): + """Describes the threshold for declaring a test successful. + + :ivar checksFailedPercent: The maximum percentage of failed checks permitted for a test to + evaluate as successful. + :vartype checksFailedPercent: int + :ivar roundTripTimeMs: The maximum round-trip time in milliseconds permitted for a test to + evaluate as successful. + :vartype roundTripTimeMs: float + """ + + checksFailedPercent: int + """The maximum percentage of failed checks permitted for a test to evaluate as successful.""" + roundTripTimeMs: float + """The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.""" + + +class ConnectionMonitorTcpConfiguration(TypedDict, total=False): + """Describes the TCP configuration. + + :ivar port: The port to connect to. + :vartype port: int + :ivar disableTraceRoute: Value indicating whether path evaluation with trace route should be + disabled. + :vartype disableTraceRoute: bool + :ivar destinationPortBehavior: Destination port behavior. Known values are: "None" and + "ListenIfAvailable". + :vartype destinationPortBehavior: Union[str, "DestinationPortBehavior"] + """ + + port: int + """The port to connect to.""" + disableTraceRoute: bool + """Value indicating whether path evaluation with trace route should be disabled.""" + destinationPortBehavior: Union[str, "DestinationPortBehavior"] + """Destination port behavior. Known values are: \"None\" and \"ListenIfAvailable\".""" + + +class ConnectionMonitorTestConfiguration(TypedDict, total=False): + """Describes a connection monitor test configuration. + + :ivar name: The name of the connection monitor test configuration. Required. + :vartype name: str + :ivar testFrequencySec: The frequency of test evaluation, in seconds. + :vartype testFrequencySec: int + :ivar protocol: The protocol to use in test evaluation. Required. Known values are: "Tcp", + "Http", and "Icmp". + :vartype protocol: Union[str, "ConnectionMonitorTestConfigurationProtocol"] + :ivar preferredIPVersion: The preferred IP version to use in test evaluation. The connection + monitor may choose to use a different version depending on other parameters. Known values are: + "IPv4" and "IPv6". + :vartype preferredIPVersion: Union[str, "PreferredIPVersion"] + :ivar httpConfiguration: The parameters used to perform test evaluation over HTTP. + :vartype httpConfiguration: "ConnectionMonitorHttpConfiguration" + :ivar tcpConfiguration: The parameters used to perform test evaluation over TCP. + :vartype tcpConfiguration: "ConnectionMonitorTcpConfiguration" + :ivar icmpConfiguration: The parameters used to perform test evaluation over ICMP. + :vartype icmpConfiguration: "ConnectionMonitorIcmpConfiguration" + :ivar successThreshold: The threshold for declaring a test successful. + :vartype successThreshold: "ConnectionMonitorSuccessThreshold" + """ + + name: Required[str] + """The name of the connection monitor test configuration. Required.""" + testFrequencySec: int + """The frequency of test evaluation, in seconds.""" + protocol: Required[Union[str, "ConnectionMonitorTestConfigurationProtocol"]] + """The protocol to use in test evaluation. Required. Known values are: \"Tcp\", \"Http\", and + \"Icmp\".""" + preferredIPVersion: Union[str, "PreferredIPVersion"] + """The preferred IP version to use in test evaluation. The connection monitor may choose to use a + different version depending on other parameters. Known values are: \"IPv4\" and \"IPv6\".""" + httpConfiguration: "ConnectionMonitorHttpConfiguration" + """The parameters used to perform test evaluation over HTTP.""" + tcpConfiguration: "ConnectionMonitorTcpConfiguration" + """The parameters used to perform test evaluation over TCP.""" + icmpConfiguration: "ConnectionMonitorIcmpConfiguration" + """The parameters used to perform test evaluation over ICMP.""" + successThreshold: "ConnectionMonitorSuccessThreshold" + """The threshold for declaring a test successful.""" + + +class ConnectionMonitorTestGroup(TypedDict, total=False): + """Describes the connection monitor test group. + + :ivar name: The name of the connection monitor test group. Required. + :vartype name: str + :ivar disable: Value indicating whether test group is disabled. + :vartype disable: bool + :ivar testConfigurations: List of test configuration names. Required. + :vartype testConfigurations: list[str] + :ivar sources: List of source endpoint names. Required. + :vartype sources: list[str] + :ivar destinations: List of destination endpoint names. Required. + :vartype destinations: list[str] + """ + + name: Required[str] + """The name of the connection monitor test group. Required.""" + disable: bool + """Value indicating whether test group is disabled.""" + testConfigurations: Required[list[str]] + """List of test configuration names. Required.""" + sources: Required[list[str]] + """List of source endpoint names. Required.""" + destinations: Required[list[str]] + """List of destination endpoint names. Required.""" + + +class ConnectionMonitorWorkspaceSettings(TypedDict, total=False): + """Describes the settings for producing output into a log analytics workspace. + + :ivar workspaceResourceId: Log analytics workspace resource ID. + :vartype workspaceResourceId: str + """ + + workspaceResourceId: str + """Log analytics workspace resource ID.""" + + +class ConnectionPolicy(ProxyResource): + """ConnectionPolicy resource defined for VirtualHub. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Properties of the ConnectionPolicy resource. + :vartype properties: "ConnectionPolicyProperties" + """ + + properties: "ConnectionPolicyProperties" + """Properties of the ConnectionPolicy resource.""" + + +class ConnectionPolicyProperties(TypedDict, total=False): + """Properties of the ConnectionPolicy resource. + + :ivar enableInternetSecurity: Enable internet security. + :vartype enableInternetSecurity: bool + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + :ivar provisioningState: The provisioning state of the ConnectionPolicy resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar associatedConnections: List of connection names (e.g. VpnConnection, + HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, + not Azure resource IDs, consistent with the established VirtualWAN pattern used by + HubRouteTable.associatedConnections. + :vartype associatedConnections: list[str] + """ + + enableInternetSecurity: bool + """Enable internet security.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the ConnectionPolicy resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + associatedConnections: list[str] + """List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this + ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the + established VirtualWAN pattern used by HubRouteTable.associatedConnections.""" + + +class ConnectionResetSharedKey(TypedDict, total=False): + """The virtual network connection reset shared key. + + :ivar keyLength: The virtual network connection reset shared key length, should between 1 and + 128. Required. + :vartype keyLength: int + """ + + keyLength: Required[int] + """The virtual network connection reset shared key length, should between 1 and 128. Required.""" + + +class ConnectionSharedKey(SubResource): + """Response for GetConnectionSharedKey API service call. + + :ivar id: Resource ID. + :vartype id: str + :ivar value: The virtual network connection shared key value. Required. + :vartype value: str + """ + + value: Required[str] + """The virtual network connection shared key value. Required.""" + + +class ConnectionSharedKeyResult(SubResourceModel): + """SharedKey Resource . + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the shared key. + :vartype properties: "SharedKeyProperties" + """ + + properties: "SharedKeyProperties" + """Properties of the shared key.""" + + +class ConnectivityCheckSettings(TypedDict, total=False): + """Settings that control how connectivity checks are performed by the connection analyzer. + + :ivar generatePath: Whether to generate a hop-by-hop path during the connectivity check. + Default value is true. + :vartype generatePath: bool + :ivar preferredIPVersion: Preferred IP version for the connectivity check. Known values are: + "IPv4" and "IPv6". + :vartype preferredIPVersion: Union[str, "PreferredIPVersion"] + """ + + generatePath: bool + """Whether to generate a hop-by-hop path during the connectivity check. Default value is true.""" + preferredIPVersion: Union[str, "PreferredIPVersion"] + """Preferred IP version for the connectivity check. Known values are: \"IPv4\" and \"IPv6\".""" + + +class ConnectivityConfiguration(ChildResource): + """The network manager connectivity configuration resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Properties of a network manager connectivity configuration. + :vartype properties: "ConnectivityConfigurationProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "ConnectivityConfigurationProperties" + """Properties of a network manager connectivity configuration.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class ConnectivityConfigurationProperties(TypedDict, total=False): + """Properties of network manager connectivity configuration. + + :ivar description: A description of the connectivity configuration. + :vartype description: str + :ivar connectivityTopology: Connectivity topology type. Required. Known values are: + "HubAndSpoke" and "Mesh". + :vartype connectivityTopology: Union[str, "ConnectivityTopology"] + :ivar hubs: List of hubItems. + :vartype hubs: list["Hub"] + :ivar isGlobal: Flag if global mesh is supported. Known values are: "False" and "True". + :vartype isGlobal: Union[str, "IsGlobal"] + :ivar connectivityCapabilities: Collection of additional settings to enhance specific topology + behaviors of the connectivity configuration resource. + :vartype connectivityCapabilities: + "ConnectivityConfigurationPropertiesConnectivityCapabilities" + :ivar appliesToGroups: Groups for configuration. Required. + :vartype appliesToGroups: list["ConnectivityGroupItem"] + :ivar provisioningState: The provisioning state of the connectivity configuration resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar deleteExistingPeering: Flag if need to remove current existing peerings. Known values + are: "False" and "True". + :vartype deleteExistingPeering: Union[str, "DeleteExistingPeering"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the connectivity configuration.""" + connectivityTopology: Required[Union[str, "ConnectivityTopology"]] + """Connectivity topology type. Required. Known values are: \"HubAndSpoke\" and \"Mesh\".""" + hubs: list["Hub"] + """List of hubItems.""" + isGlobal: Union[str, "IsGlobal"] + """Flag if global mesh is supported. Known values are: \"False\" and \"True\".""" + connectivityCapabilities: "ConnectivityConfigurationPropertiesConnectivityCapabilities" + """Collection of additional settings to enhance specific topology behaviors of the connectivity + configuration resource.""" + appliesToGroups: Required[list["ConnectivityGroupItem"]] + """Groups for configuration. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the connectivity configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + deleteExistingPeering: Union[str, "DeleteExistingPeering"] + """Flag if need to remove current existing peerings. Known values are: \"False\" and \"True\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class ConnectivityConfigurationPropertiesConnectivityCapabilities( + TypedDict, total=False +): # pylint: disable=name-too-long + """Collection of additional settings to enhance specific topology behaviors of the connectivity + configuration resource. + + :ivar connectedGroupPrivateEndpointsScale: Option indicating the scale of private endpoints + allowed in the connected group of the connectivity configuration. Required. Known values are: + "Standard" and "HighScale". + :vartype connectedGroupPrivateEndpointsScale: Union[str, "ConnectedGroupPrivateEndpointsScale"] + :ivar connectedGroupAddressOverlap: Behavior to handle overlapped IP address space among + members of the connected group of the connectivity configuration. Required. Known values are: + "Allowed" and "Disallowed". + :vartype connectedGroupAddressOverlap: Union[str, "ConnectedGroupAddressOverlap"] + :ivar peeringEnforcement: Option indicating enforcement of peerings created by the connectivity + configuration. Required. Known values are: "Unenforced" and "Enforced". + :vartype peeringEnforcement: Union[str, "PeeringEnforcement"] + """ + + connectedGroupPrivateEndpointsScale: Required[Union[str, "ConnectedGroupPrivateEndpointsScale"]] + """Option indicating the scale of private endpoints allowed in the connected group of the + connectivity configuration. Required. Known values are: \"Standard\" and \"HighScale\".""" + connectedGroupAddressOverlap: Required[Union[str, "ConnectedGroupAddressOverlap"]] + """Behavior to handle overlapped IP address space among members of the connected group of the + connectivity configuration. Required. Known values are: \"Allowed\" and \"Disallowed\".""" + peeringEnforcement: Required[Union[str, "PeeringEnforcement"]] + """Option indicating enforcement of peerings created by the connectivity configuration. Required. + Known values are: \"Unenforced\" and \"Enforced\".""" + + +class ConnectivityDestination(TypedDict, total=False): + """Parameters that define destination of connection. + + :ivar resourceId: The ID of the resource to which a connection attempt will be made. + :vartype resourceId: str + :ivar address: The IP address or URI the resource to which a connection attempt will be made. + :vartype address: str + :ivar port: Port on which check connectivity will be performed. + :vartype port: int + """ + + resourceId: str + """The ID of the resource to which a connection attempt will be made.""" + address: str + """The IP address or URI the resource to which a connection attempt will be made.""" + port: int + """Port on which check connectivity will be performed.""" + + +class ConnectivityGroupItem(TypedDict, total=False): + """Connectivity group item. + + :ivar networkGroupId: Network group Id. Required. + :vartype networkGroupId: str + :ivar useHubGateway: Flag if need to use hub gateway. Known values are: "False" and "True". + :vartype useHubGateway: Union[str, "UseHubGateway"] + :ivar isGlobal: Flag if global is supported. Known values are: "False" and "True". + :vartype isGlobal: Union[str, "IsGlobal"] + :ivar groupConnectivity: Group connectivity type. Required. Known values are: "None" and + "DirectlyConnected". + :vartype groupConnectivity: Union[str, "GroupConnectivity"] + """ + + networkGroupId: Required[str] + """Network group Id. Required.""" + useHubGateway: Union[str, "UseHubGateway"] + """Flag if need to use hub gateway. Known values are: \"False\" and \"True\".""" + isGlobal: Union[str, "IsGlobal"] + """Flag if global is supported. Known values are: \"False\" and \"True\".""" + groupConnectivity: Required[Union[str, "GroupConnectivity"]] + """Group connectivity type. Required. Known values are: \"None\" and \"DirectlyConnected\".""" + + +class ConnectivityParameters(TypedDict, total=False): + """Parameters that determine how the connectivity check will be performed. + + :ivar source: The source of the connection. Required. + :vartype source: "ConnectivitySource" + :ivar destination: The destination of connection. Required. + :vartype destination: "ConnectivityDestination" + :ivar protocol: Network protocol. Known values are: "Tcp", "Http", "Https", and "Icmp". + :vartype protocol: Union[str, "Protocol"] + :ivar protocolConfiguration: Configuration of the protocol. + :vartype protocolConfiguration: "ProtocolConfiguration" + :ivar preferredIPVersion: Preferred IP version of the connection. Known values are: "IPv4" and + "IPv6". + :vartype preferredIPVersion: Union[str, "IPVersion"] + """ + + source: Required["ConnectivitySource"] + """The source of the connection. Required.""" + destination: Required["ConnectivityDestination"] + """The destination of connection. Required.""" + protocol: Union[str, "Protocol"] + """Network protocol. Known values are: \"Tcp\", \"Http\", \"Https\", and \"Icmp\".""" + protocolConfiguration: "ProtocolConfiguration" + """Configuration of the protocol.""" + preferredIPVersion: Union[str, "IPVersion"] + """Preferred IP version of the connection. Known values are: \"IPv4\" and \"IPv6\".""" + + +class ConnectivitySource(TypedDict, total=False): + """Parameters that define the source of the connection. + + :ivar resourceId: The ID of the resource from which a connectivity check will be initiated. + Required. + :vartype resourceId: str + :ivar port: The source port from which a connectivity check will be performed. + :vartype port: int + """ + + resourceId: Required[str] + """The ID of the resource from which a connectivity check will be initiated. Required.""" + port: int + """The source port from which a connectivity check will be performed.""" + + +class Container(SubResource): + """Reference to container resource in remote resource provider. + + :ivar id: Resource ID. + :vartype id: str + """ + + +class ContainerNetworkInterface(SubResource): + """Container network interface child resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Container network interface properties. + :vartype properties: "ContainerNetworkInterfacePropertiesFormat" + :ivar name: The name of the resource. This name can be used to access the resource. + :vartype name: str + :ivar type: Sub Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ContainerNetworkInterfacePropertiesFormat" + """Container network interface properties.""" + name: str + """The name of the resource. This name can be used to access the resource.""" + type: str + """Sub Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ContainerNetworkInterfaceConfiguration(SubResource): + """Container network interface configuration child resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Container network interface configuration properties. + :vartype properties: "ContainerNetworkInterfaceConfigurationPropertiesFormat" + :ivar name: The name of the resource. This name can be used to access the resource. + :vartype name: str + :ivar type: Sub Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ContainerNetworkInterfaceConfigurationPropertiesFormat" + """Container network interface configuration properties.""" + name: str + """The name of the resource. This name can be used to access the resource.""" + type: str + """Sub Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ContainerNetworkInterfaceConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Container network interface configuration properties. + + :ivar ipConfigurations: A list of ip configurations of the container network interface + configuration. + :vartype ipConfigurations: list["IPConfigurationProfile"] + :ivar containerNetworkInterfaces: A list of container network interfaces created from this + container network interface configuration. + :vartype containerNetworkInterfaces: list["SubResource"] + :ivar provisioningState: The provisioning state of the container network interface + configuration resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", + "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + ipConfigurations: list["IPConfigurationProfile"] + """A list of ip configurations of the container network interface configuration.""" + containerNetworkInterfaces: list["SubResource"] + """A list of container network interfaces created from this container network interface + configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the container network interface configuration resource. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ContainerNetworkInterfaceIpConfiguration(TypedDict, total=False): + """The ip configuration for a container network interface. + + :ivar properties: Properties of the container network interface IP configuration. + :vartype properties: "ContainerNetworkInterfaceIpConfigurationPropertiesFormat" + :ivar name: The name of the resource. This name can be used to access the resource. + :vartype name: str + :ivar type: Sub Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ContainerNetworkInterfaceIpConfigurationPropertiesFormat" + """Properties of the container network interface IP configuration.""" + name: str + """The name of the resource. This name can be used to access the resource.""" + type: str + """Sub Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ContainerNetworkInterfaceIpConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the container network interface IP configuration. + + :ivar provisioningState: The provisioning state of the container network interface IP + configuration resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", + "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the container network interface IP configuration resource. Known + values are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and + \"Deleting\".""" + + +class ContainerNetworkInterfacePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of container network interface. + + :ivar containerNetworkInterfaceConfiguration: Container network interface configuration from + which this container network interface is created. + :vartype containerNetworkInterfaceConfiguration: "ContainerNetworkInterfaceConfiguration" + :ivar container: Reference to the container to which this container network interface is + attached. + :vartype container: "Container" + :ivar ipConfigurations: Reference to the ip configuration on this container nic. + :vartype ipConfigurations: list["ContainerNetworkInterfaceIpConfiguration"] + :ivar provisioningState: The provisioning state of the container network interface resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + containerNetworkInterfaceConfiguration: "ContainerNetworkInterfaceConfiguration" + """Container network interface configuration from which this container network interface is + created.""" + container: "Container" + """Reference to the container to which this container network interface is attached.""" + ipConfigurations: list["ContainerNetworkInterfaceIpConfiguration"] + """Reference to the ip configuration on this container nic.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the container network interface resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class Criterion(TypedDict, total=False): + """A matching criteria which matches routes based on route prefix, community, and AS path. + + :ivar routePrefix: List of route prefixes which this criteria matches. + :vartype routePrefix: list[str] + :ivar community: List of BGP communities which this criteria matches. + :vartype community: list[str] + :ivar asPath: List of AS paths which this criteria matches. + :vartype asPath: list[str] + :ivar matchCondition: Match condition to apply RouteMap rules. Known values are: "Unknown", + "Contains", "Equals", "NotContains", and "NotEquals". + :vartype matchCondition: Union[str, "RouteMapMatchCondition"] + """ + + routePrefix: list[str] + """List of route prefixes which this criteria matches.""" + community: list[str] + """List of BGP communities which this criteria matches.""" + asPath: list[str] + """List of AS paths which this criteria matches.""" + matchCondition: Union[str, "RouteMapMatchCondition"] + """Match condition to apply RouteMap rules. Known values are: \"Unknown\", \"Contains\", + \"Equals\", \"NotContains\", and \"NotEquals\".""" + + +class CrossTenantScopes(TypedDict, total=False): + """Cross tenant scopes. + + :ivar tenantId: Tenant ID. + :vartype tenantId: str + :ivar managementGroups: List of management groups. + :vartype managementGroups: list[str] + :ivar subscriptions: List of subscriptions. + :vartype subscriptions: list[str] + """ + + tenantId: str + """Tenant ID.""" + managementGroups: list[str] + """List of management groups.""" + subscriptions: list[str] + """List of subscriptions.""" + + +class CustomDnsConfigPropertiesFormat(TypedDict, total=False): + """Contains custom Dns resolution configuration from customer. + + :ivar fqdn: Fqdn that resolves to private endpoint ip address. + :vartype fqdn: str + :ivar ipAddresses: A list of private ip addresses of the private endpoint. + :vartype ipAddresses: list[str] + """ + + fqdn: str + """Fqdn that resolves to private endpoint ip address.""" + ipAddresses: list[str] + """A list of private ip addresses of the private endpoint.""" + + +class CustomIpPrefix(Resource): + """Custom IP prefix resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Custom IP prefix properties. + :vartype properties: "CustomIpPrefixPropertiesFormat" + :ivar extendedLocation: The extended location of the custom IP prefix. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar zones: A list of availability zones denoting where the resource needs to come from. + :vartype zones: list[str] + """ + + properties: "CustomIpPrefixPropertiesFormat" + """Custom IP prefix properties.""" + extendedLocation: "ExtendedLocation" + """The extended location of the custom IP prefix.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + zones: list[str] + """A list of availability zones denoting where the resource needs to come from.""" + + +class CustomIpPrefixPropertiesFormat(TypedDict, total=False): + """Custom IP prefix properties. + + :ivar asn: The ASN for CIDR advertising. Should be an integer as string. + :vartype asn: str + :ivar cidr: The prefix range in CIDR notation. Should include the start address and the prefix + length. + :vartype cidr: str + :ivar signedMessage: Signed message for WAN validation. + :vartype signedMessage: str + :ivar authorizationMessage: Authorization message for WAN validation. + :vartype authorizationMessage: str + :ivar customIpPrefixParent: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. + :vartype customIpPrefixParent: "SubResource" + :ivar childCustomIpPrefixes: The list of all Children for IPv6 /48 CustomIpPrefix. + :vartype childCustomIpPrefixes: list["SubResource"] + :ivar commissionedState: The commissioned state of the Custom IP Prefix. Known values are: + "Provisioning", "Provisioned", "Commissioning", "CommissionedNoInternetAdvertise", + "Commissioned", "Decommissioning", "Deprovisioning", and "Deprovisioned". + :vartype commissionedState: Union[str, "CommissionedState"] + :ivar expressRouteAdvertise: Whether to do express route advertise. + :vartype expressRouteAdvertise: bool + :ivar geo: The Geo for CIDR advertising. Should be an Geo code. Known values are: "GLOBAL", + "AFRI", "APAC", "EURO", "LATAM", "NAM", "ME", "OCEANIA", and "AQ". + :vartype geo: Union[str, "Geo"] + :ivar noInternetAdvertise: Whether to Advertise the range to Internet. + :vartype noInternetAdvertise: bool + :ivar prefixType: Type of custom IP prefix. Should be Singular, Parent, or Child. Known values + are: "Singular", "Parent", and "Child". + :vartype prefixType: Union[str, "CustomIpPrefixType"] + :ivar publicIpPrefixes: The list of all referenced PublicIpPrefixes. + :vartype publicIpPrefixes: list["SubResource"] + :ivar resourceGuid: The resource GUID property of the custom IP prefix resource. + :vartype resourceGuid: str + :ivar failedReason: The reason why resource is in failed state. + :vartype failedReason: str + :ivar provisioningState: The provisioning state of the custom IP prefix resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + asn: str + """The ASN for CIDR advertising. Should be an integer as string.""" + cidr: str + """The prefix range in CIDR notation. Should include the start address and the prefix length.""" + signedMessage: str + """Signed message for WAN validation.""" + authorizationMessage: str + """Authorization message for WAN validation.""" + customIpPrefixParent: "SubResource" + """The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.""" + childCustomIpPrefixes: list["SubResource"] + """The list of all Children for IPv6 /48 CustomIpPrefix.""" + commissionedState: Union[str, "CommissionedState"] + """The commissioned state of the Custom IP Prefix. Known values are: \"Provisioning\", + \"Provisioned\", \"Commissioning\", \"CommissionedNoInternetAdvertise\", \"Commissioned\", + \"Decommissioning\", \"Deprovisioning\", and \"Deprovisioned\".""" + expressRouteAdvertise: bool + """Whether to do express route advertise.""" + geo: Union[str, "Geo"] + """The Geo for CIDR advertising. Should be an Geo code. Known values are: \"GLOBAL\", \"AFRI\", + \"APAC\", \"EURO\", \"LATAM\", \"NAM\", \"ME\", \"OCEANIA\", and \"AQ\".""" + noInternetAdvertise: bool + """Whether to Advertise the range to Internet.""" + prefixType: Union[str, "CustomIpPrefixType"] + """Type of custom IP prefix. Should be Singular, Parent, or Child. Known values are: \"Singular\", + \"Parent\", and \"Child\".""" + publicIpPrefixes: list["SubResource"] + """The list of all referenced PublicIpPrefixes.""" + resourceGuid: str + """The resource GUID property of the custom IP prefix resource.""" + failedReason: str + """The reason why resource is in failed state.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the custom IP prefix resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class DdosCustomPolicy(Resource): + """A DDoS custom policy in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the DDoS custom policy. + :vartype properties: "DdosCustomPolicyPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "DdosCustomPolicyPropertiesFormat" + """Properties of the DDoS custom policy.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class DdosCustomPolicyPropertiesFormat(TypedDict, total=False): + """DDoS custom policy properties. + + :ivar resourceGuid: The resource GUID property of the DDoS custom policy resource. It uniquely + identifies the resource, even if the user changes its name or migrate the resource across + subscriptions or resource groups. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the DDoS custom policy resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar detectionRules: The list of DDoS detection rules associated with the custom policy. + :vartype detectionRules: list["DdosDetectionRule"] + :ivar frontEndIpConfiguration: The list of frontend IP configurations associated with the + custom policy. + :vartype frontEndIpConfiguration: list["SubResource"] + :ivar publicIPAddresses: The list of public IP addresses associated with the custom policy. + This list is read-only. + :vartype publicIPAddresses: list["SubResource"] + """ + + resourceGuid: str + """The resource GUID property of the DDoS custom policy resource. It uniquely identifies the + resource, even if the user changes its name or migrate the resource across subscriptions or + resource groups.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the DDoS custom policy resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + detectionRules: list["DdosDetectionRule"] + """The list of DDoS detection rules associated with the custom policy.""" + frontEndIpConfiguration: list["SubResource"] + """The list of frontend IP configurations associated with the custom policy.""" + publicIPAddresses: list["SubResource"] + """The list of public IP addresses associated with the custom policy. This list is read-only.""" + + +class DdosDetectionRule(SubResource): + """A DDoS detection rule resource. + + :ivar name: The name of the DDoS detection rule. + :vartype name: str + :ivar id: The resource ID of the DDoS detection rule. + :vartype id: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: The resource type. + :vartype type: str + :ivar properties: Properties of the DDoS detection rule. + :vartype properties: "DdosDetectionRulePropertiesFormat" + """ + + name: str + """The name of the DDoS detection rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """The resource type.""" + properties: "DdosDetectionRulePropertiesFormat" + """Properties of the DDoS detection rule.""" + + +class DdosDetectionRulePropertiesFormat(TypedDict, total=False): + """DDoS detection rule properties. + + :ivar provisioningState: The provisioning state of the DDoS detection rule. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar detectionMode: The detection mode for the DDoS detection rule. "TrafficThreshold" + :vartype detectionMode: Union[str, "DdosDetectionMode"] + :ivar trafficDetectionRule: The traffic detection rule details. + :vartype trafficDetectionRule: "TrafficDetectionRule" + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the DDoS detection rule. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + detectionMode: Union[str, "DdosDetectionMode"] + """The detection mode for the DDoS detection rule. \"TrafficThreshold\"""" + trafficDetectionRule: "TrafficDetectionRule" + """The traffic detection rule details.""" + + +class DdosFrontendIpConfigurationSettings(TypedDict, total=False): + """DDoS protection settings for a frontend IP configuration. + + :ivar ddosCustomPolicy: The reference to the DDoS Custom Policy resource. + :vartype ddosCustomPolicy: "SubResource" + """ + + ddosCustomPolicy: "SubResource" + """The reference to the DDoS Custom Policy resource.""" + + +class TrackedResourceWithOptionalLocation(TypedDict, total=False): + """Common resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + location: str + """Resource location.""" + tags: dict[str, str] + """Resource tags.""" + + +class DdosProtectionPlan(TrackedResourceWithOptionalLocation): + """A DDoS protection plan in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the DDoS protection plan. + :vartype properties: "DdosProtectionPlanPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "DdosProtectionPlanPropertiesFormat" + """Properties of the DDoS protection plan.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class DdosProtectionPlanPropertiesFormat(TypedDict, total=False): + """DDoS protection plan properties. + + :ivar resourceGuid: The resource GUID property of the DDoS protection plan resource. It + uniquely identifies the resource, even if the user changes its name or migrate the resource + across subscriptions or resource groups. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the DDoS protection plan resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar publicIPAddresses: The list of public IPs associated with the DDoS protection plan + resource. This list is read-only. + :vartype publicIPAddresses: list["SubResource"] + :ivar virtualNetworks: The list of virtual networks associated with the DDoS protection plan + resource. This list is read-only. + :vartype virtualNetworks: list["SubResource"] + """ + + resourceGuid: str + """The resource GUID property of the DDoS protection plan resource. It uniquely identifies the + resource, even if the user changes its name or migrate the resource across subscriptions or + resource groups.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the DDoS protection plan resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + publicIPAddresses: list["SubResource"] + """The list of public IPs associated with the DDoS protection plan resource. This list is + read-only.""" + virtualNetworks: list["SubResource"] + """The list of virtual networks associated with the DDoS protection plan resource. This list is + read-only.""" + + +class DdosSettings(TypedDict, total=False): + """Contains the DDoS protection settings of the public IP. + + :ivar protectionMode: The DDoS protection mode of the public IP. Known values are: + "VirtualNetworkInherited", "Enabled", and "Disabled". + :vartype protectionMode: Union[str, "DdosSettingsProtectionMode"] + :ivar ddosCustomPolicy: The DDoS custom policy associated with the public IP. + :vartype ddosCustomPolicy: "SubResource" + :ivar ddosProtectionPlan: The DDoS protection plan associated with the public IP. Can only be + set if ProtectionMode is Enabled. + :vartype ddosProtectionPlan: "SubResource" + """ + + protectionMode: Union[str, "DdosSettingsProtectionMode"] + """The DDoS protection mode of the public IP. Known values are: \"VirtualNetworkInherited\", + \"Enabled\", and \"Disabled\".""" + ddosCustomPolicy: "SubResource" + """The DDoS custom policy associated with the public IP.""" + ddosProtectionPlan: "SubResource" + """The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is + Enabled.""" + + +class DefaultAdminPropertiesFormat(TypedDict, total=False): + """Security default admin rule resource. + + :ivar description: A description for this rule. Restricted to 140 chars. + :vartype description: str + :ivar flag: Default rule flag. + :vartype flag: str + :ivar protocol: Network protocol this rule applies to. Known values are: "Tcp", "Udp", "Icmp", + "Esp", "Any", and "Ah". + :vartype protocol: Union[str, "SecurityConfigurationRuleProtocol"] + :ivar sources: The CIDR or source IP ranges. + :vartype sources: list["AddressPrefixItem"] + :ivar destinations: The destination address prefixes. CIDR or destination IP ranges. + :vartype destinations: list["AddressPrefixItem"] + :ivar sourcePortRanges: The source port ranges. + :vartype sourcePortRanges: list[str] + :ivar destinationPortRanges: The destination port ranges. + :vartype destinationPortRanges: list[str] + :ivar access: Indicates the access allowed for this particular rule. Known values are: "Allow", + "Deny", and "AlwaysAllow". + :vartype access: Union[str, "SecurityConfigurationRuleAccess"] + :ivar priority: The priority of the rule. The value can be between 1 and 4096. The priority + number must be unique for each rule in the collection. The lower the priority number, the + higher the priority of the rule. + :vartype priority: int + :ivar direction: Indicates if the traffic matched against the rule in inbound or outbound. + Known values are: "Inbound" and "Outbound". + :vartype direction: Union[str, "SecurityConfigurationRuleDirection"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description for this rule. Restricted to 140 chars.""" + flag: str + """Default rule flag.""" + protocol: Union[str, "SecurityConfigurationRuleProtocol"] + """Network protocol this rule applies to. Known values are: \"Tcp\", \"Udp\", \"Icmp\", \"Esp\", + \"Any\", and \"Ah\".""" + sources: list["AddressPrefixItem"] + """The CIDR or source IP ranges.""" + destinations: list["AddressPrefixItem"] + """The destination address prefixes. CIDR or destination IP ranges.""" + sourcePortRanges: list[str] + """The source port ranges.""" + destinationPortRanges: list[str] + """The destination port ranges.""" + access: Union[str, "SecurityConfigurationRuleAccess"] + """Indicates the access allowed for this particular rule. Known values are: \"Allow\", \"Deny\", + and \"AlwaysAllow\".""" + priority: int + """The priority of the rule. The value can be between 1 and 4096. The priority number must be + unique for each rule in the collection. The lower the priority number, the higher the priority + of the rule.""" + direction: Union[str, "SecurityConfigurationRuleDirection"] + """Indicates if the traffic matched against the rule in inbound or outbound. Known values are: + \"Inbound\" and \"Outbound\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class DefaultAdminRule(TypedDict, total=False): + """Network default admin rule. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + :ivar properties: Indicates the properties of the security admin rule. + :vartype properties: "DefaultAdminPropertiesFormat" + :ivar kind: Whether the rule is custom or default. Required. Default. + :vartype kind: Literal[AdminRuleKind.DEFAULT] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + properties: "DefaultAdminPropertiesFormat" + """Indicates the properties of the security admin rule.""" + kind: Required[Literal[AdminRuleKind.DEFAULT]] + """Whether the rule is custom or default. Required. Default.""" + + +class Delegation(SubResource): + """Details the service to which the subnet is delegated. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the subnet. + :vartype properties: "ServiceDelegationPropertiesFormat" + :ivar name: The name of the resource that is unique within a subnet. This name can be used to + access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + """ + + properties: "ServiceDelegationPropertiesFormat" + """Properties of the subnet.""" + name: str + """The name of the resource that is unique within a subnet. This name can be used to access the + resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Resource type.""" + + +class DelegationProperties(TypedDict, total=False): + """Properties of the delegation. + + :ivar serviceName: The service name to which the NVA is delegated. + :vartype serviceName: str + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + serviceName: str + """The service name to which the NVA is delegated.""" + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + + +class DeviceProperties(TypedDict, total=False): + """List of properties of the device. + + :ivar deviceVendor: Name of the device Vendor. + :vartype deviceVendor: str + :ivar deviceModel: Model of the device. + :vartype deviceModel: str + :ivar linkSpeedInMbps: Link speed. + :vartype linkSpeedInMbps: int + """ + + deviceVendor: str + """Name of the device Vendor.""" + deviceModel: str + """Model of the device.""" + linkSpeedInMbps: int + """Link speed.""" + + +class DhcpOptions(TypedDict, total=False): + """DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. + Standard DHCP option for a subnet overrides VNET DHCP options. + + :ivar dnsServers: The list of DNS servers IP addresses. + :vartype dnsServers: list[str] + """ + + dnsServers: list[str] + """The list of DNS servers IP addresses.""" + + +class DiagnosticOperationsSettings(TypedDict, total=False): + """Diagnostic settings to provide for the ConnectionAnalyzer operation. + + :ivar connectivityCheckSettings: Settings for the ConnectivityCheck diagnostic operation. + :vartype connectivityCheckSettings: "ConnectivityCheckSettings" + :ivar expressRouteDiagnosticsSettings: Settings for the ExpressRouteDiagnostic diagnostic + operation. + :vartype expressRouteDiagnosticsSettings: "ExpressRouteDiagnosticsSettings" + """ + + connectivityCheckSettings: "ConnectivityCheckSettings" + """Settings for the ConnectivityCheck diagnostic operation.""" + expressRouteDiagnosticsSettings: "ExpressRouteDiagnosticsSettings" + """Settings for the ExpressRouteDiagnostic diagnostic operation.""" + + +class DisassociateCloudServicePublicIpRequest(TypedDict, total=False): + """The request for DisassociateCloudServicePublicIpOperation. + + :ivar publicIpArmId: ARM ID of the Standalone Public IP to associate. This is of the form : + /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}. + Required. + :vartype publicIpArmId: str + """ + + publicIpArmId: Required[str] + """ARM ID of the Standalone Public IP to associate. This is of the form : + /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}. + Required.""" + + +class DnsSettings(TypedDict, total=False): + """DNS Proxy Settings in Firewall Policy. + + :ivar servers: List of Custom DNS Servers. + :vartype servers: list[str] + :ivar enableProxy: Enable DNS Proxy on Firewalls attached to the Firewall Policy. + :vartype enableProxy: bool + :ivar requireProxyForNetworkRules: FQDNs in Network Rules are supported when set to true. + :vartype requireProxyForNetworkRules: bool + """ + + servers: list[str] + """List of Custom DNS Servers.""" + enableProxy: bool + """Enable DNS Proxy on Firewalls attached to the Firewall Policy.""" + requireProxyForNetworkRules: Optional[bool] + """FQDNs in Network Rules are supported when set to true.""" + + +class DscpConfiguration(Resource): + """Differentiated Services Code Point configuration for any given network interface. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the network interface. + :vartype properties: "DscpConfigurationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "DscpConfigurationPropertiesFormat" + """Properties of the network interface.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class DscpConfigurationPropertiesFormat(TypedDict, total=False): + """Differentiated Services Code Point configuration properties. + + :ivar markings: List of markings to be used in the configuration. + :vartype markings: list[int] + :ivar sourceIpRanges: Source IP ranges. + :vartype sourceIpRanges: list["QosIpRange"] + :ivar destinationIpRanges: Destination IP ranges. + :vartype destinationIpRanges: list["QosIpRange"] + :ivar sourcePortRanges: Sources port ranges. + :vartype sourcePortRanges: list["QosPortRange"] + :ivar destinationPortRanges: Destination port ranges. + :vartype destinationPortRanges: list["QosPortRange"] + :ivar protocol: RNM supported protocol types. Known values are: "DoNotUse", "Icmp", "Tcp", + "Udp", "Gre", "Esp", "Ah", "Vxlan", and "All". + :vartype protocol: Union[str, "ProtocolType"] + :ivar qosDefinitionCollection: QoS object definitions. + :vartype qosDefinitionCollection: list["QosDefinition"] + :ivar qosCollectionId: Qos Collection ID generated by RNM. + :vartype qosCollectionId: str + :ivar associatedNetworkInterfaces: Associated Network Interfaces to the DSCP Configuration. + :vartype associatedNetworkInterfaces: list["NetworkInterface"] + :ivar resourceGuid: The resource GUID property of the DSCP Configuration resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the DSCP Configuration resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + markings: list[int] + """List of markings to be used in the configuration.""" + sourceIpRanges: list["QosIpRange"] + """Source IP ranges.""" + destinationIpRanges: list["QosIpRange"] + """Destination IP ranges.""" + sourcePortRanges: list["QosPortRange"] + """Sources port ranges.""" + destinationPortRanges: list["QosPortRange"] + """Destination port ranges.""" + protocol: Union[str, "ProtocolType"] + """RNM supported protocol types. Known values are: \"DoNotUse\", \"Icmp\", \"Tcp\", \"Udp\", + \"Gre\", \"Esp\", \"Ah\", \"Vxlan\", and \"All\".""" + qosDefinitionCollection: list["QosDefinition"] + """QoS object definitions.""" + qosCollectionId: str + """Qos Collection ID generated by RNM.""" + associatedNetworkInterfaces: list["NetworkInterface"] + """Associated Network Interfaces to the DSCP Configuration.""" + resourceGuid: str + """The resource GUID property of the DSCP Configuration resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the DSCP Configuration resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class EffectiveRoutesParameters(TypedDict, total=False): + """The parameters specifying the resource whose effective routes are being requested. + + :ivar resourceId: The resource whose effective routes are being requested. + :vartype resourceId: str + :ivar virtualWanResourceType: The type of the specified resource like RouteTable, + ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. + :vartype virtualWanResourceType: str + """ + + resourceId: str + """The resource whose effective routes are being requested.""" + virtualWanResourceType: str + """The type of the specified resource like RouteTable, ExpressRouteConnection, + HubVirtualNetworkConnection, VpnConnection and P2SConnection.""" + + +class ExceptionEntry(TypedDict, total=False): + """Adds exception to allow a request when the condition is satisfied. + + :ivar matchVariable: The variable on which we evaluate the exception condition. Required. Known + values are: "RequestURI", "RemoteAddr", and "RequestHeader". + :vartype matchVariable: Union[str, "ExceptionEntryMatchVariable"] + :ivar values: Allowed values for the matchVariable. + :vartype values: list[str] + :ivar valueMatchOperator: Operates on the allowed values for the matchVariable. Required. Known + values are: "Equals", "Contains", "StartsWith", "EndsWith", and "IPMatch". + :vartype valueMatchOperator: Union[str, "ExceptionEntryValueMatchOperator"] + :ivar selectorMatchOperator: When the matchVariable points to a key-value pair (e.g, + RequestHeader), this operates on the selector. Known values are: "Equals", "Contains", + "StartsWith", and "EndsWith". + :vartype selectorMatchOperator: Union[str, "ExceptionEntrySelectorMatchOperator"] + :ivar selector: When the matchVariable points to a key-value pair (e.g, RequestHeader), this + identifies the key. + :vartype selector: str + :ivar exceptionManagedRuleSets: The managed rule sets that are associated with the exception. + :vartype exceptionManagedRuleSets: list["ExclusionManagedRuleSet"] + """ + + matchVariable: Required[Union[str, "ExceptionEntryMatchVariable"]] + """The variable on which we evaluate the exception condition. Required. Known values are: + \"RequestURI\", \"RemoteAddr\", and \"RequestHeader\".""" + values: list[str] + """Allowed values for the matchVariable.""" + valueMatchOperator: Required[Union[str, "ExceptionEntryValueMatchOperator"]] + """Operates on the allowed values for the matchVariable. Required. Known values are: \"Equals\", + \"Contains\", \"StartsWith\", \"EndsWith\", and \"IPMatch\".""" + selectorMatchOperator: Union[str, "ExceptionEntrySelectorMatchOperator"] + """When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the + selector. Known values are: \"Equals\", \"Contains\", \"StartsWith\", and \"EndsWith\".""" + selector: str + """When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the + key.""" + exceptionManagedRuleSets: list["ExclusionManagedRuleSet"] + """The managed rule sets that are associated with the exception.""" + + +class ExclusionManagedRule(TypedDict, total=False): + """Defines a managed rule to use for exclusion. + + :ivar ruleId: Identifier for the managed rule. Required. + :vartype ruleId: str + """ + + ruleId: Required[str] + """Identifier for the managed rule. Required.""" + + +class ExclusionManagedRuleGroup(TypedDict, total=False): + """Defines a managed rule group to use for exclusion. + + :ivar ruleGroupName: The managed rule group for exclusion. Required. + :vartype ruleGroupName: str + :ivar rules: List of rules that will be excluded. If none specified, all rules in the group + will be excluded. + :vartype rules: list["ExclusionManagedRule"] + """ + + ruleGroupName: Required[str] + """The managed rule group for exclusion. Required.""" + rules: list["ExclusionManagedRule"] + """List of rules that will be excluded. If none specified, all rules in the group will be + excluded.""" + + +class ExclusionManagedRuleSet(TypedDict, total=False): + """Defines a managed rule set for Exclusions. + + :ivar ruleSetType: Defines the rule set type to use. Required. + :vartype ruleSetType: str + :ivar ruleSetVersion: Defines the version of the rule set to use. Required. + :vartype ruleSetVersion: str + :ivar ruleGroups: Defines the rule groups to apply to the rule set. + :vartype ruleGroups: list["ExclusionManagedRuleGroup"] + """ + + ruleSetType: Required[str] + """Defines the rule set type to use. Required.""" + ruleSetVersion: Required[str] + """Defines the version of the rule set to use. Required.""" + ruleGroups: list["ExclusionManagedRuleGroup"] + """Defines the rule groups to apply to the rule set.""" + + +class ExplicitProxy(TypedDict, total=False): + """Explicit Proxy Settings in Firewall Policy. + + :ivar enableExplicitProxy: When set to true, explicit proxy mode is enabled. + :vartype enableExplicitProxy: bool + :ivar httpPort: Port number for explicit proxy http protocol, cannot be greater than 64000. + :vartype httpPort: int + :ivar httpsPort: Port number for explicit proxy https protocol, cannot be greater than 64000. + :vartype httpsPort: int + :ivar enablePacFile: When set to true, pac file port and url needs to be provided. + :vartype enablePacFile: bool + :ivar pacFilePort: Port number for firewall to serve PAC file. + :vartype pacFilePort: int + :ivar pacFile: SAS URL for PAC file. + :vartype pacFile: str + """ + + enableExplicitProxy: Optional[bool] + """When set to true, explicit proxy mode is enabled.""" + httpPort: int + """Port number for explicit proxy http protocol, cannot be greater than 64000.""" + httpsPort: int + """Port number for explicit proxy https protocol, cannot be greater than 64000.""" + enablePacFile: Optional[bool] + """When set to true, pac file port and url needs to be provided.""" + pacFilePort: int + """Port number for firewall to serve PAC file.""" + pacFile: str + """SAS URL for PAC file.""" + + +class ExpressRouteCircuit(Resource): + """ExpressRouteCircuit resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the express route circuit. + :vartype properties: "ExpressRouteCircuitPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar sku: The SKU. + :vartype sku: "ExpressRouteCircuitSku" + """ + + properties: "ExpressRouteCircuitPropertiesFormat" + """Properties of the express route circuit.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + sku: "ExpressRouteCircuitSku" + """The SKU.""" + + +class ExpressRouteCircuitAuthorization(SubResourceModel): + """Authorization in an ExpressRouteCircuit resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the express route circuit authorization. + :vartype properties: "AuthorizationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "AuthorizationPropertiesFormat" + """Properties of the express route circuit authorization.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteCircuitConnection(SubResourceModel): + """Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the express route circuit connection. + :vartype properties: "ExpressRouteCircuitConnectionPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteCircuitConnectionPropertiesFormat" + """Properties of the express route circuit connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteCircuitConnectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the express route circuit connection. + + :ivar expressRouteCircuitPeering: Reference to Express Route Circuit Private Peering Resource + of the circuit initiating connection. + :vartype expressRouteCircuitPeering: "SubResource" + :ivar peerExpressRouteCircuitPeering: Reference to Express Route Circuit Private Peering + Resource of the peered circuit. + :vartype peerExpressRouteCircuitPeering: "SubResource" + :ivar addressPrefix: /29 IP address space to carve out Customer addresses for tunnels. + :vartype addressPrefix: str + :ivar authorizationKey: The authorization key. + :vartype authorizationKey: str + :ivar ipv6CircuitConnectionConfig: IPv6 Address PrefixProperties of the express route circuit + connection. + :vartype ipv6CircuitConnectionConfig: "Ipv6CircuitConnectionConfig" + :ivar circuitConnectionStatus: Express Route Circuit connection state. Known values are: + "Connected", "Connecting", and "Disconnected". + :vartype circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + :ivar provisioningState: The provisioning state of the express route circuit connection + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + expressRouteCircuitPeering: "SubResource" + """Reference to Express Route Circuit Private Peering Resource of the circuit initiating + connection.""" + peerExpressRouteCircuitPeering: "SubResource" + """Reference to Express Route Circuit Private Peering Resource of the peered circuit.""" + addressPrefix: str + """/29 IP address space to carve out Customer addresses for tunnels.""" + authorizationKey: str + """The authorization key.""" + ipv6CircuitConnectionConfig: "Ipv6CircuitConnectionConfig" + """IPv6 Address PrefixProperties of the express route circuit connection.""" + circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + """Express Route Circuit connection state. Known values are: \"Connected\", \"Connecting\", and + \"Disconnected\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route circuit connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ExpressRouteCircuitPeering(SubResourceModel): + """Peering in an ExpressRouteCircuit resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the express route circuit peering. + :vartype properties: "ExpressRouteCircuitPeeringPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteCircuitPeeringPropertiesFormat" + """Properties of the express route circuit peering.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteCircuitPeeringConfig(TypedDict, total=False): + """Specifies the peering configuration. + + :ivar advertisedPublicPrefixes: The reference to AdvertisedPublicPrefixes. + :vartype advertisedPublicPrefixes: list[str] + :ivar advertisedCommunities: The communities of bgp peering. Specified for microsoft peering. + :vartype advertisedCommunities: list[str] + :ivar advertisedPublicPrefixesState: The advertised public prefix state of the Peering + resource. Known values are: "NotConfigured", "Configuring", "Configured", and + "ValidationNeeded". + :vartype advertisedPublicPrefixesState: Union[str, + "ExpressRouteCircuitPeeringAdvertisedPublicPrefixState"] + :ivar legacyMode: The legacy mode of the peering. + :vartype legacyMode: int + :ivar customerASN: The CustomerASN of the peering. + :vartype customerASN: int + :ivar routingRegistryName: The RoutingRegistryName of the configuration. + :vartype routingRegistryName: str + :ivar advertisedPublicPrefixInfo: List of Prefix information required to perform validation. + :vartype advertisedPublicPrefixInfo: list["AdvertisedPublicPrefixProperties"] + """ + + advertisedPublicPrefixes: list[str] + """The reference to AdvertisedPublicPrefixes.""" + advertisedCommunities: list[str] + """The communities of bgp peering. Specified for microsoft peering.""" + advertisedPublicPrefixesState: Union[str, "ExpressRouteCircuitPeeringAdvertisedPublicPrefixState"] + """The advertised public prefix state of the Peering resource. Known values are: + \"NotConfigured\", \"Configuring\", \"Configured\", and \"ValidationNeeded\".""" + legacyMode: int + """The legacy mode of the peering.""" + customerASN: int + """The CustomerASN of the peering.""" + routingRegistryName: str + """The RoutingRegistryName of the configuration.""" + advertisedPublicPrefixInfo: list["AdvertisedPublicPrefixProperties"] + """List of Prefix information required to perform validation.""" + + +class ExpressRouteCircuitPeeringId(TypedDict, total=False): + """ExpressRoute circuit peering identifier. + + :ivar id: The ID of the ExpressRoute circuit peering. + :vartype id: str + """ + + id: str + """The ID of the ExpressRoute circuit peering.""" + + +class ExpressRouteCircuitPeeringPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the express route circuit peering. + + :ivar peeringType: The peering type. Known values are: "AzurePublicPeering", + "AzurePrivatePeering", and "MicrosoftPeering". + :vartype peeringType: Union[str, "ExpressRoutePeeringType"] + :ivar state: The peering state. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "ExpressRoutePeeringState"] + :ivar azureASN: The Azure ASN. + :vartype azureASN: int + :ivar peerASN: The peer ASN. + :vartype peerASN: int + :ivar primaryPeerAddressPrefix: The primary address prefix. + :vartype primaryPeerAddressPrefix: str + :ivar secondaryPeerAddressPrefix: The secondary address prefix. + :vartype secondaryPeerAddressPrefix: str + :ivar primaryAzurePort: The primary port. + :vartype primaryAzurePort: str + :ivar secondaryAzurePort: The secondary port. + :vartype secondaryAzurePort: str + :ivar sharedKey: The shared key. + :vartype sharedKey: str + :ivar vlanId: The VLAN ID. + :vartype vlanId: int + :ivar microsoftPeeringConfig: The Microsoft peering configuration. + :vartype microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + :ivar stats: The peering stats of express route circuit. + :vartype stats: "ExpressRouteCircuitStats" + :ivar provisioningState: The provisioning state of the express route circuit peering resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar gatewayManagerEtag: The GatewayManager Etag. + :vartype gatewayManagerEtag: str + :ivar lastModifiedBy: Who was the last to modify the peering. + :vartype lastModifiedBy: str + :ivar routeFilter: The reference to the RouteFilter resource. + :vartype routeFilter: "SubResource" + :ivar ipv6PeeringConfig: The IPv6 peering configuration. + :vartype ipv6PeeringConfig: "Ipv6ExpressRouteCircuitPeeringConfig" + :ivar expressRouteConnection: The ExpressRoute connection. + :vartype expressRouteConnection: "ExpressRouteConnectionId" + :ivar connections: The list of circuit connections associated with Azure Private Peering for + this circuit. + :vartype connections: list["ExpressRouteCircuitConnection"] + :ivar peeredConnections: The list of peered circuit connections associated with Azure Private + Peering for this circuit. + :vartype peeredConnections: list["PeerExpressRouteCircuitConnection"] + """ + + peeringType: Union[str, "ExpressRoutePeeringType"] + """The peering type. Known values are: \"AzurePublicPeering\", \"AzurePrivatePeering\", and + \"MicrosoftPeering\".""" + state: Union[str, "ExpressRoutePeeringState"] + """The peering state. Known values are: \"Disabled\" and \"Enabled\".""" + azureASN: int + """The Azure ASN.""" + peerASN: int + """The peer ASN.""" + primaryPeerAddressPrefix: str + """The primary address prefix.""" + secondaryPeerAddressPrefix: str + """The secondary address prefix.""" + primaryAzurePort: str + """The primary port.""" + secondaryAzurePort: str + """The secondary port.""" + sharedKey: str + """The shared key.""" + vlanId: int + """The VLAN ID.""" + microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + """The Microsoft peering configuration.""" + stats: "ExpressRouteCircuitStats" + """The peering stats of express route circuit.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route circuit peering resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + gatewayManagerEtag: str + """The GatewayManager Etag.""" + lastModifiedBy: str + """Who was the last to modify the peering.""" + routeFilter: "SubResource" + """The reference to the RouteFilter resource.""" + ipv6PeeringConfig: "Ipv6ExpressRouteCircuitPeeringConfig" + """The IPv6 peering configuration.""" + expressRouteConnection: "ExpressRouteConnectionId" + """The ExpressRoute connection.""" + connections: list["ExpressRouteCircuitConnection"] + """The list of circuit connections associated with Azure Private Peering for this circuit.""" + peeredConnections: list["PeerExpressRouteCircuitConnection"] + """The list of peered circuit connections associated with Azure Private Peering for this circuit.""" + + +class ExpressRouteCircuitPropertiesFormat(TypedDict, total=False): + """Properties of ExpressRouteCircuit. + + :ivar allowClassicOperations: Allow classic operations. + :vartype allowClassicOperations: bool + :ivar circuitProvisioningState: The CircuitProvisioningState state of the resource. + :vartype circuitProvisioningState: str + :ivar serviceProviderProvisioningState: The ServiceProviderProvisioningState state of the + resource. Known values are: "NotProvisioned", "Provisioning", "Provisioned", "Deprovisioning", + and "DeProvisioned". + :vartype serviceProviderProvisioningState: Union[str, "ServiceProviderProvisioningState"] + :ivar authorizations: The list of authorizations. + :vartype authorizations: list["ExpressRouteCircuitAuthorization"] + :ivar peerings: The list of peerings. + :vartype peerings: list["ExpressRouteCircuitPeering"] + :ivar serviceKey: The ServiceKey. + :vartype serviceKey: str + :ivar serviceProviderNotes: The ServiceProviderNotes. + :vartype serviceProviderNotes: str + :ivar serviceProviderProperties: The ServiceProviderProperties. + :vartype serviceProviderProperties: "ExpressRouteCircuitServiceProviderProperties" + :ivar expressRoutePort: The reference to the ExpressRoutePort resource when the circuit is + provisioned on an ExpressRoutePort resource. + :vartype expressRoutePort: "SubResource" + :ivar bandwidthInGbps: The bandwidth of the circuit when the circuit is provisioned on an + ExpressRoutePort resource. + :vartype bandwidthInGbps: float + :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ encapsulation. + :vartype stag: int + :ivar resiliencyLevel: The resiliency level of the ExpressRoute circuit. Known values are: + "Standard", "High", and "Maximum". + :vartype resiliencyLevel: Union[str, "ResiliencyLevel"] + :ivar partnerAccountId: Account ID of customer account on partner cloud provider. + :vartype partnerAccountId: str + :ivar activationKey: Activation Key from partner cloud provider. + :vartype activationKey: str + :ivar provisioningState: The provisioning state of the express route circuit resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar gatewayManagerEtag: The GatewayManager Etag. + :vartype gatewayManagerEtag: str + :ivar globalReachEnabled: Flag denoting global reach status. + :vartype globalReachEnabled: bool + :ivar authorizationKey: The authorizationKey. + :vartype authorizationKey: str + :ivar authorizationStatus: The authorization status of the Circuit. + :vartype authorizationStatus: str + :ivar enableDirectPortRateLimit: Flag denoting rate-limiting status of the ExpressRoute + direct-port circuit. + :vartype enableDirectPortRateLimit: bool + """ + + allowClassicOperations: bool + """Allow classic operations.""" + circuitProvisioningState: str + """The CircuitProvisioningState state of the resource.""" + serviceProviderProvisioningState: Union[str, "ServiceProviderProvisioningState"] + """The ServiceProviderProvisioningState state of the resource. Known values are: + \"NotProvisioned\", \"Provisioning\", \"Provisioned\", \"Deprovisioning\", and + \"DeProvisioned\".""" + authorizations: list["ExpressRouteCircuitAuthorization"] + """The list of authorizations.""" + peerings: list["ExpressRouteCircuitPeering"] + """The list of peerings.""" + serviceKey: str + """The ServiceKey.""" + serviceProviderNotes: str + """The ServiceProviderNotes.""" + serviceProviderProperties: "ExpressRouteCircuitServiceProviderProperties" + """The ServiceProviderProperties.""" + expressRoutePort: "SubResource" + """The reference to the ExpressRoutePort resource when the circuit is provisioned on an + ExpressRoutePort resource.""" + bandwidthInGbps: float + """The bandwidth of the circuit when the circuit is provisioned on an ExpressRoutePort resource.""" + stag: int + """The identifier of the circuit traffic. Outer tag for QinQ encapsulation.""" + resiliencyLevel: Union[str, "ResiliencyLevel"] + """The resiliency level of the ExpressRoute circuit. Known values are: \"Standard\", \"High\", and + \"Maximum\".""" + partnerAccountId: str + """Account ID of customer account on partner cloud provider.""" + activationKey: str + """Activation Key from partner cloud provider.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route circuit resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + gatewayManagerEtag: str + """The GatewayManager Etag.""" + globalReachEnabled: bool + """Flag denoting global reach status.""" + authorizationKey: str + """The authorizationKey.""" + authorizationStatus: str + """The authorization status of the Circuit.""" + enableDirectPortRateLimit: bool + """Flag denoting rate-limiting status of the ExpressRoute direct-port circuit.""" + + +class ExpressRouteCircuitReference(TypedDict, total=False): + """Reference to an express route circuit. + + :ivar id: Corresponding Express Route Circuit Id. + :vartype id: str + """ + + id: str + """Corresponding Express Route Circuit Id.""" + + +class ExpressRouteCircuitServiceProviderProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Contains ServiceProviderProperties in an ExpressRouteCircuit. + + :ivar serviceProviderName: The serviceProviderName. + :vartype serviceProviderName: str + :ivar peeringLocation: The peering location. + :vartype peeringLocation: str + :ivar bandwidthInMbps: The BandwidthInMbps. + :vartype bandwidthInMbps: int + """ + + serviceProviderName: str + """The serviceProviderName.""" + peeringLocation: str + """The peering location.""" + bandwidthInMbps: int + """The BandwidthInMbps.""" + + +class ExpressRouteCircuitSku(TypedDict, total=False): + """Contains SKU in an ExpressRouteCircuit. + + :ivar name: The name of the SKU. + :vartype name: str + :ivar tier: The tier of the SKU. Known values are: "Standard", "Premium", "Basic", "Local", and + "MultiCloud". + :vartype tier: Union[str, "ExpressRouteCircuitSkuTier"] + :ivar family: The family of the SKU. Known values are: "UnlimitedData" and "MeteredData". + :vartype family: Union[str, "ExpressRouteCircuitSkuFamily"] + """ + + name: str + """The name of the SKU.""" + tier: Union[str, "ExpressRouteCircuitSkuTier"] + """The tier of the SKU. Known values are: \"Standard\", \"Premium\", \"Basic\", \"Local\", and + \"MultiCloud\".""" + family: Union[str, "ExpressRouteCircuitSkuFamily"] + """The family of the SKU. Known values are: \"UnlimitedData\" and \"MeteredData\".""" + + +class ExpressRouteCircuitStats(TypedDict, total=False): + """Contains stats associated with the peering. + + :ivar primarybytesIn: The Primary BytesIn of the peering. + :vartype primarybytesIn: int + :ivar primarybytesOut: The primary BytesOut of the peering. + :vartype primarybytesOut: int + :ivar secondarybytesIn: The secondary BytesIn of the peering. + :vartype secondarybytesIn: int + :ivar secondarybytesOut: The secondary BytesOut of the peering. + :vartype secondarybytesOut: int + """ + + primarybytesIn: int + """The Primary BytesIn of the peering.""" + primarybytesOut: int + """The primary BytesOut of the peering.""" + secondarybytesIn: int + """The secondary BytesIn of the peering.""" + secondarybytesOut: int + """The secondary BytesOut of the peering.""" + + +class ExpressRouteConnection(SubResource): + """ExpressRouteConnection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the express route connection. + :vartype properties: "ExpressRouteConnectionProperties" + :ivar name: The name of the resource. Required. + :vartype name: str + """ + + properties: "ExpressRouteConnectionProperties" + """Properties of the express route connection.""" + name: Required[str] + """The name of the resource. Required.""" + + +class ExpressRouteConnectionId(TypedDict, total=False): + """The ID of the ExpressRouteConnection. + + :ivar id: The ID of the ExpressRouteConnection. + :vartype id: str + """ + + id: str + """The ID of the ExpressRouteConnection.""" + + +class ExpressRouteConnectionProperties(TypedDict, total=False): + """Properties of the ExpressRouteConnection subresource. + + :ivar provisioningState: The provisioning state of the express route connection resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar expressRouteCircuitPeering: The ExpressRoute circuit peering. Required. + :vartype expressRouteCircuitPeering: "ExpressRouteCircuitPeeringId" + :ivar authorizationKey: Authorization key to establish the connection. + :vartype authorizationKey: str + :ivar routingWeight: The routing weight associated to the connection. + :vartype routingWeight: int + :ivar enableInternetSecurity: Enable internet security. + :vartype enableInternetSecurity: bool + :ivar expressRouteGatewayBypass: Enable FastPath to vWan Firewall hub. + :vartype expressRouteGatewayBypass: bool + :ivar enablePrivateLinkFastPath: Bypass the ExpressRoute gateway when accessing private-links. + ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. + :vartype enablePrivateLinkFastPath: bool + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route connection resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + expressRouteCircuitPeering: Required["ExpressRouteCircuitPeeringId"] + """The ExpressRoute circuit peering. Required.""" + authorizationKey: str + """Authorization key to establish the connection.""" + routingWeight: int + """The routing weight associated to the connection.""" + enableInternetSecurity: bool + """Enable internet security.""" + expressRouteGatewayBypass: bool + """Enable FastPath to vWan Firewall hub.""" + enablePrivateLinkFastPath: bool + """Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath + (expressRouteGatewayBypass) must be enabled.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + + +class ExpressRouteCrossConnection(Resource): + """ExpressRouteCrossConnection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the express route cross connection. + :vartype properties: "ExpressRouteCrossConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteCrossConnectionProperties" + """Properties of the express route cross connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteCrossConnectionPeering(SubResource): + """Peering in an ExpressRoute Cross Connection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the express route cross connection peering. + :vartype properties: "ExpressRouteCrossConnectionPeeringProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteCrossConnectionPeeringProperties" + """Properties of the express route cross connection peering.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteCrossConnectionPeeringProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of express route cross connection peering. + + :ivar peeringType: The peering type. Known values are: "AzurePublicPeering", + "AzurePrivatePeering", and "MicrosoftPeering". + :vartype peeringType: Union[str, "ExpressRoutePeeringType"] + :ivar state: The peering state. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "ExpressRoutePeeringState"] + :ivar azureASN: The Azure ASN. + :vartype azureASN: int + :ivar peerASN: The peer ASN. + :vartype peerASN: int + :ivar primaryPeerAddressPrefix: The primary address prefix. + :vartype primaryPeerAddressPrefix: str + :ivar secondaryPeerAddressPrefix: The secondary address prefix. + :vartype secondaryPeerAddressPrefix: str + :ivar primaryAzurePort: The primary port. + :vartype primaryAzurePort: str + :ivar secondaryAzurePort: The secondary port. + :vartype secondaryAzurePort: str + :ivar sharedKey: The shared key. + :vartype sharedKey: str + :ivar vlanId: The VLAN ID. + :vartype vlanId: int + :ivar microsoftPeeringConfig: The Microsoft peering configuration. + :vartype microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + :ivar provisioningState: The provisioning state of the express route cross connection peering + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar gatewayManagerEtag: The GatewayManager Etag. + :vartype gatewayManagerEtag: str + :ivar lastModifiedBy: Who was the last to modify the peering. + :vartype lastModifiedBy: str + :ivar ipv6PeeringConfig: The IPv6 peering configuration. + :vartype ipv6PeeringConfig: "Ipv6ExpressRouteCircuitPeeringConfig" + """ + + peeringType: Union[str, "ExpressRoutePeeringType"] + """The peering type. Known values are: \"AzurePublicPeering\", \"AzurePrivatePeering\", and + \"MicrosoftPeering\".""" + state: Union[str, "ExpressRoutePeeringState"] + """The peering state. Known values are: \"Disabled\" and \"Enabled\".""" + azureASN: int + """The Azure ASN.""" + peerASN: int + """The peer ASN.""" + primaryPeerAddressPrefix: str + """The primary address prefix.""" + secondaryPeerAddressPrefix: str + """The secondary address prefix.""" + primaryAzurePort: str + """The primary port.""" + secondaryAzurePort: str + """The secondary port.""" + sharedKey: str + """The shared key.""" + vlanId: int + """The VLAN ID.""" + microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + """The Microsoft peering configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route cross connection peering resource. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + gatewayManagerEtag: str + """The GatewayManager Etag.""" + lastModifiedBy: str + """Who was the last to modify the peering.""" + ipv6PeeringConfig: "Ipv6ExpressRouteCircuitPeeringConfig" + """The IPv6 peering configuration.""" + + +class ExpressRouteCrossConnectionProperties(TypedDict, total=False): + """Properties of ExpressRouteCrossConnection. + + :ivar primaryAzurePort: The name of the primary port. + :vartype primaryAzurePort: str + :ivar secondaryAzurePort: The name of the secondary port. + :vartype secondaryAzurePort: str + :ivar sTag: The identifier of the circuit traffic. + :vartype sTag: int + :ivar peeringLocation: The peering location of the ExpressRoute circuit. + :vartype peeringLocation: str + :ivar bandwidthInMbps: The circuit bandwidth In Mbps. + :vartype bandwidthInMbps: int + :ivar expressRouteCircuit: The ExpressRouteCircuit. + :vartype expressRouteCircuit: "ExpressRouteCircuitReference" + :ivar serviceProviderProvisioningState: The provisioning state of the circuit in the + connectivity provider system. Known values are: "NotProvisioned", "Provisioning", + "Provisioned", "Deprovisioning", and "DeProvisioned". + :vartype serviceProviderProvisioningState: Union[str, "ServiceProviderProvisioningState"] + :ivar serviceProviderNotes: Additional read only notes set by the connectivity provider. + :vartype serviceProviderNotes: str + :ivar provisioningState: The provisioning state of the express route cross connection resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar peerings: The list of peerings. + :vartype peerings: list["ExpressRouteCrossConnectionPeering"] + """ + + primaryAzurePort: str + """The name of the primary port.""" + secondaryAzurePort: str + """The name of the secondary port.""" + sTag: int + """The identifier of the circuit traffic.""" + peeringLocation: str + """The peering location of the ExpressRoute circuit.""" + bandwidthInMbps: int + """The circuit bandwidth In Mbps.""" + expressRouteCircuit: "ExpressRouteCircuitReference" + """The ExpressRouteCircuit.""" + serviceProviderProvisioningState: Union[str, "ServiceProviderProvisioningState"] + """The provisioning state of the circuit in the connectivity provider system. Known values are: + \"NotProvisioned\", \"Provisioning\", \"Provisioned\", \"Deprovisioning\", and + \"DeProvisioned\".""" + serviceProviderNotes: str + """Additional read only notes set by the connectivity provider.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route cross connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + peerings: list["ExpressRouteCrossConnectionPeering"] + """The list of peerings.""" + + +class ExpressRouteDiagnosticsSettings(TypedDict, total=False): + """Settings that control how Express Route diagnostics are performed by the connection analyzer. + + :ivar erCircuitResourceId: Resource ID of the Express Route circuit. + :vartype erCircuitResourceId: str + :ivar bandwidth: Bandwidth (in Mbps) to use for the Express Route diagnostic. + :vartype bandwidth: float + """ + + erCircuitResourceId: str + """Resource ID of the Express Route circuit.""" + bandwidth: float + """Bandwidth (in Mbps) to use for the Express Route diagnostic.""" + + +class ExpressRouteFailoverStopApiParameters(TypedDict, total=False): + """Start packet capture parameters on virtual network gateway. + + :ivar peeringLocation: Peering location of the test. + :vartype peeringLocation: str + :ivar wasSimulationSuccessful: Whether the failover simulation was successful or not. + :vartype wasSimulationSuccessful: bool + :ivar details: List of all the failover connections for this peering location. + :vartype details: list["FailoverConnectionDetails"] + """ + + peeringLocation: str + """Peering location of the test.""" + wasSimulationSuccessful: bool + """Whether the failover simulation was successful or not.""" + details: list["FailoverConnectionDetails"] + """List of all the failover connections for this peering location.""" + + +class ExpressRouteGateway(Resource): + """ExpressRoute gateway resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the express route gateway. + :vartype properties: "ExpressRouteGatewayProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteGatewayProperties" + """Properties of the express route gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteGatewayProperties(TypedDict, total=False): + """ExpressRoute gateway resource properties. + + :ivar autoScaleConfiguration: Configuration for auto scaling. + :vartype autoScaleConfiguration: "ExpressRouteGatewayPropertiesAutoScaleConfiguration" + :ivar expressRouteConnections: List of ExpressRoute connections to the ExpressRoute gateway. + :vartype expressRouteConnections: list["ExpressRouteConnection"] + :ivar provisioningState: The provisioning state of the express route gateway resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar virtualHub: The Virtual Hub where the ExpressRoute gateway is or will be deployed. + Required. + :vartype virtualHub: "VirtualHubId" + :ivar allowNonVirtualWanTraffic: Configures this gateway to accept traffic from non Virtual WAN + networks. + :vartype allowNonVirtualWanTraffic: bool + """ + + autoScaleConfiguration: "ExpressRouteGatewayPropertiesAutoScaleConfiguration" + """Configuration for auto scaling.""" + expressRouteConnections: list["ExpressRouteConnection"] + """List of ExpressRoute connections to the ExpressRoute gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + virtualHub: Required["VirtualHubId"] + """The Virtual Hub where the ExpressRoute gateway is or will be deployed. Required.""" + allowNonVirtualWanTraffic: bool + """Configures this gateway to accept traffic from non Virtual WAN networks.""" + + +class ExpressRouteGatewayPropertiesAutoScaleConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """Configuration for auto scaling. + + :ivar bounds: Minimum and maximum number of scale units to deploy. + :vartype bounds: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds" + """ + + bounds: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds" + """Minimum and maximum number of scale units to deploy.""" + + +class ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds( + TypedDict, total=False +): # pylint: disable=name-too-long + """Minimum and maximum number of scale units to deploy. + + :ivar min: Minimum number of scale units deployed for ExpressRoute gateway. + :vartype min: int + :ivar max: Maximum number of scale units deployed for ExpressRoute gateway. + :vartype max: int + """ + + min: int + """Minimum number of scale units deployed for ExpressRoute gateway.""" + max: int + """Maximum number of scale units deployed for ExpressRoute gateway.""" + + +class ExpressRouteLag(Resource): + """ExpressRoute LAG. + + :ivar name: Resource name. + :vartype name: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: ExpressRouteLag properties. + :vartype properties: "ExpressRouteLagPropertiesFormat" + :ivar id: The unique identifier of the resource. + :vartype id: str + :ivar type: The type of the resource. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: The identity of ExpressRouteLag, if configured. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "ExpressRouteLagPropertiesFormat" + """ExpressRouteLag properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + identity: "ManagedServiceIdentity" + """The identity of ExpressRouteLag, if configured.""" + + +class ExpressRouteLagLink(SubResource): + """ExpressRouteLagLink. + + :ivar properties: ExpressRouteLagLink properties. + :vartype properties: "ExpressRouteLagLinkPropertiesFormat" + :ivar id: The unique identifier of the resource. Required. + :vartype id: str + :ivar type: The type of the resource. Required. + :vartype type: str + :ivar name: Name of child link resource that is unique among child link resources of the + parent. Required. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteLagLinkPropertiesFormat" + """ExpressRouteLagLink properties.""" + id: Required[str] + """The unique identifier of the resource. Required.""" + type: Required[str] + """The type of the resource. Required.""" + name: Required[str] + """Name of child link resource that is unique among child link resources of the parent. Required.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteLagLinkPropertiesFormat(TypedDict, total=False): + """ExpressRouteLagLink Resource Properties. + + :ivar routerName: Name of Azure router associated with link. + :vartype routerName: str + :ivar interfaceName: Name of Azure router interface. + :vartype interfaceName: str + :ivar adminState: Administrative state of the link. Known values are: "Enabled" and "Disabled". + :vartype adminState: Union[str, "ExpressRouteLinkAdminState"] + :ivar provisioningState: The provisioning state of the express route LAG link resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar macSecConfig: MacSec configuration. + :vartype macSecConfig: "ExpressRouteLinkMacSecConfig" + :ivar members: ExpressRouteLagMember Sub-Resources. + :vartype members: list["ExpressRouteLagMember"] + """ + + routerName: str + """Name of Azure router associated with link.""" + interfaceName: str + """Name of Azure router interface.""" + adminState: Union[str, "ExpressRouteLinkAdminState"] + """Administrative state of the link. Known values are: \"Enabled\" and \"Disabled\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route LAG link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + macSecConfig: "ExpressRouteLinkMacSecConfig" + """MacSec configuration.""" + members: list["ExpressRouteLagMember"] + """ExpressRouteLagMember Sub-Resources.""" + + +class ExpressRouteLagMember(SubResource): + """ExpressRouteLagMember. + + :ivar properties: ExpressRouteLagMember properties. + :vartype properties: "ExpressRouteLagMemberPropertiesFormat" + :ivar id: The unique identifier of the resource. Required. + :vartype id: str + :ivar type: The type of the resource. Required. + :vartype type: str + :ivar name: Name of child member resource that is unique among child member resources of the + parent. Required. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteLagMemberPropertiesFormat" + """ExpressRouteLagMember properties.""" + id: Required[str] + """The unique identifier of the resource. Required.""" + type: Required[str] + """The type of the resource. Required.""" + name: Required[str] + """Name of child member resource that is unique among child member resources of the parent. + Required.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteLagMemberPropertiesFormat(TypedDict, total=False): + """ExpressRouteLagMember Resource Properties. + + :ivar interfaceName: Name of Azure router interface. + :vartype interfaceName: str + :ivar patchPanelId: Mapping between physical port to patch panel port. + :vartype patchPanelId: str + :ivar rackId: Mapping of physical patch panel to rack. + :vartype rackId: str + :ivar coloLocation: Cololocation for ExpressRoute member. + :vartype coloLocation: str + :ivar connectorType: Physical fiber port type. Known values are: "LC" and "SC". + :vartype connectorType: Union[str, "ExpressRouteLinkConnectorType"] + :ivar adminState: Administrative state of the member port. Known values are: "Enabled" and + "Disabled". + :vartype adminState: Union[str, "ExpressRouteLinkAdminState"] + :ivar provisioningState: The provisioning state of the express route LAG member resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + interfaceName: str + """Name of Azure router interface.""" + patchPanelId: str + """Mapping between physical port to patch panel port.""" + rackId: str + """Mapping of physical patch panel to rack.""" + coloLocation: str + """Cololocation for ExpressRoute member.""" + connectorType: Union[str, "ExpressRouteLinkConnectorType"] + """Physical fiber port type. Known values are: \"LC\" and \"SC\".""" + adminState: Union[str, "ExpressRouteLinkAdminState"] + """Administrative state of the member port. Known values are: \"Enabled\" and \"Disabled\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route LAG member resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ExpressRouteLagPropertiesFormat(TypedDict, total=False): + """ExpressRouteLag Resource Properties. + + :ivar peeringLocation: The name of the peering location that the ExpressRouteLag is mapped to + physically. + :vartype peeringLocation: str + :ivar bandwidthInGbps: Bandwidth of procured LAG in Gbps. + :vartype bandwidthInGbps: int + :ivar provisionedBandwidthInGbps: Aggregate Gbps of associated circuit bandwidths. + :vartype provisionedBandwidthInGbps: float + :ivar mtu: Maximum transmission unit of the LAG. + :vartype mtu: str + :ivar encapsulation: Encapsulation method on LAG. Known values are: "Dot1Q" and "QinQ". + :vartype encapsulation: Union[str, "ExpressRouteLagEncapsulation"] + :ivar etherType: Ether type of the LAG. + :vartype etherType: str + :ivar links: ExpressRouteLagLink Sub-Resources. + :vartype links: list["ExpressRouteLagLink"] + :ivar allocationDate: The date and time when the ExpressRouteLag was allocated. + :vartype allocationDate: str + :ivar provisioningState: The provisioning state of the express route LAG resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: The resource GUID property of the express route LAG resource. + :vartype resourceGuid: str + :ivar billingType: The billing type of the ExpressRouteLag resource. Known values are: + "MeteredData" and "UnlimitedData". + :vartype billingType: Union[str, "ExpressRouteLagBillingType"] + :ivar numberOfPorts: Number of ports in the LAG. + :vartype numberOfPorts: int + :ivar minimumActivePortsRequired: Minimum number of active ports required for LAG. + :vartype minimumActivePortsRequired: int + :ivar lacpTimer: LACP timer configuration. Known values are: "Fast" and "Slow". + :vartype lacpTimer: Union[str, "ExpressRouteLagLacpTimer"] + """ + + peeringLocation: str + """The name of the peering location that the ExpressRouteLag is mapped to physically.""" + bandwidthInGbps: int + """Bandwidth of procured LAG in Gbps.""" + provisionedBandwidthInGbps: float + """Aggregate Gbps of associated circuit bandwidths.""" + mtu: str + """Maximum transmission unit of the LAG.""" + encapsulation: Union[str, "ExpressRouteLagEncapsulation"] + """Encapsulation method on LAG. Known values are: \"Dot1Q\" and \"QinQ\".""" + etherType: str + """Ether type of the LAG.""" + links: list["ExpressRouteLagLink"] + """ExpressRouteLagLink Sub-Resources.""" + allocationDate: str + """The date and time when the ExpressRouteLag was allocated.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route LAG resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """The resource GUID property of the express route LAG resource.""" + billingType: Union[str, "ExpressRouteLagBillingType"] + """The billing type of the ExpressRouteLag resource. Known values are: \"MeteredData\" and + \"UnlimitedData\".""" + numberOfPorts: int + """Number of ports in the LAG.""" + minimumActivePortsRequired: int + """Minimum number of active ports required for LAG.""" + lacpTimer: Union[str, "ExpressRouteLagLacpTimer"] + """LACP timer configuration. Known values are: \"Fast\" and \"Slow\".""" + + +class ExpressRouteLagUpdateTagsOrIdentityRequest(TypedDict, total=False): # pylint: disable=name-too-long + """ExpressRouteLag Update Tags or Identity Request. + + :ivar identity: The identity of ExpressRouteLag, if configured. + :vartype identity: "ManagedServiceIdentity" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + identity: "ManagedServiceIdentity" + """The identity of ExpressRouteLag, if configured.""" + tags: dict[str, str] + """Resource tags.""" + + +class ExpressRouteLink(SubResource): + """ExpressRouteLink. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: ExpressRouteLink properties. + :vartype properties: "ExpressRouteLinkPropertiesFormat" + :ivar name: Name of child port resource that is unique among child port resources of the + parent. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRouteLinkPropertiesFormat" + """ExpressRouteLink properties.""" + name: str + """Name of child port resource that is unique among child port resources of the parent.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRouteLinkFailoverStopApiParameters(TypedDict, total=False): # pylint: disable=name-too-long + """Parameters for stopping an ExpressRoute circuit link failover test. + + :ivar circuitTestCategory: The category of the circuit test. + :vartype circuitTestCategory: str + :ivar linkType: The type of the link. + :vartype linkType: str + :ivar wasSimulationSuccessful: Whether the simulation was successful. + :vartype wasSimulationSuccessful: bool + :ivar isVerified: Whether the link is verified. + :vartype isVerified: bool + """ + + circuitTestCategory: str + """The category of the circuit test.""" + linkType: str + """The type of the link.""" + wasSimulationSuccessful: bool + """Whether the simulation was successful.""" + isVerified: bool + """Whether the link is verified.""" + + +class ExpressRouteLinkMacSecConfig(TypedDict, total=False): + """Definition of ExpressRouteLink Mac Security configuration. + + :ivar cknSecretIdentifier: Keyvault Secret Identifier URL containing Mac security CKN key. + :vartype cknSecretIdentifier: str + :ivar cakSecretIdentifier: Keyvault Secret Identifier URL containing Mac security CAK key. + :vartype cakSecretIdentifier: str + :ivar cipher: Mac security cipher. Known values are: "GcmAes256", "GcmAes128", "GcmAesXpn128", + and "GcmAesXpn256". + :vartype cipher: Union[str, "ExpressRouteLinkMacSecCipher"] + :ivar sciState: Sci mode enabled/disabled. Known values are: "Disabled" and "Enabled". + :vartype sciState: Union[str, "ExpressRouteLinkMacSecSciState"] + """ + + cknSecretIdentifier: str + """Keyvault Secret Identifier URL containing Mac security CKN key.""" + cakSecretIdentifier: str + """Keyvault Secret Identifier URL containing Mac security CAK key.""" + cipher: Union[str, "ExpressRouteLinkMacSecCipher"] + """Mac security cipher. Known values are: \"GcmAes256\", \"GcmAes128\", \"GcmAesXpn128\", and + \"GcmAesXpn256\".""" + sciState: Union[str, "ExpressRouteLinkMacSecSciState"] + """Sci mode enabled/disabled. Known values are: \"Disabled\" and \"Enabled\".""" + + +class ExpressRouteLinkPropertiesFormat(TypedDict, total=False): + """ExpressRouteLink Resource Properties. + + :ivar routerName: Name of Azure router associated with physical port. + :vartype routerName: str + :ivar interfaceName: Name of Azure router interface. + :vartype interfaceName: str + :ivar patchPanelId: Mapping between physical port to patch panel port. + :vartype patchPanelId: str + :ivar rackId: Mapping of physical patch panel to rack. + :vartype rackId: str + :ivar coloLocation: Cololocation for ExpressRoute Hybrid Direct. + :vartype coloLocation: str + :ivar connectorType: Physical fiber port type. Known values are: "LC" and "SC". + :vartype connectorType: Union[str, "ExpressRouteLinkConnectorType"] + :ivar adminState: Administrative state of the physical port. Known values are: "Enabled" and + "Disabled". + :vartype adminState: Union[str, "ExpressRouteLinkAdminState"] + :ivar provisioningState: The provisioning state of the express route link resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar macSecConfig: MacSec configuration. + :vartype macSecConfig: "ExpressRouteLinkMacSecConfig" + """ + + routerName: str + """Name of Azure router associated with physical port.""" + interfaceName: str + """Name of Azure router interface.""" + patchPanelId: str + """Mapping between physical port to patch panel port.""" + rackId: str + """Mapping of physical patch panel to rack.""" + coloLocation: str + """Cololocation for ExpressRoute Hybrid Direct.""" + connectorType: Union[str, "ExpressRouteLinkConnectorType"] + """Physical fiber port type. Known values are: \"LC\" and \"SC\".""" + adminState: Union[str, "ExpressRouteLinkAdminState"] + """Administrative state of the physical port. Known values are: \"Enabled\" and \"Disabled\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + macSecConfig: "ExpressRouteLinkMacSecConfig" + """MacSec configuration.""" + + +class ExpressRoutePort(Resource): + """ExpressRoute Port. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: ExpressRoutePort properties. + :vartype properties: "ExpressRoutePortPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: The identity of ExpressRoutePort, if configured. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "ExpressRoutePortPropertiesFormat" + """ExpressRoutePort properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + identity: "ManagedServiceIdentity" + """The identity of ExpressRoutePort, if configured.""" + + +class ExpressRoutePortAuthorization(SubResourceModel): + """ExpressRoute Port Authorization. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: ExpressRoutePort properties. + :vartype properties: "ExpressRoutePortAuthorizationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ExpressRoutePortAuthorizationPropertiesFormat" + """ExpressRoutePort properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ExpressRoutePortAuthorizationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """ExpressRoute Port Authorization Properties. + + :ivar authorizationKey: The authorization key. + :vartype authorizationKey: str + :ivar authorizationUseStatus: The authorization use status. Known values are: "Available" and + "InUse". + :vartype authorizationUseStatus: Union[str, "ExpressRoutePortAuthorizationUseStatus"] + :ivar circuitResourceUri: The reference to the ExpressRoute circuit resource using the + authorization. + :vartype circuitResourceUri: str + :ivar provisioningState: The provisioning state of the authorization resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + authorizationKey: str + """The authorization key.""" + authorizationUseStatus: Union[str, "ExpressRoutePortAuthorizationUseStatus"] + """The authorization use status. Known values are: \"Available\" and \"InUse\".""" + circuitResourceUri: str + """The reference to the ExpressRoute circuit resource using the authorization.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the authorization resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ExpressRoutePortPropertiesFormat(TypedDict, total=False): + """ExpressRoutePort Properties. + + :ivar peeringLocation: The name of the peering location that the ExpressRoutePort is mapped to + physically. + :vartype peeringLocation: str + :ivar bandwidthInGbps: Bandwidth of procured ports in Gbps. + :vartype bandwidthInGbps: int + :ivar provisionedBandwidthInGbps: Aggregate Gbps of associated circuit bandwidths. + :vartype provisionedBandwidthInGbps: float + :ivar mtu: Maximum transmission unit of the physical port pair(s). + :vartype mtu: str + :ivar encapsulation: Encapsulation method on physical ports. Known values are: "Dot1Q" and + "QinQ". + :vartype encapsulation: Union[str, "ExpressRoutePortsEncapsulation"] + :ivar etherType: Ether type of the physical port. + :vartype etherType: str + :ivar allocationDate: Date of the physical port allocation to be used in Letter of + Authorization. + :vartype allocationDate: str + :ivar links: ExpressRouteLink Sub-Resources. + :vartype links: list["ExpressRouteLink"] + :ivar circuits: Reference the ExpressRoute circuit(s) that are provisioned on this + ExpressRoutePort resource. + :vartype circuits: list["SubResource"] + :ivar provisioningState: The provisioning state of the express route port resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: The resource GUID property of the express route port resource. + :vartype resourceGuid: str + :ivar billingType: The billing type of the ExpressRoutePort resource. Known values are: + "MeteredData" and "UnlimitedData". + :vartype billingType: Union[str, "ExpressRoutePortsBillingType"] + """ + + peeringLocation: str + """The name of the peering location that the ExpressRoutePort is mapped to physically.""" + bandwidthInGbps: int + """Bandwidth of procured ports in Gbps.""" + provisionedBandwidthInGbps: float + """Aggregate Gbps of associated circuit bandwidths.""" + mtu: str + """Maximum transmission unit of the physical port pair(s).""" + encapsulation: Union[str, "ExpressRoutePortsEncapsulation"] + """Encapsulation method on physical ports. Known values are: \"Dot1Q\" and \"QinQ\".""" + etherType: str + """Ether type of the physical port.""" + allocationDate: str + """Date of the physical port allocation to be used in Letter of Authorization.""" + links: list["ExpressRouteLink"] + """ExpressRouteLink Sub-Resources.""" + circuits: list["SubResource"] + """Reference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the express route port resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """The resource GUID property of the express route port resource.""" + billingType: Union[str, "ExpressRoutePortsBillingType"] + """The billing type of the ExpressRoutePort resource. Known values are: \"MeteredData\" and + \"UnlimitedData\".""" + + +class ExtendedLocation(TypedDict, total=False): + """ExtendedLocation complex type. + + :ivar name: The name of the extended location. + :vartype name: str + :ivar type: The type of the extended location. "EdgeZone" + :vartype type: Union[str, "ExtendedLocationTypes"] + """ + + name: str + """The name of the extended location.""" + type: Union[str, "ExtendedLocationTypes"] + """The type of the extended location. \"EdgeZone\"""" + + +class FailoverConnectionDetails(TypedDict, total=False): + """FailoverConnectionDetails. + + :ivar failoverConnectionName: Name of the failover connection. + :vartype failoverConnectionName: str + :ivar failoverLocation: Location of the failover connection. + :vartype failoverLocation: str + :ivar isVerified: Whether the customer was able to establish connectivity through this failover + connection or not. + :vartype isVerified: bool + """ + + failoverConnectionName: str + """Name of the failover connection.""" + failoverLocation: str + """Location of the failover connection.""" + isVerified: bool + """Whether the customer was able to establish connectivity through this failover connection or + not.""" + + +class FilterItems(TypedDict, total=False): + """Will contain the filter name and values to operate on. + + :ivar field: The name of the field we would like to filter. + :vartype field: str + :ivar values: List of values to filter the current field by. + :vartype values: list[str] + """ + + field: str + """The name of the field we would like to filter.""" + values: list[str] + """List of values to filter the current field by.""" + + +class FirewallPacketCaptureParameters(TypedDict, total=False): + """Azure Firewall Packet Capture Parameters. + + :ivar durationInSeconds: Duration of packet capture in seconds. If the field is not provided, + the default value is 60. + :vartype durationInSeconds: int + :ivar numberOfPacketsToCapture: Number of packets to be captured. If the field is not provided, + the default value is 1000. + :vartype numberOfPacketsToCapture: int + :ivar sasUrl: Upload capture location. + :vartype sasUrl: str + :ivar fileName: Name of file to be uploaded to sasURL. + :vartype fileName: str + :ivar protocol: The protocol of packets to capture. Known values are: "TCP", "UDP", "Any", and + "ICMP". + :vartype protocol: Union[str, "AzureFirewallNetworkRuleProtocol"] + :ivar flags: The tcp-flag type to be captured. Used with protocol TCP. + :vartype flags: list["AzureFirewallPacketCaptureFlags"] + :ivar filters: Rules to filter packet captures. + :vartype filters: list["AzureFirewallPacketCaptureRule"] + :ivar operation: The packet capture operation to perform. If the Start operation is selected, + please provide all the fields in the firewallPacketCaptureParameters to successfully initiate + the packet capture. If the Status or Stop operation is selected, only the operation field is + required; all other fields in the firewallPacketCaptureParameters can be omitted to + successfully retrieve the capture status or stop the capture. Known values are: "Start", + "Status", and "Stop". + :vartype operation: Union[str, "AzureFirewallPacketCaptureOperationType"] + """ + + durationInSeconds: int + """Duration of packet capture in seconds. If the field is not provided, the default value is 60.""" + numberOfPacketsToCapture: int + """Number of packets to be captured. If the field is not provided, the default value is 1000.""" + sasUrl: str + """Upload capture location.""" + fileName: str + """Name of file to be uploaded to sasURL.""" + protocol: Union[str, "AzureFirewallNetworkRuleProtocol"] + """The protocol of packets to capture. Known values are: \"TCP\", \"UDP\", \"Any\", and \"ICMP\".""" + flags: list["AzureFirewallPacketCaptureFlags"] + """The tcp-flag type to be captured. Used with protocol TCP.""" + filters: list["AzureFirewallPacketCaptureRule"] + """Rules to filter packet captures.""" + operation: Union[str, "AzureFirewallPacketCaptureOperationType"] + """The packet capture operation to perform. If the Start operation is selected, please provide all + the fields in the firewallPacketCaptureParameters to successfully initiate the packet capture. + If the Status or Stop operation is selected, only the operation field is required; all other + fields in the firewallPacketCaptureParameters can be omitted to successfully retrieve the + capture status or stop the capture. Known values are: \"Start\", \"Status\", and \"Stop\".""" + + +class FirewallPolicy(Resource): + """FirewallPolicy Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the firewall policy. + :vartype properties: "FirewallPolicyPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: The identity of the firewall policy. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "FirewallPolicyPropertiesFormat" + """Properties of the firewall policy.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + identity: "ManagedServiceIdentity" + """The identity of the firewall policy.""" + + +class FirewallPolicyCertificateAuthority(TypedDict, total=False): + """Trusted Root certificates properties for tls. + + :ivar keyVaultSecretId: Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or + 'Certificate' object stored in KeyVault. + :vartype keyVaultSecretId: str + :ivar name: Name of the CA certificate. + :vartype name: str + """ + + keyVaultSecretId: str + """Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in + KeyVault.""" + name: str + """Name of the CA certificate.""" + + +class FirewallPolicyDraft(Resource): + """FirewallPolicy Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the firewall policy. + :vartype properties: "FirewallPolicyDraftProperties" + """ + + properties: "FirewallPolicyDraftProperties" + """Properties of the firewall policy.""" + + +class FirewallPolicyDraftProperties(TypedDict, total=False): + """FirewallPolicyDraftProperties. + + :ivar basePolicy: The parent firewall policy from which rules are inherited. + :vartype basePolicy: "SubResource" + :ivar threatIntelMode: The operation mode for Threat Intelligence. Known values are: "Alert", + "Deny", and "Off". + :vartype threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + :ivar threatIntelWhitelist: ThreatIntel Whitelist for Firewall Policy. + :vartype threatIntelWhitelist: "FirewallPolicyThreatIntelWhitelist" + :ivar insights: Insights on Firewall Policy. + :vartype insights: "FirewallPolicyInsights" + :ivar snat: The private IP addresses/IP ranges to which traffic will not be SNAT. + :vartype snat: "FirewallPolicySNAT" + :ivar sql: SQL Settings definition. + :vartype sql: "FirewallPolicySQL" + :ivar dnsSettings: DNS Proxy Settings definition. + :vartype dnsSettings: "DnsSettings" + :ivar explicitProxy: Explicit Proxy Settings definition. + :vartype explicitProxy: "ExplicitProxy" + :ivar intrusionDetection: The configuration for Intrusion detection. + :vartype intrusionDetection: "FirewallPolicyIntrusionDetection" + """ + + basePolicy: "SubResource" + """The parent firewall policy from which rules are inherited.""" + threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + """The operation mode for Threat Intelligence. Known values are: \"Alert\", \"Deny\", and \"Off\".""" + threatIntelWhitelist: "FirewallPolicyThreatIntelWhitelist" + """ThreatIntel Whitelist for Firewall Policy.""" + insights: "FirewallPolicyInsights" + """Insights on Firewall Policy.""" + snat: "FirewallPolicySNAT" + """The private IP addresses/IP ranges to which traffic will not be SNAT.""" + sql: "FirewallPolicySQL" + """SQL Settings definition.""" + dnsSettings: "DnsSettings" + """DNS Proxy Settings definition.""" + explicitProxy: "ExplicitProxy" + """Explicit Proxy Settings definition.""" + intrusionDetection: "FirewallPolicyIntrusionDetection" + """The configuration for Intrusion detection.""" + + +class FirewallPolicyFilterRuleCollection(TypedDict, total=False): + """Firewall Policy Filter Rule Collection. + + :ivar name: The name of the rule collection. + :vartype name: str + :ivar priority: Priority of the Firewall Policy Rule Collection resource. + :vartype priority: int + :ivar action: The action type of a Filter rule collection. + :vartype action: "FirewallPolicyFilterRuleCollectionAction" + :ivar rules: List of rules included in a rule collection. + :vartype rules: list["FirewallPolicyRule"] + :ivar ruleCollectionType: The type of the rule collection. Required. + FirewallPolicyFilterRuleCollection. + :vartype ruleCollectionType: + Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION] + """ + + name: str + """The name of the rule collection.""" + priority: int + """Priority of the Firewall Policy Rule Collection resource.""" + action: "FirewallPolicyFilterRuleCollectionAction" + """The action type of a Filter rule collection.""" + rules: list["FirewallPolicyRule"] + """List of rules included in a rule collection.""" + ruleCollectionType: Required[Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION]] + """The type of the rule collection. Required. FirewallPolicyFilterRuleCollection.""" + + +class FirewallPolicyFilterRuleCollectionAction(TypedDict, total=False): + """Properties of the FirewallPolicyFilterRuleCollectionAction. + + :ivar type: The type of action. Known values are: "Allow" and "Deny". + :vartype type: Union[str, "FirewallPolicyFilterRuleCollectionActionType"] + """ + + type: Union[str, "FirewallPolicyFilterRuleCollectionActionType"] + """The type of action. Known values are: \"Allow\" and \"Deny\".""" + + +class FirewallPolicyHttpHeaderToInsert(TypedDict, total=False): + """name and value of HTTP/S header to insert. + + :ivar headerName: Contains the name of the header. + :vartype headerName: str + :ivar headerValue: Contains the value of the header. + :vartype headerValue: str + """ + + headerName: str + """Contains the name of the header.""" + headerValue: str + """Contains the value of the header.""" + + +class FirewallPolicyInsights(TypedDict, total=False): + """Firewall Policy Insights. + + :ivar isEnabled: A flag to indicate if the insights are enabled on the policy. + :vartype isEnabled: bool + :ivar retentionDays: Number of days the insights should be enabled on the policy. + :vartype retentionDays: int + :ivar logAnalyticsResources: Workspaces needed to configure the Firewall Policy Insights. + :vartype logAnalyticsResources: "FirewallPolicyLogAnalyticsResources" + """ + + isEnabled: bool + """A flag to indicate if the insights are enabled on the policy.""" + retentionDays: int + """Number of days the insights should be enabled on the policy.""" + logAnalyticsResources: "FirewallPolicyLogAnalyticsResources" + """Workspaces needed to configure the Firewall Policy Insights.""" + + +class FirewallPolicyIntrusionDetection(TypedDict, total=False): + """Configuration for intrusion detection mode and rules. + + :ivar mode: Intrusion detection general state. When attached to a parent policy, the firewall's + effective IDPS mode is the stricter mode of the two. Known values are: "Off", "Alert", and + "Deny". + :vartype mode: Union[str, "FirewallPolicyIntrusionDetectionStateType"] + :ivar profile: IDPS profile name. When attached to a parent policy, the firewall's effective + profile is the profile name of the parent policy. Known values are: "Off", "Emerging", "Core", + and "Extended". + :vartype profile: Union[str, "FirewallPolicyIntrusionDetectionProfileType"] + :ivar configuration: Intrusion detection configuration properties. + :vartype configuration: "FirewallPolicyIntrusionDetectionConfiguration" + """ + + mode: Union[str, "FirewallPolicyIntrusionDetectionStateType"] + """Intrusion detection general state. When attached to a parent policy, the firewall's effective + IDPS mode is the stricter mode of the two. Known values are: \"Off\", \"Alert\", and \"Deny\".""" + profile: Union[str, "FirewallPolicyIntrusionDetectionProfileType"] + """IDPS profile name. When attached to a parent policy, the firewall's effective profile is the + profile name of the parent policy. Known values are: \"Off\", \"Emerging\", \"Core\", and + \"Extended\".""" + configuration: "FirewallPolicyIntrusionDetectionConfiguration" + """Intrusion detection configuration properties.""" + + +class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications( + TypedDict, total=False +): # pylint: disable=name-too-long + """Intrusion detection bypass traffic specification. + + :ivar name: Name of the bypass traffic rule. + :vartype name: str + :ivar description: Description of the bypass traffic rule. + :vartype description: str + :ivar protocol: The rule bypass protocol. Known values are: "TCP", "UDP", "ICMP", and "ANY". + :vartype protocol: Union[str, "FirewallPolicyIntrusionDetectionProtocol"] + :ivar sourceAddresses: List of source IP addresses or ranges for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses or ranges for this rule. + :vartype destinationAddresses: list[str] + :ivar destinationPorts: List of destination ports or ranges. + :vartype destinationPorts: list[str] + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + :ivar destinationIpGroups: List of destination IpGroups for this rule. + :vartype destinationIpGroups: list[str] + """ + + name: str + """Name of the bypass traffic rule.""" + description: str + """Description of the bypass traffic rule.""" + protocol: Union[str, "FirewallPolicyIntrusionDetectionProtocol"] + """The rule bypass protocol. Known values are: \"TCP\", \"UDP\", \"ICMP\", and \"ANY\".""" + sourceAddresses: list[str] + """List of source IP addresses or ranges for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses or ranges for this rule.""" + destinationPorts: list[str] + """List of destination ports or ranges.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + destinationIpGroups: list[str] + """List of destination IpGroups for this rule.""" + + +class FirewallPolicyIntrusionDetectionConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """The operation for configuring intrusion detection. + + :ivar signatureOverrides: List of specific signatures states. + :vartype signatureOverrides: list["FirewallPolicyIntrusionDetectionSignatureSpecification"] + :ivar bypassTrafficSettings: List of rules for traffic to bypass. + :vartype bypassTrafficSettings: + list["FirewallPolicyIntrusionDetectionBypassTrafficSpecifications"] + :ivar privateRanges: IDPS Private IP address ranges are used to identify traffic direction + (i.e. inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered + private IP addresses. To modify default ranges, specify your Private IP address ranges with + this property. + :vartype privateRanges: list[str] + """ + + signatureOverrides: list["FirewallPolicyIntrusionDetectionSignatureSpecification"] + """List of specific signatures states.""" + bypassTrafficSettings: list["FirewallPolicyIntrusionDetectionBypassTrafficSpecifications"] + """List of rules for traffic to bypass.""" + privateRanges: list[str] + """IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, + etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. To + modify default ranges, specify your Private IP address ranges with this property.""" + + +class FirewallPolicyIntrusionDetectionSignatureSpecification(TypedDict, total=False): # pylint: disable=name-too-long + """Intrusion detection signatures specification states. + + :ivar id: Signature id. + :vartype id: str + :ivar mode: The signature state. Known values are: "Off", "Alert", and "Deny". + :vartype mode: Union[str, "FirewallPolicyIntrusionDetectionStateType"] + """ + + id: str + """Signature id.""" + mode: Union[str, "FirewallPolicyIntrusionDetectionStateType"] + """The signature state. Known values are: \"Off\", \"Alert\", and \"Deny\".""" + + +class FirewallPolicyKubeSelectorGroup(SubResourceModel): + """Firewall Policy Kubernetes Selector Group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the firewall policy Kubernetes selector group. + :vartype properties: "FirewallPolicyKubeSelectorGroupProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "FirewallPolicyKubeSelectorGroupProperties" + """The properties of the firewall policy Kubernetes selector group.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class FirewallPolicyKubeSelectorGroupProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the Kubernetes Selector Group. + + :ivar podSelector: Kubernetes Pod selector for matching pods in the Kubernetes cluster. + :vartype podSelector: "KubeLabelSelector" + :ivar namespaceSelector: Kubernetes Namespace selector for matching namespaces in the + Kubernetes cluster. + :vartype namespaceSelector: "KubeLabelSelector" + :ivar provisioningState: The provisioning state of the firewall policy Kubernetes selector + group resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", + and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + podSelector: "KubeLabelSelector" + """Kubernetes Pod selector for matching pods in the Kubernetes cluster.""" + namespaceSelector: "KubeLabelSelector" + """Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the firewall policy Kubernetes selector group resource. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class FirewallPolicyLogAnalyticsResources(TypedDict, total=False): + """Log Analytics Resources for Firewall Policy Insights. + + :ivar workspaces: List of workspaces for Firewall Policy Insights. + :vartype workspaces: list["FirewallPolicyLogAnalyticsWorkspace"] + :ivar defaultWorkspaceId: The default workspace Id for Firewall Policy Insights. + :vartype defaultWorkspaceId: "SubResource" + """ + + workspaces: list["FirewallPolicyLogAnalyticsWorkspace"] + """List of workspaces for Firewall Policy Insights.""" + defaultWorkspaceId: "SubResource" + """The default workspace Id for Firewall Policy Insights.""" + + +class FirewallPolicyLogAnalyticsWorkspace(TypedDict, total=False): + """Log Analytics Workspace for Firewall Policy Insights. + + :ivar region: Region to configure the Workspace. + :vartype region: str + :ivar workspaceId: The workspace Id for Firewall Policy Insights. + :vartype workspaceId: "SubResource" + """ + + region: str + """Region to configure the Workspace.""" + workspaceId: "SubResource" + """The workspace Id for Firewall Policy Insights.""" + + +class FirewallPolicyNatRuleCollection(TypedDict, total=False): + """Firewall Policy NAT Rule Collection. + + :ivar name: The name of the rule collection. + :vartype name: str + :ivar priority: Priority of the Firewall Policy Rule Collection resource. + :vartype priority: int + :ivar action: The action type of a Nat rule collection. + :vartype action: "FirewallPolicyNatRuleCollectionAction" + :ivar rules: List of rules included in a rule collection. + :vartype rules: list["FirewallPolicyRule"] + :ivar ruleCollectionType: The type of the rule collection. Required. + FirewallPolicyNatRuleCollection. + :vartype ruleCollectionType: + Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_NAT_RULE_COLLECTION] + """ + + name: str + """The name of the rule collection.""" + priority: int + """Priority of the Firewall Policy Rule Collection resource.""" + action: "FirewallPolicyNatRuleCollectionAction" + """The action type of a Nat rule collection.""" + rules: list["FirewallPolicyRule"] + """List of rules included in a rule collection.""" + ruleCollectionType: Required[Literal[FirewallPolicyRuleCollectionType.FIREWALL_POLICY_NAT_RULE_COLLECTION]] + """The type of the rule collection. Required. FirewallPolicyNatRuleCollection.""" + + +class FirewallPolicyNatRuleCollectionAction(TypedDict, total=False): + """Properties of the FirewallPolicyNatRuleCollectionAction. + + :ivar type: The type of action. "DNAT" + :vartype type: Union[str, "FirewallPolicyNatRuleCollectionActionType"] + """ + + type: Union[str, "FirewallPolicyNatRuleCollectionActionType"] + """The type of action. \"DNAT\"""" + + +class FirewallPolicyPropertiesFormat(TypedDict, total=False): + """Firewall Policy definition. + + :ivar size: A read-only string that represents the size of the FirewallPolicyPropertiesFormat + in MB. (ex 0.5MB). + :vartype size: str + :ivar ruleCollectionGroups: List of references to FirewallPolicyRuleCollectionGroups. + :vartype ruleCollectionGroups: list["SubResource"] + :ivar kubeSelectorGroups: List of references to FirewallPolicyKubeSelectorGroups. + :vartype kubeSelectorGroups: list["SubResource"] + :ivar provisioningState: The provisioning state of the firewall policy resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar basePolicy: The parent firewall policy from which rules are inherited. + :vartype basePolicy: "SubResource" + :ivar firewalls: List of references to Azure Firewalls that this Firewall Policy is associated + with. + :vartype firewalls: list["SubResource"] + :ivar childPolicies: List of references to Child Firewall Policies. + :vartype childPolicies: list["SubResource"] + :ivar threatIntelMode: The operation mode for Threat Intelligence. Known values are: "Alert", + "Deny", and "Off". + :vartype threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + :ivar threatIntelWhitelist: ThreatIntel Whitelist for Firewall Policy. + :vartype threatIntelWhitelist: "FirewallPolicyThreatIntelWhitelist" + :ivar insights: Insights on Firewall Policy. + :vartype insights: "FirewallPolicyInsights" + :ivar snat: The private IP addresses/IP ranges to which traffic will not be SNAT. + :vartype snat: "FirewallPolicySNAT" + :ivar sql: SQL Settings definition. + :vartype sql: "FirewallPolicySQL" + :ivar dnsSettings: DNS Proxy Settings definition. + :vartype dnsSettings: "DnsSettings" + :ivar explicitProxy: Explicit Proxy Settings definition. + :vartype explicitProxy: "ExplicitProxy" + :ivar intrusionDetection: The configuration for Intrusion detection. + :vartype intrusionDetection: "FirewallPolicyIntrusionDetection" + :ivar transportSecurity: TLS Configuration definition. + :vartype transportSecurity: "FirewallPolicyTransportSecurity" + :ivar sku: The Firewall Policy SKU. + :vartype sku: "FirewallPolicySku" + :ivar afcManaged: Indicates that the Firewall Policy is managed by AFC (Azure Firewall for + Containers). When set, the policy is treated as read-only for callers that do not supply the + AFC-managed sync marker on write operations. + :vartype afcManaged: bool + """ + + size: str + """A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex + 0.5MB).""" + ruleCollectionGroups: list["SubResource"] + """List of references to FirewallPolicyRuleCollectionGroups.""" + kubeSelectorGroups: list["SubResource"] + """List of references to FirewallPolicyKubeSelectorGroups.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the firewall policy resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + basePolicy: "SubResource" + """The parent firewall policy from which rules are inherited.""" + firewalls: list["SubResource"] + """List of references to Azure Firewalls that this Firewall Policy is associated with.""" + childPolicies: list["SubResource"] + """List of references to Child Firewall Policies.""" + threatIntelMode: Union[str, "AzureFirewallThreatIntelMode"] + """The operation mode for Threat Intelligence. Known values are: \"Alert\", \"Deny\", and \"Off\".""" + threatIntelWhitelist: "FirewallPolicyThreatIntelWhitelist" + """ThreatIntel Whitelist for Firewall Policy.""" + insights: "FirewallPolicyInsights" + """Insights on Firewall Policy.""" + snat: "FirewallPolicySNAT" + """The private IP addresses/IP ranges to which traffic will not be SNAT.""" + sql: "FirewallPolicySQL" + """SQL Settings definition.""" + dnsSettings: "DnsSettings" + """DNS Proxy Settings definition.""" + explicitProxy: "ExplicitProxy" + """Explicit Proxy Settings definition.""" + intrusionDetection: "FirewallPolicyIntrusionDetection" + """The configuration for Intrusion detection.""" + transportSecurity: "FirewallPolicyTransportSecurity" + """TLS Configuration definition.""" + sku: "FirewallPolicySku" + """The Firewall Policy SKU.""" + afcManaged: bool + """Indicates that the Firewall Policy is managed by AFC (Azure Firewall for Containers). When set, + the policy is treated as read-only for callers that do not supply the AFC-managed sync marker + on write operations.""" + + +class FirewallPolicyRuleApplicationProtocol(TypedDict, total=False): + """Properties of the application rule protocol. + + :ivar protocolType: Protocol type. Known values are: "Http" and "Https". + :vartype protocolType: Union[str, "FirewallPolicyRuleApplicationProtocolType"] + :ivar port: Port number for the protocol, cannot be greater than 64000. + :vartype port: int + """ + + protocolType: Union[str, "FirewallPolicyRuleApplicationProtocolType"] + """Protocol type. Known values are: \"Http\" and \"Https\".""" + port: int + """Port number for the protocol, cannot be greater than 64000.""" + + +class FirewallPolicyRuleCollectionGroup(SubResourceModel): + """Rule Collection Group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the firewall policy rule collection group. + :vartype properties: "FirewallPolicyRuleCollectionGroupProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "FirewallPolicyRuleCollectionGroupProperties" + """The properties of the firewall policy rule collection group.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class FirewallPolicyRuleCollectionGroupDraft(SubResourceModel): + """Rule Collection Group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the firewall policy rule collection group. + :vartype properties: "FirewallPolicyRuleCollectionGroupDraftProperties" + """ + + properties: "FirewallPolicyRuleCollectionGroupDraftProperties" + """The properties of the firewall policy rule collection group.""" + + +class FirewallPolicyRuleCollectionGroupDraftProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the rule collection group draft. + + :ivar size: A read-only string that represents the size of the + FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). + :vartype size: str + :ivar priority: Priority of the Firewall Policy Rule Collection Group resource. + :vartype priority: int + :ivar ruleCollections: Group of Firewall Policy rule collections. + :vartype ruleCollections: list["FirewallPolicyRuleCollection"] + """ + + size: str + """A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties + in MB. (ex 1.2MB).""" + priority: int + """Priority of the Firewall Policy Rule Collection Group resource.""" + ruleCollections: list["FirewallPolicyRuleCollection"] + """Group of Firewall Policy rule collections.""" + + +class FirewallPolicyRuleCollectionGroupProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the rule collection group. + + :ivar size: A read-only string that represents the size of the + FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). + :vartype size: str + :ivar priority: Priority of the Firewall Policy Rule Collection Group resource. + :vartype priority: int + :ivar ruleCollections: Group of Firewall Policy rule collections. + :vartype ruleCollections: list["FirewallPolicyRuleCollection"] + :ivar provisioningState: The provisioning state of the firewall policy rule collection group + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + size: str + """A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties + in MB. (ex 1.2MB).""" + priority: int + """Priority of the Firewall Policy Rule Collection Group resource.""" + ruleCollections: list["FirewallPolicyRuleCollection"] + """Group of Firewall Policy rule collections.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the firewall policy rule collection group resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class FirewallPolicySku(TypedDict, total=False): + """SKU of Firewall policy. + + :ivar tier: Tier of Firewall Policy. Known values are: "Standard", "Premium", and "Basic". + :vartype tier: Union[str, "FirewallPolicySkuTier"] + """ + + tier: Union[str, "FirewallPolicySkuTier"] + """Tier of Firewall Policy. Known values are: \"Standard\", \"Premium\", and \"Basic\".""" + + +class FirewallPolicySNAT(TypedDict, total=False): + """The private IP addresses/IP ranges to which traffic will not be SNAT. + + :ivar privateRanges: List of private IP addresses/IP address ranges to not be SNAT. + :vartype privateRanges: list[str] + :ivar autoLearnPrivateRanges: The operation mode for automatically learning private ranges to + not be SNAT. Known values are: "Enabled" and "Disabled". + :vartype autoLearnPrivateRanges: Union[str, "AutoLearnPrivateRangesMode"] + """ + + privateRanges: list[str] + """List of private IP addresses/IP address ranges to not be SNAT.""" + autoLearnPrivateRanges: Union[str, "AutoLearnPrivateRangesMode"] + """The operation mode for automatically learning private ranges to not be SNAT. Known values are: + \"Enabled\" and \"Disabled\".""" + + +class FirewallPolicySQL(TypedDict, total=False): + """SQL Settings in Firewall Policy. + + :ivar allowSqlRedirect: A flag to indicate if SQL Redirect traffic filtering is enabled. + Turning on the flag requires no rule using port 11000-11999. + :vartype allowSqlRedirect: bool + """ + + allowSqlRedirect: bool + """A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires + no rule using port 11000-11999.""" + + +class FirewallPolicyThreatIntelWhitelist(TypedDict, total=False): + """ThreatIntel Whitelist for Firewall Policy. + + :ivar ipAddresses: List of IP addresses for the ThreatIntel Whitelist. + :vartype ipAddresses: list[str] + :ivar fqdns: List of FQDNs for the ThreatIntel Whitelist. + :vartype fqdns: list[str] + """ + + ipAddresses: list[str] + """List of IP addresses for the ThreatIntel Whitelist.""" + fqdns: list[str] + """List of FQDNs for the ThreatIntel Whitelist.""" + + +class FirewallPolicyTransportSecurity(TypedDict, total=False): + """Configuration needed to perform TLS termination & initiation. + + :ivar certificateAuthority: The CA used for intermediate CA generation. + :vartype certificateAuthority: "FirewallPolicyCertificateAuthority" + """ + + certificateAuthority: "FirewallPolicyCertificateAuthority" + """The CA used for intermediate CA generation.""" + + +class FirstPartyServiceTag(Resource): + """First party service tag resource. + + :ivar name: Resource name. + :vartype name: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the first party service tag. + :vartype properties: "FirstPartyServiceTagPropertiesFormat" + :ivar id: The unique identifier of the resource. + :vartype id: str + :ivar type: The type of the resource. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "FirstPartyServiceTagPropertiesFormat" + """Properties of the first party service tag.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class FirstPartyServiceTagPropertiesFormat(TypedDict, total=False): + """Properties of the first party service tag. + + :ivar value: The value of the first party service tag. Required. + :vartype value: str + :ivar failedReason: The reason for failure, if any. + :vartype failedReason: str + :ivar resourceGuid: The resource GUID property of the first party service tag resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the first party service tag resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + value: Required[str] + """The value of the first party service tag. Required.""" + failedReason: str + """The reason for failure, if any.""" + resourceGuid: str + """The resource GUID property of the first party service tag resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the first party service tag resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class FlowLog(Resource): + """A flow log resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the flow log. + :vartype properties: "FlowLogPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: FlowLog resource Managed Identity. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: "FlowLogPropertiesFormat" + """Properties of the flow log.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + identity: "ManagedServiceIdentity" + """FlowLog resource Managed Identity.""" + + +class FlowLogFormatParameters(TypedDict, total=False): + """Parameters that define the flow log format. + + :ivar type: The file type of flow log. "JSON" + :vartype type: Union[str, "FlowLogFormatType"] + :ivar version: The version (revision) of the flow log. + :vartype version: int + """ + + type: Union[str, "FlowLogFormatType"] + """The file type of flow log. \"JSON\"""" + version: int + """The version (revision) of the flow log.""" + + +class FlowLogInformation(TypedDict, total=False): + """Information on the configuration of flow log and traffic analytics (optional) . + + :ivar targetResourceId: The ID of the resource to configure for flow log and traffic analytics + (optional) . Required. + :vartype targetResourceId: str + :ivar properties: Properties of the flow log. Required. + :vartype properties: "FlowLogProperties" + :ivar flowAnalyticsConfiguration: Parameters that define the configuration of traffic + analytics. + :vartype flowAnalyticsConfiguration: "TrafficAnalyticsProperties" + :ivar identity: FlowLog resource Managed Identity. + :vartype identity: "ManagedServiceIdentity" + """ + + targetResourceId: Required[str] + """The ID of the resource to configure for flow log and traffic analytics (optional) . Required.""" + properties: Required["FlowLogProperties"] + """Properties of the flow log. Required.""" + flowAnalyticsConfiguration: "TrafficAnalyticsProperties" + """Parameters that define the configuration of traffic analytics.""" + identity: "ManagedServiceIdentity" + """FlowLog resource Managed Identity.""" + + +class FlowLogProperties(TypedDict, total=False): + """Parameters that define the configuration of flow log. + + :ivar storageId: ID of the storage account which is used to store the flow log. Required. + :vartype storageId: str + :ivar enabledFilteringCriteria: Optional field to filter network traffic logs based on SrcIP, + SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all + network traffic will be logged. + :vartype enabledFilteringCriteria: str + :ivar recordTypes: Optional field to filter network traffic logs based on flow states. Value of + this field could be any comma separated combination string of letters B,C,E or D. B represents + Begin, when a flow is created. C represents Continue for an ongoing flow generated at every + five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a + flow is denied. If not specified, all network traffic will be logged. + :vartype recordTypes: str + :ivar enabled: Flag to enable/disable flow logging. Required. + :vartype enabled: bool + :ivar retentionPolicy: Parameters that define the retention policy for flow log. + :vartype retentionPolicy: "RetentionPolicyParameters" + :ivar format: Parameters that define the flow log format. + :vartype format: "FlowLogFormatParameters" + """ + + storageId: Required[str] + """ID of the storage account which is used to store the flow log. Required.""" + enabledFilteringCriteria: str + """Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, + Protocol, Encryption, Direction and Action. If not specified, all network traffic will be + logged.""" + recordTypes: str + """Optional field to filter network traffic logs based on flow states. Value of this field could + be any comma separated combination string of letters B,C,E or D. B represents Begin, when a + flow is created. C represents Continue for an ongoing flow generated at every five-minute + interval. E represents End, when a flow is terminated. D represents Deny, when a flow is + denied. If not specified, all network traffic will be logged.""" + enabled: Required[bool] + """Flag to enable/disable flow logging. Required.""" + retentionPolicy: "RetentionPolicyParameters" + """Parameters that define the retention policy for flow log.""" + format: "FlowLogFormatParameters" + """Parameters that define the flow log format.""" + + +class FlowLogPropertiesFormat(TypedDict, total=False): + """Parameters that define the configuration of flow log. + + :ivar targetResourceId: ID of network security group to which flow log will be applied. + Required. + :vartype targetResourceId: str + :ivar targetResourceGuid: Guid of network security group to which flow log will be applied. + :vartype targetResourceGuid: str + :ivar storageId: ID of the storage account which is used to store the flow log. Required. + :vartype storageId: str + :ivar enabledFilteringCriteria: Optional field to filter network traffic logs based on SrcIP, + SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all + network traffic will be logged. + :vartype enabledFilteringCriteria: str + :ivar recordTypes: Optional field to filter network traffic logs based on flow states. Value of + this field could be any comma separated combination string of letters B,C,E or D. B represents + Begin, when a flow is created. C represents Continue for an ongoing flow generated at every + five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a + flow is denied. If not specified, all network traffic will be logged. + :vartype recordTypes: str + :ivar enabled: Flag to enable/disable flow logging. + :vartype enabled: bool + :ivar retentionPolicy: Parameters that define the retention policy for flow log. + :vartype retentionPolicy: "RetentionPolicyParameters" + :ivar format: Parameters that define the flow log format. + :vartype format: "FlowLogFormatParameters" + :ivar flowAnalyticsConfiguration: Parameters that define the configuration of traffic + analytics. + :vartype flowAnalyticsConfiguration: "TrafficAnalyticsProperties" + :ivar provisioningState: The provisioning state of the flow log. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + targetResourceId: Required[str] + """ID of network security group to which flow log will be applied. Required.""" + targetResourceGuid: str + """Guid of network security group to which flow log will be applied.""" + storageId: Required[str] + """ID of the storage account which is used to store the flow log. Required.""" + enabledFilteringCriteria: str + """Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, + Protocol, Encryption, Direction and Action. If not specified, all network traffic will be + logged.""" + recordTypes: str + """Optional field to filter network traffic logs based on flow states. Value of this field could + be any comma separated combination string of letters B,C,E or D. B represents Begin, when a + flow is created. C represents Continue for an ongoing flow generated at every five-minute + interval. E represents End, when a flow is terminated. D represents Deny, when a flow is + denied. If not specified, all network traffic will be logged.""" + enabled: bool + """Flag to enable/disable flow logging.""" + retentionPolicy: "RetentionPolicyParameters" + """Parameters that define the retention policy for flow log.""" + format: "FlowLogFormatParameters" + """Parameters that define the flow log format.""" + flowAnalyticsConfiguration: "TrafficAnalyticsProperties" + """Parameters that define the configuration of traffic analytics.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the flow log. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class FlowLogStatusParameters(TypedDict, total=False): + """Parameters that define a resource to query flow log and traffic analytics (optional) status. + + :ivar targetResourceId: The target resource where getting the flow log and traffic analytics + (optional) status. Required. + :vartype targetResourceId: str + """ + + targetResourceId: Required[str] + """The target resource where getting the flow log and traffic analytics (optional) status. + Required.""" + + +class FrontendIPConfiguration(SubResourceModel): + """Frontend IP address of the load balancer. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the load balancer probe. + :vartype properties: "FrontendIPConfigurationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar zones: A list of availability zones denoting the IP allocated for the resource needs to + come from. + :vartype zones: list[str] + """ + + properties: "FrontendIPConfigurationPropertiesFormat" + """Properties of the load balancer probe.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + zones: list[str] + """A list of availability zones denoting the IP allocated for the resource needs to come from.""" + + +class FrontendIPConfigurationPropertiesFormat(TypedDict, total=False): + """Properties of Frontend IP Configuration of the load balancer. + + :ivar inboundNatRules: An array of references to inbound rules that use this frontend IP. + :vartype inboundNatRules: list["SubResource"] + :ivar inboundNatPools: An array of references to inbound pools that use this frontend IP. + :vartype inboundNatPools: list["SubResource"] + :ivar outboundRules: An array of references to outbound rules that use this frontend IP. + :vartype outboundRules: list["SubResource"] + :ivar loadBalancingRules: An array of references to load balancing rules that use this frontend + IP. + :vartype loadBalancingRules: list["SubResource"] + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The Private IP allocation method. Known values are: "Static" + and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar privateIPAddressVersion: Whether the specific ipconfiguration is IPv4 or IPv6. Default is + taken as IPv4. Known values are: "IPv4" and "IPv6". + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + :ivar publicIPAddress: The reference to the Public IP resource. + :vartype publicIPAddress: "PublicIPAddress" + :ivar publicIPPrefix: The reference to the Public IP Prefix resource. + :vartype publicIPPrefix: "SubResource" + :ivar gatewayLoadBalancer: The reference to gateway load balancer frontend IP. + :vartype gatewayLoadBalancer: "SubResource" + :ivar provisioningState: The provisioning state of the frontend IP configuration resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar ddosSettings: The DDoS protection settings associated with the frontend IP configuration. + :vartype ddosSettings: "DdosFrontendIpConfigurationSettings" + :ivar enableConnectionTracking: Enables UDP flow tracking for traffic associated with the + frontend IP configuration. When enabled, packets belonging to the same UDP flow are + consistently directed to the same backend instance. This setting applies to all associated load + balancing rules and takes precedence over rule-level enableConnectionTracking settings. + :vartype enableConnectionTracking: bool + """ + + inboundNatRules: list["SubResource"] + """An array of references to inbound rules that use this frontend IP.""" + inboundNatPools: list["SubResource"] + """An array of references to inbound pools that use this frontend IP.""" + outboundRules: list["SubResource"] + """An array of references to outbound rules that use this frontend IP.""" + loadBalancingRules: list["SubResource"] + """An array of references to load balancing rules that use this frontend IP.""" + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The Private IP allocation method. Known values are: \"Static\" and \"Dynamic\".""" + privateIPAddressVersion: Union[str, "IPVersion"] + """Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Known values + are: \"IPv4\" and \"IPv6\".""" + subnet: "Subnet" + """The reference to the subnet resource.""" + publicIPAddress: "PublicIPAddress" + """The reference to the Public IP resource.""" + publicIPPrefix: "SubResource" + """The reference to the Public IP Prefix resource.""" + gatewayLoadBalancer: "SubResource" + """The reference to gateway load balancer frontend IP.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the frontend IP configuration resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + ddosSettings: "DdosFrontendIpConfigurationSettings" + """The DDoS protection settings associated with the frontend IP configuration.""" + enableConnectionTracking: bool + """Enables UDP flow tracking for traffic associated with the frontend IP configuration. When + enabled, packets belonging to the same UDP flow are consistently directed to the same backend + instance. This setting applies to all associated load balancing rules and takes precedence over + rule-level enableConnectionTracking settings.""" + + +class GatewayCustomBgpIpAddressIpConfiguration(TypedDict, total=False): + """GatewayCustomBgpIpAddressIpConfiguration for a virtual network gateway connection. + + :ivar ipConfigurationId: The IpconfigurationId of ipconfiguration which belongs to gateway. + Required. + :vartype ipConfigurationId: str + :ivar customBgpIpAddress: The custom BgpPeeringAddress which belongs to IpconfigurationId. + Required. + :vartype customBgpIpAddress: str + """ + + ipConfigurationId: Required[str] + """The IpconfigurationId of ipconfiguration which belongs to gateway. Required.""" + customBgpIpAddress: Required[str] + """The custom BgpPeeringAddress which belongs to IpconfigurationId. Required.""" + + +class GatewayLoadBalancerTunnelInterface(TypedDict, total=False): + """Gateway load balancer tunnel interface of a load balancer backend address pool. + + :ivar port: Port of gateway load balancer tunnel interface. + :vartype port: int + :ivar identifier: Identifier of gateway load balancer tunnel interface. + :vartype identifier: int + :ivar protocol: Protocol of gateway load balancer tunnel interface. Known values are: "None", + "Native", and "VXLAN". + :vartype protocol: Union[str, "GatewayLoadBalancerTunnelProtocol"] + :ivar type: Traffic type of gateway load balancer tunnel interface. Known values are: "None", + "Internal", and "External". + :vartype type: Union[str, "GatewayLoadBalancerTunnelInterfaceType"] + """ + + port: int + """Port of gateway load balancer tunnel interface.""" + identifier: int + """Identifier of gateway load balancer tunnel interface.""" + protocol: Union[str, "GatewayLoadBalancerTunnelProtocol"] + """Protocol of gateway load balancer tunnel interface. Known values are: \"None\", \"Native\", and + \"VXLAN\".""" + type: Union[str, "GatewayLoadBalancerTunnelInterfaceType"] + """Traffic type of gateway load balancer tunnel interface. Known values are: \"None\", + \"Internal\", and \"External\".""" + + +class GenerateExpressRouteLagsLOARequest(TypedDict, total=False): + """The customer name to be printed on a letter of authorization for ExpressRouteLag. + + :ivar customerName: The customer name. Required. + :vartype customerName: str + :ivar members: The list of member names for which LOA should be generated. + :vartype members: list[str] + """ + + customerName: Required[str] + """The customer name. Required.""" + members: list[str] + """The list of member names for which LOA should be generated.""" + + +class GenerateExpressRoutePortsLOARequest(TypedDict, total=False): + """The customer name to be printed on a letter of authorization. + + :ivar customerName: The customer name. Required. + :vartype customerName: str + """ + + customerName: Required[str] + """The customer name. Required.""" + + +class GetInboundRoutesParameters(TypedDict, total=False): + """The parameters specifying the connection resource whose inbound routes are being requested. + + :ivar resourceUri: The connection resource whose inbound routes are being requested. + :vartype resourceUri: str + :ivar connectionType: The type of the specified connection resource like + ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. + :vartype connectionType: str + """ + + resourceUri: str + """The connection resource whose inbound routes are being requested.""" + connectionType: str + """The type of the specified connection resource like ExpressRouteConnection, + HubVirtualNetworkConnection, VpnConnection and P2SConnection.""" + + +class GetOutboundRoutesParameters(TypedDict, total=False): + """The parameters specifying the connection resource whose outbound routes are being requested. + + :ivar resourceUri: The connection resource whose outbound routes are being requested. + :vartype resourceUri: str + :ivar connectionType: The type of the specified connection resource like + ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. + :vartype connectionType: str + """ + + resourceUri: str + """The connection resource whose outbound routes are being requested.""" + connectionType: str + """The type of the specified connection resource like ExpressRouteConnection, + HubVirtualNetworkConnection, VpnConnection and P2SConnection.""" + + +class GetVpnSitesConfigurationRequest(TypedDict, total=False): + """List of Vpn-Sites. + + :ivar vpnSites: List of resource-ids of the vpn-sites for which config is to be downloaded. + :vartype vpnSites: list[str] + :ivar outputBlobSasUrl: The sas-url to download the configurations for vpn-sites. Required. + :vartype outputBlobSasUrl: str + """ + + vpnSites: list[str] + """List of resource-ids of the vpn-sites for which config is to be downloaded.""" + outputBlobSasUrl: Required[str] + """The sas-url to download the configurations for vpn-sites. Required.""" + + +class GroupByUserSession(TypedDict, total=False): + """Define user session identifier group by clauses. + + :ivar groupByVariables: List of group by clause variables. Required. + :vartype groupByVariables: list["GroupByVariable"] + """ + + groupByVariables: Required[list["GroupByVariable"]] + """List of group by clause variables. Required.""" + + +class GroupByVariable(TypedDict, total=False): + """Define user session group by clause variables. + + :ivar variableName: User Session clause variable. Required. Known values are: "ClientAddr", + "GeoLocation", "None", "ClientAddrXFFHeader", and "GeoLocationXFFHeader". + :vartype variableName: Union[str, "ApplicationGatewayFirewallUserSessionVariable"] + """ + + variableName: Required[Union[str, "ApplicationGatewayFirewallUserSessionVariable"]] + """User Session clause variable. Required. Known values are: \"ClientAddr\", \"GeoLocation\", + \"None\", \"ClientAddrXFFHeader\", and \"GeoLocationXFFHeader\".""" + + +class HeaderValueMatcher(TypedDict, total=False): + """An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a + specific header when multiple headers with the same name exist. Currently supported for + Set-Cookie Response header only. For more details, visit `https://aka.ms/appgwheadercrud + `_. + + :ivar pattern: The pattern, either fixed string or regular expression, that evaluates if a + header value should be selected for rewrite. + :vartype pattern: str + :ivar ignoreCase: Setting this parameter to truth value with force the pattern to do a case + in-sensitive comparison. + :vartype ignoreCase: bool + :ivar negate: Setting this value as truth will force to check the negation of the condition + given by the user in the pattern field. + :vartype negate: bool + """ + + pattern: str + """The pattern, either fixed string or regular expression, that evaluates if a header value should + be selected for rewrite.""" + ignoreCase: bool + """Setting this parameter to truth value with force the pattern to do a case in-sensitive + comparison.""" + negate: bool + """Setting this value as truth will force to check the negation of the condition given by the user + in the pattern field.""" + + +class HTTPConfiguration(TypedDict, total=False): + """HTTP configuration of the connectivity check. + + :ivar method: HTTP method. "Get" + :vartype method: Union[str, "HTTPMethod"] + :ivar headers: List of HTTP headers. + :vartype headers: list["HTTPHeader"] + :ivar validStatusCodes: Valid status codes. + :vartype validStatusCodes: list[int] + """ + + method: Union[str, "HTTPMethod"] + """HTTP method. \"Get\"""" + headers: list["HTTPHeader"] + """List of HTTP headers.""" + validStatusCodes: list[int] + """Valid status codes.""" + + +class HTTPHeader(TypedDict, total=False): + """The HTTP header. + + :ivar name: The name in HTTP header. + :vartype name: str + :ivar value: The value in HTTP header. + :vartype value: str + """ + + name: str + """The name in HTTP header.""" + value: str + """The value in HTTP header.""" + + +class Hub(TypedDict, total=False): + """Hub Item. + + :ivar resourceId: Resource Id. + :vartype resourceId: str + :ivar resourceType: Resource Type. + :vartype resourceType: str + """ + + resourceId: str + """Resource Id.""" + resourceType: str + """Resource Type.""" + + +class HubIPAddresses(TypedDict, total=False): + """IP addresses associated with azure firewall. + + :ivar publicIPs: Public IP addresses associated with azure firewall. + :vartype publicIPs: "HubPublicIPAddresses" + :ivar privateIPAddress: Private IP Address associated with azure firewall. + :vartype privateIPAddress: str + """ + + publicIPs: "HubPublicIPAddresses" + """Public IP addresses associated with azure firewall.""" + privateIPAddress: str + """Private IP Address associated with azure firewall.""" + + +class HubIpConfiguration(SubResourceModel): + """IpConfigurations. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the Virtual Hub IPConfigurations. + :vartype properties: "HubIPConfigurationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "HubIPConfigurationPropertiesFormat" + """The properties of the Virtual Hub IPConfigurations.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class HubIPConfigurationPropertiesFormat(TypedDict, total=False): + """Properties of IP configuration. + + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + :ivar publicIPAddress: The reference to the public IP resource. + :vartype publicIPAddress: "PublicIPAddress" + :ivar provisioningState: The provisioning state of the IP configuration resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "Subnet" + """The reference to the subnet resource.""" + publicIPAddress: "PublicIPAddress" + """The reference to the public IP resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the IP configuration resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class HubPublicIPAddresses(TypedDict, total=False): + """Public IP addresses associated with azure firewall. + + :ivar addresses: The list of Public IP addresses associated with azure firewall or IP addresses + to be retained. + :vartype addresses: list["AzureFirewallPublicIPAddress"] + :ivar count: The number of Public IP addresses associated with azure firewall. + :vartype count: int + """ + + addresses: list["AzureFirewallPublicIPAddress"] + """The list of Public IP addresses associated with azure firewall or IP addresses to be retained.""" + count: int + """The number of Public IP addresses associated with azure firewall.""" + + +class HubRoute(TypedDict, total=False): + """RouteTable route. + + :ivar name: The name of the Route that is unique within a RouteTable. This name can be used to + access this route. Required. + :vartype name: str + :ivar destinationType: The type of destinations (eg: CIDR, ResourceId, Service). Required. + :vartype destinationType: str + :ivar destinations: List of all destinations. Required. + :vartype destinations: list[str] + :ivar nextHopType: The type of next hop (eg: ResourceId). Required. + :vartype nextHopType: str + :ivar nextHop: NextHop resource ID. Required. + :vartype nextHop: str + """ + + name: Required[str] + """The name of the Route that is unique within a RouteTable. This name can be used to access this + route. Required.""" + destinationType: Required[str] + """The type of destinations (eg: CIDR, ResourceId, Service). Required.""" + destinations: Required[list[str]] + """List of all destinations. Required.""" + nextHopType: Required[str] + """The type of next hop (eg: ResourceId). Required.""" + nextHop: Required[str] + """NextHop resource ID. Required.""" + + +class HubRouteTable(SubResourceModel): + """RouteTable resource in a virtual hub. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the RouteTable resource. + :vartype properties: "HubRouteTableProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "HubRouteTableProperties" + """Properties of the RouteTable resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class HubRouteTableProperties(TypedDict, total=False): + """Parameters for RouteTable. + + :ivar routes: List of all routes. + :vartype routes: list["HubRoute"] + :ivar labels: List of labels associated with this route table. + :vartype labels: list[str] + :ivar associatedConnections: List of all connections associated with this route table. + :vartype associatedConnections: list[str] + :ivar propagatingConnections: List of all connections that advertise to this route table. + :vartype propagatingConnections: list[str] + :ivar provisioningState: The provisioning state of the RouteTable resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + routes: list["HubRoute"] + """List of all routes.""" + labels: list[str] + """List of labels associated with this route table.""" + associatedConnections: list[str] + """List of all connections associated with this route table.""" + propagatingConnections: list[str] + """List of all connections that advertise to this route table.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the RouteTable resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class HubVirtualNetworkConnection(SubResource): + """HubVirtualNetworkConnection Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the hub virtual network connection. + :vartype properties: "HubVirtualNetworkConnectionProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "HubVirtualNetworkConnectionProperties" + """Properties of the hub virtual network connection.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class HubVirtualNetworkConnectionProperties(TypedDict, total=False): + """Parameters for HubVirtualNetworkConnection. + + :ivar remoteVirtualNetwork: Reference to the remote virtual network. + :vartype remoteVirtualNetwork: "SubResource" + :ivar allowHubToRemoteVnetTransit: Deprecated: VirtualHub to RemoteVnet transit to enabled or + not. + :vartype allowHubToRemoteVnetTransit: bool + :ivar allowRemoteVnetToUseHubVnetGateways: Deprecated: Allow RemoteVnet to use Virtual Hub's + gateways. + :vartype allowRemoteVnetToUseHubVnetGateways: bool + :ivar connectionPolicy: The resource id of the ConnectionPolicy associated with this + HubVirtualNetworkConnection. + :vartype connectionPolicy: "SubResource" + :ivar enableInternetSecurity: Enable internet security. + :vartype enableInternetSecurity: bool + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + :ivar enableOnlyIpv6Peering: Enable Only IPv6 Peering for this connection. Known values are: + "Enabled" and "Disabled". + :vartype enableOnlyIpv6Peering: Union[str, "EnableOnlyIpv6PeeringState"] + :ivar provisioningState: The provisioning state of the hub virtual network connection resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + remoteVirtualNetwork: "SubResource" + """Reference to the remote virtual network.""" + allowHubToRemoteVnetTransit: bool + """Deprecated: VirtualHub to RemoteVnet transit to enabled or not.""" + allowRemoteVnetToUseHubVnetGateways: bool + """Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.""" + connectionPolicy: "SubResource" + """The resource id of the ConnectionPolicy associated with this HubVirtualNetworkConnection.""" + enableInternetSecurity: bool + """Enable internet security.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + enableOnlyIpv6Peering: Union[str, "EnableOnlyIpv6PeeringState"] + """Enable Only IPv6 Peering for this connection. Known values are: \"Enabled\" and \"Disabled\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the hub virtual network connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class IDPSQueryObject(TypedDict, total=False): + """Will describe the query to run against the IDPS signatures DB. + + :ivar filters: Contain all filters names and values. + :vartype filters: list["FilterItems"] + :ivar search: Search term in all columns. + :vartype search: str + :ivar orderBy: Column to sort response by. + :vartype orderBy: "OrderBy" + :ivar resultsPerPage: The number of the results to return in each page. + :vartype resultsPerPage: int + :ivar skip: The number of records matching the filter to skip. + :vartype skip: int + """ + + filters: list["FilterItems"] + """Contain all filters names and values.""" + search: str + """Search term in all columns.""" + orderBy: "OrderBy" + """Column to sort response by.""" + resultsPerPage: int + """The number of the results to return in each page.""" + skip: int + """The number of records matching the filter to skip.""" + + +class InboundNatPool(SubResource): + """Inbound NAT pool of the load balancer. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of load balancer inbound nat pool. + :vartype properties: "InboundNatPoolPropertiesFormat" + :ivar name: The name of the resource that is unique within the set of inbound NAT pools used by + the load balancer. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Type of the resource. + :vartype type: str + """ + + properties: "InboundNatPoolPropertiesFormat" + """Properties of load balancer inbound nat pool.""" + name: str + """The name of the resource that is unique within the set of inbound NAT pools used by the load + balancer. This name can be used to access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Type of the resource.""" + + +class InboundNatPoolPropertiesFormat(TypedDict, total=False): + """Properties of Inbound NAT pool. + + :ivar frontendIPConfiguration: A reference to frontend IP addresses. + :vartype frontendIPConfiguration: "SubResource" + :ivar protocol: The reference to the transport protocol used by the inbound NAT pool. Required. + Known values are: "Udp", "Tcp", "All", and "Quic". + :vartype protocol: Union[str, "TransportProtocol"] + :ivar frontendPortRangeStart: The first port number in the range of external ports that will be + used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range + between 1 and 65534. Required. + :vartype frontendPortRangeStart: int + :ivar frontendPortRangeEnd: The last port number in the range of external ports that will be + used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range + between 1 and 65535. Required. + :vartype frontendPortRangeEnd: int + :ivar backendPort: The port used for internal connections on the endpoint. Acceptable values + are between 1 and 65535. Required. + :vartype backendPort: int + :ivar idleTimeoutInMinutes: The timeout for the TCP idle connection. The value can be set + between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the + protocol is set to TCP. + :vartype idleTimeoutInMinutes: int + :ivar enableFloatingIP: Configures a virtual machine's endpoint for the floating IP capability + required to configure a SQL AlwaysOn Availability Group. This setting is required when using + the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you + create the endpoint. + :vartype enableFloatingIP: bool + :ivar enableTcpReset: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected + connection termination. This element is only used when the protocol is set to TCP. + :vartype enableTcpReset: bool + :ivar provisioningState: The provisioning state of the inbound NAT pool resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + frontendIPConfiguration: "SubResource" + """A reference to frontend IP addresses.""" + protocol: Required[Union[str, "TransportProtocol"]] + """The reference to the transport protocol used by the inbound NAT pool. Required. Known values + are: \"Udp\", \"Tcp\", \"All\", and \"Quic\".""" + frontendPortRangeStart: Required[int] + """The first port number in the range of external ports that will be used to provide Inbound Nat + to NICs associated with a load balancer. Acceptable values range between 1 and 65534. Required.""" + frontendPortRangeEnd: Required[int] + """The last port number in the range of external ports that will be used to provide Inbound Nat to + NICs associated with a load balancer. Acceptable values range between 1 and 65535. Required.""" + backendPort: Required[int] + """The port used for internal connections on the endpoint. Acceptable values are between 1 and + 65535. Required.""" + idleTimeoutInMinutes: int + """The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The + default value is 4 minutes. This element is only used when the protocol is set to TCP.""" + enableFloatingIP: bool + """Configures a virtual machine's endpoint for the floating IP capability required to configure a + SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn + Availability Groups in SQL server. This setting can't be changed after you create the endpoint.""" + enableTcpReset: bool + """Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. + This element is only used when the protocol is set to TCP.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the inbound NAT pool resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class InboundNatRule(SubResourceModel): + """Inbound NAT rule of the load balancer. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of load balancer inbound NAT rule. + :vartype properties: "InboundNatRulePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "InboundNatRulePropertiesFormat" + """Properties of load balancer inbound NAT rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class InboundNatRulePropertiesFormat(TypedDict, total=False): + """Properties of the inbound NAT rule. + + :ivar frontendIPConfiguration: A reference to frontend IP addresses. + :vartype frontendIPConfiguration: "SubResource" + :ivar backendIPConfiguration: A reference to a private IP address defined on a network + interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations + is forwarded to the backend IP. + :vartype backendIPConfiguration: "NetworkInterfaceIPConfiguration" + :ivar protocol: The reference to the transport protocol used by the load balancing rule. Known + values are: "Udp", "Tcp", "All", and "Quic". + :vartype protocol: Union[str, "TransportProtocol"] + :ivar frontendPort: The port for the external endpoint. Port numbers for each rule must be + unique within the Load Balancer. Acceptable values range from 1 to 65534. + :vartype frontendPort: int + :ivar backendPort: The port used for the internal endpoint. Acceptable values range from 1 to + 65535. + :vartype backendPort: int + :ivar idleTimeoutInMinutes: The timeout for the TCP idle connection. The value can be set + between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the + protocol is set to TCP. + :vartype idleTimeoutInMinutes: int + :ivar enableFloatingIP: Configures a virtual machine's endpoint for the floating IP capability + required to configure a SQL AlwaysOn Availability Group. This setting is required when using + the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you + create the endpoint. + :vartype enableFloatingIP: bool + :ivar enableTcpReset: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected + connection termination. This element is only used when the protocol is set to TCP. + :vartype enableTcpReset: bool + :ivar frontendPortRangeStart: The port range start for the external endpoint. This property is + used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule + port mappings will be created for each backend address from BackendAddressPool. Acceptable + values range from 1 to 65534. + :vartype frontendPortRangeStart: int + :ivar frontendPortRangeEnd: The port range end for the external endpoint. This property is used + together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port + mappings will be created for each backend address from BackendAddressPool. Acceptable values + range from 1 to 65534. + :vartype frontendPortRangeEnd: int + :ivar backendAddressPool: A reference to backendAddressPool resource. + :vartype backendAddressPool: "SubResource" + :ivar provisioningState: The provisioning state of the inbound NAT rule resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + frontendIPConfiguration: "SubResource" + """A reference to frontend IP addresses.""" + backendIPConfiguration: "NetworkInterfaceIPConfiguration" + """A reference to a private IP address defined on a network interface of a VM. Traffic sent to the + frontend port of each of the frontend IP configurations is forwarded to the backend IP.""" + protocol: Union[str, "TransportProtocol"] + """The reference to the transport protocol used by the load balancing rule. Known values are: + \"Udp\", \"Tcp\", \"All\", and \"Quic\".""" + frontendPort: int + """The port for the external endpoint. Port numbers for each rule must be unique within the Load + Balancer. Acceptable values range from 1 to 65534.""" + backendPort: int + """The port used for the internal endpoint. Acceptable values range from 1 to 65535.""" + idleTimeoutInMinutes: int + """The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The + default value is 4 minutes. This element is only used when the protocol is set to TCP.""" + enableFloatingIP: bool + """Configures a virtual machine's endpoint for the floating IP capability required to configure a + SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn + Availability Groups in SQL server. This setting can't be changed after you create the endpoint.""" + enableTcpReset: bool + """Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. + This element is only used when the protocol is set to TCP.""" + frontendPortRangeStart: int + """The port range start for the external endpoint. This property is used together with + BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be + created for each backend address from BackendAddressPool. Acceptable values range from 1 to + 65534.""" + frontendPortRangeEnd: int + """The port range end for the external endpoint. This property is used together with + BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will + be created for each backend address from BackendAddressPool. Acceptable values range from 1 to + 65534.""" + backendAddressPool: "SubResource" + """A reference to backendAddressPool resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the inbound NAT rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class InboundSecurityRule(SubResourceModel): + """NVA Inbound Security Rule resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the Inbound Security Rules. + :vartype properties: "InboundSecurityRuleProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "InboundSecurityRuleProperties" + """The properties of the Inbound Security Rules.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class InboundSecurityRuleProperties(TypedDict, total=False): + """Properties of the Inbound Security Rules resource. + + :ivar ruleType: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only + creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. Known values are: + "AutoExpire" and "Permanent". + :vartype ruleType: Union[str, "InboundSecurityRuleType"] + :ivar rules: List of allowed rules. + :vartype rules: list["InboundSecurityRules"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + ruleType: Union[str, "InboundSecurityRuleType"] + """Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG + rules. Permanent Rule creates NSG rule and SLB LB Rule. Known values are: \"AutoExpire\" and + \"Permanent\".""" + rules: list["InboundSecurityRules"] + """List of allowed rules.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class InboundSecurityRules(TypedDict, total=False): + """Properties of the Inbound Security Rules resource. + + :ivar name: Name of the rule. + :vartype name: str + :ivar protocol: Protocol. This should be either TCP or UDP. Known values are: "TCP" and "UDP". + :vartype protocol: Union[str, "InboundSecurityRulesProtocol"] + :ivar sourceAddressPrefix: The CIDR or source IP range. + :vartype sourceAddressPrefix: str + :ivar destinationPortRange: NVA port ranges to be opened up. One needs to provide specific + ports. + :vartype destinationPortRange: int + :ivar destinationPortRanges: NVA port ranges to be opened up. One can provide a range of ports. + Allowed port value between 0 and 65535. + :vartype destinationPortRanges: list[str] + :ivar appliesOn: Public IP name in case of Permanent Rule type & Interface Name in case of Auto + Expire Rule type. + :vartype appliesOn: list[str] + """ + + name: str + """Name of the rule.""" + protocol: Union[str, "InboundSecurityRulesProtocol"] + """Protocol. This should be either TCP or UDP. Known values are: \"TCP\" and \"UDP\".""" + sourceAddressPrefix: str + """The CIDR or source IP range.""" + destinationPortRange: int + """NVA port ranges to be opened up. One needs to provide specific ports.""" + destinationPortRanges: list[str] + """NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 + and 65535.""" + appliesOn: list[str] + """Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule + type.""" + + +class IntentContent(TypedDict, total=False): + """Intent information. + + :ivar description: + :vartype description: str + :ivar sourceResourceId: Source resource id of the intent. Required. + :vartype sourceResourceId: str + :ivar destinationResourceId: Destination resource id of the intent. Required. + :vartype destinationResourceId: str + :ivar ipTraffic: IP traffic information. Required. + :vartype ipTraffic: "IPTraffic" + """ + + description: str + sourceResourceId: Required[str] + """Source resource id of the intent. Required.""" + destinationResourceId: Required[str] + """Destination resource id of the intent. Required.""" + ipTraffic: Required["IPTraffic"] + """IP traffic information. Required.""" + + +class InterconnectGroup(Resource): + """An interconnect group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the interconnect group. + :vartype properties: "InterconnectGroupPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "InterconnectGroupPropertiesFormat" + """Properties of the interconnect group.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class InterconnectGroupPropertiesFormat(TypedDict, total=False): + """Interconnect group properties. + + :ivar scope: Scope of interconnect group resource. Known values are: "None" and "InfiniBand". + :vartype scope: Union[str, "InterconnectGroupScope"] + :ivar subgroups: A list of subgroups of the interconnect group. + :vartype subgroups: list["Subgroup"] + :ivar provisioningState: The provisioning state of the interconnect group resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: The resource GUID property of the interconnect group resource. + :vartype resourceGuid: str + :ivar subgroupProfile: The subgroup profile of the interconnect group resource. Required. + :vartype subgroupProfile: "SubgroupProfile" + """ + + scope: Union[str, "InterconnectGroupScope"] + """Scope of interconnect group resource. Known values are: \"None\" and \"InfiniBand\".""" + subgroups: list["Subgroup"] + """A list of subgroups of the interconnect group.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the interconnect group resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """The resource GUID property of the interconnect group resource.""" + subgroupProfile: Required["SubgroupProfile"] + """The subgroup profile of the interconnect group resource. Required.""" + + +class InternetIngressPublicIpsProperties(TypedDict, total=False): + """Internet Ingress Public Ip Properties. + + :ivar id: Resource Uri of Public Ip. + :vartype id: str + """ + + id: str + """Resource Uri of Public Ip.""" + + +class IpAllocation(Resource): + """IpAllocation resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the IpAllocation. + :vartype properties: "IpAllocationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "IpAllocationPropertiesFormat" + """Properties of the IpAllocation.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class IpAllocationPropertiesFormat(TypedDict, total=False): + """Properties of the IpAllocation. + + :ivar subnet: The Subnet that using the prefix of this IpAllocation resource. + :vartype subnet: "SubResource" + :ivar virtualNetwork: The VirtualNetwork that using the prefix of this IpAllocation resource. + :vartype virtualNetwork: "SubResource" + :ivar type: The type for the IpAllocation. Known values are: "Undefined" and "Hypernet". + :vartype type: Union[str, "IpAllocationType"] + :ivar prefix: The address prefix for the IpAllocation. + :vartype prefix: str + :ivar prefixLength: The address prefix length for the IpAllocation. + :vartype prefixLength: int + :ivar prefixType: The address prefix Type for the IpAllocation. Known values are: "IPv4" and + "IPv6". + :vartype prefixType: Union[str, "IPVersion"] + :ivar ipamAllocationId: The IPAM allocation ID. + :vartype ipamAllocationId: str + :ivar allocationTags: IpAllocation tags. + :vartype allocationTags: dict[str, str] + """ + + subnet: "SubResource" + """The Subnet that using the prefix of this IpAllocation resource.""" + virtualNetwork: "SubResource" + """The VirtualNetwork that using the prefix of this IpAllocation resource.""" + type: Union[str, "IpAllocationType"] + """The type for the IpAllocation. Known values are: \"Undefined\" and \"Hypernet\".""" + prefix: str + """The address prefix for the IpAllocation.""" + prefixLength: Optional[int] + """The address prefix length for the IpAllocation.""" + prefixType: Union[str, "IPVersion"] + """The address prefix Type for the IpAllocation. Known values are: \"IPv4\" and \"IPv6\".""" + ipamAllocationId: str + """The IPAM allocation ID.""" + allocationTags: dict[str, str] + """IpAllocation tags.""" + + +class IpamPool(CommonTrackedResource): + """Instance of Pool resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Properties of IpamPool resource properties which are specific to the Pool + resource. Required. + :vartype properties: "IpamPoolProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Required["IpamPoolProperties"] + """Properties of IpamPool resource properties which are specific to the Pool resource. Required.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class IpamPoolPrefixAllocation(TypedDict, total=False): + """IpamPool prefix allocation reference. + + :ivar pool: + :vartype pool: "IpamPoolPrefixAllocationPool" + :ivar numberOfIpAddresses: Number of IP addresses to allocate. + :vartype numberOfIpAddresses: str + :ivar allocatedAddressPrefixes: List of assigned IP address prefixes in the IpamPool of the + associated resource. + :vartype allocatedAddressPrefixes: list[str] + """ + + pool: "IpamPoolPrefixAllocationPool" + numberOfIpAddresses: str + """Number of IP addresses to allocate.""" + allocatedAddressPrefixes: list[str] + """List of assigned IP address prefixes in the IpamPool of the associated resource.""" + + +class IpamPoolPrefixAllocationPool(TypedDict, total=False): + """IpamPoolPrefixAllocationPool. + + :ivar id: Resource id of the associated Azure IpamPool resource. + :vartype id: str + """ + + id: str + """Resource id of the associated Azure IpamPool resource.""" + + +class IpamPoolProperties(TypedDict, total=False): + """Properties of IpamPool resource properties which are specific to the Pool resource. + + :ivar description: + :vartype description: str + :ivar displayName: String representing a friendly name for the resource. + :vartype displayName: str + :ivar ipAddressType: List of IP address type for the IpamPool. + :vartype ipAddressType: list[Union[str, "IpType"]] + :ivar parentPoolName: String representing parent IpamPool resource name. If empty the IpamPool + will be a root pool. + :vartype parentPoolName: str + :ivar addressPrefixes: List of IP address prefixes of the resource. Required. + :vartype addressPrefixes: list[str] + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + displayName: str + """String representing a friendly name for the resource.""" + ipAddressType: list[Union[str, "IpType"]] + """List of IP address type for the IpamPool.""" + parentPoolName: str + """String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.""" + addressPrefixes: Required[list[str]] + """List of IP address prefixes of the resource. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + + +class IpamPoolUpdate(TypedDict, total=False): + """Represents the IpamPool update API request interface. + + :ivar tags: Dictionary of . + :vartype tags: dict[str, str] + :ivar properties: Represents the IpamPool update properties. + :vartype properties: "IpamPoolUpdateProperties" + """ + + tags: dict[str, str] + """Dictionary of .""" + properties: "IpamPoolUpdateProperties" + """Represents the IpamPool update properties.""" + + +class IpamPoolUpdateProperties(TypedDict, total=False): + """Represents the IpamPool update properties. + + :ivar description: + :vartype description: str + :ivar displayName: String representing a friendly name for the resource. + :vartype displayName: str + """ + + description: str + displayName: str + """String representing a friendly name for the resource.""" + + +class IPConfiguration(SubResource): + """IP configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the IP configuration. + :vartype properties: "IPConfigurationPropertiesFormat" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "IPConfigurationPropertiesFormat" + """Properties of the IP configuration.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class IPConfigurationBgpPeeringAddress(TypedDict, total=False): + """Properties of IPConfigurationBgpPeeringAddress. + + :ivar ipconfigurationId: The ID of IP configuration which belongs to gateway. + :vartype ipconfigurationId: str + :ivar defaultBgpIpAddresses: The list of default BGP peering addresses which belong to IP + configuration. + :vartype defaultBgpIpAddresses: list[str] + :ivar customBgpIpAddresses: The list of custom BGP peering addresses which belong to IP + configuration. + :vartype customBgpIpAddresses: list[str] + :ivar tunnelIpAddresses: The list of tunnel public IP addresses which belong to IP + configuration. + :vartype tunnelIpAddresses: list[str] + """ + + ipconfigurationId: str + """The ID of IP configuration which belongs to gateway.""" + defaultBgpIpAddresses: list[str] + """The list of default BGP peering addresses which belong to IP configuration.""" + customBgpIpAddresses: list[str] + """The list of custom BGP peering addresses which belong to IP configuration.""" + tunnelIpAddresses: list[str] + """The list of tunnel public IP addresses which belong to IP configuration.""" + + +class IPConfigurationProfile(SubResource): + """IP configuration profile child resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the IP configuration profile. + :vartype properties: "IPConfigurationProfilePropertiesFormat" + :ivar name: The name of the resource. This name can be used to access the resource. + :vartype name: str + :ivar type: Sub Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "IPConfigurationProfilePropertiesFormat" + """Properties of the IP configuration profile.""" + name: str + """The name of the resource. This name can be used to access the resource.""" + type: str + """Sub Resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class IPConfigurationProfilePropertiesFormat(TypedDict, total=False): + """IP configuration profile properties. + + :ivar subnet: The reference to the subnet resource to create a container network interface ip + configuration. + :vartype subnet: "Subnet" + :ivar provisioningState: The provisioning state of the IP configuration profile resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + subnet: "Subnet" + """The reference to the subnet resource to create a container network interface ip configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the IP configuration profile resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class IPConfigurationPropertiesFormat(TypedDict, total=False): + """Properties of IP configuration. + + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + :ivar publicIPAddress: The reference to the public IP resource. + :vartype publicIPAddress: "PublicIPAddress" + :ivar provisioningState: The provisioning state of the IP configuration resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "Subnet" + """The reference to the subnet resource.""" + publicIPAddress: "PublicIPAddress" + """The reference to the public IP resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the IP configuration resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class IpGroup(Resource): + """The IpGroups resource information. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the IpGroups. + :vartype properties: "IpGroupPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "IpGroupPropertiesFormat" + """Properties of the IpGroups.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class IpGroupPropertiesFormat(TypedDict, total=False): + """The IpGroups property information. + + :ivar provisioningState: The provisioning state of the IpGroups resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar ipAddresses: IpAddresses/IpAddressPrefixes in the IpGroups resource. + :vartype ipAddresses: list[str] + :ivar firewalls: List of references to Firewall resources that this IpGroups is associated + with. + :vartype firewalls: list["SubResource"] + :ivar firewallPolicies: List of references to Firewall Policies resources that this IpGroups is + associated with. + :vartype firewallPolicies: list["SubResource"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the IpGroups resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + ipAddresses: list[str] + """IpAddresses/IpAddressPrefixes in the IpGroups resource.""" + firewalls: list["SubResource"] + """List of references to Firewall resources that this IpGroups is associated with.""" + firewallPolicies: list["SubResource"] + """List of references to Firewall Policies resources that this IpGroups is associated with.""" + + +class IPRule(TypedDict, total=False): + """IPRule. + + :ivar addressPrefix: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + :vartype addressPrefix: str + """ + + addressPrefix: str + """Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.""" + + +class IpsecPolicy(TypedDict, total=False): + """An IPSec Policy configuration for a virtual network gateway connection. + + :ivar saLifeTimeSeconds: The IPSec Security Association (also called Quick Mode or Phase 2 SA) + lifetime in seconds for a site to site VPN tunnel. Required. + :vartype saLifeTimeSeconds: int + :ivar saDataSizeKilobytes: The IPSec Security Association (also called Quick Mode or Phase 2 + SA) payload size in KB for a site to site VPN tunnel. Required. + :vartype saDataSizeKilobytes: int + :ivar ipsecEncryption: The IPSec encryption algorithm (IKE phase 1). Required. Known values + are: "None", "DES", "DES3", "AES128", "AES192", "AES256", "GCMAES128", "GCMAES192", and + "GCMAES256". + :vartype ipsecEncryption: Union[str, "IpsecEncryption"] + :ivar ipsecIntegrity: The IPSec integrity algorithm (IKE phase 1). Required. Known values are: + "MD5", "SHA1", "SHA256", "GCMAES128", "GCMAES192", and "GCMAES256". + :vartype ipsecIntegrity: Union[str, "IpsecIntegrity"] + :ivar ikeEncryption: The IKE encryption algorithm (IKE phase 2). Required. Known values are: + "DES", "DES3", "AES128", "AES192", "AES256", "GCMAES256", and "GCMAES128". + :vartype ikeEncryption: Union[str, "IkeEncryption"] + :ivar ikeIntegrity: The IKE integrity algorithm (IKE phase 2). Required. Known values are: + "MD5", "SHA1", "SHA256", "SHA384", "GCMAES256", and "GCMAES128". + :vartype ikeIntegrity: Union[str, "IkeIntegrity"] + :ivar dhGroup: The DH Group used in IKE Phase 1 for initial SA. Required. Known values are: + "None", "DHGroup1", "DHGroup2", "DHGroup14", "DHGroup2048", "ECP256", "ECP384", and + "DHGroup24". + :vartype dhGroup: Union[str, "DhGroup"] + :ivar pfsGroup: The Pfs Group used in IKE Phase 2 for new child SA. Required. Known values are: + "None", "PFS1", "PFS2", "PFS2048", "ECP256", "ECP384", "PFS24", "PFS14", and "PFSMM". + :vartype pfsGroup: Union[str, "PfsGroup"] + """ + + saLifeTimeSeconds: Required[int] + """The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a + site to site VPN tunnel. Required.""" + saDataSizeKilobytes: Required[int] + """The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a + site to site VPN tunnel. Required.""" + ipsecEncryption: Required[Union[str, "IpsecEncryption"]] + """The IPSec encryption algorithm (IKE phase 1). Required. Known values are: \"None\", \"DES\", + \"DES3\", \"AES128\", \"AES192\", \"AES256\", \"GCMAES128\", \"GCMAES192\", and \"GCMAES256\".""" + ipsecIntegrity: Required[Union[str, "IpsecIntegrity"]] + """The IPSec integrity algorithm (IKE phase 1). Required. Known values are: \"MD5\", \"SHA1\", + \"SHA256\", \"GCMAES128\", \"GCMAES192\", and \"GCMAES256\".""" + ikeEncryption: Required[Union[str, "IkeEncryption"]] + """The IKE encryption algorithm (IKE phase 2). Required. Known values are: \"DES\", \"DES3\", + \"AES128\", \"AES192\", \"AES256\", \"GCMAES256\", and \"GCMAES128\".""" + ikeIntegrity: Required[Union[str, "IkeIntegrity"]] + """The IKE integrity algorithm (IKE phase 2). Required. Known values are: \"MD5\", \"SHA1\", + \"SHA256\", \"SHA384\", \"GCMAES256\", and \"GCMAES128\".""" + dhGroup: Required[Union[str, "DhGroup"]] + """The DH Group used in IKE Phase 1 for initial SA. Required. Known values are: \"None\", + \"DHGroup1\", \"DHGroup2\", \"DHGroup14\", \"DHGroup2048\", \"ECP256\", \"ECP384\", and + \"DHGroup24\".""" + pfsGroup: Required[Union[str, "PfsGroup"]] + """The Pfs Group used in IKE Phase 2 for new child SA. Required. Known values are: \"None\", + \"PFS1\", \"PFS2\", \"PFS2048\", \"ECP256\", \"ECP384\", \"PFS24\", \"PFS14\", and \"PFSMM\".""" + + +class IpTag(TypedDict, total=False): + """Contains the IpTag associated with the object. + + :ivar ipTagType: The IP tag type. Example: FirstPartyUsage. + :vartype ipTagType: str + :ivar tag: The value of the IP tag associated with the public IP. Example: SQL. + :vartype tag: str + :ivar firstPartyServiceTagId: The resource ID of the first party service tag associated with + the IP tag. + :vartype firstPartyServiceTagId: str + """ + + ipTagType: str + """The IP tag type. Example: FirstPartyUsage.""" + tag: str + """The value of the IP tag associated with the public IP. Example: SQL.""" + firstPartyServiceTagId: str + """The resource ID of the first party service tag associated with the IP tag.""" + + +class IPTraffic(TypedDict, total=False): + """IP traffic information. + + :ivar sourceIps: List of source IP addresses of the traffic.. Required. + :vartype sourceIps: list[str] + :ivar destinationIps: List of destination IP addresses of the traffic.. Required. + :vartype destinationIps: list[str] + :ivar sourcePorts: The source ports of the traffic. Required. + :vartype sourcePorts: list[str] + :ivar destinationPorts: The destination ports of the traffic. Required. + :vartype destinationPorts: list[str] + :ivar protocols: Required. + :vartype protocols: list[Union[str, "NetworkProtocol"]] + """ + + sourceIps: Required[list[str]] + """List of source IP addresses of the traffic.. Required.""" + destinationIps: Required[list[str]] + """List of destination IP addresses of the traffic.. Required.""" + sourcePorts: Required[list[str]] + """The source ports of the traffic. Required.""" + destinationPorts: Required[list[str]] + """The destination ports of the traffic. Required.""" + protocols: Required[list[Union[str, "NetworkProtocol"]]] + """Required.""" + + +class Ipv6CircuitConnectionConfig(TypedDict, total=False): + """IPv6 Circuit Connection properties for global reach. + + :ivar addressPrefix: /125 IP address space to carve out customer addresses for global reach. + :vartype addressPrefix: str + :ivar circuitConnectionStatus: Express Route Circuit connection state. Known values are: + "Connected", "Connecting", and "Disconnected". + :vartype circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + """ + + addressPrefix: str + """/125 IP address space to carve out customer addresses for global reach.""" + circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + """Express Route Circuit connection state. Known values are: \"Connected\", \"Connecting\", and + \"Disconnected\".""" + + +class Ipv6ExpressRouteCircuitPeeringConfig(TypedDict, total=False): + """Contains IPv6 peering config. + + :ivar primaryPeerAddressPrefix: The primary address prefix. + :vartype primaryPeerAddressPrefix: str + :ivar secondaryPeerAddressPrefix: The secondary address prefix. + :vartype secondaryPeerAddressPrefix: str + :ivar microsoftPeeringConfig: The Microsoft peering configuration. + :vartype microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + :ivar routeFilter: The reference to the RouteFilter resource. + :vartype routeFilter: "SubResource" + :ivar state: The state of peering. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "ExpressRouteCircuitPeeringState"] + """ + + primaryPeerAddressPrefix: str + """The primary address prefix.""" + secondaryPeerAddressPrefix: str + """The secondary address prefix.""" + microsoftPeeringConfig: "ExpressRouteCircuitPeeringConfig" + """The Microsoft peering configuration.""" + routeFilter: "SubResource" + """The reference to the RouteFilter resource.""" + state: Union[str, "ExpressRouteCircuitPeeringState"] + """The state of peering. Known values are: \"Disabled\" and \"Enabled\".""" + + +class KubeLabelSelector(TypedDict, total=False): + """Kubernetes Label Selector for matching labels in Kubernetes Selector Groups. + + :ivar matchLabels: matchLabels is a map of {key,value} pairs. A single {key,value} in the + matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + :vartype matchLabels: dict[str, str] + :ivar matchExpressions: matchExpressions is a list of label selector requirements. The + requirements are ANDed. + :vartype matchExpressions: list["LabelSelectorExpression"] + """ + + matchLabels: dict[str, str] + """matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is + equivalent to an element of matchExpressions, whose key field is \"key\", the operator is + \"In\", and the values array contains only \"value\". The requirements are ANDed.""" + matchExpressions: list["LabelSelectorExpression"] + """matchExpressions is a list of label selector requirements. The requirements are ANDed.""" + + +class LabelSelectorExpression(TypedDict, total=False): + """A label selector requirement is a selector that contains values, a key, and an operator that + relates the key and values. + + :ivar key: key is a string of 63 characters or less, and must consist of alphanumeric + characters, '-', '_' or '.'. + :vartype key: str + :ivar operator: operator represents a key's relationship to a set of values. Valid operators + are In, NotIn, Exists and DoesNotExist. Known values are: "In", "NotIn", "Exists", and + "DoesNotExist". + :vartype operator: Union[str, "LabelSelectorOperator"] + :ivar values: values is an array of string values. If the operator is In or NotIn, the values + array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be + empty. + :vartype values: list[str] + """ + + key: str + """key is a string of 63 characters or less, and must consist of alphanumeric characters, '-', '_' + or '.'.""" + operator: Union[str, "LabelSelectorOperator"] + """operator represents a key's relationship to a set of values. Valid operators are In, NotIn, + Exists and DoesNotExist. Known values are: \"In\", \"NotIn\", \"Exists\", and \"DoesNotExist\".""" + values: list[str] + """values is an array of string values. If the operator is In or NotIn, the values array must be + non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.""" + + +class LoadBalancer(Resource): + """LoadBalancer resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of load balancer. + :vartype properties: "LoadBalancerPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar extendedLocation: The extended location of the load balancer. + :vartype extendedLocation: "ExtendedLocation" + :ivar sku: The load balancer SKU. + :vartype sku: "LoadBalancerSku" + """ + + properties: "LoadBalancerPropertiesFormat" + """Properties of load balancer.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + extendedLocation: "ExtendedLocation" + """The extended location of the load balancer.""" + sku: "LoadBalancerSku" + """The load balancer SKU.""" + + +class LoadBalancerBackendAddress(TypedDict, total=False): + """Load balancer backend addresses. + + :ivar properties: Properties of load balancer backend address pool. + :vartype properties: "LoadBalancerBackendAddressPropertiesFormat" + :ivar name: Name of the backend address. + :vartype name: str + """ + + properties: "LoadBalancerBackendAddressPropertiesFormat" + """Properties of load balancer backend address pool.""" + name: str + """Name of the backend address.""" + + +class LoadBalancerBackendAddressPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the load balancer backend addresses. + + :ivar virtualNetwork: Reference to an existing virtual network. + :vartype virtualNetwork: "SubResource" + :ivar subnet: Reference to an existing subnet. + :vartype subnet: "SubResource" + :ivar ipAddress: IP Address belonging to the referenced virtual network. + :vartype ipAddress: str + :ivar networkInterfaceIPConfiguration: Reference to IP address defined in network interfaces. + :vartype networkInterfaceIPConfiguration: "SubResource" + :ivar loadBalancerFrontendIPConfiguration: Reference to the frontend ip address configuration + defined in regional loadbalancer. + :vartype loadBalancerFrontendIPConfiguration: "SubResource" + :ivar inboundNatRulesPortMapping: Collection of inbound NAT rule port mappings. + :vartype inboundNatRulesPortMapping: list["NatRulePortMapping"] + :ivar adminState: A list of administrative states which once set can override health probe so + that Load Balancer will always forward new connections to backend, or deny new connections and + reset existing connections. Known values are: "None", "Up", and "Down". + :vartype adminState: Union[str, "LoadBalancerBackendAddressAdminState"] + """ + + virtualNetwork: "SubResource" + """Reference to an existing virtual network.""" + subnet: "SubResource" + """Reference to an existing subnet.""" + ipAddress: str + """IP Address belonging to the referenced virtual network.""" + networkInterfaceIPConfiguration: "SubResource" + """Reference to IP address defined in network interfaces.""" + loadBalancerFrontendIPConfiguration: "SubResource" + """Reference to the frontend ip address configuration defined in regional loadbalancer.""" + inboundNatRulesPortMapping: list["NatRulePortMapping"] + """Collection of inbound NAT rule port mappings.""" + adminState: Union[str, "LoadBalancerBackendAddressAdminState"] + """A list of administrative states which once set can override health probe so that Load Balancer + will always forward new connections to backend, or deny new connections and reset existing + connections. Known values are: \"None\", \"Up\", and \"Down\".""" + + +class LoadBalancerPropertiesFormat(TypedDict, total=False): + """Properties of the load balancer. + + :ivar frontendIPConfigurations: Object representing the frontend IPs to be used for the load + balancer. + :vartype frontendIPConfigurations: list["FrontendIPConfiguration"] + :ivar backendAddressPools: Collection of backend address pools used by a load balancer. + :vartype backendAddressPools: list["BackendAddressPool"] + :ivar loadBalancingRules: Object collection representing the load balancing rules Gets the + provisioning. + :vartype loadBalancingRules: list["LoadBalancingRule"] + :ivar probes: Collection of probe objects used in the load balancer. + :vartype probes: list["Probe"] + :ivar inboundNatRules: Collection of inbound NAT Rules used by a load balancer. Defining + inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT + pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are + associated with individual virtual machines cannot reference an Inbound NAT pool. They have to + reference individual inbound NAT rules. + :vartype inboundNatRules: list["InboundNatRule"] + :ivar inboundNatPools: Defines an external port range for inbound NAT to a single backend port + on NICs associated with a load balancer. Inbound NAT rules are created automatically for each + NIC associated with the Load Balancer using an external port from this range. Defining an + Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. + Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with + individual virtual machines cannot reference an inbound NAT pool. They have to reference + individual inbound NAT rules. + :vartype inboundNatPools: list["InboundNatPool"] + :ivar outboundRules: The outbound rules. + :vartype outboundRules: list["OutboundRule"] + :ivar resourceGuid: The resource GUID property of the load balancer resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the load balancer resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar scope: Indicates the scope of the load balancer: external (Public) or internal (Private). + Known values are: "Public" and "Private". + :vartype scope: Union[str, "LoadBalancerScope"] + :ivar mode: The load balancer mode. Set to ``Advanced`` to enable additional capabilities on a + Standard SKU load balancer. Advanced mode must be specified at creation and cannot be changed + afterward. "Advanced" + :vartype mode: Union[str, "LoadBalancerMode"] + """ + + frontendIPConfigurations: list["FrontendIPConfiguration"] + """Object representing the frontend IPs to be used for the load balancer.""" + backendAddressPools: list["BackendAddressPool"] + """Collection of backend address pools used by a load balancer.""" + loadBalancingRules: list["LoadBalancingRule"] + """Object collection representing the load balancing rules Gets the provisioning.""" + probes: list["Probe"] + """Collection of probe objects used in the load balancer.""" + inboundNatRules: list["InboundNatRule"] + """Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your + load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are + referenced from virtual machine scale sets. NICs that are associated with individual virtual + machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT + rules.""" + inboundNatPools: list["InboundNatPool"] + """Defines an external port range for inbound NAT to a single backend port on NICs associated with + a load balancer. Inbound NAT rules are created automatically for each NIC associated with the + Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load + Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are + referenced from virtual machine scale sets. NICs that are associated with individual virtual + machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT + rules.""" + outboundRules: list["OutboundRule"] + """The outbound rules.""" + resourceGuid: str + """The resource GUID property of the load balancer resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the load balancer resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + scope: Union[str, "LoadBalancerScope"] + """Indicates the scope of the load balancer: external (Public) or internal (Private). Known values + are: \"Public\" and \"Private\".""" + mode: Union[str, "LoadBalancerMode"] + """The load balancer mode. Set to ``Advanced`` to enable additional capabilities on a Standard SKU + load balancer. Advanced mode must be specified at creation and cannot be changed afterward. + \"Advanced\"""" + + +class LoadBalancerSku(TypedDict, total=False): + """SKU of a load balancer. + + :ivar name: Name of a load balancer SKU. Known values are: "Basic", "Standard", "Gateway", and + "Service". + :vartype name: Union[str, "LoadBalancerSkuName"] + :ivar tier: Tier of a load balancer SKU. Known values are: "Regional" and "Global". + :vartype tier: Union[str, "LoadBalancerSkuTier"] + """ + + name: Union[str, "LoadBalancerSkuName"] + """Name of a load balancer SKU. Known values are: \"Basic\", \"Standard\", \"Gateway\", and + \"Service\".""" + tier: Union[str, "LoadBalancerSkuTier"] + """Tier of a load balancer SKU. Known values are: \"Regional\" and \"Global\".""" + + +class LoadBalancerVipSwapRequest(TypedDict, total=False): + """The request for a VIP swap. + + :ivar frontendIPConfigurations: A list of frontend IP configuration resources that should swap + VIPs. + :vartype frontendIPConfigurations: list["LoadBalancerVipSwapRequestFrontendIPConfiguration"] + """ + + frontendIPConfigurations: list["LoadBalancerVipSwapRequestFrontendIPConfiguration"] + """A list of frontend IP configuration resources that should swap VIPs.""" + + +class LoadBalancerVipSwapRequestFrontendIPConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """VIP swap request's frontend IP configuration object. + + :ivar id: The ID of frontend IP configuration resource. + :vartype id: str + :ivar properties: The properties of VIP swap request's frontend IP configuration object. + :vartype properties: "LoadBalancerVipSwapRequestFrontendIPConfigurationProperties" + """ + + id: str + """The ID of frontend IP configuration resource.""" + properties: "LoadBalancerVipSwapRequestFrontendIPConfigurationProperties" + """The properties of VIP swap request's frontend IP configuration object.""" + + +class LoadBalancerVipSwapRequestFrontendIPConfigurationProperties( + TypedDict, total=False +): # pylint: disable=name-too-long + """The properties of VIP swap request's frontend IP configuration object. + + :ivar publicIPAddress: A reference to public IP address resource. + :vartype publicIPAddress: "SubResource" + """ + + publicIPAddress: "SubResource" + """A reference to public IP address resource.""" + + +class LoadBalancingRule(SubResourceModel): + """A load balancing rule for a load balancer. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of load balancer load balancing rule. + :vartype properties: "LoadBalancingRulePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "LoadBalancingRulePropertiesFormat" + """Properties of load balancer load balancing rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class LoadBalancingRulePropertiesFormat(TypedDict, total=False): + """Properties of the load balancer. + + :ivar frontendIPConfiguration: A reference to frontend IP addresses. + :vartype frontendIPConfiguration: "SubResource" + :ivar backendAddressPool: A reference to a pool of DIPs. Inbound traffic is randomly load + balanced across IPs in the backend IPs. + :vartype backendAddressPool: "SubResource" + :ivar backendAddressPools: An array of references to pool of DIPs. + :vartype backendAddressPools: list["SubResource"] + :ivar probe: The reference to the load balancer probe used by the load balancing rule. + :vartype probe: "SubResource" + :ivar protocol: The reference to the transport protocol used by the load balancing rule. + Required. Known values are: "Udp", "Tcp", "All", and "Quic". + :vartype protocol: Union[str, "TransportProtocol"] + :ivar loadDistribution: The load distribution policy for this rule. Known values are: + "Default", "SourceIP", and "SourceIPProtocol". + :vartype loadDistribution: Union[str, "LoadDistribution"] + :ivar frontendPort: The port for the external endpoint. Port numbers for each rule must be + unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 + enables "Any Port". Required. + :vartype frontendPort: int + :ivar backendPort: The port used for internal connections on the endpoint. Acceptable values + are between 0 and 65535. Note that value 0 enables "Any Port". + :vartype backendPort: int + :ivar idleTimeoutInMinutes: The timeout for the TCP idle connection. The value can be set + between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the + protocol is set to TCP. + :vartype idleTimeoutInMinutes: int + :ivar enableFloatingIP: Configures a virtual machine's endpoint for the floating IP capability + required to configure a SQL AlwaysOn Availability Group. This setting is required when using + the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you + create the endpoint. + :vartype enableFloatingIP: bool + :ivar enableTcpReset: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected + connection termination. This element is only used when the protocol is set to TCP. + :vartype enableTcpReset: bool + :ivar disableOutboundSnat: Configures SNAT for the VMs in the backend pool to use the publicIP + address specified in the frontend of the load balancing rule. + :vartype disableOutboundSnat: bool + :ivar enableConnectionTracking: Enables UDP flow tracking for the load balancing rule. This + property is retained for rule-level configuration compatibility. When enableConnectionTracking + is specified on the associated frontend IP configuration, the frontend setting takes + precedence. + :vartype enableConnectionTracking: bool + :ivar provisioningState: The provisioning state of the load balancing rule resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + frontendIPConfiguration: "SubResource" + """A reference to frontend IP addresses.""" + backendAddressPool: "SubResource" + """A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the + backend IPs.""" + backendAddressPools: list["SubResource"] + """An array of references to pool of DIPs.""" + probe: "SubResource" + """The reference to the load balancer probe used by the load balancing rule.""" + protocol: Required[Union[str, "TransportProtocol"]] + """The reference to the transport protocol used by the load balancing rule. Required. Known values + are: \"Udp\", \"Tcp\", \"All\", and \"Quic\".""" + loadDistribution: Union[str, "LoadDistribution"] + """The load distribution policy for this rule. Known values are: \"Default\", \"SourceIP\", and + \"SourceIPProtocol\".""" + frontendPort: Required[int] + """The port for the external endpoint. Port numbers for each rule must be unique within the Load + Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables \"Any Port\". + Required.""" + backendPort: int + """The port used for internal connections on the endpoint. Acceptable values are between 0 and + 65535. Note that value 0 enables \"Any Port\".""" + idleTimeoutInMinutes: int + """The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The + default value is 4 minutes. This element is only used when the protocol is set to TCP.""" + enableFloatingIP: bool + """Configures a virtual machine's endpoint for the floating IP capability required to configure a + SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn + Availability Groups in SQL server. This setting can't be changed after you create the endpoint.""" + enableTcpReset: bool + """Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. + This element is only used when the protocol is set to TCP.""" + disableOutboundSnat: bool + """Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the + frontend of the load balancing rule.""" + enableConnectionTracking: bool + """Enables UDP flow tracking for the load balancing rule. This property is retained for rule-level + configuration compatibility. When enableConnectionTracking is specified on the associated + frontend IP configuration, the frontend setting takes precedence.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the load balancing rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class LocalNetworkGateway(Resource): + """A common class for general resource information. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the local network gateway. Required. + :vartype properties: "LocalNetworkGatewayPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Required["LocalNetworkGatewayPropertiesFormat"] + """Properties of the local network gateway. Required.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class LocalNetworkGatewayPropertiesFormat(TypedDict, total=False): + """LocalNetworkGateway properties. + + :ivar localNetworkAddressSpace: Local network site address space. + :vartype localNetworkAddressSpace: "AddressSpace" + :ivar gatewayIpAddress: IP address of local network gateway. + :vartype gatewayIpAddress: str + :ivar fqdn: FQDN of local network gateway. + :vartype fqdn: str + :ivar bgpSettings: Local network gateway's BGP speaker settings. + :vartype bgpSettings: "BgpSettings" + :ivar resourceGuid: The resource GUID property of the local network gateway resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the local network gateway resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + localNetworkAddressSpace: "AddressSpace" + """Local network site address space.""" + gatewayIpAddress: str + """IP address of local network gateway.""" + fqdn: str + """FQDN of local network gateway.""" + bgpSettings: "BgpSettings" + """Local network gateway's BGP speaker settings.""" + resourceGuid: str + """The resource GUID property of the local network gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the local network gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ManagedRuleGroupOverride(TypedDict, total=False): + """Defines a managed rule group override setting. + + :ivar ruleGroupName: The managed rule group to override. Required. + :vartype ruleGroupName: str + :ivar rules: List of rules that will be disabled. If none specified, all rules in the group + will be disabled. + :vartype rules: list["ManagedRuleOverride"] + """ + + ruleGroupName: Required[str] + """The managed rule group to override. Required.""" + rules: list["ManagedRuleOverride"] + """List of rules that will be disabled. If none specified, all rules in the group will be + disabled.""" + + +class ManagedRuleOverride(TypedDict, total=False): + """Defines a managed rule group override setting. + + :ivar ruleId: Identifier for the managed rule. Required. + :vartype ruleId: str + :ivar state: The state of the managed rule. Defaults to Disabled if not specified. Known values + are: "Disabled" and "Enabled". + :vartype state: Union[str, "ManagedRuleEnabledState"] + :ivar action: Describes the override action to be applied when rule matches. Known values are: + "AnomalyScoring", "Allow", "Block", "Log", "JSChallenge", and "CAPTCHA". + :vartype action: Union[str, "ActionType"] + :ivar sensitivity: Describes the override sensitivity to be applied when rule matches. Known + values are: "Low", "Medium", and "High". + :vartype sensitivity: Union[str, "SensitivityType"] + """ + + ruleId: Required[str] + """Identifier for the managed rule. Required.""" + state: Union[str, "ManagedRuleEnabledState"] + """The state of the managed rule. Defaults to Disabled if not specified. Known values are: + \"Disabled\" and \"Enabled\".""" + action: Union[str, "ActionType"] + """Describes the override action to be applied when rule matches. Known values are: + \"AnomalyScoring\", \"Allow\", \"Block\", \"Log\", \"JSChallenge\", and \"CAPTCHA\".""" + sensitivity: Union[str, "SensitivityType"] + """Describes the override sensitivity to be applied when rule matches. Known values are: \"Low\", + \"Medium\", and \"High\".""" + + +class ManagedRulesDefinition(TypedDict, total=False): + """Allow to exclude some variable satisfy the condition for the WAF check. + + :ivar exceptions: The exceptions that are applied on the policy. + :vartype exceptions: list["ExceptionEntry"] + :ivar exclusions: The Exclusions that are applied on the policy. + :vartype exclusions: list["OwaspCrsExclusionEntry"] + :ivar managedRuleSets: The managed rule sets that are associated with the policy. Required. + :vartype managedRuleSets: list["ManagedRuleSet"] + """ + + exceptions: list["ExceptionEntry"] + """The exceptions that are applied on the policy.""" + exclusions: list["OwaspCrsExclusionEntry"] + """The Exclusions that are applied on the policy.""" + managedRuleSets: Required[list["ManagedRuleSet"]] + """The managed rule sets that are associated with the policy. Required.""" + + +class ManagedRuleSet(TypedDict, total=False): + """Defines a managed rule set. + + :ivar ruleSetType: Defines the rule set type to use. Required. + :vartype ruleSetType: str + :ivar ruleSetVersion: Defines the version of the rule set to use. Required. + :vartype ruleSetVersion: str + :ivar ruleGroupOverrides: Defines the rule group overrides to apply to the rule set. + :vartype ruleGroupOverrides: list["ManagedRuleGroupOverride"] + :ivar computedDisabledRules: Stores the final list of disabled rule groups. + :vartype computedDisabledRules: list["ManagedRuleSetRuleGroup"] + """ + + ruleSetType: Required[str] + """Defines the rule set type to use. Required.""" + ruleSetVersion: Required[str] + """Defines the version of the rule set to use. Required.""" + ruleGroupOverrides: list["ManagedRuleGroupOverride"] + """Defines the rule group overrides to apply to the rule set.""" + computedDisabledRules: list["ManagedRuleSetRuleGroup"] + """Stores the final list of disabled rule groups.""" + + +class ManagedRuleSetRuleGroup(TypedDict, total=False): + """Defines a managed rule set rule group. + + :ivar ruleGroupName: Name of the rule group. Required. + :vartype ruleGroupName: str + :ivar rules: List of rules within the rule group. + :vartype rules: list[str] + """ + + ruleGroupName: Required[str] + """Name of the rule group. Required.""" + rules: list[str] + """List of rules within the rule group.""" + + +class ManagedServiceIdentity(TypedDict, total=False): + """Identity for the resource. + + :ivar principalId: The principal id of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant id of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenantId: str + :ivar type: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' + includes both an implicitly created identity and a set of user assigned identities. The type + 'None' will remove any identities from the virtual machine. Known values are: "SystemAssigned", + "UserAssigned", "SystemAssigned, UserAssigned", and "None". + :vartype type: Union[str, "ResourceIdentityType"] + :ivar userAssignedIdentities: The list of user identities associated with resource. The user + identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :vartype userAssignedIdentities: dict[str, "ManagedServiceIdentityUserAssignedIdentities"] + """ + + principalId: str + """The principal id of the system assigned identity. This property will only be provided for a + system assigned identity.""" + tenantId: str + """The tenant id of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Union[str, "ResourceIdentityType"] + """The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes + both an implicitly created identity and a set of user assigned identities. The type 'None' will + remove any identities from the virtual machine. Known values are: \"SystemAssigned\", + \"UserAssigned\", \"SystemAssigned, UserAssigned\", and \"None\".""" + userAssignedIdentities: dict[str, "ManagedServiceIdentityUserAssignedIdentities"] + """The list of user identities associated with resource. The user identity dictionary key + references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.""" + + +class ManagedServiceIdentityUserAssignedIdentities(TypedDict, total=False): # pylint: disable=name-too-long + """ManagedServiceIdentityUserAssignedIdentities. + + :ivar principalId: The principal id of user assigned identity. + :vartype principalId: str + :ivar clientId: The client id of user assigned identity. + :vartype clientId: str + """ + + principalId: str + """The principal id of user assigned identity.""" + clientId: str + """The client id of user assigned identity.""" + + +class MatchCondition(TypedDict, total=False): + """Define match conditions. + + :ivar matchVariables: List of match variables. Required. + :vartype matchVariables: list["MatchVariable"] + :ivar operator: The operator to be matched. Required. Known values are: "IPMatch", "Equal", + "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", + "EndsWith", "Regex", "GeoMatch", and "Any". + :vartype operator: Union[str, "WebApplicationFirewallOperator"] + :ivar negationConditon: Whether this is negate condition or not. + :vartype negationConditon: bool + :ivar matchValues: Match value. Required. + :vartype matchValues: list[str] + :ivar transforms: List of transforms. + :vartype transforms: list[Union[str, "WebApplicationFirewallTransform"]] + """ + + matchVariables: Required[list["MatchVariable"]] + """List of match variables. Required.""" + operator: Required[Union[str, "WebApplicationFirewallOperator"]] + """The operator to be matched. Required. Known values are: \"IPMatch\", \"Equal\", \"Contains\", + \"LessThan\", \"GreaterThan\", \"LessThanOrEqual\", \"GreaterThanOrEqual\", \"BeginsWith\", + \"EndsWith\", \"Regex\", \"GeoMatch\", and \"Any\".""" + negationConditon: bool + """Whether this is negate condition or not.""" + matchValues: Required[list[str]] + """Match value. Required.""" + transforms: list[Union[str, "WebApplicationFirewallTransform"]] + """List of transforms.""" + + +class MatchVariable(TypedDict, total=False): + """Define match variables. + + :ivar variableName: Match Variable. Required. Known values are: "RemoteAddr", "RequestMethod", + "QueryString", "PostArgs", "RequestUri", "RequestHeaders", "RequestBody", and "RequestCookies". + :vartype variableName: Union[str, "WebApplicationFirewallMatchVariable"] + :ivar selector: The selector of match variable. + :vartype selector: str + """ + + variableName: Required[Union[str, "WebApplicationFirewallMatchVariable"]] + """Match Variable. Required. Known values are: \"RemoteAddr\", \"RequestMethod\", \"QueryString\", + \"PostArgs\", \"RequestUri\", \"RequestHeaders\", \"RequestBody\", and \"RequestCookies\".""" + selector: str + """The selector of match variable.""" + + +class MigrateLoadBalancerToIpBasedRequest(TypedDict, total=False): + """The request for a migrateToIpBased API. + + :ivar pools: A list of pool names that should be migrated from Nic based to IP based pool. + :vartype pools: list[str] + """ + + pools: list[str] + """A list of pool names that should be migrated from Nic based to IP based pool.""" + + +class MoveIpConfigurationItem(TypedDict, total=False): + """An item representing a source and target IP configuration for a move operation. + + :ivar sourceIpConfiguration: The source IP configuration to move from. Required. + :vartype sourceIpConfiguration: "MoveIpConfigurationResourceReference" + :ivar targetIpConfiguration: The target IP configuration to move to. Required. + :vartype targetIpConfiguration: "MoveIpConfigurationResourceReference" + """ + + sourceIpConfiguration: Required["MoveIpConfigurationResourceReference"] + """The source IP configuration to move from. Required.""" + targetIpConfiguration: Required["MoveIpConfigurationResourceReference"] + """The target IP configuration to move to. Required.""" + + +class MoveIpConfigurationResourceReference(TypedDict, total=False): + """Reference to an IP configuration resource by ARM resource ID. + + :ivar id: The ARM resource ID of the IP configuration. Required. + :vartype id: str + """ + + id: Required[str] + """The ARM resource ID of the IP configuration. Required.""" + + +class MoveIpConfigurationsRequest(TypedDict, total=False): + """Request body for the MoveIpConfigurations operation. + + :ivar moveIpConfigurationItems: A list of IP configuration move items. Required. + :vartype moveIpConfigurationItems: list["MoveIpConfigurationItem"] + """ + + moveIpConfigurationItems: Required[list["MoveIpConfigurationItem"]] + """A list of IP configuration move items. Required.""" + + +class NatGateway(Resource): + """Nat Gateway resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Nat Gateway properties. + :vartype properties: "NatGatewayPropertiesFormat" + :ivar sku: The nat gateway SKU. + :vartype sku: "NatGatewaySku" + :ivar zones: A list of availability zones denoting the zone in which Nat Gateway should be + deployed. + :vartype zones: list[str] + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NatGatewayPropertiesFormat" + """Nat Gateway properties.""" + sku: "NatGatewaySku" + """The nat gateway SKU.""" + zones: list[str] + """A list of availability zones denoting the zone in which Nat Gateway should be deployed.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NatGatewayPropertiesFormat(TypedDict, total=False): + """Nat Gateway properties. + + :ivar idleTimeoutInMinutes: The idle timeout of the nat gateway. + :vartype idleTimeoutInMinutes: int + :ivar publicIpAddresses: An array of public ip addresses V4 associated with the nat gateway + resource. + :vartype publicIpAddresses: list["SubResource"] + :ivar publicIpAddressesV6: An array of public ip addresses V6 associated with the nat gateway + resource. + :vartype publicIpAddressesV6: list["SubResource"] + :ivar publicIpPrefixes: An array of public ip prefixes V4 associated with the nat gateway + resource. + :vartype publicIpPrefixes: list["SubResource"] + :ivar publicIpPrefixesV6: An array of public ip prefixes V6 associated with the nat gateway + resource. + :vartype publicIpPrefixesV6: list["SubResource"] + :ivar subnets: An array of references to the subnets using this nat gateway resource. + :vartype subnets: list["SubResource"] + :ivar sourceVirtualNetwork: A reference to the source virtual network using this nat gateway + resource. + :vartype sourceVirtualNetwork: "SubResource" + :ivar serviceGateway: Reference to an existing service gateway. + :vartype serviceGateway: "SubResource" + :ivar nat64: Whether Nat64 is enabled for the NAT gateway resource. Known values are: "None", + "Enabled", and "Disabled". + :vartype nat64: Union[str, "Nat64State"] + :ivar resourceGuid: The resource GUID property of the NAT gateway resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the NAT gateway resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + idleTimeoutInMinutes: int + """The idle timeout of the nat gateway.""" + publicIpAddresses: list["SubResource"] + """An array of public ip addresses V4 associated with the nat gateway resource.""" + publicIpAddressesV6: list["SubResource"] + """An array of public ip addresses V6 associated with the nat gateway resource.""" + publicIpPrefixes: list["SubResource"] + """An array of public ip prefixes V4 associated with the nat gateway resource.""" + publicIpPrefixesV6: list["SubResource"] + """An array of public ip prefixes V6 associated with the nat gateway resource.""" + subnets: list["SubResource"] + """An array of references to the subnets using this nat gateway resource.""" + sourceVirtualNetwork: "SubResource" + """A reference to the source virtual network using this nat gateway resource.""" + serviceGateway: "SubResource" + """Reference to an existing service gateway.""" + nat64: Union[str, "Nat64State"] + """Whether Nat64 is enabled for the NAT gateway resource. Known values are: \"None\", \"Enabled\", + and \"Disabled\".""" + resourceGuid: str + """The resource GUID property of the NAT gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the NAT gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class NatGatewaySku(TypedDict, total=False): + """SKU of nat gateway. + + :ivar name: Name of Nat Gateway SKU. Known values are: "Standard" and "StandardV2". + :vartype name: Union[str, "NatGatewaySkuName"] + """ + + name: Union[str, "NatGatewaySkuName"] + """Name of Nat Gateway SKU. Known values are: \"Standard\" and \"StandardV2\".""" + + +class NatRule(TypedDict, total=False): + """Rule of type nat. + + :ivar name: Name of the rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar ipProtocols: Array of FirewallPolicyRuleNetworkProtocols. + :vartype ipProtocols: list[Union[str, "FirewallPolicyRuleNetworkProtocol"]] + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses or Service Tags. + :vartype destinationAddresses: list[str] + :ivar destinationPorts: List of destination ports. + :vartype destinationPorts: list[str] + :ivar translatedAddress: The translated address for this NAT rule. + :vartype translatedAddress: str + :ivar translatedPort: The translated port for this NAT rule. + :vartype translatedPort: str + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + :ivar translatedFqdn: The translated FQDN for this NAT rule. + :vartype translatedFqdn: str + :ivar ruleType: Rule Type. Required. NatRule. + :vartype ruleType: Literal[FirewallPolicyRuleType.NAT_RULE] + """ + + name: str + """Name of the rule.""" + description: str + """Description of the rule.""" + ipProtocols: list[Union[str, "FirewallPolicyRuleNetworkProtocol"]] + """Array of FirewallPolicyRuleNetworkProtocols.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses or Service Tags.""" + destinationPorts: list[str] + """List of destination ports.""" + translatedAddress: str + """The translated address for this NAT rule.""" + translatedPort: str + """The translated port for this NAT rule.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + translatedFqdn: str + """The translated FQDN for this NAT rule.""" + ruleType: Required[Literal[FirewallPolicyRuleType.NAT_RULE]] + """Rule Type. Required. NatRule.""" + + +class NatRulePortMapping(TypedDict, total=False): + """Individual port mappings for inbound NAT rule created for backend pool. + + :ivar inboundNatRuleName: Name of inbound NAT rule. + :vartype inboundNatRuleName: str + :ivar frontendPort: Frontend port. + :vartype frontendPort: int + :ivar backendPort: Backend port. + :vartype backendPort: int + """ + + inboundNatRuleName: str + """Name of inbound NAT rule.""" + frontendPort: int + """Frontend port.""" + backendPort: int + """Backend port.""" + + +class NetworkConfigurationDiagnosticParameters(TypedDict, total=False): + """Parameters to get network configuration diagnostic. + + :ivar targetResourceId: The ID of the target resource to perform network configuration + diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application + Gateway. Required. + :vartype targetResourceId: str + :ivar verbosityLevel: Verbosity level. Known values are: "Normal", "Minimum", and "Full". + :vartype verbosityLevel: Union[str, "VerbosityLevel"] + :ivar profiles: List of network configuration diagnostic profiles. Required. + :vartype profiles: list["NetworkConfigurationDiagnosticProfile"] + """ + + targetResourceId: Required[str] + """The ID of the target resource to perform network configuration diagnostic. Valid options are + VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway. Required.""" + verbosityLevel: Union[str, "VerbosityLevel"] + """Verbosity level. Known values are: \"Normal\", \"Minimum\", and \"Full\".""" + profiles: Required[list["NetworkConfigurationDiagnosticProfile"]] + """List of network configuration diagnostic profiles. Required.""" + + +class NetworkConfigurationDiagnosticProfile(TypedDict, total=False): + """Parameters to compare with network configuration. + + :ivar direction: The direction of the traffic. Required. Known values are: "Inbound" and + "Outbound". + :vartype direction: Union[str, "Direction"] + :ivar protocol: Protocol to be verified on. Accepted values are '*', TCP, UDP. Required. + :vartype protocol: str + :ivar source: Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. Required. + :vartype source: str + :ivar destination: Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag. + Required. + :vartype destination: str + :ivar destinationPort: Traffic destination port. Accepted values are '*' and a single port in + the range (0 - 65535). Required. + :vartype destinationPort: str + """ + + direction: Required[Union[str, "Direction"]] + """The direction of the traffic. Required. Known values are: \"Inbound\" and \"Outbound\".""" + protocol: Required[str] + """Protocol to be verified on. Accepted values are '*', TCP, UDP. Required.""" + source: Required[str] + """Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag. Required.""" + destination: Required[str] + """Traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag. Required.""" + destinationPort: Required[str] + """Traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535). + Required.""" + + +class NetworkGroup(ChildResource): + """The network group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: The Network Group properties. + :vartype properties: "NetworkGroupProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "NetworkGroupProperties" + """The Network Group properties.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class NetworkGroupProperties(TypedDict, total=False): + """Properties of network group. + + :ivar description: A description of the network group. + :vartype description: str + :ivar memberType: The type of the group member. Known values are: "VirtualNetwork" and + "Subnet". + :vartype memberType: Union[str, "GroupMemberType"] + :ivar provisioningState: The provisioning state of the scope assignment resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the network group.""" + memberType: Union[str, "GroupMemberType"] + """The type of the group member. Known values are: \"VirtualNetwork\" and \"Subnet\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the scope assignment resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class NetworkIntentPolicy(Resource): + """Network Intent Policy resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkIntentPolicyConfiguration(TypedDict, total=False): + """Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest. + + :ivar networkIntentPolicyName: The name of the Network Intent Policy for storing in target + subscription. + :vartype networkIntentPolicyName: str + :ivar sourceNetworkIntentPolicy: Source network intent policy. + :vartype sourceNetworkIntentPolicy: "NetworkIntentPolicy" + """ + + networkIntentPolicyName: str + """The name of the Network Intent Policy for storing in target subscription.""" + sourceNetworkIntentPolicy: "NetworkIntentPolicy" + """Source network intent policy.""" + + +class NetworkInterface(Resource): + """A network interface in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the network interface. + :vartype properties: "NetworkInterfacePropertiesFormat" + :ivar extendedLocation: The extended location of the network interface. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkInterfacePropertiesFormat" + """Properties of the network interface.""" + extendedLocation: "ExtendedLocation" + """The extended location of the network interface.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkInterfaceDnsSettings(TypedDict, total=False): + """DNS settings of a network interface. + + :ivar dnsServers: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure + provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be + the only value in dnsServers collection. + :vartype dnsServers: list[str] + :ivar appliedDnsServers: If the VM that uses this NIC is part of an Availability Set, then this + list will have the union of all DNS servers from all NICs that are part of the Availability + Set. This property is what is configured on each of those VMs. + :vartype appliedDnsServers: list[str] + :ivar internalDnsNameLabel: Relative DNS name for this NIC used for internal communications + between VMs in the same virtual network. + :vartype internalDnsNameLabel: str + :ivar internalFqdn: Fully qualified DNS name supporting internal communications between VMs in + the same virtual network. + :vartype internalFqdn: str + :ivar internalDomainNameSuffix: Even if internalDnsNameLabel is not specified, a DNS entry is + created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM + name with the value of internalDomainNameSuffix. + :vartype internalDomainNameSuffix: str + """ + + dnsServers: list[str] + """List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS + resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only + value in dnsServers collection.""" + appliedDnsServers: list[str] + """If the VM that uses this NIC is part of an Availability Set, then this list will have the union + of all DNS servers from all NICs that are part of the Availability Set. This property is what + is configured on each of those VMs.""" + internalDnsNameLabel: str + """Relative DNS name for this NIC used for internal communications between VMs in the same virtual + network.""" + internalFqdn: str + """Fully qualified DNS name supporting internal communications between VMs in the same virtual + network.""" + internalDomainNameSuffix: str + """Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of + the VM. This DNS name can be constructed by concatenating the VM name with the value of + internalDomainNameSuffix.""" + + +class NetworkInterfaceIPConfiguration(SubResourceModel): + """IPConfiguration in a network interface. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Network interface IP configuration properties. + :vartype properties: "NetworkInterfaceIPConfigurationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkInterfaceIPConfigurationPropertiesFormat" + """Network interface IP configuration properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties( + TypedDict, total=False +): # pylint: disable=name-too-long + """PrivateLinkConnection properties for the network interface. + + :ivar groupId: The group ID for current private link connection. + :vartype groupId: str + :ivar requiredMemberName: The required member name for current private link connection. + :vartype requiredMemberName: str + :ivar fqdns: List of FQDNs for current private link connection. + :vartype fqdns: list[str] + """ + + groupId: str + """The group ID for current private link connection.""" + requiredMemberName: str + """The required member name for current private link connection.""" + fqdns: list[str] + """List of FQDNs for current private link connection.""" + + +class NetworkInterfaceIPConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of IP configuration. + + :ivar gatewayLoadBalancer: The reference to gateway load balancer frontend IP. + :vartype gatewayLoadBalancer: "SubResource" + :ivar virtualNetworkTaps: The reference to Virtual Network Taps. + :vartype virtualNetworkTaps: list["VirtualNetworkTap"] + :ivar applicationGatewayBackendAddressPools: The reference to + ApplicationGatewayBackendAddressPool resource. + :vartype applicationGatewayBackendAddressPools: list["ApplicationGatewayBackendAddressPool"] + :ivar loadBalancerBackendAddressPools: The reference to LoadBalancerBackendAddressPool + resource. + :vartype loadBalancerBackendAddressPools: list["BackendAddressPool"] + :ivar loadBalancerInboundNatRules: A list of references of LoadBalancerInboundNatRules. + :vartype loadBalancerInboundNatRules: list["InboundNatRule"] + :ivar privateIPAddress: Private IP address of the IP configuration. It can be a single IP + address or a CIDR block in the format
/. + :vartype privateIPAddress: str + :ivar privateIPAddressPrefixLength: The private IP address prefix length. If specified and the + allocation method is dynamic, the service will allocate a CIDR block instead of a single IP + address. + :vartype privateIPAddressPrefixLength: int + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar privateIPAddressVersion: Whether the specific IP configuration is IPv4 or IPv6. Default + is IPv4. Known values are: "IPv4" and "IPv6". + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + :ivar subnet: Subnet bound to the IP configuration. + :vartype subnet: "Subnet" + :ivar primary: Whether this is a primary customer address on the network interface. + :vartype primary: bool + :ivar publicIPAddress: Public IP address bound to the IP configuration. + :vartype publicIPAddress: "PublicIPAddress" + :ivar applicationSecurityGroups: Application security groups in which the IP configuration is + included. + :vartype applicationSecurityGroups: list["ApplicationSecurityGroup"] + :ivar provisioningState: The provisioning state of the network interface IP configuration. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateLinkConnectionProperties: PrivateLinkConnection properties for the network + interface. + :vartype privateLinkConnectionProperties: + "NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties" + """ + + gatewayLoadBalancer: "SubResource" + """The reference to gateway load balancer frontend IP.""" + virtualNetworkTaps: list["VirtualNetworkTap"] + """The reference to Virtual Network Taps.""" + applicationGatewayBackendAddressPools: list["ApplicationGatewayBackendAddressPool"] + """The reference to ApplicationGatewayBackendAddressPool resource.""" + loadBalancerBackendAddressPools: list["BackendAddressPool"] + """The reference to LoadBalancerBackendAddressPool resource.""" + loadBalancerInboundNatRules: list["InboundNatRule"] + """A list of references of LoadBalancerInboundNatRules.""" + privateIPAddress: str + """Private IP address of the IP configuration. It can be a single IP address or a CIDR block in + the format
/.""" + privateIPAddressPrefixLength: Optional[int] + """The private IP address prefix length. If specified and the allocation method is dynamic, the + service will allocate a CIDR block instead of a single IP address.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + privateIPAddressVersion: Union[str, "IPVersion"] + """Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. Known values are: + \"IPv4\" and \"IPv6\".""" + subnet: "Subnet" + """Subnet bound to the IP configuration.""" + primary: bool + """Whether this is a primary customer address on the network interface.""" + publicIPAddress: "PublicIPAddress" + """Public IP address bound to the IP configuration.""" + applicationSecurityGroups: list["ApplicationSecurityGroup"] + """Application security groups in which the IP configuration is included.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network interface IP configuration. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateLinkConnectionProperties: "NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties" + """PrivateLinkConnection properties for the network interface.""" + + +class NetworkInterfacePropertiesFormat(TypedDict, total=False): + """NetworkInterface properties. + + :ivar virtualMachine: The reference to a virtual machine. + :vartype virtualMachine: "SubResource" + :ivar networkSecurityGroup: The reference to the NetworkSecurityGroup resource. + :vartype networkSecurityGroup: "NetworkSecurityGroup" + :ivar privateEndpoint: A reference to the private endpoint to which the network interface is + linked. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar ipConfigurations: A list of IPConfigurations of the network interface. + :vartype ipConfigurations: list["NetworkInterfaceIPConfiguration"] + :ivar tapConfigurations: A list of TapConfigurations of the network interface. + :vartype tapConfigurations: list["NetworkInterfaceTapConfiguration"] + :ivar dnsSettings: The DNS settings in network interface. + :vartype dnsSettings: "NetworkInterfaceDnsSettings" + :ivar macAddress: The MAC address of the network interface. + :vartype macAddress: str + :ivar primary: Whether this is a primary network interface on a virtual machine. + :vartype primary: bool + :ivar vnetEncryptionSupported: Whether the virtual machine this nic is attached to supports + encryption. + :vartype vnetEncryptionSupported: bool + :ivar defaultOutboundConnectivityEnabled: Whether default outbound connectivity for nic was + configured or not. + :vartype defaultOutboundConnectivityEnabled: bool + :ivar enableAcceleratedNetworking: If the network interface is configured for accelerated + networking. Not applicable to VM sizes which require accelerated networking. + :vartype enableAcceleratedNetworking: bool + :ivar disableTcpStateTracking: Indicates whether to disable tcp state tracking. + :vartype disableTcpStateTracking: bool + :ivar enableIPForwarding: Indicates whether IP forwarding is enabled on this network interface. + :vartype enableIPForwarding: bool + :ivar hostedWorkloads: A list of references to linked BareMetal resources. + :vartype hostedWorkloads: list[str] + :ivar dscpConfiguration: A reference to the dscp configuration to which the network interface + is linked. + :vartype dscpConfiguration: "SubResource" + :ivar resourceGuid: The resource GUID property of the network interface resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the network interface resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar workloadType: WorkloadType of the NetworkInterface for BareMetal resources. + :vartype workloadType: str + :ivar nicType: Type of Network Interface resource. Known values are: "Standard" and "Elastic". + :vartype nicType: Union[str, "NetworkInterfaceNicType"] + :ivar privateLinkService: Privatelinkservice of the network interface resource. + :vartype privateLinkService: "PrivateLinkService" + :ivar migrationPhase: Migration phase of Network Interface resource. Known values are: "None", + "Prepare", "Commit", "Abort", and "Committed". + :vartype migrationPhase: Union[str, "NetworkInterfaceMigrationPhase"] + :ivar auxiliaryMode: Auxiliary mode of Network Interface resource. Known values are: "None", + "MaxConnections", "Floating", and "AcceleratedConnections". + :vartype auxiliaryMode: Union[str, "NetworkInterfaceAuxiliaryMode"] + :ivar auxiliarySku: Auxiliary sku of Network Interface resource. Known values are: "None", + "A1", "A2", "A4", and "A8". + :vartype auxiliarySku: Union[str, "NetworkInterfaceAuxiliarySku"] + """ + + virtualMachine: "SubResource" + """The reference to a virtual machine.""" + networkSecurityGroup: "NetworkSecurityGroup" + """The reference to the NetworkSecurityGroup resource.""" + privateEndpoint: "PrivateEndpoint" + """A reference to the private endpoint to which the network interface is linked.""" + ipConfigurations: list["NetworkInterfaceIPConfiguration"] + """A list of IPConfigurations of the network interface.""" + tapConfigurations: list["NetworkInterfaceTapConfiguration"] + """A list of TapConfigurations of the network interface.""" + dnsSettings: "NetworkInterfaceDnsSettings" + """The DNS settings in network interface.""" + macAddress: str + """The MAC address of the network interface.""" + primary: bool + """Whether this is a primary network interface on a virtual machine.""" + vnetEncryptionSupported: bool + """Whether the virtual machine this nic is attached to supports encryption.""" + defaultOutboundConnectivityEnabled: bool + """Whether default outbound connectivity for nic was configured or not.""" + enableAcceleratedNetworking: bool + """If the network interface is configured for accelerated networking. Not applicable to VM sizes + which require accelerated networking.""" + disableTcpStateTracking: bool + """Indicates whether to disable tcp state tracking.""" + enableIPForwarding: bool + """Indicates whether IP forwarding is enabled on this network interface.""" + hostedWorkloads: list[str] + """A list of references to linked BareMetal resources.""" + dscpConfiguration: "SubResource" + """A reference to the dscp configuration to which the network interface is linked.""" + resourceGuid: str + """The resource GUID property of the network interface resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network interface resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + workloadType: str + """WorkloadType of the NetworkInterface for BareMetal resources.""" + nicType: Union[str, "NetworkInterfaceNicType"] + """Type of Network Interface resource. Known values are: \"Standard\" and \"Elastic\".""" + privateLinkService: "PrivateLinkService" + """Privatelinkservice of the network interface resource.""" + migrationPhase: Union[str, "NetworkInterfaceMigrationPhase"] + """Migration phase of Network Interface resource. Known values are: \"None\", \"Prepare\", + \"Commit\", \"Abort\", and \"Committed\".""" + auxiliaryMode: Union[str, "NetworkInterfaceAuxiliaryMode"] + """Auxiliary mode of Network Interface resource. Known values are: \"None\", \"MaxConnections\", + \"Floating\", and \"AcceleratedConnections\".""" + auxiliarySku: Union[str, "NetworkInterfaceAuxiliarySku"] + """Auxiliary sku of Network Interface resource. Known values are: \"None\", \"A1\", \"A2\", + \"A4\", and \"A8\".""" + + +class NetworkInterfaceTapConfiguration(SubResourceModel): + """Tap configuration in a Network Interface. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the Virtual Network Tap configuration. + :vartype properties: "NetworkInterfaceTapConfigurationPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkInterfaceTapConfigurationPropertiesFormat" + """Properties of the Virtual Network Tap configuration.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkInterfaceTapConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Virtual Network Tap configuration. + + :ivar virtualNetworkTap: The reference to the Virtual Network Tap resource. + :vartype virtualNetworkTap: "VirtualNetworkTap" + :ivar provisioningState: The provisioning state of the network interface tap configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + virtualNetworkTap: "VirtualNetworkTap" + """The reference to the Virtual Network Tap resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network interface tap configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class NetworkManager(Resource): + """The Managed Network resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: The network manager properties. + :vartype properties: "NetworkManagerProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "NetworkManagerProperties" + """The network manager properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class NetworkManagerCommit(TypedDict, total=False): + """Network Manager Commit. + + :ivar commitId: Commit Id. + :vartype commitId: str + :ivar targetLocations: List of target locations. Required. + :vartype targetLocations: list[str] + :ivar configurationIds: List of configuration ids. + :vartype configurationIds: list[str] + :ivar commitType: Commit Type. Required. Known values are: "SecurityAdmin", "Connectivity", + "SecurityUser", and "Routing". + :vartype commitType: Union[str, "ConfigurationType"] + """ + + commitId: str + """Commit Id.""" + targetLocations: Required[list[str]] + """List of target locations. Required.""" + configurationIds: list[str] + """List of configuration ids.""" + commitType: Required[Union[str, "ConfigurationType"]] + """Commit Type. Required. Known values are: \"SecurityAdmin\", \"Connectivity\", \"SecurityUser\", + and \"Routing\".""" + + +class NetworkManagerConnection(ChildResource): + """The Network Manager Connection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: The scope connection properties. + :vartype properties: "NetworkManagerConnectionProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "NetworkManagerConnectionProperties" + """The scope connection properties.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class NetworkManagerConnectionProperties(TypedDict, total=False): + """Information about the network manager connection. + + :ivar networkManagerId: Network Manager Id. + :vartype networkManagerId: str + :ivar connectionState: Connection state. Known values are: "Connected", "Pending", "Conflict", + "Revoked", and "Rejected". + :vartype connectionState: Union[str, "ScopeConnectionState"] + :ivar description: A description of the network manager connection. + :vartype description: str + """ + + networkManagerId: str + """Network Manager Id.""" + connectionState: Union[str, "ScopeConnectionState"] + """Connection state. Known values are: \"Connected\", \"Pending\", \"Conflict\", \"Revoked\", and + \"Rejected\".""" + description: str + """A description of the network manager connection.""" + + +class NetworkManagerDeploymentStatusParameter(TypedDict, total=False): + """Network Manager Deployment Status Parameter. + + :ivar regions: List of locations. + :vartype regions: list[str] + :ivar deploymentTypes: List of deployment types. + :vartype deploymentTypes: list[Union[str, "ConfigurationType"]] + :ivar skipToken: Continuation token for pagination, capturing the next page size and offset, as + well as the context of the query. + :vartype skipToken: str + """ + + regions: list[str] + """List of locations.""" + deploymentTypes: list[Union[str, "ConfigurationType"]] + """List of deployment types.""" + skipToken: str + """Continuation token for pagination, capturing the next page size and offset, as well as the + context of the query.""" + + +class NetworkManagerProperties(TypedDict, total=False): + """Properties of Managed Network. + + :ivar description: A description of the network manager. + :vartype description: str + :ivar networkManagerScopes: Scope of Network Manager. Required. + :vartype networkManagerScopes: "NetworkManagerPropertiesNetworkManagerScopes" + :ivar networkManagerScopeAccesses: Scope Access. + :vartype networkManagerScopeAccesses: list[Union[str, "ConfigurationType"]] + :ivar provisioningState: The provisioning state of the network manager resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the network manager.""" + networkManagerScopes: Required["NetworkManagerPropertiesNetworkManagerScopes"] + """Scope of Network Manager. Required.""" + networkManagerScopeAccesses: list[Union[str, "ConfigurationType"]] + """Scope Access.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network manager resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class NetworkManagerPropertiesNetworkManagerScopes(TypedDict, total=False): # pylint: disable=name-too-long + """Scope of Network Manager. + + :ivar managementGroups: List of management groups. + :vartype managementGroups: list[str] + :ivar subscriptions: List of subscriptions. + :vartype subscriptions: list[str] + :ivar crossTenantScopes: List of cross tenant scopes. + :vartype crossTenantScopes: list["CrossTenantScopes"] + """ + + managementGroups: list[str] + """List of management groups.""" + subscriptions: list[str] + """List of subscriptions.""" + crossTenantScopes: list["CrossTenantScopes"] + """List of cross tenant scopes.""" + + +class NetworkManagerRoutingConfiguration(ChildResource): + """Defines the routing configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager routing configuration. + :vartype properties: "NetworkManagerRoutingConfigurationPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "NetworkManagerRoutingConfigurationPropertiesFormat" + """Indicates the properties for the network manager routing configuration.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class NetworkManagerRoutingConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Defines the routing configuration properties. + + :ivar description: A description of the routing configuration. + :vartype description: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + :ivar routeTableUsageMode: Route table usage mode defines which route table will be used by the + configuration. If not defined, this will default to 'ManagedOnly'. Known values are: + "ManagedOnly" and "UseExisting". + :vartype routeTableUsageMode: Union[str, "RouteTableUsageMode"] + """ + + description: str + """A description of the routing configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + routeTableUsageMode: Union[str, "RouteTableUsageMode"] + """Route table usage mode defines which route table will be used by the configuration. If not + defined, this will default to 'ManagedOnly'. Known values are: \"ManagedOnly\" and + \"UseExisting\".""" + + +class NetworkManagerRoutingGroupItem(TypedDict, total=False): + """Network manager routing group item. + + :ivar networkGroupId: Network manager group Id. Required. + :vartype networkGroupId: str + """ + + networkGroupId: Required[str] + """Network manager group Id. Required.""" + + +class NetworkManagerSecurityGroupItem(TypedDict, total=False): + """Network manager security group item. + + :ivar networkGroupId: Network manager group Id. Required. + :vartype networkGroupId: str + """ + + networkGroupId: Required[str] + """Network manager group Id. Required.""" + + +class NetworkProfile(Resource): + """Network profile resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Network profile properties. + :vartype properties: "NetworkProfilePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkProfilePropertiesFormat" + """Network profile properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkProfilePropertiesFormat(TypedDict, total=False): + """Network profile properties. + + :ivar containerNetworkInterfaces: List of child container network interfaces. + :vartype containerNetworkInterfaces: list["ContainerNetworkInterface"] + :ivar containerNetworkInterfaceConfigurations: List of chid container network interface + configurations. + :vartype containerNetworkInterfaceConfigurations: + list["ContainerNetworkInterfaceConfiguration"] + :ivar resourceGuid: The resource GUID property of the network profile resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the network profile resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + containerNetworkInterfaces: list["ContainerNetworkInterface"] + """List of child container network interfaces.""" + containerNetworkInterfaceConfigurations: list["ContainerNetworkInterfaceConfiguration"] + """List of chid container network interface configurations.""" + resourceGuid: str + """The resource GUID property of the network profile resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network profile resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class NetworkRule(TypedDict, total=False): + """Rule of type network. + + :ivar name: Name of the rule. + :vartype name: str + :ivar description: Description of the rule. + :vartype description: str + :ivar ipProtocols: Array of FirewallPolicyRuleNetworkProtocols. + :vartype ipProtocols: list[Union[str, "FirewallPolicyRuleNetworkProtocol"]] + :ivar sourceAddresses: List of source IP addresses for this rule. + :vartype sourceAddresses: list[str] + :ivar destinationAddresses: List of destination IP addresses or Service Tags. + :vartype destinationAddresses: list[str] + :ivar destinationPorts: List of destination ports. + :vartype destinationPorts: list[str] + :ivar sourceIpGroups: List of source IpGroups for this rule. + :vartype sourceIpGroups: list[str] + :ivar destinationIpGroups: List of destination IpGroups for this rule. + :vartype destinationIpGroups: list[str] + :ivar destinationFqdns: List of destination FQDNs. + :vartype destinationFqdns: list[str] + :ivar sourceKubeSelectorGroups: List of source Kubernetes Selector Groups for this rule. + :vartype sourceKubeSelectorGroups: list[str] + :ivar ruleType: Rule Type. Required. NetworkRule. + :vartype ruleType: Literal[FirewallPolicyRuleType.NETWORK_RULE] + """ + + name: str + """Name of the rule.""" + description: str + """Description of the rule.""" + ipProtocols: list[Union[str, "FirewallPolicyRuleNetworkProtocol"]] + """Array of FirewallPolicyRuleNetworkProtocols.""" + sourceAddresses: list[str] + """List of source IP addresses for this rule.""" + destinationAddresses: list[str] + """List of destination IP addresses or Service Tags.""" + destinationPorts: list[str] + """List of destination ports.""" + sourceIpGroups: list[str] + """List of source IpGroups for this rule.""" + destinationIpGroups: list[str] + """List of destination IpGroups for this rule.""" + destinationFqdns: list[str] + """List of destination FQDNs.""" + sourceKubeSelectorGroups: list[str] + """List of source Kubernetes Selector Groups for this rule.""" + ruleType: Required[Literal[FirewallPolicyRuleType.NETWORK_RULE]] + """Rule Type. Required. NetworkRule.""" + + +class NetworkSecurityGroup(Resource): + """NetworkSecurityGroup resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the network security group. + :vartype properties: "NetworkSecurityGroupPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkSecurityGroupPropertiesFormat" + """Properties of the network security group.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkSecurityGroupPropertiesFormat(TypedDict, total=False): + """Network Security Group resource. + + :ivar flushConnection: When enabled, flows created from Network Security Group connections will + be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation. + :vartype flushConnection: bool + :ivar securityRules: A collection of security rules of the network security group. + :vartype securityRules: list["SecurityRule"] + :ivar defaultSecurityRules: The default security rules of network security group. + :vartype defaultSecurityRules: list["SecurityRule"] + :ivar networkInterfaces: A collection of references to network interfaces. + :vartype networkInterfaces: list["NetworkInterface"] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list["Subnet"] + :ivar flowLogs: A collection of references to flow log resources. + :vartype flowLogs: list["FlowLog"] + :ivar resourceGuid: The resource GUID property of the network security group resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the network security group resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + flushConnection: bool + """When enabled, flows created from Network Security Group connections will be re-evaluated when + rules are updates. Initial enablement will trigger re-evaluation.""" + securityRules: list["SecurityRule"] + """A collection of security rules of the network security group.""" + defaultSecurityRules: list["SecurityRule"] + """The default security rules of network security group.""" + networkInterfaces: list["NetworkInterface"] + """A collection of references to network interfaces.""" + subnets: list["Subnet"] + """A collection of references to subnets.""" + flowLogs: list["FlowLog"] + """A collection of references to flow log resources.""" + resourceGuid: str + """The resource GUID property of the network security group resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network security group resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class SecurityPerimeterResource(TypedDict, total=False): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + id: str + """Fully qualified resource ID for the resource. E.g. + \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\".""" + name: str + """The name of the resource.""" + type: str + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + systemData: "SystemData" + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class SecurityPerimeterTrackedResource(SecurityPerimeterResource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have + tags and a location. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: dict[str, str] + """Resource tags.""" + location: Required[str] + """The geo-location where the resource lives. Required.""" + + +class NetworkSecurityPerimeter(SecurityPerimeterTrackedResource): + """The Network Security Perimeter resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The network security perimeter properties. + :vartype properties: "NetworkSecurityPerimeterProperties" + """ + + properties: "NetworkSecurityPerimeterProperties" + """The network security perimeter properties.""" + + +class NetworkSecurityPerimeterProperties(TypedDict, total=False): + """Properties of network security perimeter. + + :ivar provisioningState: The provisioning state of the scope assignment resource. Known values + are: "Succeeded", "Creating", "Updating", "Deleting", "Accepted", and "Failed". + :vartype provisioningState: Union[str, "NspProvisioningState"] + :ivar perimeterGuid: perimeter guid of the network security perimeter. + :vartype perimeterGuid: str + """ + + provisioningState: Union[str, "NspProvisioningState"] + """The provisioning state of the scope assignment resource. Known values are: \"Succeeded\", + \"Creating\", \"Updating\", \"Deleting\", \"Accepted\", and \"Failed\".""" + perimeterGuid: str + """perimeter guid of the network security perimeter.""" + + +class NetworkVirtualAppliance(Resource): + """NetworkVirtualAppliance Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the Network Virtual Appliance. + :vartype properties: "NetworkVirtualAppliancePropertiesFormat" + :ivar identity: The service principal that has read access to cloud-init and config blob. + :vartype identity: "ManagedServiceIdentity" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkVirtualAppliancePropertiesFormat" + """Properties of the Network Virtual Appliance.""" + identity: "ManagedServiceIdentity" + """The service principal that has read access to cloud-init and config blob.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkVirtualApplianceBootDiagnosticParameters(TypedDict, total=False): # pylint: disable=name-too-long + """Specifies input parameters required to retrieve the boot diagnostic logs for an NVA instance. + + :ivar instanceId: The network virtual appliance instance id for which boot diagnostic logs is + being requested. + :vartype instanceId: int + :ivar serialConsoleStorageSasUrl: Specifies the sas-url to the storage blob into which serial + console logs for the requested instance will be written. + :vartype serialConsoleStorageSasUrl: str + :ivar consoleScreenshotStorageSasUrl: Specifies the sas-url to the storage blob into which + console screen shot for the requested instance will be written. + :vartype consoleScreenshotStorageSasUrl: str + """ + + instanceId: int + """The network virtual appliance instance id for which boot diagnostic logs is being requested.""" + serialConsoleStorageSasUrl: str + """Specifies the sas-url to the storage blob into which serial console logs for the requested + instance will be written.""" + consoleScreenshotStorageSasUrl: str + """Specifies the sas-url to the storage blob into which console screen shot for the requested + instance will be written.""" + + +class NetworkVirtualApplianceCommitMigrationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties supplied to commit the migration of a Network Virtual Appliance. + + :ivar migrationType: The type of migration workflow to commit. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migrationType: Union[str, "MigrationType"] + """ + + migrationType: Required[Union[str, "MigrationType"]] + """The type of migration workflow to commit. Required. Known values are: \"MigrateToNewOSVersion\" + and \"MigrateToNewILBArchitecture\".""" + + +class NetworkVirtualApplianceCommitMigrationRequest(TypedDict, total=False): # pylint: disable=name-too-long + """Parameters supplied to commit the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the commit migration request. + :vartype properties: "NetworkVirtualApplianceCommitMigrationProperties" + """ + + properties: "NetworkVirtualApplianceCommitMigrationProperties" + """Properties of the commit migration request.""" + + +class NetworkVirtualApplianceConnection(SubResource): + """NetworkVirtualApplianceConnection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the express route connection. + :vartype properties: "NetworkVirtualApplianceConnectionProperties" + :ivar name: The name of the resource. + :vartype name: str + """ + + properties: "NetworkVirtualApplianceConnectionProperties" + """Properties of the express route connection.""" + name: str + """The name of the resource.""" + + +class NetworkVirtualApplianceConnectionProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the NetworkVirtualApplianceConnection subresource. + + :ivar name: The name of the resource. + :vartype name: str + :ivar provisioningState: The provisioning state of the NetworkVirtualApplianceConnection + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar asn: Network Virtual Appliance ASN. + :vartype asn: int + :ivar tunnelIdentifier: Unique identifier for the connection. + :vartype tunnelIdentifier: int + :ivar bgpPeerAddress: List of bgpPeerAddresses for the NVA instances. + :vartype bgpPeerAddress: list[str] + :ivar enableInternetSecurity: Enable internet security. + :vartype enableInternetSecurity: bool + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + """ + + name: str + """The name of the resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the NetworkVirtualApplianceConnection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + asn: int + """Network Virtual Appliance ASN.""" + tunnelIdentifier: int + """Unique identifier for the connection.""" + bgpPeerAddress: list[str] + """List of bgpPeerAddresses for the NVA instances.""" + enableInternetSecurity: bool + """Enable internet security.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + + +class NetworkVirtualApplianceExecuteMigrationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties supplied to execute the migration of a Network Virtual Appliance. + + :ivar migrationType: The type of migration workflow to execute. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migrationType: Union[str, "MigrationType"] + """ + + migrationType: Required[Union[str, "MigrationType"]] + """The type of migration workflow to execute. Required. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + + +class NetworkVirtualApplianceExecuteMigrationRequest(TypedDict, total=False): # pylint: disable=name-too-long + """Parameters supplied to execute the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the execute migration request. + :vartype properties: "NetworkVirtualApplianceExecuteMigrationProperties" + """ + + properties: "NetworkVirtualApplianceExecuteMigrationProperties" + """Properties of the execute migration request.""" + + +class NetworkVirtualApplianceInstanceIds(TypedDict, total=False): + """Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM + instances. + + :ivar instanceIds: The network virtual appliance instance ids. Omitting the network virtual + appliance instance ids will result in the operation being performed on all virtual machines + belonging to the network virtual appliance. + :vartype instanceIds: list[str] + """ + + instanceIds: list[str] + """The network virtual appliance instance ids. Omitting the network virtual appliance instance ids + will result in the operation being performed on all virtual machines belonging to the network + virtual appliance.""" + + +class NetworkVirtualApplianceMigrationStatus(TypedDict, total=False): + """The migration status of a Network Virtual Appliance. + + :ivar migrationType: The type of migration workflow currently in progress or last performed. + Known values are: "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migrationType: Union[str, "MigrationType"] + :ivar migrationPhase: The current phase of the migration workflow (for example, Prepare, + Execute, Commit, or Abort). + :vartype migrationPhase: str + :ivar migrationPhaseStatus: The detailed status of the current migration phase. + :vartype migrationPhaseStatus: str + """ + + migrationType: Union[str, "MigrationType"] + """The type of migration workflow currently in progress or last performed. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + migrationPhase: str + """The current phase of the migration workflow (for example, Prepare, Execute, Commit, or Abort).""" + migrationPhaseStatus: str + """The detailed status of the current migration phase.""" + + +class NetworkVirtualAppliancePrepareMigrationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties supplied to prepare the migration of a Network Virtual Appliance. + + :ivar migrationType: The type of migration workflow to prepare. Required. Known values are: + "MigrateToNewOSVersion" and "MigrateToNewILBArchitecture". + :vartype migrationType: Union[str, "MigrationType"] + :ivar marketPlaceVersion: The marketplace version to migrate to. Applicable when migrationType + is MigrateToNewOSVersion. + :vartype marketPlaceVersion: str + """ + + migrationType: Required[Union[str, "MigrationType"]] + """The type of migration workflow to prepare. Required. Known values are: + \"MigrateToNewOSVersion\" and \"MigrateToNewILBArchitecture\".""" + marketPlaceVersion: str + """The marketplace version to migrate to. Applicable when migrationType is MigrateToNewOSVersion.""" + + +class NetworkVirtualAppliancePrepareMigrationRequest(TypedDict, total=False): # pylint: disable=name-too-long + """Parameters supplied to prepare the migration of a Network Virtual Appliance. + + :ivar properties: Properties of the prepare migration request. + :vartype properties: "NetworkVirtualAppliancePrepareMigrationProperties" + """ + + properties: "NetworkVirtualAppliancePrepareMigrationProperties" + """Properties of the prepare migration request.""" + + +class NetworkVirtualAppliancePropertiesFormat(TypedDict, total=False): + """Network Virtual Appliance definition. + + :ivar nvaSku: Network Virtual Appliance SKU. + :vartype nvaSku: "VirtualApplianceSkuProperties" + :ivar addressPrefix: Address Prefix. + :vartype addressPrefix: str + :ivar addressPrefixV6: Address Prefix for Dual-Stack NVAs. + :vartype addressPrefixV6: str + :ivar bootStrapConfigurationBlobs: BootStrapConfigurationBlobs storage URLs. + :vartype bootStrapConfigurationBlobs: list[str] + :ivar virtualHub: The Virtual Hub where Network Virtual Appliance is being deployed. + :vartype virtualHub: "SubResource" + :ivar cloudInitConfigurationBlobs: CloudInitConfigurationBlob storage URLs. + :vartype cloudInitConfigurationBlobs: list[str] + :ivar cloudInitConfiguration: CloudInitConfiguration string in plain text. + :vartype cloudInitConfiguration: str + :ivar virtualApplianceAsn: VirtualAppliance ASN. Microsoft private, public and IANA reserved + ASN are not supported. + :vartype virtualApplianceAsn: int + :ivar sshPublicKey: Public key for SSH login. + :vartype sshPublicKey: str + :ivar virtualApplianceNics: List of Virtual Appliance Network Interfaces. + :vartype virtualApplianceNics: list["VirtualApplianceNicProperties"] + :ivar networkProfile: Network Profile containing configurations for Public and Private NIC. + :vartype networkProfile: "NetworkVirtualAppliancePropertiesFormatNetworkProfile" + :ivar additionalNics: Details required for Additional Network Interface. This property is not + compatible with the NVA deployed in VNets. + :vartype additionalNics: list["VirtualApplianceAdditionalNicProperties"] + :ivar internetIngressPublicIps: List of Resource Uri of Public IPs for Internet Ingress + Scenario. + :vartype internetIngressPublicIps: list["InternetIngressPublicIpsProperties"] + :ivar virtualApplianceSites: List of references to VirtualApplianceSite. + :vartype virtualApplianceSites: list["SubResource"] + :ivar virtualApplianceConnections: List of references to VirtualApplianceConnections. + :vartype virtualApplianceConnections: list["SubResource"] + :ivar inboundSecurityRules: List of references to InboundSecurityRules. + :vartype inboundSecurityRules: list["SubResource"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar deploymentType: The deployment type. PartnerManaged for the SaaS NVA. + :vartype deploymentType: str + :ivar delegation: The delegation for the Virtual Appliance. Only appliable for SaaS NVA. + :vartype delegation: "DelegationProperties" + :ivar partnerManagedResource: The delegation for the Virtual Appliance. + :vartype partnerManagedResource: "PartnerManagedResourceProperties" + :ivar nvaInterfaceConfigurations: The NVA in VNet interface configurations. + :vartype nvaInterfaceConfigurations: list["NvaInterfaceConfigurationsProperties"] + :ivar addressFamily: The address families to deploy the NVA in. ["IPv4", "IPv6"] deploys a + dual-stack NVA (the vHub/VNet must also be dual-stack). ["IPv4"], an empty array, or omitting + the field deploys an IPv4-only NVA. The value "IPv6" may only appear in combination with + "IPv4"; standalone ["IPv6"] is reserved for future use and is rejected by the service today. + :vartype addressFamily: list[Union[str, "IPVersion"]] + :ivar privateIpAddress: A Internal Load Balancer's HA port frontend IP address. Can be used to + set routes & UDR to load balance traffic between NVA instances. + :vartype privateIpAddress: str + :ivar privateIpAddressV6: An Internal Load Balancer's HA port frontend IPv6 address. Can be + used to set routes & UDR to load balance traffic between NVA instances. This field appears in + dual-stack NVAs. + :vartype privateIpAddressV6: str + :ivar migrationStatus: The migration status of the Network Virtual Appliance. + :vartype migrationStatus: "NetworkVirtualApplianceMigrationStatus" + """ + + nvaSku: "VirtualApplianceSkuProperties" + """Network Virtual Appliance SKU.""" + addressPrefix: str + """Address Prefix.""" + addressPrefixV6: str + """Address Prefix for Dual-Stack NVAs.""" + bootStrapConfigurationBlobs: list[str] + """BootStrapConfigurationBlobs storage URLs.""" + virtualHub: "SubResource" + """The Virtual Hub where Network Virtual Appliance is being deployed.""" + cloudInitConfigurationBlobs: list[str] + """CloudInitConfigurationBlob storage URLs.""" + cloudInitConfiguration: str + """CloudInitConfiguration string in plain text.""" + virtualApplianceAsn: int + """VirtualAppliance ASN. Microsoft private, public and IANA reserved ASN are not supported.""" + sshPublicKey: str + """Public key for SSH login.""" + virtualApplianceNics: list["VirtualApplianceNicProperties"] + """List of Virtual Appliance Network Interfaces.""" + networkProfile: "NetworkVirtualAppliancePropertiesFormatNetworkProfile" + """Network Profile containing configurations for Public and Private NIC.""" + additionalNics: list["VirtualApplianceAdditionalNicProperties"] + """Details required for Additional Network Interface. This property is not compatible with the NVA + deployed in VNets.""" + internetIngressPublicIps: list["InternetIngressPublicIpsProperties"] + """List of Resource Uri of Public IPs for Internet Ingress Scenario.""" + virtualApplianceSites: list["SubResource"] + """List of references to VirtualApplianceSite.""" + virtualApplianceConnections: list["SubResource"] + """List of references to VirtualApplianceConnections.""" + inboundSecurityRules: list["SubResource"] + """List of references to InboundSecurityRules.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + deploymentType: str + """The deployment type. PartnerManaged for the SaaS NVA.""" + delegation: "DelegationProperties" + """The delegation for the Virtual Appliance. Only appliable for SaaS NVA.""" + partnerManagedResource: "PartnerManagedResourceProperties" + """The delegation for the Virtual Appliance.""" + nvaInterfaceConfigurations: list["NvaInterfaceConfigurationsProperties"] + """The NVA in VNet interface configurations.""" + addressFamily: list[Union[str, "IPVersion"]] + """The address families to deploy the NVA in. [\"IPv4\", \"IPv6\"] deploys a dual-stack NVA (the + vHub/VNet must also be dual-stack). [\"IPv4\"], an empty array, or omitting the field deploys + an IPv4-only NVA. The value \"IPv6\" may only appear in combination with \"IPv4\"; standalone + [\"IPv6\"] is reserved for future use and is rejected by the service today.""" + privateIpAddress: str + """A Internal Load Balancer's HA port frontend IP address. Can be used to set routes & UDR to load + balance traffic between NVA instances.""" + privateIpAddressV6: str + """An Internal Load Balancer's HA port frontend IPv6 address. Can be used to set routes & UDR to + load balance traffic between NVA instances. This field appears in dual-stack NVAs.""" + migrationStatus: "NetworkVirtualApplianceMigrationStatus" + """The migration status of the Network Virtual Appliance.""" + + +class NetworkVirtualAppliancePropertiesFormatNetworkProfile(TypedDict, total=False): # pylint: disable=name-too-long + """Network Profile containing configurations for Public and Private NIC. + + :ivar networkInterfaceConfigurations: + :vartype networkInterfaceConfigurations: list["VirtualApplianceNetworkInterfaceConfiguration"] + """ + + networkInterfaceConfigurations: list["VirtualApplianceNetworkInterfaceConfiguration"] + + +class NetworkWatcher(Resource): + """Network watcher in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the network watcher. + :vartype properties: "NetworkWatcherPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "NetworkWatcherPropertiesFormat" + """Properties of the network watcher.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class NetworkWatcherPropertiesFormat(TypedDict, total=False): + """The network watcher properties. + + :ivar provisioningState: The provisioning state of the network watcher resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the network watcher resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class NextHopParameters(TypedDict, total=False): + """Parameters that define the source and destination endpoint. + + :ivar targetResourceId: The resource identifier of the target resource against which the action + is to be performed. Required. + :vartype targetResourceId: str + :ivar sourceIPAddress: The source IP address. Required. + :vartype sourceIPAddress: str + :ivar destinationIPAddress: The destination IP address. Required. + :vartype destinationIPAddress: str + :ivar targetNicResourceId: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on + any of the nics, then this parameter must be specified. Otherwise optional). + :vartype targetNicResourceId: str + """ + + targetResourceId: Required[str] + """The resource identifier of the target resource against which the action is to be performed. + Required.""" + sourceIPAddress: Required[str] + """The source IP address. Required.""" + destinationIPAddress: Required[str] + """The destination IP address. Required.""" + targetNicResourceId: str + """The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this + parameter must be specified. Otherwise optional).""" + + +class SecurityPerimeterProxyResource(SecurityPerimeterResource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have + tags and a location. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + """ + + +class NspAccessRule(SecurityPerimeterProxyResource): + """The NSP access rule resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the NSP access rule. + :vartype properties: "NspAccessRuleProperties" + """ + + properties: "NspAccessRuleProperties" + """Properties of the NSP access rule.""" + + +class NspAccessRuleProperties(TypedDict, total=False): + """Properties of NSP access rule. + + :ivar provisioningState: The provisioning state of the scope assignment resource. Known values + are: "Succeeded", "Creating", "Updating", "Deleting", "Accepted", and "Failed". + :vartype provisioningState: Union[str, "NspProvisioningState"] + :ivar direction: Direction that specifies whether the access rules is inbound/outbound. Known + values are: "Inbound" and "Outbound". + :vartype direction: Union[str, "AccessRuleDirection"] + :ivar addressPrefixes: Inbound address prefixes (IPv4/IPv6). + :vartype addressPrefixes: list[str] + :ivar fullyQualifiedDomainNames: Outbound rules in fully qualified domain name format. + :vartype fullyQualifiedDomainNames: list[str] + :ivar subscriptions: List of subscription ids. + :vartype subscriptions: list["SubscriptionId"] + :ivar networkSecurityPerimeters: Rule specified by the perimeter id. + :vartype networkSecurityPerimeters: list["PerimeterBasedAccessRule"] + :ivar emailAddresses: Outbound rules in email address format. This access rule type is + currently unavailable for use. + :vartype emailAddresses: list[str] + :ivar phoneNumbers: Outbound rules in phone number format. This access rule type is currently + unavailable for use. + :vartype phoneNumbers: list[str] + :ivar serviceTags: Inbound rules of type service tag. This access rule type is currently + unavailable for use. + :vartype serviceTags: list[str] + """ + + provisioningState: Union[str, "NspProvisioningState"] + """The provisioning state of the scope assignment resource. Known values are: \"Succeeded\", + \"Creating\", \"Updating\", \"Deleting\", \"Accepted\", and \"Failed\".""" + direction: Union[str, "AccessRuleDirection"] + """Direction that specifies whether the access rules is inbound/outbound. Known values are: + \"Inbound\" and \"Outbound\".""" + addressPrefixes: list[str] + """Inbound address prefixes (IPv4/IPv6).""" + fullyQualifiedDomainNames: list[str] + """Outbound rules in fully qualified domain name format.""" + subscriptions: list["SubscriptionId"] + """List of subscription ids.""" + networkSecurityPerimeters: list["PerimeterBasedAccessRule"] + """Rule specified by the perimeter id.""" + emailAddresses: list[str] + """Outbound rules in email address format. This access rule type is currently unavailable for use.""" + phoneNumbers: list[str] + """Outbound rules in phone number format. This access rule type is currently unavailable for use.""" + serviceTags: list[str] + """Inbound rules of type service tag. This access rule type is currently unavailable for use.""" + + +class NspAssociation(SecurityPerimeterProxyResource): + """The NSP resource association resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the NSP resource association. + :vartype properties: "NspAssociationProperties" + """ + + properties: "NspAssociationProperties" + """Properties of the NSP resource association.""" + + +class NspAssociationProperties(TypedDict, total=False): + """NspAssociationProperties. + + :ivar provisioningState: The provisioning state of the resource association resource. Known + values are: "Succeeded", "Creating", "Updating", "Deleting", "Accepted", and "Failed". + :vartype provisioningState: Union[str, "NspProvisioningState"] + :ivar privateLinkResource: The PaaS resource to be associated. + :vartype privateLinkResource: "SubResource" + :ivar profile: Profile id to which the PaaS resource is associated. + :vartype profile: "SubResource" + :ivar accessMode: Access mode on the association. Known values are: "Learning", "Enforced", and + "Audit". + :vartype accessMode: Union[str, "AssociationAccessMode"] + :ivar hasProvisioningIssues: Specifies if there are provisioning issues. + :vartype hasProvisioningIssues: str + """ + + provisioningState: Union[str, "NspProvisioningState"] + """The provisioning state of the resource association resource. Known values are: \"Succeeded\", + \"Creating\", \"Updating\", \"Deleting\", \"Accepted\", and \"Failed\".""" + privateLinkResource: "SubResource" + """The PaaS resource to be associated.""" + profile: "SubResource" + """Profile id to which the PaaS resource is associated.""" + accessMode: Union[str, "AssociationAccessMode"] + """Access mode on the association. Known values are: \"Learning\", \"Enforced\", and \"Audit\".""" + hasProvisioningIssues: str + """Specifies if there are provisioning issues.""" + + +class NspLink(SecurityPerimeterProxyResource): + """The network security perimeter link resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the network security perimeter link resource. + :vartype properties: "NspLinkProperties" + """ + + properties: "NspLinkProperties" + """Properties of the network security perimeter link resource.""" + + +class NspLinkProperties(TypedDict, total=False): + """Properties of NSP Link resource. + + :ivar provisioningState: The provisioning state of the NSP Link resource. Known values are: + "Succeeded", "Creating", "Updating", "Deleting", "Accepted", "Failed", and + "WaitForRemoteCompletion". + :vartype provisioningState: Union[str, "NspLinkProvisioningState"] + :ivar autoApprovedRemotePerimeterResourceId: Perimeter ARM Id for the remote NSP with which the + link gets created in Auto-approval mode. It should be used when the NSP admin have + Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP + resource. + :vartype autoApprovedRemotePerimeterResourceId: str + :ivar remotePerimeterGuid: Remote NSP Guid with which the link gets created. + :vartype remotePerimeterGuid: str + :ivar remotePerimeterLocation: Remote NSP location with which the link gets created. + :vartype remotePerimeterLocation: str + :ivar localInboundProfiles: Local Inbound profile names to which Inbound is allowed. Use ['*'] + to allow inbound to all profiles. + :vartype localInboundProfiles: list[str] + :ivar localOutboundProfiles: Local Outbound profile names from which Outbound is allowed. In + current version, it is readonly property and it's value is set to ['*'] to allow outbound from + all profiles. In later version, user will be able to modify it. + :vartype localOutboundProfiles: list[str] + :ivar remoteInboundProfiles: Remote Inbound profile names to which Inbound is allowed. Use + ['*'] to allow inbound to all profiles. This property can only be updated in auto-approval + mode. + :vartype remoteInboundProfiles: list[str] + :ivar remoteOutboundProfiles: Remote Outbound profile names from which Outbound is allowed. In + current version, it is readonly property and it's value is set to ['*'] to allow outbound from + all profiles. In later version, user will be able to modify it. + :vartype remoteOutboundProfiles: list[str] + :ivar description: A message passed to the owner of the remote NSP link resource with this + connection request. In case of Auto-approved flow, it is default to 'Auto Approved'. Restricted + to 140 chars. + :vartype description: str + :ivar status: The NSP link state. Known values are: "Approved", "Pending", "Rejected", and + "Disconnected". + :vartype status: Union[str, "NspLinkStatus"] + """ + + provisioningState: Union[str, "NspLinkProvisioningState"] + """The provisioning state of the NSP Link resource. Known values are: \"Succeeded\", \"Creating\", + \"Updating\", \"Deleting\", \"Accepted\", \"Failed\", and \"WaitForRemoteCompletion\".""" + autoApprovedRemotePerimeterResourceId: str + """Perimeter ARM Id for the remote NSP with which the link gets created in Auto-approval mode. It + should be used when the NSP admin have + Microsoft.Network/networkSecurityPerimeters/linkPerimeter/action permission on the remote NSP + resource.""" + remotePerimeterGuid: str + """Remote NSP Guid with which the link gets created.""" + remotePerimeterLocation: str + """Remote NSP location with which the link gets created.""" + localInboundProfiles: list[str] + """Local Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all + profiles.""" + localOutboundProfiles: list[str] + """Local Outbound profile names from which Outbound is allowed. In current version, it is readonly + property and it's value is set to ['*'] to allow outbound from all profiles. In later version, + user will be able to modify it.""" + remoteInboundProfiles: list[str] + """Remote Inbound profile names to which Inbound is allowed. Use ['*'] to allow inbound to all + profiles. This property can only be updated in auto-approval mode.""" + remoteOutboundProfiles: list[str] + """Remote Outbound profile names from which Outbound is allowed. In current version, it is + readonly property and it's value is set to ['*'] to allow outbound from all profiles. In later + version, user will be able to modify it.""" + description: str + """A message passed to the owner of the remote NSP link resource with this connection request. In + case of Auto-approved flow, it is default to 'Auto Approved'. Restricted to 140 chars.""" + status: Union[str, "NspLinkStatus"] + """The NSP link state. Known values are: \"Approved\", \"Pending\", \"Rejected\", and + \"Disconnected\".""" + + +class NspLoggingConfiguration(SecurityPerimeterProxyResource): + """The NSP logging configuration. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the NSP logging configuration. + :vartype properties: "NspLoggingConfigurationProperties" + """ + + properties: "NspLoggingConfigurationProperties" + """Properties of the NSP logging configuration.""" + + +class NspLoggingConfigurationProperties(TypedDict, total=False): + """The NSP logging configuration properties. + + :ivar enabledLogCategories: The log categories to enable in the NSP logging configuration. + :vartype enabledLogCategories: list[str] + :ivar version: The version of the NSP logging configuration. + :vartype version: str + """ + + enabledLogCategories: list[str] + """The log categories to enable in the NSP logging configuration.""" + version: str + """The version of the NSP logging configuration.""" + + +class NspProfile(SecurityPerimeterProxyResource): + """The network security perimeter profile resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of the network security perimeter profile. + :vartype properties: "NspProfileProperties" + """ + + properties: "NspProfileProperties" + """Properties of the network security perimeter profile.""" + + +class NspProfileProperties(TypedDict, total=False): + """Properties of NSP profile. + + :ivar accessRulesVersion: Version number that increases with every update to access rules + within the profile. + :vartype accessRulesVersion: str + :ivar diagnosticSettingsVersion: Version number that increases with every update to diagnostic + settings within the profile. + :vartype diagnosticSettingsVersion: str + """ + + accessRulesVersion: str + """Version number that increases with every update to access rules within the profile.""" + diagnosticSettingsVersion: str + """Version number that increases with every update to diagnostic settings within the profile.""" + + +class NvaInterfaceConfigurationsProperties(TypedDict, total=False): + """Specifies input parameters required NVA in VNet interface configuration. + + :ivar subnet: A subnet resource id where the NIC will be deployed. Each subnet resource uri + should be unique. + :vartype subnet: "NvaInVnetSubnetReferenceProperties" + :ivar type: Specifies the NIC types for the NVA interface configuration. Allowed values: + PrivateNic, PublicNic, AdditionalPrivateNic, AdditionalPublicNic. Only the combination of + PrivateNic and PublicNic is currently supported. + :vartype type: list[Union[str, "NvaNicType"]] + :ivar name: Specifies the name of the interface. Maximum length is 70 characters. + :vartype name: str + """ + + subnet: "NvaInVnetSubnetReferenceProperties" + """A subnet resource id where the NIC will be deployed. Each subnet resource uri should be unique.""" + type: list[Union[str, "NvaNicType"]] + """Specifies the NIC types for the NVA interface configuration. Allowed values: PrivateNic, + PublicNic, AdditionalPrivateNic, AdditionalPublicNic. Only the combination of PrivateNic and + PublicNic is currently supported.""" + name: str + """Specifies the name of the interface. Maximum length is 70 characters.""" + + +class NvaInVnetSubnetReferenceProperties(TypedDict, total=False): + """Subnet references where the NVA NICS will be deployed. + + :ivar id: Resource Uri of Subnet. + :vartype id: str + """ + + id: str + """Resource Uri of Subnet.""" + + +class O365BreakOutCategoryPolicies(TypedDict, total=False): + """Office365 breakout categories. + + :ivar allow: Flag to control allow category. + :vartype allow: bool + :ivar optimize: Flag to control optimize category. + :vartype optimize: bool + :ivar default: Flag to control default category. + :vartype default: bool + """ + + allow: bool + """Flag to control allow category.""" + optimize: bool + """Flag to control optimize category.""" + default: bool + """Flag to control default category.""" + + +class O365PolicyProperties(TypedDict, total=False): + """The Office365 breakout policy. + + :ivar breakOutCategories: Office365 breakout categories. + :vartype breakOutCategories: "O365BreakOutCategoryPolicies" + """ + + breakOutCategories: "O365BreakOutCategoryPolicies" + """Office365 breakout categories.""" + + +class Office365PolicyProperties(TypedDict, total=False): + """Network Virtual Appliance Sku Properties. + + :ivar breakOutCategories: Office 365 breakout categories. + :vartype breakOutCategories: "BreakOutCategoryPolicies" + """ + + breakOutCategories: "BreakOutCategoryPolicies" + """Office 365 breakout categories.""" + + +class OrderBy(TypedDict, total=False): + """Describes a column to sort. + + :ivar field: Describes the actual column name to sort by. + :vartype field: str + :ivar order: Describes if results should be in ascending/descending order. Known values are: + "Ascending" and "Descending". + :vartype order: Union[str, "FirewallPolicyIDPSQuerySortOrder"] + """ + + field: str + """Describes the actual column name to sort by.""" + order: Union[str, "FirewallPolicyIDPSQuerySortOrder"] + """Describes if results should be in ascending/descending order. Known values are: \"Ascending\" + and \"Descending\".""" + + +class OutboundRule(SubResourceModel): + """Outbound rule of the load balancer. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of load balancer outbound rule. + :vartype properties: "OutboundRulePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "OutboundRulePropertiesFormat" + """Properties of load balancer outbound rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class OutboundRulePropertiesFormat(TypedDict, total=False): + """Outbound rule of the load balancer. + + :ivar allocatedOutboundPorts: The number of outbound ports to be used for NAT. + :vartype allocatedOutboundPorts: int + :ivar frontendIPConfigurations: The Frontend IP addresses of the load balancer. Required. + :vartype frontendIPConfigurations: list["SubResource"] + :ivar backendAddressPool: A reference to a pool of DIPs. Outbound traffic is randomly load + balanced across IPs in the backend IPs. Required. + :vartype backendAddressPool: "SubResource" + :ivar provisioningState: The provisioning state of the outbound rule resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar protocol: The protocol for the outbound rule in load balancer. Required. Known values + are: "Tcp", "Udp", and "All". + :vartype protocol: Union[str, "LoadBalancerOutboundRuleProtocol"] + :ivar enableTcpReset: Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected + connection termination. This element is only used when the protocol is set to TCP. + :vartype enableTcpReset: bool + :ivar idleTimeoutInMinutes: The timeout for the TCP idle connection. + :vartype idleTimeoutInMinutes: int + """ + + allocatedOutboundPorts: int + """The number of outbound ports to be used for NAT.""" + frontendIPConfigurations: Required[list["SubResource"]] + """The Frontend IP addresses of the load balancer. Required.""" + backendAddressPool: Required["SubResource"] + """A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the + backend IPs. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the outbound rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + protocol: Required[Union[str, "LoadBalancerOutboundRuleProtocol"]] + """The protocol for the outbound rule in load balancer. Required. Known values are: \"Tcp\", + \"Udp\", and \"All\".""" + enableTcpReset: bool + """Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. + This element is only used when the protocol is set to TCP.""" + idleTimeoutInMinutes: int + """The timeout for the TCP idle connection.""" + + +class OutputSettings(TypedDict, total=False): + """Settings that control where the connection analyzer writes its results. + + :ivar storageAccountSettings: Storage account where output is written. + :vartype storageAccountSettings: "StorageAccountSettings" + """ + + storageAccountSettings: "StorageAccountSettings" + """Storage account where output is written.""" + + +class OwaspCrsExclusionEntry(TypedDict, total=False): + """Allow to exclude some variable satisfy the condition for the WAF check. + + :ivar matchVariable: The variable to be excluded. Required. Known values are: + "RequestHeaderNames", "RequestCookieNames", "RequestArgNames", "RequestHeaderKeys", + "RequestHeaderValues", "RequestCookieKeys", "RequestCookieValues", "RequestArgKeys", and + "RequestArgValues". + :vartype matchVariable: Union[str, "OwaspCrsExclusionEntryMatchVariable"] + :ivar selectorMatchOperator: When matchVariable is a collection, operate on the selector to + specify which elements in the collection this exclusion applies to. Required. Known values are: + "Equals", "Contains", "StartsWith", "EndsWith", and "EqualsAny". + :vartype selectorMatchOperator: Union[str, "OwaspCrsExclusionEntrySelectorMatchOperator"] + :ivar selector: When matchVariable is a collection, operator used to specify which elements in + the collection this exclusion applies to. Required. + :vartype selector: str + :ivar exclusionManagedRuleSets: The managed rule sets that are associated with the exclusion. + :vartype exclusionManagedRuleSets: list["ExclusionManagedRuleSet"] + """ + + matchVariable: Required[Union[str, "OwaspCrsExclusionEntryMatchVariable"]] + """The variable to be excluded. Required. Known values are: \"RequestHeaderNames\", + \"RequestCookieNames\", \"RequestArgNames\", \"RequestHeaderKeys\", \"RequestHeaderValues\", + \"RequestCookieKeys\", \"RequestCookieValues\", \"RequestArgKeys\", and \"RequestArgValues\".""" + selectorMatchOperator: Required[Union[str, "OwaspCrsExclusionEntrySelectorMatchOperator"]] + """When matchVariable is a collection, operate on the selector to specify which elements in the + collection this exclusion applies to. Required. Known values are: \"Equals\", \"Contains\", + \"StartsWith\", \"EndsWith\", and \"EqualsAny\".""" + selector: Required[str] + """When matchVariable is a collection, operator used to specify which elements in the collection + this exclusion applies to. Required.""" + exclusionManagedRuleSets: list["ExclusionManagedRuleSet"] + """The managed rule sets that are associated with the exclusion.""" + + +class P2SConnectionConfiguration(SubResource): + """P2SConnectionConfiguration Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the P2S connection configuration. + :vartype properties: "P2SConnectionConfigurationProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "P2SConnectionConfigurationProperties" + """Properties of the P2S connection configuration.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class P2SConnectionConfigurationProperties(TypedDict, total=False): + """Parameters for P2SConnectionConfiguration. + + :ivar vpnClientAddressPool: The reference to the address space resource which represents + Address space for P2S VpnClient. + :vartype vpnClientAddressPool: "AddressSpace" + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + :ivar enableInternetSecurity: Flag indicating whether the enable internet security flag is + turned on for the P2S Connections or not. + :vartype enableInternetSecurity: bool + :ivar configurationPolicyGroupAssociations: List of Configuration Policy Groups that this + P2SConnectionConfiguration is attached to. + :vartype configurationPolicyGroupAssociations: list["SubResource"] + :ivar previousConfigurationPolicyGroupAssociations: List of previous Configuration Policy + Groups that this P2SConnectionConfiguration was attached to. + :vartype previousConfigurationPolicyGroupAssociations: + list["VpnServerConfigurationPolicyGroup"] + :ivar provisioningState: The provisioning state of the P2SConnectionConfiguration resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + vpnClientAddressPool: "AddressSpace" + """The reference to the address space resource which represents Address space for P2S VpnClient.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + enableInternetSecurity: bool + """Flag indicating whether the enable internet security flag is turned on for the P2S Connections + or not.""" + configurationPolicyGroupAssociations: list["SubResource"] + """List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to.""" + previousConfigurationPolicyGroupAssociations: list["VpnServerConfigurationPolicyGroup"] + """List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached + to.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the P2SConnectionConfiguration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class P2SVpnConnectionHealthRequest(TypedDict, total=False): + """List of P2S Vpn connection health request. + + :ivar vpnUserNamesFilter: The list of p2s vpn user names whose p2s vpn connection detailed + health to retrieve for. + :vartype vpnUserNamesFilter: list[str] + :ivar outputBlobSasUrl: The sas-url to download the P2S Vpn connection health detail. + :vartype outputBlobSasUrl: str + """ + + vpnUserNamesFilter: list[str] + """The list of p2s vpn user names whose p2s vpn connection detailed health to retrieve for.""" + outputBlobSasUrl: str + """The sas-url to download the P2S Vpn connection health detail.""" + + +class P2SVpnConnectionRequest(TypedDict, total=False): + """List of p2s vpn connections to be disconnected. + + :ivar vpnConnectionIds: List of p2s vpn connection Ids. + :vartype vpnConnectionIds: list[str] + """ + + vpnConnectionIds: list[str] + """List of p2s vpn connection Ids.""" + + +class TrackedResourceWithSettableIdOptionalLocation(TypedDict, total=False): # pylint: disable=name-too-long + """Common resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + location: str + """Resource location.""" + tags: dict[str, str] + """Resource tags.""" + + +class P2SVpnGateway(TrackedResourceWithSettableIdOptionalLocation): + """P2SVpnGateway Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the P2SVpnGateway. + :vartype properties: "P2SVpnGatewayProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "P2SVpnGatewayProperties" + """Properties of the P2SVpnGateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class P2SVpnGatewayProperties(TypedDict, total=False): + """Parameters for P2SVpnGateway. + + :ivar virtualHub: The VirtualHub to which the gateway belongs. + :vartype virtualHub: "SubResource" + :ivar p2SConnectionConfigurations: List of all p2s connection configurations of the gateway. + :vartype p2SConnectionConfigurations: list["P2SConnectionConfiguration"] + :ivar provisioningState: The provisioning state of the P2S VPN gateway resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar vpnGatewayScaleUnit: The scale unit for this p2s vpn gateway. + :vartype vpnGatewayScaleUnit: int + :ivar vpnServerConfiguration: The VpnServerConfiguration to which the p2sVpnGateway is attached + to. + :vartype vpnServerConfiguration: "SubResource" + :ivar vpnClientConnectionHealth: All P2S VPN clients' connection health status. + :vartype vpnClientConnectionHealth: "VpnClientConnectionHealth" + :ivar customDnsServers: List of all customer specified DNS servers IP addresses. + :vartype customDnsServers: list[str] + :ivar isRoutingPreferenceInternet: Enable Routing Preference property for the Public IP + Interface of the P2SVpnGateway. + :vartype isRoutingPreferenceInternet: bool + """ + + virtualHub: "SubResource" + """The VirtualHub to which the gateway belongs.""" + p2SConnectionConfigurations: list["P2SConnectionConfiguration"] + """List of all p2s connection configurations of the gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the P2S VPN gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + vpnGatewayScaleUnit: int + """The scale unit for this p2s vpn gateway.""" + vpnServerConfiguration: "SubResource" + """The VpnServerConfiguration to which the p2sVpnGateway is attached to.""" + vpnClientConnectionHealth: "VpnClientConnectionHealth" + """All P2S VPN clients' connection health status.""" + customDnsServers: list[str] + """List of all customer specified DNS servers IP addresses.""" + isRoutingPreferenceInternet: bool + """Enable Routing Preference property for the Public IP Interface of the P2SVpnGateway.""" + + +class P2SVpnProfileParameters(TypedDict, total=False): + """Vpn Client Parameters for package generation. + + :ivar authenticationMethod: VPN client authentication method. Known values are: "EAPTLS" and + "EAPMSCHAPv2". + :vartype authenticationMethod: Union[str, "AuthenticationMethod"] + """ + + authenticationMethod: Union[str, "AuthenticationMethod"] + """VPN client authentication method. Known values are: \"EAPTLS\" and \"EAPMSCHAPv2\".""" + + +class PacketCapture(TypedDict, total=False): + """Parameters that define the create packet capture operation. + + :ivar properties: Properties of the packet capture. Required. + :vartype properties: "PacketCaptureParameters" + """ + + properties: Required["PacketCaptureParameters"] + """Properties of the packet capture. Required.""" + + +class PacketCaptureFilter(TypedDict, total=False): + """Filter that is applied to packet capture request. Multiple filters can be applied. + + :ivar protocol: Protocol to be filtered on. Known values are: "TCP", "UDP", and "Any". + :vartype protocol: Union[str, "PcProtocol"] + :ivar localIPAddress: Local IP Address to be filtered on. Notation: "127.0.0.1" for single + address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. + Multiple ranges not currently supported. Mixing ranges with multiple entries not currently + supported. Default = null. + :vartype localIPAddress: str + :ivar remoteIPAddress: Local IP Address to be filtered on. Notation: "127.0.0.1" for single + address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. + Multiple ranges not currently supported. Mixing ranges with multiple entries not currently + supported. Default = null. + :vartype remoteIPAddress: str + :ivar localPort: Local port to be filtered on. Notation: "80" for single port entry."80-85" for + range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges + with multiple entries not currently supported. Default = null. + :vartype localPort: str + :ivar remotePort: Remote port to be filtered on. Notation: "80" for single port entry."80-85" + for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing + ranges with multiple entries not currently supported. Default = null. + :vartype remotePort: str + """ + + protocol: Union[str, "PcProtocol"] + """Protocol to be filtered on. Known values are: \"TCP\", \"UDP\", and \"Any\".""" + localIPAddress: str + """Local IP Address to be filtered on. Notation: \"127.0.0.1\" for single address entry. + \"127.0.0.1-127.0.0.255\" for range. \"127.0.0.1;127.0.0.5\"? for multiple entries. Multiple + ranges not currently supported. Mixing ranges with multiple entries not currently supported. + Default = null.""" + remoteIPAddress: str + """Local IP Address to be filtered on. Notation: \"127.0.0.1\" for single address entry. + \"127.0.0.1-127.0.0.255\" for range. \"127.0.0.1;127.0.0.5;\" for multiple entries. Multiple + ranges not currently supported. Mixing ranges with multiple entries not currently supported. + Default = null.""" + localPort: str + """Local port to be filtered on. Notation: \"80\" for single port entry.\"80-85\" for range. + \"80;443;\" for multiple entries. Multiple ranges not currently supported. Mixing ranges with + multiple entries not currently supported. Default = null.""" + remotePort: str + """Remote port to be filtered on. Notation: \"80\" for single port entry.\"80-85\" for range. + \"80;443;\" for multiple entries. Multiple ranges not currently supported. Mixing ranges with + multiple entries not currently supported. Default = null.""" + + +class PacketCaptureMachineScope(TypedDict, total=False): + """A list of AzureVMSS instances which can be included or excluded to run packet capture. If both + included and excluded are empty, then the packet capture will run on all instances of + AzureVMSS. + + :ivar include: List of AzureVMSS instances to run packet capture on. + :vartype include: list[str] + :ivar exclude: List of AzureVMSS instances which has to be excluded from the AzureVMSS from + running packet capture. + :vartype exclude: list[str] + """ + + include: list[str] + """List of AzureVMSS instances to run packet capture on.""" + exclude: list[str] + """List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet + capture.""" + + +class PacketCaptureParameters(TypedDict, total=False): + """Parameters that define the create packet capture operation. + + :ivar target: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are + currently supported. Required. + :vartype target: str + :ivar scope: A list of AzureVMSS instances which can be included or excluded to run packet + capture. If both included and excluded are empty, then the packet capture will run on all + instances of AzureVMSS. + :vartype scope: "PacketCaptureMachineScope" + :ivar targetType: Target type of the resource provided. Known values are: "AzureVM" and + "AzureVMSS". + :vartype targetType: Union[str, "PacketCaptureTargetType"] + :ivar bytesToCapturePerPacket: Number of bytes captured per packet, the remaining bytes are + truncated. + :vartype bytesToCapturePerPacket: int + :ivar totalBytesPerSession: Maximum size of the capture output. + :vartype totalBytesPerSession: int + :ivar timeLimitInSeconds: Maximum duration of the capture session in seconds. + :vartype timeLimitInSeconds: int + :ivar storageLocation: The storage location for a packet capture session. Required. + :vartype storageLocation: "PacketCaptureStorageLocation" + :ivar filters: A list of packet capture filters. + :vartype filters: list["PacketCaptureFilter"] + :ivar continuousCapture: This continuous capture is a nullable boolean, which can hold 'null', + 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', + default value is 'null'. + :vartype continuousCapture: bool + :ivar captureSettings: The capture setting holds the 'FileCount', 'FileSizeInBytes', + 'SessionTimeLimitInSeconds' values. + :vartype captureSettings: "PacketCaptureSettings" + """ + + target: Required[str] + """The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + supported. Required.""" + scope: "PacketCaptureMachineScope" + """A list of AzureVMSS instances which can be included or excluded to run packet capture. If both + included and excluded are empty, then the packet capture will run on all instances of + AzureVMSS.""" + targetType: Union[str, "PacketCaptureTargetType"] + """Target type of the resource provided. Known values are: \"AzureVM\" and \"AzureVMSS\".""" + bytesToCapturePerPacket: int + """Number of bytes captured per packet, the remaining bytes are truncated.""" + totalBytesPerSession: int + """Maximum size of the capture output.""" + timeLimitInSeconds: int + """Maximum duration of the capture session in seconds.""" + storageLocation: Required["PacketCaptureStorageLocation"] + """The storage location for a packet capture session. Required.""" + filters: list["PacketCaptureFilter"] + """A list of packet capture filters.""" + continuousCapture: bool + """This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. + If we do not pass this parameter, it would be consider as 'null', default value is 'null'.""" + captureSettings: "PacketCaptureSettings" + """The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' + values.""" + + +class PacketCaptureSettings(TypedDict, total=False): + """The storage location for a packet capture session. + + :ivar fileCount: Number of file count. Default value of count is 10 and maximum number is + 10000. + :vartype fileCount: int + :ivar fileSizeInBytes: Number of bytes captured per packet. Default value in bytes 104857600 + (100MB) and maximum in bytes 4294967295 (4GB). + :vartype fileSizeInBytes: int + :ivar sessionTimeLimitInSeconds: Maximum duration of the capture session in seconds is 604800s + (7 days) for a file. Default value in second 86400s (1 day). + :vartype sessionTimeLimitInSeconds: int + """ + + fileCount: int + """Number of file count. Default value of count is 10 and maximum number is 10000.""" + fileSizeInBytes: int + """Number of bytes captured per packet. Default value in bytes 104857600 (100MB) and maximum in + bytes 4294967295 (4GB).""" + sessionTimeLimitInSeconds: int + """Maximum duration of the capture session in seconds is 604800s (7 days) for a file. Default + value in second 86400s (1 day).""" + + +class PacketCaptureStorageLocation(TypedDict, total=False): + """The storage location for a packet capture session. + + :ivar storageId: The ID of the storage account to save the packet capture session. Required if + no localPath or filePath is provided. + :vartype storageId: str + :ivar storagePath: The URI of the storage path to save the packet capture. Must be a + well-formed URI describing the location to save the packet capture. + :vartype storagePath: str + :ivar filePath: This path is invalid if 'Continuous Capture' is provided with 'true' or + 'false'. A valid local path on the targeting VM. Must include the name of the capture file + (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID + is provided, otherwise optional. + :vartype filePath: str + :ivar localPath: This path is valid if 'Continuous Capture' is provided with 'true' or 'false' + and required if no storage ID is provided, otherwise optional. Must include the name of the + capture file (*.cap). For linux virtual machine it must start with /var/captures. + :vartype localPath: str + """ + + storageId: str + """The ID of the storage account to save the packet capture session. Required if no localPath or + filePath is provided.""" + storagePath: str + """The URI of the storage path to save the packet capture. Must be a well-formed URI describing + the location to save the packet capture.""" + filePath: str + """This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. A valid local + path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual + machine it must start with /var/captures. Required if no storage ID is provided, otherwise + optional.""" + localPath: str + """This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and required if + no storage ID is provided, otherwise optional. Must include the name of the capture file + (*.cap). For linux virtual machine it must start with /var/captures.""" + + +class Parameter(TypedDict, total=False): + """Parameters for an Action. + + :ivar routePrefix: List of route prefixes. + :vartype routePrefix: list[str] + :ivar community: List of BGP communities. + :vartype community: list[str] + :ivar asPath: List of AS paths. + :vartype asPath: list[str] + """ + + routePrefix: list[str] + """List of route prefixes.""" + community: list[str] + """List of BGP communities.""" + asPath: list[str] + """List of AS paths.""" + + +class PartnerManagedResourceProperties(TypedDict, total=False): + """Properties of the partner managed resource. Only appliable for SaaS NVA. + + :ivar id: The partner managed resource id. + :vartype id: str + :ivar internalLoadBalancerId: The partner managed ILB resource id. + :vartype internalLoadBalancerId: str + :ivar standardLoadBalancerId: The partner managed SLB resource id. + :vartype standardLoadBalancerId: str + """ + + id: str + """The partner managed resource id.""" + internalLoadBalancerId: str + """The partner managed ILB resource id.""" + standardLoadBalancerId: str + """The partner managed SLB resource id.""" + + +class PatchObject(TypedDict, total=False): + """Object for patch operations. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: dict[str, str] + """Resource tags.""" + + +class PeerExpressRouteCircuitConnection(SubResourceModel): + """Peer Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the peer express route circuit connection. + :vartype properties: "PeerExpressRouteCircuitConnectionPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PeerExpressRouteCircuitConnectionPropertiesFormat" + """Properties of the peer express route circuit connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PeerExpressRouteCircuitConnectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the peer express route circuit connection. + + :ivar expressRouteCircuitPeering: Reference to Express Route Circuit Private Peering Resource + of the circuit. + :vartype expressRouteCircuitPeering: "SubResource" + :ivar peerExpressRouteCircuitPeering: Reference to Express Route Circuit Private Peering + Resource of the peered circuit. + :vartype peerExpressRouteCircuitPeering: "SubResource" + :ivar addressPrefix: /29 IP address space to carve out Customer addresses for tunnels. + :vartype addressPrefix: str + :ivar circuitConnectionStatus: Express Route Circuit connection state. Known values are: + "Connected", "Connecting", and "Disconnected". + :vartype circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + :ivar connectionName: The name of the express route circuit connection resource. + :vartype connectionName: str + :ivar authResourceGuid: The resource guid of the authorization used for the express route + circuit connection. + :vartype authResourceGuid: str + :ivar provisioningState: The provisioning state of the peer express route circuit connection + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + expressRouteCircuitPeering: "SubResource" + """Reference to Express Route Circuit Private Peering Resource of the circuit.""" + peerExpressRouteCircuitPeering: "SubResource" + """Reference to Express Route Circuit Private Peering Resource of the peered circuit.""" + addressPrefix: str + """/29 IP address space to carve out Customer addresses for tunnels.""" + circuitConnectionStatus: Union[str, "CircuitConnectionStatus"] + """Express Route Circuit connection state. Known values are: \"Connected\", \"Connecting\", and + \"Disconnected\".""" + connectionName: str + """The name of the express route circuit connection resource.""" + authResourceGuid: str + """The resource guid of the authorization used for the express route circuit connection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the peer express route circuit connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class PerimeterBasedAccessRule(TypedDict, total=False): + """PerimeterBasedAccessRule. + + :ivar id: NSP id in the ARM id format. + :vartype id: str + :ivar perimeterGuid: Resource guid of the NSP supplied. + :vartype perimeterGuid: str + :ivar location: Location of the NSP supplied. + :vartype location: str + """ + + id: str + """NSP id in the ARM id format.""" + perimeterGuid: str + """Resource guid of the NSP supplied.""" + location: str + """Location of the NSP supplied.""" + + +class PolicySettings(TypedDict, total=False): + """Defines contents of a web application firewall global configuration. + + :ivar state: The state of the policy. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "WebApplicationFirewallEnabledState"] + :ivar mode: The mode of the policy. Known values are: "Prevention" and "Detection". + :vartype mode: Union[str, "WebApplicationFirewallMode"] + :ivar requestBodyCheck: Whether to allow WAF to check request Body. + :vartype requestBodyCheck: bool + :ivar requestBodyInspectLimitInKB: Max inspection limit in KB for request body inspection for + WAF. + :vartype requestBodyInspectLimitInKB: int + :ivar requestBodyEnforcement: Whether allow WAF to enforce request body limits. + :vartype requestBodyEnforcement: bool + :ivar maxRequestBodySizeInKb: Maximum request body size in Kb for WAF. + :vartype maxRequestBodySizeInKb: int + :ivar fileUploadEnforcement: Whether allow WAF to enforce file upload limits. + :vartype fileUploadEnforcement: bool + :ivar fileUploadLimitInMb: Maximum file upload size in Mb for WAF. + :vartype fileUploadLimitInMb: int + :ivar customBlockResponseStatusCode: If the action type is block, customer can override the + response status code. + :vartype customBlockResponseStatusCode: int + :ivar customBlockResponseBody: If the action type is block, customer can override the response + body. The body must be specified in base64 encoding. + :vartype customBlockResponseBody: str + :ivar logScrubbing: To scrub sensitive log fields. + :vartype logScrubbing: "PolicySettingsLogScrubbing" + :ivar jsChallengeCookieExpirationInMins: Web Application Firewall JavaScript Challenge Cookie + Expiration time in minutes. + :vartype jsChallengeCookieExpirationInMins: int + :ivar captchaExpirationInMins: Web Application Firewall CAPTCHA Cookie Expiration time in + minutes. + :vartype captchaExpirationInMins: int + """ + + state: Union[str, "WebApplicationFirewallEnabledState"] + """The state of the policy. Known values are: \"Disabled\" and \"Enabled\".""" + mode: Union[str, "WebApplicationFirewallMode"] + """The mode of the policy. Known values are: \"Prevention\" and \"Detection\".""" + requestBodyCheck: bool + """Whether to allow WAF to check request Body.""" + requestBodyInspectLimitInKB: int + """Max inspection limit in KB for request body inspection for WAF.""" + requestBodyEnforcement: bool + """Whether allow WAF to enforce request body limits.""" + maxRequestBodySizeInKb: int + """Maximum request body size in Kb for WAF.""" + fileUploadEnforcement: bool + """Whether allow WAF to enforce file upload limits.""" + fileUploadLimitInMb: int + """Maximum file upload size in Mb for WAF.""" + customBlockResponseStatusCode: int + """If the action type is block, customer can override the response status code.""" + customBlockResponseBody: str + """If the action type is block, customer can override the response body. The body must be + specified in base64 encoding.""" + logScrubbing: "PolicySettingsLogScrubbing" + """To scrub sensitive log fields.""" + jsChallengeCookieExpirationInMins: int + """Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes.""" + captchaExpirationInMins: int + """Web Application Firewall CAPTCHA Cookie Expiration time in minutes.""" + + +class PolicySettingsLogScrubbing(TypedDict, total=False): + """To scrub sensitive log fields. + + :ivar state: State of the log scrubbing config. Default value is Enabled. Known values are: + "Disabled" and "Enabled". + :vartype state: Union[str, "WebApplicationFirewallScrubbingState"] + :ivar scrubbingRules: The rules that are applied to the logs for scrubbing. + :vartype scrubbingRules: list["WebApplicationFirewallScrubbingRules"] + """ + + state: Union[str, "WebApplicationFirewallScrubbingState"] + """State of the log scrubbing config. Default value is Enabled. Known values are: \"Disabled\" and + \"Enabled\".""" + scrubbingRules: list["WebApplicationFirewallScrubbingRules"] + """The rules that are applied to the logs for scrubbing.""" + + +class PrepareNetworkPoliciesRequest(TypedDict, total=False): + """Details of PrepareNetworkPolicies for Subnet. + + :ivar serviceName: The name of the service for which subnet is being prepared for. + :vartype serviceName: str + :ivar networkIntentPolicyConfigurations: A list of NetworkIntentPolicyConfiguration. + :vartype networkIntentPolicyConfigurations: list["NetworkIntentPolicyConfiguration"] + """ + + serviceName: str + """The name of the service for which subnet is being prepared for.""" + networkIntentPolicyConfigurations: list["NetworkIntentPolicyConfiguration"] + """A list of NetworkIntentPolicyConfiguration.""" + + +class PrivateDnsZoneConfig(TypedDict, total=False): + """PrivateDnsZoneConfig resource. + + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar properties: Properties of the private dns zone configuration. + :vartype properties: "PrivateDnsZonePropertiesFormat" + """ + + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + properties: "PrivateDnsZonePropertiesFormat" + """Properties of the private dns zone configuration.""" + + +class PrivateDnsZoneGroup(SubResource): + """Private dns zone group resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Properties of the private dns zone group. + :vartype properties: "PrivateDnsZoneGroupPropertiesFormat" + """ + + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + properties: "PrivateDnsZoneGroupPropertiesFormat" + """Properties of the private dns zone group.""" + + +class PrivateDnsZoneGroupPropertiesFormat(TypedDict, total=False): + """Properties of the private dns zone group. + + :ivar provisioningState: The provisioning state of the private dns zone group resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateDnsZoneConfigs: A collection of private dns zone configurations of the private dns + zone group. + :vartype privateDnsZoneConfigs: list["PrivateDnsZoneConfig"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private dns zone group resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateDnsZoneConfigs: list["PrivateDnsZoneConfig"] + """A collection of private dns zone configurations of the private dns zone group.""" + + +class PrivateDnsZonePropertiesFormat(TypedDict, total=False): + """Properties of the private dns zone configuration resource. + + :ivar privateDnsZoneId: The resource id of the private dns zone. + :vartype privateDnsZoneId: str + :ivar recordSets: A collection of information regarding a recordSet, holding information to + identify private resources. + :vartype recordSets: list["RecordSet"] + """ + + privateDnsZoneId: str + """The resource id of the private dns zone.""" + recordSets: list["RecordSet"] + """A collection of information regarding a recordSet, holding information to identify private + resources.""" + + +class PrivateEndpoint(Resource): + """Private endpoint resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the private endpoint. + :vartype properties: "PrivateEndpointProperties" + :ivar extendedLocation: The extended location of the load balancer. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PrivateEndpointProperties" + """Properties of the private endpoint.""" + extendedLocation: "ExtendedLocation" + """The extended location of the load balancer.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PrivateEndpointConnection(SubResourceModel): + """PrivateEndpointConnection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the private end point connection. + :vartype properties: "PrivateEndpointConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PrivateEndpointConnectionProperties" + """Properties of the private end point connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PrivateEndpointConnectionProperties(TypedDict, total=False): + """Properties of the PrivateEndpointConnectProperties. + + :ivar privateEndpoint: The resource of private end point. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: A collection of information about the state of the + connection between service consumer and provider. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar provisioningState: The provisioning state of the private endpoint connection resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar linkIdentifier: The consumer link id. + :vartype linkIdentifier: str + :ivar privateEndpointLocation: The location of the private endpoint. + :vartype privateEndpointLocation: str + """ + + privateEndpoint: "PrivateEndpoint" + """The resource of private end point.""" + privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + """A collection of information about the state of the connection between service consumer and + provider.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private endpoint connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + linkIdentifier: str + """The consumer link id.""" + privateEndpointLocation: str + """The location of the private endpoint.""" + + +class PrivateEndpointIPConfiguration(TypedDict, total=False): + """An IP Configuration of the private endpoint. + + :ivar properties: Properties of private endpoint IP configurations. + :vartype properties: "PrivateEndpointIPConfigurationProperties" + :ivar name: The name of the resource that is unique within a resource group. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PrivateEndpointIPConfigurationProperties" + """Properties of private endpoint IP configurations.""" + name: str + """The name of the resource that is unique within a resource group.""" + type: str + """The resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PrivateEndpointIPConfigurationProperties(TypedDict, total=False): + """Properties of an IP Configuration of the private endpoint. + + :ivar groupId: The ID of a group obtained from the remote resource that this private endpoint + should connect to. + :vartype groupId: str + :ivar memberName: The member name of a group obtained from the remote resource that this + private endpoint should connect to. + :vartype memberName: str + :ivar privateIPAddress: A private ip address obtained from the private endpoint's subnet. + :vartype privateIPAddress: str + """ + + groupId: str + """The ID of a group obtained from the remote resource that this private endpoint should connect + to.""" + memberName: str + """The member name of a group obtained from the remote resource that this private endpoint should + connect to.""" + privateIPAddress: str + """A private ip address obtained from the private endpoint's subnet.""" + + +class PrivateEndpointProperties(TypedDict, total=False): + """Properties of the private endpoint. + + :ivar subnet: The ID of the subnet from which the private IP will be allocated. + :vartype subnet: "Subnet" + :ivar networkInterfaces: An array of references to the network interfaces created for this + private endpoint. + :vartype networkInterfaces: list["NetworkInterface"] + :ivar provisioningState: The provisioning state of the private endpoint resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar ipVersionType: Specifies the IP version type for the private IPs of the private endpoint. + If not defined, this defaults to IPv4. Known values are: "IPv4", "IPv6", and "DualStack". + :vartype ipVersionType: Union[str, "PrivateEndpointIPVersionType"] + :ivar privateLinkServiceConnections: A grouping of information about the connection to the + remote resource. + :vartype privateLinkServiceConnections: list["PrivateLinkServiceConnection"] + :ivar manualPrivateLinkServiceConnections: A grouping of information about the connection to + the remote resource. Used when the network admin does not have access to approve connections to + the remote resource. + :vartype manualPrivateLinkServiceConnections: list["PrivateLinkServiceConnection"] + :ivar customDnsConfigs: An array of custom dns configurations. + :vartype customDnsConfigs: list["CustomDnsConfigPropertiesFormat"] + :ivar applicationSecurityGroups: Application security groups in which the private endpoint IP + configuration is included. + :vartype applicationSecurityGroups: list["ApplicationSecurityGroup"] + :ivar ipConfigurations: A list of IP configurations of the private endpoint. This will be used + to map to the First Party Service's endpoints. + :vartype ipConfigurations: list["PrivateEndpointIPConfiguration"] + :ivar customNetworkInterfaceName: The custom name of the network interface attached to the + private endpoint. + :vartype customNetworkInterfaceName: str + :ivar billingSku: The billing sku of the private endpoint. Known values are: "PayAsYouGo" and + "Fixed". + :vartype billingSku: Union[str, "PrivateEndpointBillingSku"] + """ + + subnet: "Subnet" + """The ID of the subnet from which the private IP will be allocated.""" + networkInterfaces: list["NetworkInterface"] + """An array of references to the network interfaces created for this private endpoint.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private endpoint resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + ipVersionType: Union[str, "PrivateEndpointIPVersionType"] + """Specifies the IP version type for the private IPs of the private endpoint. If not defined, this + defaults to IPv4. Known values are: \"IPv4\", \"IPv6\", and \"DualStack\".""" + privateLinkServiceConnections: list["PrivateLinkServiceConnection"] + """A grouping of information about the connection to the remote resource.""" + manualPrivateLinkServiceConnections: list["PrivateLinkServiceConnection"] + """A grouping of information about the connection to the remote resource. Used when the network + admin does not have access to approve connections to the remote resource.""" + customDnsConfigs: list["CustomDnsConfigPropertiesFormat"] + """An array of custom dns configurations.""" + applicationSecurityGroups: list["ApplicationSecurityGroup"] + """Application security groups in which the private endpoint IP configuration is included.""" + ipConfigurations: list["PrivateEndpointIPConfiguration"] + """A list of IP configurations of the private endpoint. This will be used to map to the First + Party Service's endpoints.""" + customNetworkInterfaceName: str + """The custom name of the network interface attached to the private endpoint.""" + billingSku: Union[str, "PrivateEndpointBillingSku"] + """The billing sku of the private endpoint. Known values are: \"PayAsYouGo\" and \"Fixed\".""" + + +class PrivateLinkService(Resource): + """Private link service resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the private link service. + :vartype properties: "PrivateLinkServiceProperties" + :ivar extendedLocation: The extended location of the load balancer. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PrivateLinkServiceProperties" + """Properties of the private link service.""" + extendedLocation: "ExtendedLocation" + """The extended location of the load balancer.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PrivateLinkServiceConnection(SubResource): + """PrivateLinkServiceConnection resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the private link service connection. + :vartype properties: "PrivateLinkServiceConnectionProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "PrivateLinkServiceConnectionProperties" + """Properties of the private link service connection.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + type: str + """The resource type.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class PrivateLinkServiceConnectionProperties(TypedDict, total=False): + """Properties of the PrivateLinkServiceConnection. + + :ivar provisioningState: The provisioning state of the private link service connection + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateLinkServiceId: The resource id of private link service. + :vartype privateLinkServiceId: str + :ivar groupIds: The ID(s) of the group(s) obtained from the remote resource that this private + endpoint should connect to. + :vartype groupIds: list[str] + :ivar requestMessage: A message passed to the owner of the remote resource with this connection + request. Restricted to 140 chars. + :vartype requestMessage: str + :ivar privateLinkServiceConnectionState: A collection of read-only information about the state + of the connection to the remote resource. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private link service connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateLinkServiceId: str + """The resource id of private link service.""" + groupIds: list[str] + """The ID(s) of the group(s) obtained from the remote resource that this private endpoint should + connect to.""" + requestMessage: str + """A message passed to the owner of the remote resource with this connection request. Restricted + to 140 chars.""" + privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + """A collection of read-only information about the state of the connection to the remote resource.""" + + +class PrivateLinkServiceConnectionState(TypedDict, total=False): + """A collection of information about the state of the connection between service consumer and + provider. + + :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. + :vartype status: str + :ivar description: The reason for approval/rejection of the connection. + :vartype description: str + :ivar actionsRequired: A message indicating if changes on the service provider require any + updates on the consumer. + :vartype actionsRequired: str + """ + + status: str + """Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + service.""" + description: str + """The reason for approval/rejection of the connection.""" + actionsRequired: str + """A message indicating if changes on the service provider require any updates on the consumer.""" + + +class PrivateLinkServiceIpConfiguration(SubResource): + """The private link service ip configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the private link service ip configuration. + :vartype properties: "PrivateLinkServiceIpConfigurationProperties" + :ivar name: The name of private link service ip configuration. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: The resource type. + :vartype type: str + """ + + properties: "PrivateLinkServiceIpConfigurationProperties" + """Properties of the private link service ip configuration.""" + name: str + """The name of private link service ip configuration.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """The resource type.""" + + +class PrivateLinkServiceIpConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of private link service IP configuration. + + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + :ivar primary: Whether the ip configuration is primary or not. + :vartype primary: bool + :ivar provisioningState: The provisioning state of the private link service IP configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateIPAddressVersion: Whether the specific IP configuration is IPv4 or IPv6. Default + is IPv4. Known values are: "IPv4" and "IPv6". + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + """ + + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "Subnet" + """The reference to the subnet resource.""" + primary: bool + """Whether the ip configuration is primary or not.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private link service IP configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateIPAddressVersion: Union[str, "IPVersion"] + """Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. Known values are: + \"IPv4\" and \"IPv6\".""" + + +class PrivateLinkServiceProperties(TypedDict, total=False): + """Properties of the private link service. + + :ivar loadBalancerFrontendIpConfigurations: An array of references to the load balancer IP + configurations. + :vartype loadBalancerFrontendIpConfigurations: list["FrontendIPConfiguration"] + :ivar ipConfigurations: An array of private link service IP configurations. + :vartype ipConfigurations: list["PrivateLinkServiceIpConfiguration"] + :ivar destinationIPAddress: The destination IP address of the private link service. + :vartype destinationIPAddress: str + :ivar accessMode: The access mode of the private link service. Known values are: "Default" and + "Restricted". + :vartype accessMode: Union[str, "AccessMode"] + :ivar networkInterfaces: An array of references to the network interfaces created for this + private link service. + :vartype networkInterfaces: list["NetworkInterface"] + :ivar provisioningState: The provisioning state of the private link service resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateEndpointConnections: An array of list about connections to the private endpoint. + :vartype privateEndpointConnections: list["PrivateEndpointConnection"] + :ivar visibility: The visibility list of the private link service. + :vartype visibility: "PrivateLinkServicePropertiesVisibility" + :ivar autoApproval: The auto-approval list of the private link service. + :vartype autoApproval: "PrivateLinkServicePropertiesAutoApproval" + :ivar fqdns: The list of Fqdn. + :vartype fqdns: list[str] + :ivar alias: The alias of the private link service. + :vartype alias: str + :ivar enableProxyProtocol: Whether the private link service is enabled for proxy protocol or + not. + :vartype enableProxyProtocol: bool + """ + + loadBalancerFrontendIpConfigurations: list["FrontendIPConfiguration"] + """An array of references to the load balancer IP configurations.""" + ipConfigurations: list["PrivateLinkServiceIpConfiguration"] + """An array of private link service IP configurations.""" + destinationIPAddress: str + """The destination IP address of the private link service.""" + accessMode: Union[str, "AccessMode"] + """The access mode of the private link service. Known values are: \"Default\" and \"Restricted\".""" + networkInterfaces: list["NetworkInterface"] + """An array of references to the network interfaces created for this private link service.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private link service resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateEndpointConnections: list["PrivateEndpointConnection"] + """An array of list about connections to the private endpoint.""" + visibility: "PrivateLinkServicePropertiesVisibility" + """The visibility list of the private link service.""" + autoApproval: "PrivateLinkServicePropertiesAutoApproval" + """The auto-approval list of the private link service.""" + fqdns: list[str] + """The list of Fqdn.""" + alias: str + """The alias of the private link service.""" + enableProxyProtocol: bool + """Whether the private link service is enabled for proxy protocol or not.""" + + +class ResourceSet(TypedDict, total=False): + """The base resource set for visibility and auto-approval. + + :ivar subscriptions: The list of subscriptions. + :vartype subscriptions: list[str] + """ + + subscriptions: list[str] + """The list of subscriptions.""" + + +class PrivateLinkServicePropertiesAutoApproval(ResourceSet): + """The auto-approval list of the private link service. + + :ivar subscriptions: The list of subscriptions. + :vartype subscriptions: list[str] + """ + + +class PrivateLinkServicePropertiesVisibility(ResourceSet): + """The visibility list of the private link service. + + :ivar subscriptions: The list of subscriptions. + :vartype subscriptions: list[str] + """ + + +class Probe(SubResourceModel): + """A load balancer probe. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of load balancer probe. + :vartype properties: "ProbePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ProbePropertiesFormat" + """Properties of load balancer probe.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ProbePropertiesFormat(TypedDict, total=False): + """Load balancer probe resource. + + :ivar loadBalancingRules: The load balancer rules that use this probe. + :vartype loadBalancingRules: list["SubResource"] + :ivar protocol: The protocol of the end point. If 'Tcp' is specified, a received ACK is + required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response + from the specifies URI is required for the probe to be successful. Required. Known values are: + "Http", "Tcp", and "Https". + :vartype protocol: Union[str, "ProbeProtocol"] + :ivar port: The port for communicating the probe. Possible values range from 1 to 65535, + inclusive. Required. + :vartype port: int + :ivar intervalInSeconds: The interval, in seconds, for how frequently to probe the endpoint for + health status. Typically, the interval is slightly less than half the allocated timeout period + (in seconds) which allows two full probes before taking the instance out of rotation. The + default value is 15, the minimum value is 5. + :vartype intervalInSeconds: int + :ivar noHealthyBackendsBehavior: Determines how new connections are handled by the load + balancer when all backend instances are probed down. Known values are: "AllProbedDown" and + "AllProbedUp". + :vartype noHealthyBackendsBehavior: Union[str, "ProbeNoHealthyBackendsBehavior"] + :ivar numberOfProbes: The number of probes where if no response, will result in stopping + further traffic from being delivered to the endpoint. This values allows endpoints to be taken + out of rotation faster or slower than the typical times used in Azure. + :vartype numberOfProbes: int + :ivar probeThreshold: The number of consecutive successful or failed probes in order to allow + or deny traffic from being delivered to this endpoint. After failing the number of consecutive + probes equal to this value, the endpoint will be taken out of rotation and require the same + number of successful consecutive probes to be placed back in rotation. + :vartype probeThreshold: int + :ivar requestPath: The URI used for requesting health status from the VM. Path is required if a + protocol is set to http. Otherwise, it is not allowed. There is no default value. + :vartype requestPath: str + :ivar provisioningState: The provisioning state of the probe resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + loadBalancingRules: list["SubResource"] + """The load balancer rules that use this probe.""" + protocol: Required[Union[str, "ProbeProtocol"]] + """The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe + to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI + is required for the probe to be successful. Required. Known values are: \"Http\", \"Tcp\", and + \"Https\".""" + port: Required[int] + """The port for communicating the probe. Possible values range from 1 to 65535, inclusive. + Required.""" + intervalInSeconds: int + """The interval, in seconds, for how frequently to probe the endpoint for health status. + Typically, the interval is slightly less than half the allocated timeout period (in seconds) + which allows two full probes before taking the instance out of rotation. The default value is + 15, the minimum value is 5.""" + noHealthyBackendsBehavior: Union[str, "ProbeNoHealthyBackendsBehavior"] + """Determines how new connections are handled by the load balancer when all backend instances are + probed down. Known values are: \"AllProbedDown\" and \"AllProbedUp\".""" + numberOfProbes: int + """The number of probes where if no response, will result in stopping further traffic from being + delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or + slower than the typical times used in Azure.""" + probeThreshold: int + """The number of consecutive successful or failed probes in order to allow or deny traffic from + being delivered to this endpoint. After failing the number of consecutive probes equal to this + value, the endpoint will be taken out of rotation and require the same number of successful + consecutive probes to be placed back in rotation.""" + requestPath: str + """The URI used for requesting health status from the VM. Path is required if a protocol is set to + http. Otherwise, it is not allowed. There is no default value.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the probe resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class PropagatedRouteTable(TypedDict, total=False): + """The list of RouteTables to advertise the routes to. + + :ivar labels: The list of labels. + :vartype labels: list[str] + :ivar ids: The list of resource ids of all the RouteTables. + :vartype ids: list["SubResource"] + """ + + labels: list[str] + """The list of labels.""" + ids: list["SubResource"] + """The list of resource ids of all the RouteTables.""" + + +class ProtocolConfiguration(TypedDict, total=False): + """Configuration of the protocol. + + :ivar HTTPConfiguration: HTTP configuration of the connectivity check. + :vartype HTTPConfiguration: "HTTPConfiguration" + """ + + HTTPConfiguration: "HTTPConfiguration" + """HTTP configuration of the connectivity check.""" + + +class ProtocolSettings(TypedDict, total=False): + """Protocol-level settings for the connection analyzer. + + :ivar protocol: Network protocol. Known values are: "Tcp", "Http", "Https", and "Icmp". + :vartype protocol: Union[str, "Protocol"] + :ivar httpConfiguration: HTTP configuration (used when protocol is Http or Https). + :vartype httpConfiguration: "HTTPConfiguration" + """ + + protocol: Union[str, "Protocol"] + """Network protocol. Known values are: \"Tcp\", \"Http\", \"Https\", and \"Icmp\".""" + httpConfiguration: "HTTPConfiguration" + """HTTP configuration (used when protocol is Http or Https).""" + + +class ProxyResourceWithReadOnlyID(TypedDict, total=False): + """Proxy resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + + +class PublicIPAddress(Resource): + """Public IP address resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Public IP address properties. + :vartype properties: "PublicIPAddressPropertiesFormat" + :ivar extendedLocation: The extended location of the public ip address. + :vartype extendedLocation: "ExtendedLocation" + :ivar sku: The public IP address SKU. + :vartype sku: "PublicIPAddressSku" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar zones: A list of availability zones denoting the IP allocated for the resource needs to + come from. + :vartype zones: list[str] + """ + + properties: "PublicIPAddressPropertiesFormat" + """Public IP address properties.""" + extendedLocation: "ExtendedLocation" + """The extended location of the public ip address.""" + sku: "PublicIPAddressSku" + """The public IP address SKU.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + zones: list[str] + """A list of availability zones denoting the IP allocated for the resource needs to come from.""" + + +class PublicIPAddressDnsSettings(TypedDict, total=False): + """Contains FQDN of the DNS record associated with the public IP address. + + :ivar domainNameLabel: The domain name label. The concatenation of the domain name label and + the regionalized DNS zone make up the fully qualified domain name associated with the public IP + address. If a domain name label is specified, an A DNS record is created for the public IP in + the Microsoft Azure DNS system. + :vartype domainNameLabel: str + :ivar domainNameLabelScope: The domain name label scope. If a domain name label and a domain + name label scope are specified, an A DNS record is created for the public IP in the Microsoft + Azure DNS system with a hashed value includes in FQDN. Known values are: "TenantReuse", + "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". + :vartype domainNameLabelScope: Union[str, "PublicIpAddressDnsSettingsDomainNameLabelScope"] + :ivar fqdn: The Fully Qualified Domain Name of the A DNS record associated with the public IP. + This is the concatenation of the domainNameLabel and the regionalized DNS zone. + :vartype fqdn: str + :ivar reverseFqdn: The reverse FQDN. A user-visible, fully qualified domain name that resolves + to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created + pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. + :vartype reverseFqdn: str + """ + + domainNameLabel: str + """The domain name label. The concatenation of the domain name label and the regionalized DNS zone + make up the fully qualified domain name associated with the public IP address. If a domain name + label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS + system.""" + domainNameLabelScope: Union[str, "PublicIpAddressDnsSettingsDomainNameLabelScope"] + """The domain name label scope. If a domain name label and a domain name label scope are + specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with + a hashed value includes in FQDN. Known values are: \"TenantReuse\", \"SubscriptionReuse\", + \"ResourceGroupReuse\", and \"NoReuse\".""" + fqdn: str + """The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the + concatenation of the domainNameLabel and the regionalized DNS zone.""" + reverseFqdn: str + """The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP + address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP + address in the in-addr.arpa domain to the reverse FQDN.""" + + +class PublicIPAddressPropertiesFormat(TypedDict, total=False): + """Public IP address properties. + + :ivar publicIPAllocationMethod: The public IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype publicIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar publicIPAddressVersion: The public IP address version. Known values are: "IPv4" and + "IPv6". + :vartype publicIPAddressVersion: Union[str, "IPVersion"] + :ivar ipConfiguration: The IP configuration associated with the public IP address. + :vartype ipConfiguration: "IPConfiguration" + :ivar dnsSettings: The FQDN of the DNS record associated with the public IP address. + :vartype dnsSettings: "PublicIPAddressDnsSettings" + :ivar ddosSettings: The DDoS protection custom policy associated with the public IP address. + :vartype ddosSettings: "DdosSettings" + :ivar ipTags: The list of tags associated with the public IP address. + :vartype ipTags: list["IpTag"] + :ivar ipAddress: The IP address associated with the public IP address resource. + :vartype ipAddress: str + :ivar publicIPPrefix: The Public IP Prefix this Public IP Address should be allocated from. + :vartype publicIPPrefix: "SubResource" + :ivar idleTimeoutInMinutes: The idle timeout of the public IP address. + :vartype idleTimeoutInMinutes: int + :ivar resourceGuid: The resource GUID property of the public IP address resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the public IP address resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar servicePublicIPAddress: The service public IP address of the public IP address resource. + :vartype servicePublicIPAddress: "PublicIPAddress" + :ivar natGateway: The NatGateway for the Public IP address. + :vartype natGateway: "NatGateway" + :ivar migrationPhase: Migration phase of Public IP Address. Known values are: "None", + "Prepare", "Commit", "Abort", and "Committed". + :vartype migrationPhase: Union[str, "PublicIPAddressMigrationPhase"] + :ivar linkedPublicIPAddress: The linked public IP address of the public IP address resource. + :vartype linkedPublicIPAddress: "PublicIPAddress" + :ivar deleteOption: Specify what happens to the public IP address when the VM using it is + deleted. Known values are: "Delete" and "Detach". + :vartype deleteOption: Union[str, "DeleteOptions"] + :ivar upgradedToV2: Whether the public IP address SKU has been upgraded from Standard to + StandardV2. + :vartype upgradedToV2: bool + """ + + publicIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The public IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + publicIPAddressVersion: Union[str, "IPVersion"] + """The public IP address version. Known values are: \"IPv4\" and \"IPv6\".""" + ipConfiguration: "IPConfiguration" + """The IP configuration associated with the public IP address.""" + dnsSettings: "PublicIPAddressDnsSettings" + """The FQDN of the DNS record associated with the public IP address.""" + ddosSettings: "DdosSettings" + """The DDoS protection custom policy associated with the public IP address.""" + ipTags: list["IpTag"] + """The list of tags associated with the public IP address.""" + ipAddress: str + """The IP address associated with the public IP address resource.""" + publicIPPrefix: "SubResource" + """The Public IP Prefix this Public IP Address should be allocated from.""" + idleTimeoutInMinutes: int + """The idle timeout of the public IP address.""" + resourceGuid: str + """The resource GUID property of the public IP address resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the public IP address resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + servicePublicIPAddress: "PublicIPAddress" + """The service public IP address of the public IP address resource.""" + natGateway: "NatGateway" + """The NatGateway for the Public IP address.""" + migrationPhase: Union[str, "PublicIPAddressMigrationPhase"] + """Migration phase of Public IP Address. Known values are: \"None\", \"Prepare\", \"Commit\", + \"Abort\", and \"Committed\".""" + linkedPublicIPAddress: "PublicIPAddress" + """The linked public IP address of the public IP address resource.""" + deleteOption: Union[str, "DeleteOptions"] + """Specify what happens to the public IP address when the VM using it is deleted. Known values + are: \"Delete\" and \"Detach\".""" + upgradedToV2: bool + """Whether the public IP address SKU has been upgraded from Standard to StandardV2.""" + + +class PublicIPAddressSku(TypedDict, total=False): + """SKU of a public IP address. + + :ivar name: Name of a public IP address SKU. Known values are: "Basic", "Standard", and + "StandardV2". + :vartype name: Union[str, "PublicIPAddressSkuName"] + :ivar tier: Tier of a public IP address SKU. Known values are: "Regional" and "Global". + :vartype tier: Union[str, "PublicIPAddressSkuTier"] + """ + + name: Union[str, "PublicIPAddressSkuName"] + """Name of a public IP address SKU. Known values are: \"Basic\", \"Standard\", and \"StandardV2\".""" + tier: Union[str, "PublicIPAddressSkuTier"] + """Tier of a public IP address SKU. Known values are: \"Regional\" and \"Global\".""" + + +class PublicIPPrefix(Resource): + """Public IP prefix resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Public IP prefix properties. + :vartype properties: "PublicIPPrefixPropertiesFormat" + :ivar extendedLocation: The extended location of the public ip address. + :vartype extendedLocation: "ExtendedLocation" + :ivar sku: The public IP prefix SKU. + :vartype sku: "PublicIPPrefixSku" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar zones: A list of availability zones denoting the IP allocated for the resource needs to + come from. + :vartype zones: list[str] + """ + + properties: "PublicIPPrefixPropertiesFormat" + """Public IP prefix properties.""" + extendedLocation: "ExtendedLocation" + """The extended location of the public ip address.""" + sku: "PublicIPPrefixSku" + """The public IP prefix SKU.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + zones: list[str] + """A list of availability zones denoting the IP allocated for the resource needs to come from.""" + + +class PublicIPPrefixPropertiesFormat(TypedDict, total=False): + """Public IP prefix properties. + + :ivar publicIPAddressVersion: The public IP address version. Known values are: "IPv4" and + "IPv6". + :vartype publicIPAddressVersion: Union[str, "IPVersion"] + :ivar ipTags: The list of tags associated with the public IP prefix. + :vartype ipTags: list["IpTag"] + :ivar prefixLength: The Length of the Public IP Prefix. + :vartype prefixLength: int + :ivar ipPrefix: The allocated Prefix. + :vartype ipPrefix: str + :ivar publicIPAddresses: The list of all referenced PublicIPAddresses. + :vartype publicIPAddresses: list["ReferencedPublicIpAddress"] + :ivar loadBalancerFrontendIpConfiguration: The reference to load balancer frontend IP + configuration associated with the public IP prefix. + :vartype loadBalancerFrontendIpConfiguration: "SubResource" + :ivar customIPPrefix: The customIpPrefix that this prefix is associated with. + :vartype customIPPrefix: "SubResource" + :ivar resourceGuid: The resource GUID property of the public IP prefix resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the public IP prefix resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar natGateway: NatGateway of Public IP Prefix. + :vartype natGateway: "NatGateway" + :ivar upgradedToV2: Whether the public IP prefix SKU has been upgraded from Standard to + StandardV2. + :vartype upgradedToV2: bool + """ + + publicIPAddressVersion: Union[str, "IPVersion"] + """The public IP address version. Known values are: \"IPv4\" and \"IPv6\".""" + ipTags: list["IpTag"] + """The list of tags associated with the public IP prefix.""" + prefixLength: int + """The Length of the Public IP Prefix.""" + ipPrefix: str + """The allocated Prefix.""" + publicIPAddresses: list["ReferencedPublicIpAddress"] + """The list of all referenced PublicIPAddresses.""" + loadBalancerFrontendIpConfiguration: "SubResource" + """The reference to load balancer frontend IP configuration associated with the public IP prefix.""" + customIPPrefix: "SubResource" + """The customIpPrefix that this prefix is associated with.""" + resourceGuid: str + """The resource GUID property of the public IP prefix resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the public IP prefix resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + natGateway: "NatGateway" + """NatGateway of Public IP Prefix.""" + upgradedToV2: bool + """Whether the public IP prefix SKU has been upgraded from Standard to StandardV2.""" + + +class PublicIPPrefixSku(TypedDict, total=False): + """SKU of a public IP prefix. + + :ivar name: Name of a public IP prefix SKU. Known values are: "Standard" and "StandardV2". + :vartype name: Union[str, "PublicIPPrefixSkuName"] + :ivar tier: Tier of a public IP prefix SKU. Known values are: "Regional" and "Global". + :vartype tier: Union[str, "PublicIPPrefixSkuTier"] + """ + + name: Union[str, "PublicIPPrefixSkuName"] + """Name of a public IP prefix SKU. Known values are: \"Standard\" and \"StandardV2\".""" + tier: Union[str, "PublicIPPrefixSkuTier"] + """Tier of a public IP prefix SKU. Known values are: \"Regional\" and \"Global\".""" + + +class QosDefinition(TypedDict, total=False): + """Quality of Service defines the traffic configuration between endpoints. Mandatory to have one + marking. + + :ivar markings: List of markings to be used in the configuration. + :vartype markings: list[int] + :ivar sourceIpRanges: Source IP ranges. + :vartype sourceIpRanges: list["QosIpRange"] + :ivar destinationIpRanges: Destination IP ranges. + :vartype destinationIpRanges: list["QosIpRange"] + :ivar sourcePortRanges: Sources port ranges. + :vartype sourcePortRanges: list["QosPortRange"] + :ivar destinationPortRanges: Destination port ranges. + :vartype destinationPortRanges: list["QosPortRange"] + :ivar protocol: RNM supported protocol types. Known values are: "DoNotUse", "Icmp", "Tcp", + "Udp", "Gre", "Esp", "Ah", "Vxlan", and "All". + :vartype protocol: Union[str, "ProtocolType"] + """ + + markings: list[int] + """List of markings to be used in the configuration.""" + sourceIpRanges: list["QosIpRange"] + """Source IP ranges.""" + destinationIpRanges: list["QosIpRange"] + """Destination IP ranges.""" + sourcePortRanges: list["QosPortRange"] + """Sources port ranges.""" + destinationPortRanges: list["QosPortRange"] + """Destination port ranges.""" + protocol: Union[str, "ProtocolType"] + """RNM supported protocol types. Known values are: \"DoNotUse\", \"Icmp\", \"Tcp\", \"Udp\", + \"Gre\", \"Esp\", \"Ah\", \"Vxlan\", and \"All\".""" + + +class QosIpRange(TypedDict, total=False): + """Qos Traffic Profiler IP Range properties. + + :ivar startIP: Start IP Address. + :vartype startIP: str + :ivar endIP: End IP Address. + :vartype endIP: str + """ + + startIP: str + """Start IP Address.""" + endIP: str + """End IP Address.""" + + +class QosPortRange(TypedDict, total=False): + """Qos Traffic Profiler Port range properties. + + :ivar start: Qos Port Range start. + :vartype start: int + :ivar end: Qos Port Range end. + :vartype end: int + """ + + start: int + """Qos Port Range start.""" + end: int + """Qos Port Range end.""" + + +class QueryInboundNatRulePortMappingRequest(TypedDict, total=False): + """The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress + should be set. + + :ivar ipConfiguration: NetworkInterfaceIPConfiguration set in load balancer backend address. + :vartype ipConfiguration: "SubResource" + :ivar ipAddress: IP address set in load balancer backend address. + :vartype ipAddress: str + """ + + ipConfiguration: "SubResource" + """NetworkInterfaceIPConfiguration set in load balancer backend address.""" + ipAddress: str + """IP address set in load balancer backend address.""" + + +class QueryRequestOptions(TypedDict, total=False): + """Query Request Options. + + :ivar skipToken: When present, the value can be passed to a subsequent query call (together + with the same query and scopes used in the current request) to retrieve the next page of data. + :vartype skipToken: str + """ + + skipToken: str + """When present, the value can be passed to a subsequent query call (together with the same query + and scopes used in the current request) to retrieve the next page of data.""" + + +class QueryTroubleshootingParameters(TypedDict, total=False): + """Parameters that define the resource to query the troubleshooting result. + + :ivar targetResourceId: The target resource ID to query the troubleshooting result. Required. + :vartype targetResourceId: str + """ + + targetResourceId: Required[str] + """The target resource ID to query the troubleshooting result. Required.""" + + +class RadiusServer(TypedDict, total=False): + """Radius Server Settings. + + :ivar radiusServerAddress: The address of this radius server. Required. + :vartype radiusServerAddress: str + :ivar radiusServerScore: The initial score assigned to this radius server. + :vartype radiusServerScore: int + :ivar radiusServerSecret: The secret used for this radius server. We will no longer return + radiusServerSecret in VirtualNetworkGateway Create/Update/Get/List/UpdateTags APIs response. + Please use VirtualNetworkGateway ListRadiusSecrets API to fetch radius server secrets. + :vartype radiusServerSecret: str + """ + + radiusServerAddress: Required[str] + """The address of this radius server. Required.""" + radiusServerScore: int + """The initial score assigned to this radius server.""" + radiusServerSecret: str + """The secret used for this radius server. We will no longer return radiusServerSecret in + VirtualNetworkGateway Create/Update/Get/List/UpdateTags APIs response. Please use + VirtualNetworkGateway ListRadiusSecrets API to fetch radius server secrets.""" + + +class ReachabilityAnalysisIntent(CommonProxyResource): + """Configuration information or intent on which to do the analysis on. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar properties: Represents the Reachability Analysis Intent properties. Required. + :vartype properties: "ReachabilityAnalysisIntentProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: Required["ReachabilityAnalysisIntentProperties"] + """Represents the Reachability Analysis Intent properties. Required.""" + + +class ReachabilityAnalysisIntentProperties(TypedDict, total=False): + """Represents the Reachability Analysis Intent properties. + + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar description: + :vartype description: str + :ivar sourceResourceId: Source resource id to verify the reachability path of. Required. + :vartype sourceResourceId: str + :ivar destinationResourceId: Destination resource id to verify the reachability path of. + Required. + :vartype destinationResourceId: str + :ivar ipTraffic: IP traffic information. Required. + :vartype ipTraffic: "IPTraffic" + """ + + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + description: str + sourceResourceId: Required[str] + """Source resource id to verify the reachability path of. Required.""" + destinationResourceId: Required[str] + """Destination resource id to verify the reachability path of. Required.""" + ipTraffic: Required["IPTraffic"] + """IP traffic information. Required.""" + + +class ReachabilityAnalysisRun(CommonProxyResource): + """Configuration information for analysis run. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar properties: Represents the Reachability Analysis Run properties. Required. + :vartype properties: "ReachabilityAnalysisRunProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: Required["ReachabilityAnalysisRunProperties"] + """Represents the Reachability Analysis Run properties. Required.""" + + +class ReachabilityAnalysisRunProperties(TypedDict, total=False): + """Represents the Reachability Analysis Run properties. + + :ivar description: + :vartype description: str + :ivar intentId: Id of the intent resource to run analysis on. Required. + :vartype intentId: str + :ivar intentContent: Intent information. + :vartype intentContent: "IntentContent" + :ivar analysisResult: + :vartype analysisResult: str + :ivar errorMessage: + :vartype errorMessage: str + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + intentId: Required[str] + """Id of the intent resource to run analysis on. Required.""" + intentContent: "IntentContent" + """Intent information.""" + analysisResult: str + errorMessage: str + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ReadOnlySubResourceModel(TypedDict, total=False): + """Reference to another subresource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Type of the resource. + :vartype type: str + """ + + id: str + """Resource ID.""" + name: str + """Name of the resource.""" + type: str + """Type of the resource.""" + + +class RecordSet(TypedDict, total=False): + """A collective group of information about the record set information. + + :ivar recordType: Resource record type. + :vartype recordType: str + :ivar recordSetName: Recordset name. + :vartype recordSetName: str + :ivar fqdn: Fqdn that resolves to private endpoint ip address. + :vartype fqdn: str + :ivar provisioningState: The provisioning state of the recordset. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar ttl: Recordset time to live. + :vartype ttl: int + :ivar ipAddresses: The private ip address of the private endpoint. + :vartype ipAddresses: list[str] + """ + + recordType: str + """Resource record type.""" + recordSetName: str + """Recordset name.""" + fqdn: str + """Fqdn that resolves to private endpoint ip address.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the recordset. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + ttl: int + """Recordset time to live.""" + ipAddresses: list[str] + """The private ip address of the private endpoint.""" + + +class ReferencedPublicIpAddress(TypedDict, total=False): + """Reference to a public IP address. + + :ivar id: The PublicIPAddress Reference. + :vartype id: str + """ + + id: str + """The PublicIPAddress Reference.""" + + +class ReserveCloudServicePublicIpAddressRequest(TypedDict, total=False): # pylint: disable=name-too-long + """The request for ReserveCloudServicePublicIpAddressOperation. + + :ivar isRollback: When true, reverts from Static to Dynamic allocation (undo reservation). + Required. Known values are: "true" and "false". + :vartype isRollback: Union[str, "IsRollback"] + """ + + isRollback: Required[Union[str, "IsRollback"]] + """When true, reverts from Static to Dynamic allocation (undo reservation). Required. Known values + are: \"true\" and \"false\".""" + + +class ResourceNavigationLink(SubResource): + """ResourceNavigationLink resource. + + :ivar properties: Resource navigation link properties format. + :vartype properties: "ResourceNavigationLinkFormat" + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar id: Resource navigation link identifier. + :vartype id: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + """ + + properties: "ResourceNavigationLinkFormat" + """Resource navigation link properties format.""" + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Resource type.""" + + +class ResourceNavigationLinkFormat(TypedDict, total=False): + """Properties of ResourceNavigationLink. + + :ivar linkedResourceType: Resource type of the linked resource. + :vartype linkedResourceType: str + :ivar link: Link to the external resource. + :vartype link: str + :ivar provisioningState: The provisioning state of the resource navigation link resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + linkedResourceType: str + """Resource type of the linked resource.""" + link: str + """Link to the external resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource navigation link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class RetentionPolicyParameters(TypedDict, total=False): + """Parameters that define the retention policy for flow log. + + :ivar days: Number of days to retain flow log records. + :vartype days: int + :ivar enabled: Flag to enable/disable retention. + :vartype enabled: bool + """ + + days: int + """Number of days to retain flow log records.""" + enabled: bool + """Flag to enable/disable retention.""" + + +class Route(SubResourceModel): + """Route resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the route. + :vartype properties: "RoutePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RoutePropertiesFormat" + """Properties of the route.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RouteFilter(TrackedResourceWithSettableIdOptionalLocation): + """Route Filter Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the route filter. + :vartype properties: "RouteFilterPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RouteFilterPropertiesFormat" + """Properties of the route filter.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RouteFilterPropertiesFormat(TypedDict, total=False): + """Route Filter Resource. + + :ivar rules: Collection of RouteFilterRules contained within a route filter. + :vartype rules: list["RouteFilterRule"] + :ivar peerings: A collection of references to express route circuit peerings. + :vartype peerings: list["ExpressRouteCircuitPeering"] + :ivar ipv6Peerings: A collection of references to express route circuit ipv6 peerings. + :vartype ipv6Peerings: list["ExpressRouteCircuitPeering"] + :ivar provisioningState: The provisioning state of the route filter resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + rules: list["RouteFilterRule"] + """Collection of RouteFilterRules contained within a route filter.""" + peerings: list["ExpressRouteCircuitPeering"] + """A collection of references to express route circuit peerings.""" + ipv6Peerings: list["ExpressRouteCircuitPeering"] + """A collection of references to express route circuit ipv6 peerings.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the route filter resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class RouteFilterRule(SubResource): + """Route Filter Rule Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the route filter rule. + :vartype properties: "RouteFilterRulePropertiesFormat" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar location: Resource location. + :vartype location: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RouteFilterRulePropertiesFormat" + """Properties of the route filter rule.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + location: str + """Resource location.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RouteFilterRulePropertiesFormat(TypedDict, total=False): + """Route Filter Rule Resource. + + :ivar access: The access type of the rule. Required. Known values are: "Allow" and "Deny". + :vartype access: Union[str, "Access"] + :ivar routeFilterRuleType: The rule type of the rule. Required. "Community" + :vartype routeFilterRuleType: Union[str, "RouteFilterRuleType"] + :ivar communities: The collection for bgp community values to filter on. e.g. + ['12076:5010','12076:5020']. Required. + :vartype communities: list[str] + :ivar provisioningState: The provisioning state of the route filter rule resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + access: Required[Union[str, "Access"]] + """The access type of the rule. Required. Known values are: \"Allow\" and \"Deny\".""" + routeFilterRuleType: Required[Union[str, "RouteFilterRuleType"]] + """The rule type of the rule. Required. \"Community\"""" + communities: Required[list[str]] + """The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. + Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the route filter rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class RouteMap(ReadOnlySubResourceModel): + """The RouteMap child resource of a Virtual hub. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Type of the resource. + :vartype type: str + :ivar properties: Properties of the RouteMap resource. + :vartype properties: "RouteMapProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RouteMapProperties" + """Properties of the RouteMap resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RouteMapProperties(TypedDict, total=False): + """Properties of RouteMap resource. + + :ivar associatedInboundConnections: List of connections which have this RoutMap associated for + inbound traffic. + :vartype associatedInboundConnections: list[str] + :ivar associatedOutboundConnections: List of connections which have this RoutMap associated for + outbound traffic. + :vartype associatedOutboundConnections: list[str] + :ivar rules: List of RouteMap rules to be applied. + :vartype rules: list["RouteMapRule"] + :ivar provisioningState: The provisioning state of the RouteMap resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + associatedInboundConnections: list[str] + """List of connections which have this RoutMap associated for inbound traffic.""" + associatedOutboundConnections: list[str] + """List of connections which have this RoutMap associated for outbound traffic.""" + rules: list["RouteMapRule"] + """List of RouteMap rules to be applied.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the RouteMap resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class RouteMapRule(TypedDict, total=False): + """A RouteMap Rule. + + :ivar name: The unique name for the rule. + :vartype name: str + :ivar matchCriteria: List of matching criterion which will be applied to traffic. + :vartype matchCriteria: list["Criterion"] + :ivar actions: List of actions which will be applied on a match. + :vartype actions: list["Action"] + :ivar nextStepIfMatched: Next step after rule is evaluated. Current supported behaviors are + 'Continue'(to next rule) and 'Terminate'. Known values are: "Unknown", "Continue", and + "Terminate". + :vartype nextStepIfMatched: Union[str, "NextStep"] + """ + + name: str + """The unique name for the rule.""" + matchCriteria: list["Criterion"] + """List of matching criterion which will be applied to traffic.""" + actions: list["Action"] + """List of actions which will be applied on a match.""" + nextStepIfMatched: Union[str, "NextStep"] + """Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and + 'Terminate'. Known values are: \"Unknown\", \"Continue\", and \"Terminate\".""" + + +class RouteNextHopEcmp(TypedDict, total=False): + """The next hop definition for ECMP routes containing multiple next hop IP addresses. + + :ivar nextHopIpAddresses: List of next hop IP addresses for ECMP routing. Must contain between + 2 and 64 IP addresses. Required. + :vartype nextHopIpAddresses: list[str] + """ + + nextHopIpAddresses: Required[list[str]] + """List of next hop IP addresses for ECMP routing. Must contain between 2 and 64 IP addresses. + Required.""" + + +class RoutePropertiesFormat(TypedDict, total=False): + """Route resource. + + :ivar addressPrefix: The destination CIDR to which the route applies. + :vartype addressPrefix: str + :ivar nextHopType: The type of Azure hop the packet should be sent to. Required. Known values + are: "VirtualNetworkGateway", "VnetLocal", "Internet", "VirtualAppliance", + "VirtualApplianceEcmp", and "None". + :vartype nextHopType: Union[str, "RouteNextHopType"] + :ivar nextHopIpAddress: The IP address packets should be forwarded to. Next hop values are only + allowed in routes where the next hop type is VirtualAppliance. + :vartype nextHopIpAddress: str + :ivar nextHop: The next hop definition containing ECMP next hop IP addresses. Only allowed when + nextHopType is VirtualApplianceEcmp. + :vartype nextHop: "RouteNextHopEcmp" + :ivar provisioningState: The provisioning state of the route resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar hasBgpOverride: A value indicating whether this route overrides overlapping BGP routes + regardless of LPM. + :vartype hasBgpOverride: bool + """ + + addressPrefix: str + """The destination CIDR to which the route applies.""" + nextHopType: Required[Union[str, "RouteNextHopType"]] + """The type of Azure hop the packet should be sent to. Required. Known values are: + \"VirtualNetworkGateway\", \"VnetLocal\", \"Internet\", \"VirtualAppliance\", + \"VirtualApplianceEcmp\", and \"None\".""" + nextHopIpAddress: str + """The IP address packets should be forwarded to. Next hop values are only allowed in routes where + the next hop type is VirtualAppliance.""" + nextHop: "RouteNextHopEcmp" + """The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is + VirtualApplianceEcmp.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the route resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + hasBgpOverride: bool + """A value indicating whether this route overrides overlapping BGP routes regardless of LPM.""" + + +class RouteTable(Resource): + """Route table resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the route table. + :vartype properties: "RouteTablePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RouteTablePropertiesFormat" + """Properties of the route table.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RouteTablePropertiesFormat(TypedDict, total=False): + """Route Table resource. + + :ivar routes: Collection of routes contained within a route table. + :vartype routes: list["Route"] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list["Subnet"] + :ivar disableBgpRoutePropagation: Whether to disable the routes learned by BGP on that route + table. True means disable. + :vartype disableBgpRoutePropagation: bool + :ivar disablePeeringRoute: 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. Known + values are: "None" and "All". + :vartype disablePeeringRoute: Union[str, "DisablePeeringRoute"] + :ivar provisioningState: The provisioning state of the route table resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: The resource GUID property of the route table. + :vartype resourceGuid: str + """ + + routes: list["Route"] + """Collection of routes contained within a route table.""" + subnets: list["Subnet"] + """A collection of references to subnets.""" + disableBgpRoutePropagation: bool + """Whether to disable the routes learned by BGP on that route table. True means disable.""" + disablePeeringRoute: Union[str, "DisablePeeringRoute"] + """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. Known values are: \"None\" and + \"All\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the route table resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """The resource GUID property of the route table.""" + + +class RouteTargetAddressPropertiesFormat(TypedDict, total=False): + """Properties of route target address. + + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + :ivar privateIPAddress: The private IPv4 or IPv6 address of the service gateway route target + address. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The Private IP allocation method. Known values are: "Static" + and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """ + + subnet: "Subnet" + """The reference to the subnet resource.""" + privateIPAddress: str + """The private IPv4 or IPv6 address of the service gateway route target address.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The Private IP allocation method. Known values are: \"Static\" and \"Dynamic\".""" + + +class RoutingConfiguration(TypedDict, total=False): + """Routing Configuration indicating the associated and propagated route tables for this + connection. + + :ivar associatedRouteTable: The resource id RouteTable associated with this + RoutingConfiguration. + :vartype associatedRouteTable: "SubResource" + :ivar propagatedRouteTables: The list of RouteTables to advertise the routes to. + :vartype propagatedRouteTables: "PropagatedRouteTable" + :ivar vnetRoutes: List of routes that control routing from VirtualHub into a virtual network + connection. + :vartype vnetRoutes: "VnetRoute" + :ivar inboundRouteMap: The resource id of the RouteMap associated with this + RoutingConfiguration for inbound learned routes. + :vartype inboundRouteMap: "SubResource" + :ivar outboundRouteMap: The resource id of theRouteMap associated with this + RoutingConfiguration for outbound advertised routes. + :vartype outboundRouteMap: "SubResource" + """ + + associatedRouteTable: "SubResource" + """The resource id RouteTable associated with this RoutingConfiguration.""" + propagatedRouteTables: "PropagatedRouteTable" + """The list of RouteTables to advertise the routes to.""" + vnetRoutes: "VnetRoute" + """List of routes that control routing from VirtualHub into a virtual network connection.""" + inboundRouteMap: "SubResource" + """The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned + routes.""" + outboundRouteMap: "SubResource" + """The resource id of theRouteMap associated with this RoutingConfiguration for outbound + advertised routes.""" + + +class RoutingIntent(SubResourceModel): + """The routing intent child resource of a Virtual hub. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the RoutingIntent resource. + :vartype properties: "RoutingIntentProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "RoutingIntentProperties" + """Properties of the RoutingIntent resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class RoutingIntentProperties(TypedDict, total=False): + """The properties of a RoutingIntent resource. + + :ivar routingPolicies: List of routing policies. + :vartype routingPolicies: list["RoutingPolicy"] + :ivar provisioningState: The provisioning state of the RoutingIntent resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + routingPolicies: list["RoutingPolicy"] + """List of routing policies.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the RoutingIntent resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class RoutingPolicy(TypedDict, total=False): + """The routing policy object used in a RoutingIntent resource. + + :ivar name: The unique name for the routing policy. Required. + :vartype name: str + :ivar destinations: List of all destinations which this routing policy is applicable to (for + example: Internet, PrivateTraffic). Required. + :vartype destinations: list[str] + :ivar nextHop: The next hop resource id on which this routing policy is applicable to. + Required. + :vartype nextHop: str + """ + + name: Required[str] + """The unique name for the routing policy. Required.""" + destinations: Required[list[str]] + """List of all destinations which this routing policy is applicable to (for example: Internet, + PrivateTraffic). Required.""" + nextHop: Required[str] + """The next hop resource id on which this routing policy is applicable to. Required.""" + + +class RoutingRule(ChildResource): + """Network routing rule. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties of the routing rule. + :vartype properties: "RoutingRulePropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "RoutingRulePropertiesFormat" + """Indicates the properties of the routing rule.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class RoutingRuleCollection(ChildResource): + """Defines the routing rule collection. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager routing rule collection. + :vartype properties: "RoutingRuleCollectionPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "RoutingRuleCollectionPropertiesFormat" + """Indicates the properties for the network manager routing rule collection.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class RoutingRuleCollectionPropertiesFormat(TypedDict, total=False): + """Defines the routing rule collection properties. + + :ivar description: A description of the routing rule collection. + :vartype description: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + :ivar appliesTo: Groups for configuration. Required. + :vartype appliesTo: list["NetworkManagerRoutingGroupItem"] + :ivar disableBgpRoutePropagation: Determines whether BGP route propagation is enabled. Defaults + to true. Known values are: "False" and "True". + :vartype disableBgpRoutePropagation: Union[str, "DisableBgpRoutePropagation"] + """ + + description: str + """A description of the routing rule collection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + appliesTo: Required[list["NetworkManagerRoutingGroupItem"]] + """Groups for configuration. Required.""" + disableBgpRoutePropagation: Union[str, "DisableBgpRoutePropagation"] + """Determines whether BGP route propagation is enabled. Defaults to true. Known values are: + \"False\" and \"True\".""" + + +class RoutingRuleNextHop(TypedDict, total=False): + """Next hop. + + :ivar nextHopType: Next hop type. Required. Known values are: "Internet", "NoNextHop", + "VirtualAppliance", "VirtualNetworkGateway", and "VnetLocal". + :vartype nextHopType: Union[str, "RoutingRuleNextHopType"] + :ivar nextHopAddress: Next hop address. Only required if the next hop type is VirtualAppliance. + :vartype nextHopAddress: str + """ + + nextHopType: Required[Union[str, "RoutingRuleNextHopType"]] + """Next hop type. Required. Known values are: \"Internet\", \"NoNextHop\", \"VirtualAppliance\", + \"VirtualNetworkGateway\", and \"VnetLocal\".""" + nextHopAddress: str + """Next hop address. Only required if the next hop type is VirtualAppliance.""" + + +class RoutingRulePropertiesFormat(TypedDict, total=False): + """Routing rule resource. + + :ivar description: A description for this rule. + :vartype description: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + :ivar destination: Indicates the destination for this particular rule. Required. + :vartype destination: "RoutingRuleRouteDestination" + :ivar nextHop: Indicates the next hop for this particular rule. Required. + :vartype nextHop: "RoutingRuleNextHop" + """ + + description: str + """A description for this rule.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + destination: Required["RoutingRuleRouteDestination"] + """Indicates the destination for this particular rule. Required.""" + nextHop: Required["RoutingRuleNextHop"] + """Indicates the next hop for this particular rule. Required.""" + + +class RoutingRuleRouteDestination(TypedDict, total=False): + """Route destination. + + :ivar type: Destination type. Required. Known values are: "AddressPrefix" and "ServiceTag". + :vartype type: Union[str, "RoutingRuleDestinationType"] + :ivar destinationAddress: Destination address. Required. + :vartype destinationAddress: str + """ + + type: Required[Union[str, "RoutingRuleDestinationType"]] + """Destination type. Required. Known values are: \"AddressPrefix\" and \"ServiceTag\".""" + destinationAddress: Required[str] + """Destination address. Required.""" + + +class ScopeConnection(ChildResource): + """The Scope Connections resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The scope connection properties. + :vartype properties: "ScopeConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "ScopeConnectionProperties" + """The scope connection properties.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class ScopeConnectionProperties(TypedDict, total=False): + """Scope connection. + + :ivar tenantId: Tenant ID. + :vartype tenantId: str + :ivar resourceId: Resource ID. + :vartype resourceId: str + :ivar connectionState: Connection State. Known values are: "Connected", "Pending", "Conflict", + "Revoked", and "Rejected". + :vartype connectionState: Union[str, "ScopeConnectionState"] + :ivar description: A description of the scope connection. + :vartype description: str + """ + + tenantId: str + """Tenant ID.""" + resourceId: str + """Resource ID.""" + connectionState: Union[str, "ScopeConnectionState"] + """Connection State. Known values are: \"Connected\", \"Pending\", \"Conflict\", \"Revoked\", and + \"Rejected\".""" + description: str + """A description of the scope connection.""" + + +class SecurityAdminConfiguration(ChildResource): + """Defines the security admin configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager security admin + configuration. + :vartype properties: "SecurityAdminConfigurationPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "SecurityAdminConfigurationPropertiesFormat" + """Indicates the properties for the network manager security admin configuration.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class SecurityAdminConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Defines the security admin configuration properties. + + :ivar description: A description of the security configuration. + :vartype description: str + :ivar applyOnNetworkIntentPolicyBasedServices: Enum list of network intent policy based + services. + :vartype applyOnNetworkIntentPolicyBasedServices: list[Union[str, + "NetworkIntentPolicyBasedService"]] + :ivar networkGroupAddressSpaceAggregationOption: Determine update behavior for changes to + network groups referenced within the rules in this configuration. Known values are: "None" and + "Manual". + :vartype networkGroupAddressSpaceAggregationOption: Union[str, "AddressSpaceAggregationOption"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the security configuration.""" + applyOnNetworkIntentPolicyBasedServices: list[Union[str, "NetworkIntentPolicyBasedService"]] + """Enum list of network intent policy based services.""" + networkGroupAddressSpaceAggregationOption: Union[str, "AddressSpaceAggregationOption"] + """Determine update behavior for changes to network groups referenced within the rules in this + configuration. Known values are: \"None\" and \"Manual\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class SecurityGroupViewParameters(TypedDict, total=False): + """Parameters that define the VM to check security groups for. + + :ivar targetResourceId: ID of the target VM. Required. + :vartype targetResourceId: str + """ + + targetResourceId: Required[str] + """ID of the target VM. Required.""" + + +class SecurityPartnerProvider(Resource): + """Security Partner Provider resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the Security Partner Provider. + :vartype properties: "SecurityPartnerProviderPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "SecurityPartnerProviderPropertiesFormat" + """Properties of the Security Partner Provider.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class SecurityPartnerProviderPropertiesFormat(TypedDict, total=False): + """Properties of the Security Partner Provider. + + :ivar provisioningState: The provisioning state of the Security Partner Provider resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar securityProviderName: The security provider name. Known values are: "ZScaler", "IBoss", + and "Checkpoint". + :vartype securityProviderName: Union[str, "SecurityProviderName"] + :ivar connectionStatus: The connection status with the Security Partner Provider. Known values + are: "Unknown", "PartiallyConnected", "Connected", and "NotConnected". + :vartype connectionStatus: Union[str, "SecurityPartnerProviderConnectionStatus"] + :ivar virtualHub: The virtualHub to which the Security Partner Provider belongs. + :vartype virtualHub: "SubResource" + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the Security Partner Provider resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + securityProviderName: Union[str, "SecurityProviderName"] + """The security provider name. Known values are: \"ZScaler\", \"IBoss\", and \"Checkpoint\".""" + connectionStatus: Union[str, "SecurityPartnerProviderConnectionStatus"] + """The connection status with the Security Partner Provider. Known values are: \"Unknown\", + \"PartiallyConnected\", \"Connected\", and \"NotConnected\".""" + virtualHub: "SubResource" + """The virtualHub to which the Security Partner Provider belongs.""" + + +class SecurityRule(SubResourceModel): + """Network security rule. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the security rule. + :vartype properties: "SecurityRulePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "SecurityRulePropertiesFormat" + """Properties of the security rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class SecurityRulePropertiesFormat(TypedDict, total=False): + """Security rule resource. + + :ivar description: A description for this rule. Restricted to 140 chars. + :vartype description: str + :ivar protocol: Network protocol this rule applies to. Required. Known values are: "Tcp", + "Udp", "Icmp", "Esp", "*", and "Ah". + :vartype protocol: Union[str, "SecurityRuleProtocol"] + :ivar sourcePortRange: The source port or range. Integer or range between 0 and 65535. Asterisk + '*' can also be used to match all ports. + :vartype sourcePortRange: str + :ivar destinationPortRange: The destination port or range. Integer or range between 0 and + 65535. Asterisk '*' can also be used to match all ports. + :vartype destinationPortRange: str + :ivar sourceAddressPrefix: The CIDR or source IP range. Asterisk '*' can also be used to match + all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can + also be used. If this is an ingress rule, specifies where network traffic originates from. + :vartype sourceAddressPrefix: str + :ivar sourceAddressPrefixes: The CIDR or source IP ranges. + :vartype sourceAddressPrefixes: list[str] + :ivar sourceApplicationSecurityGroups: The application security group specified as source. + :vartype sourceApplicationSecurityGroups: list["ApplicationSecurityGroup"] + :ivar destinationAddressPrefix: The destination address prefix. CIDR or destination IP range. + Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', + 'AzureLoadBalancer' and 'Internet' can also be used. + :vartype destinationAddressPrefix: str + :ivar destinationAddressPrefixes: The destination address prefixes. CIDR or destination IP + ranges. + :vartype destinationAddressPrefixes: list[str] + :ivar destinationApplicationSecurityGroups: The application security group specified as + destination. + :vartype destinationApplicationSecurityGroups: list["ApplicationSecurityGroup"] + :ivar sourcePortRanges: The source port ranges. + :vartype sourcePortRanges: list[str] + :ivar destinationPortRanges: The destination port ranges. + :vartype destinationPortRanges: list[str] + :ivar access: The network traffic is allowed or denied. Required. Known values are: "Allow" and + "Deny". + :vartype access: Union[str, "SecurityRuleAccess"] + :ivar priority: The priority of the rule. The value can be between 100 and 4096. The priority + number must be unique for each rule in the collection. The lower the priority number, the + higher the priority of the rule. Required. + :vartype priority: int + :ivar direction: The direction of the rule. The direction specifies if rule will be evaluated + on incoming or outgoing traffic. Required. Known values are: "Inbound" and "Outbound". + :vartype direction: Union[str, "SecurityRuleDirection"] + :ivar provisioningState: The provisioning state of the security rule resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + """A description for this rule. Restricted to 140 chars.""" + protocol: Required[Union[str, "SecurityRuleProtocol"]] + """Network protocol this rule applies to. Required. Known values are: \"Tcp\", \"Udp\", \"Icmp\", + \"Esp\", \"*\", and \"Ah\".""" + sourcePortRange: str + """The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used + to match all ports.""" + destinationPortRange: str + """The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be + used to match all ports.""" + sourceAddressPrefix: str + """The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default + tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is + an ingress rule, specifies where network traffic originates from.""" + sourceAddressPrefixes: list[str] + """The CIDR or source IP ranges.""" + sourceApplicationSecurityGroups: list["ApplicationSecurityGroup"] + """The application security group specified as source.""" + destinationAddressPrefix: str + """The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to + match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' + can also be used.""" + destinationAddressPrefixes: list[str] + """The destination address prefixes. CIDR or destination IP ranges.""" + destinationApplicationSecurityGroups: list["ApplicationSecurityGroup"] + """The application security group specified as destination.""" + sourcePortRanges: list[str] + """The source port ranges.""" + destinationPortRanges: list[str] + """The destination port ranges.""" + access: Required[Union[str, "SecurityRuleAccess"]] + """The network traffic is allowed or denied. Required. Known values are: \"Allow\" and \"Deny\".""" + priority: Required[int] + """The priority of the rule. The value can be between 100 and 4096. The priority number must be + unique for each rule in the collection. The lower the priority number, the higher the priority + of the rule. Required.""" + direction: Required[Union[str, "SecurityRuleDirection"]] + """The direction of the rule. The direction specifies if rule will be evaluated on incoming or + outgoing traffic. Required. Known values are: \"Inbound\" and \"Outbound\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the security rule resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class SecurityUserConfiguration(ChildResource): + """Defines the security user configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager security user configuration. + :vartype properties: "SecurityUserConfigurationPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "SecurityUserConfigurationPropertiesFormat" + """Indicates the properties for the network manager security user configuration.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class SecurityUserConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Defines the security user configuration properties. + + :ivar description: A description of the security user configuration. + :vartype description: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the security user configuration.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class SecurityUserGroupItem(TypedDict, total=False): + """Network manager security user group item. + + :ivar networkGroupId: Network manager group Id. Required. + :vartype networkGroupId: str + """ + + networkGroupId: Required[str] + """Network manager group Id. Required.""" + + +class SecurityUserRule(ChildResource): + """Network security user rule. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties of the security user rule. + :vartype properties: "SecurityUserRulePropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "SecurityUserRulePropertiesFormat" + """Indicates the properties of the security user rule.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class SecurityUserRuleCollection(ChildResource): + """Defines the security user rule collection. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: Indicates the properties for the network manager security user rule + collection. + :vartype properties: "SecurityUserRuleCollectionPropertiesFormat" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "SecurityUserRuleCollectionPropertiesFormat" + """Indicates the properties for the network manager security user rule collection.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class SecurityUserRuleCollectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Defines the security user rule collection properties. + + :ivar description: A description of the security user rule collection. + :vartype description: str + :ivar appliesToGroups: Groups for configuration. Required. + :vartype appliesToGroups: list["SecurityUserGroupItem"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description of the security user rule collection.""" + appliesToGroups: Required[list["SecurityUserGroupItem"]] + """Groups for configuration. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class SecurityUserRulePropertiesFormat(TypedDict, total=False): + """Security rule resource. + + :ivar description: A description for this rule. + :vartype description: str + :ivar protocol: Network protocol this rule applies to. Required. Known values are: "Tcp", + "Udp", "Icmp", "Esp", "Any", and "Ah". + :vartype protocol: Union[str, "SecurityConfigurationRuleProtocol"] + :ivar sources: The CIDR or source IP ranges. + :vartype sources: list["AddressPrefixItem"] + :ivar destinations: The destination address prefixes. CIDR or destination IP ranges. + :vartype destinations: list["AddressPrefixItem"] + :ivar sourcePortRanges: The source port ranges. + :vartype sourcePortRanges: list[str] + :ivar destinationPortRanges: The destination port ranges. + :vartype destinationPortRanges: list[str] + :ivar direction: Indicates if the traffic matched against the rule in inbound or outbound. + Required. Known values are: "Inbound" and "Outbound". + :vartype direction: Union[str, "SecurityConfigurationRuleDirection"] + :ivar provisioningState: The provisioning state of the security configuration user rule + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: Unique identifier for this resource. + :vartype resourceGuid: str + """ + + description: str + """A description for this rule.""" + protocol: Required[Union[str, "SecurityConfigurationRuleProtocol"]] + """Network protocol this rule applies to. Required. Known values are: \"Tcp\", \"Udp\", \"Icmp\", + \"Esp\", \"Any\", and \"Ah\".""" + sources: list["AddressPrefixItem"] + """The CIDR or source IP ranges.""" + destinations: list["AddressPrefixItem"] + """The destination address prefixes. CIDR or destination IP ranges.""" + sourcePortRanges: list[str] + """The source port ranges.""" + destinationPortRanges: list[str] + """The destination port ranges.""" + direction: Required[Union[str, "SecurityConfigurationRuleDirection"]] + """Indicates if the traffic matched against the rule in inbound or outbound. Required. Known + values are: \"Inbound\" and \"Outbound\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the security configuration user rule resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """Unique identifier for this resource.""" + + +class ServiceAssociationLink(SubResource): + """ServiceAssociationLink resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Resource navigation link properties format. + :vartype properties: "ServiceAssociationLinkPropertiesFormat" + :ivar name: Name of the resource that is unique within a resource group. This name can be used + to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + """ + + properties: "ServiceAssociationLinkPropertiesFormat" + """Resource navigation link properties format.""" + name: str + """Name of the resource that is unique within a resource group. This name can be used to access + the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """Resource type.""" + + +class ServiceAssociationLinkPropertiesFormat(TypedDict, total=False): + """Properties of ServiceAssociationLink. + + :ivar linkedResourceType: Resource type of the linked resource. + :vartype linkedResourceType: str + :ivar link: Link to the external resource. + :vartype link: str + :ivar provisioningState: The provisioning state of the service association link resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar allowDelete: If true, the resource can be deleted. + :vartype allowDelete: bool + :ivar locations: A list of locations. + :vartype locations: list[str] + """ + + linkedResourceType: str + """Resource type of the linked resource.""" + link: str + """Link to the external resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service association link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + allowDelete: bool + """If true, the resource can be deleted.""" + locations: list[str] + """A list of locations.""" + + +class ServiceDelegationPropertiesFormat(TypedDict, total=False): + """Properties of a service delegation. + + :ivar serviceName: The name of the service to whom the subnet should be delegated (e.g. + Microsoft.Sql/servers). + :vartype serviceName: str + :ivar actions: The actions permitted to the service upon delegation. + :vartype actions: list[str] + :ivar provisioningState: The provisioning state of the service delegation resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + serviceName: str + """The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).""" + actions: list[str] + """The actions permitted to the service upon delegation.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service delegation resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ServiceEndpointPolicy(Resource): + """Service End point policy resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the service end point policy. + :vartype properties: "ServiceEndpointPolicyPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar kind: Kind of service endpoint policy. This is metadata used for the Azure portal + experience. + :vartype kind: str + """ + + properties: "ServiceEndpointPolicyPropertiesFormat" + """Properties of the service end point policy.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + kind: str + """Kind of service endpoint policy. This is metadata used for the Azure portal experience.""" + + +class ServiceEndpointPolicyDefinition(SubResourceModel): + """Service Endpoint policy definitions. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the service endpoint policy definition. + :vartype properties: "ServiceEndpointPolicyDefinitionPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "ServiceEndpointPolicyDefinitionPropertiesFormat" + """Properties of the service endpoint policy definition.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class ServiceEndpointPolicyDefinitionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Service Endpoint policy definition resource. + + :ivar description: A description for this rule. Restricted to 140 chars. + :vartype description: str + :ivar service: Service endpoint name. + :vartype service: str + :ivar serviceResources: A list of service resources. + :vartype serviceResources: list[str] + :ivar provisioningState: The provisioning state of the service endpoint policy definition + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + """A description for this rule. Restricted to 140 chars.""" + service: str + """Service endpoint name.""" + serviceResources: list[str] + """A list of service resources.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service endpoint policy definition resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ServiceEndpointPolicyPropertiesFormat(TypedDict, total=False): + """Service Endpoint Policy resource. + + :ivar serviceEndpointPolicyDefinitions: A collection of service endpoint policy definitions of + the service endpoint policy. + :vartype serviceEndpointPolicyDefinitions: list["ServiceEndpointPolicyDefinition"] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list["Subnet"] + :ivar resourceGuid: The resource GUID property of the service endpoint policy resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the service endpoint policy resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar serviceAlias: The alias indicating if the policy belongs to a service. + :vartype serviceAlias: str + :ivar contextualServiceEndpointPolicies: A collection of contextual service endpoint policy. + :vartype contextualServiceEndpointPolicies: list[str] + """ + + serviceEndpointPolicyDefinitions: list["ServiceEndpointPolicyDefinition"] + """A collection of service endpoint policy definitions of the service endpoint policy.""" + subnets: list["Subnet"] + """A collection of references to subnets.""" + resourceGuid: str + """The resource GUID property of the service endpoint policy resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service endpoint policy resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + serviceAlias: str + """The alias indicating if the policy belongs to a service.""" + contextualServiceEndpointPolicies: list[str] + """A collection of contextual service endpoint policy.""" + + +class ServiceEndpointPropertiesFormat(TypedDict, total=False): + """The service endpoint properties. + + :ivar service: The type of the endpoint service. + :vartype service: str + :ivar networkIdentifier: SubResource as network identifier. + :vartype networkIdentifier: "SubResource" + :ivar locations: A list of locations. + :vartype locations: list[str] + :ivar provisioningState: The provisioning state of the service endpoint resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + service: str + """The type of the endpoint service.""" + networkIdentifier: "SubResource" + """SubResource as network identifier.""" + locations: list[str] + """A list of locations.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service endpoint resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ServiceGateway(SecurityPerimeterTrackedResource): + """ServiceGateway resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Properties of service gateway. + :vartype properties: "ServiceGatewayPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar sku: The service gateway SKU. + :vartype sku: "ServiceGatewaySku" + :ivar zones: A list of availability zones denoting the zone in which service gateway should be + deployed. + + * The zone values must be provided as strings representing numeric identifiers like "1", + "2", "3" etc. + :vartype zones: list[str] + """ + + properties: "ServiceGatewayPropertiesFormat" + """Properties of service gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + sku: "ServiceGatewaySku" + """The service gateway SKU.""" + zones: list[str] + """A list of availability zones denoting the zone in which service gateway should be deployed. + + * The zone values must be provided as strings representing numeric identifiers like \"1\", + \"2\", \"3\" etc.""" + + +class ServiceGatewayAddress(TypedDict, total=False): + """Properties of the service gateway address. + + :ivar address: Address to update. + :vartype address: str + :ivar services: Collection of services in address. + :vartype services: list[str] + """ + + address: str + """Address to update.""" + services: list[str] + """Collection of services in address.""" + + +class ServiceGatewayAddressLocation(TypedDict, total=False): + """Properties of the service gateway address location. + + :ivar addressLocation: Location to update. + :vartype addressLocation: str + :ivar addressUpdateAction: Specifies the type of update operation to perform on addresses + within the address location of service gateway. + + * FullUpdate: Replaces all existing address data with the new list provided in the + request. Any previously defined addresses not included will be removed. + * PartialUpdate: Updates only the specified addresses. Known values are: "FullUpdate" and + "PartialUpdate". + :vartype addressUpdateAction: Union[str, "AddressUpdateAction"] + :ivar addresses: An array of addresses to create or update in locations. + :vartype addresses: list["ServiceGatewayAddress"] + """ + + addressLocation: str + """Location to update.""" + addressUpdateAction: Union[str, "AddressUpdateAction"] + """Specifies the type of update operation to perform on addresses within the address location of + service gateway. + + * FullUpdate: Replaces all existing address data with the new list provided in the + request. Any previously defined addresses not included will be removed. + * PartialUpdate: Updates only the specified addresses. Known values are: \"FullUpdate\" + and \"PartialUpdate\".""" + addresses: list["ServiceGatewayAddress"] + """An array of addresses to create or update in locations.""" + + +class ServiceGatewayPropertiesFormat(TypedDict, total=False): + """Properties of the service gateway. + + :ivar virtualNetwork: Reference to an existing virtual network. + :vartype virtualNetwork: "VirtualNetwork" + :ivar routeTargetAddress: Route Target address of Service gateway. + :vartype routeTargetAddress: "RouteTargetAddressPropertiesFormat" + :ivar routeTargetAddressV6: Route Target address V6 of Service gateway. + :vartype routeTargetAddressV6: "RouteTargetAddressPropertiesFormat" + :ivar resourceGuid: The resource GUID property of the service gateway resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the service gateway resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + virtualNetwork: "VirtualNetwork" + """Reference to an existing virtual network.""" + routeTargetAddress: "RouteTargetAddressPropertiesFormat" + """Route Target address of Service gateway.""" + routeTargetAddressV6: "RouteTargetAddressPropertiesFormat" + """Route Target address V6 of Service gateway.""" + resourceGuid: str + """The resource GUID property of the service gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the service gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class ServiceGatewayService(TypedDict, total=False): + """Properties of the service gateway service. + + :ivar name: Name of the service. + :vartype name: str + :ivar properties: Properties of service gateway service. + :vartype properties: "ServiceGatewayServicePropertiesFormat" + """ + + name: str + """Name of the service.""" + properties: "ServiceGatewayServicePropertiesFormat" + """Properties of service gateway service.""" + + +class ServiceGatewayServicePropertiesFormat(TypedDict, total=False): + """Properties of the service gateway service. + + :ivar serviceType: Name of the service. Known values are: "Inbound", "Outbound", and + "InboundOutbound". + :vartype serviceType: Union[str, "ServiceType"] + :ivar isDefault: Set to true to mark default service for inbound or outbound. + :vartype isDefault: bool + :ivar loadBalancerBackendPools: An array of load balancer backend address pools. + :vartype loadBalancerBackendPools: list["BackendAddressPool"] + :ivar publicNatGatewayId: Azure Resource Id of public natgateway. + :vartype publicNatGatewayId: str + """ + + serviceType: Union[str, "ServiceType"] + """Name of the service. Known values are: \"Inbound\", \"Outbound\", and \"InboundOutbound\".""" + isDefault: bool + """Set to true to mark default service for inbound or outbound.""" + loadBalancerBackendPools: list["BackendAddressPool"] + """An array of load balancer backend address pools.""" + publicNatGatewayId: str + """Azure Resource Id of public natgateway.""" + + +class ServiceGatewayServiceRequest(TypedDict, total=False): + """Properties of the service gateway services request. + + :ivar isDelete: Set to true to mark the service for deletion. + :vartype isDelete: bool + :ivar service: Service of service gateway. + :vartype service: "ServiceGatewayService" + """ + + isDelete: bool + """Set to true to mark the service for deletion.""" + service: "ServiceGatewayService" + """Service of service gateway.""" + + +class ServiceGatewaySku(TypedDict, total=False): + """SKU of a service gateway. + + :ivar name: Name of a service gateway SKU. "Standard" + :vartype name: Union[str, "ServiceGatewaySkuName"] + :ivar tier: Tier of a service gateway SKU. "Regional" + :vartype tier: Union[str, "ServiceGatewaySkuTier"] + """ + + name: Union[str, "ServiceGatewaySkuName"] + """Name of a service gateway SKU. \"Standard\"""" + tier: Union[str, "ServiceGatewaySkuTier"] + """Tier of a service gateway SKU. \"Regional\"""" + + +class ServiceGatewayUpdateAddressLocationsRequest(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the service gateway update address locations request. + + :ivar action: Specifies the type of update operation to perform on address locations within the + service gateway. + + * FullUpdate: Replaces all existing address location data with the new list provided in + the request. Any previously defined locations not included will be removed. + * PartialUpdate: Updates only the specified address locations. Known values are: + "FullUpdate" and "PartialUpdate". + :vartype action: Union[str, "UpdateAction"] + :ivar addressLocations: An array of address locations to create or update. + :vartype addressLocations: list["ServiceGatewayAddressLocation"] + """ + + action: Union[str, "UpdateAction"] + """Specifies the type of update operation to perform on address locations within the service + gateway. + + * FullUpdate: Replaces all existing address location data with the new list provided in + the request. Any previously defined locations not included will be removed. + * PartialUpdate: Updates only the specified address locations. Known values are: + \"FullUpdate\" and \"PartialUpdate\".""" + addressLocations: list["ServiceGatewayAddressLocation"] + """An array of address locations to create or update.""" + + +class ServiceGatewayUpdateServicesRequest(TypedDict, total=False): + """Properties of the service gateway update services request. + + :ivar action: Specifies the type of update operation to perform on services within the service + gateway. + + * FullUpdate: Replaces all existing services with the new list provided in the request. + Any previously defined services not included will be removed. + * PartialUpdate: Updates only the specified services. Known values are: "FullUpdate" and + "PartialUpdate". + :vartype action: Union[str, "ServiceUpdateAction"] + :ivar serviceRequests: Collection of service updates. + :vartype serviceRequests: list["ServiceGatewayServiceRequest"] + """ + + action: Union[str, "ServiceUpdateAction"] + """Specifies the type of update operation to perform on services within the service gateway. + + * FullUpdate: Replaces all existing services with the new list provided in the request. + Any previously defined services not included will be removed. + * PartialUpdate: Updates only the specified services. Known values are: \"FullUpdate\" and + \"PartialUpdate\".""" + serviceRequests: list["ServiceGatewayServiceRequest"] + """Collection of service updates.""" + + +class SessionIds(TypedDict, total=False): + """List of session IDs. + + :ivar sessionIds: List of session IDs. + :vartype sessionIds: list[str] + """ + + sessionIds: list[str] + """List of session IDs.""" + + +class SharedKeyProperties(TypedDict, total=False): + """Parameters for SharedKey. + + :ivar sharedKey: The value of the shared key for the vpn link connection. + :vartype sharedKey: str + :ivar sharedKeyLength: The length of the shared key for the vpn link connection. + :vartype sharedKeyLength: int + :ivar provisioningState: The provisioning state of the SharedKey resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + sharedKey: str + """The value of the shared key for the vpn link connection.""" + sharedKeyLength: int + """The length of the shared key for the vpn link connection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the SharedKey resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class SignatureOverridesFilterValuesQuery(TypedDict, total=False): + """Describes the filter values possibles for a given column. + + :ivar filterName: Describes the name of the column which values will be returned. + :vartype filterName: str + """ + + filterName: str + """Describes the name of the column which values will be returned.""" + + +class WritableResource(TypedDict, total=False): + """Common resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + + +class SignaturesOverrides(WritableResource): + """Contains all specific policy signatures overrides for the IDPS. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Will contain the properties of the resource (the actual signature overrides). + :vartype properties: "SignaturesOverridesProperties" + """ + + properties: "SignaturesOverridesProperties" + """Will contain the properties of the resource (the actual signature overrides).""" + + +class SignaturesOverridesProperties(TypedDict, total=False): + """Will contain the properties of the resource (the actual signature overrides). + + :ivar signatures: Dictionary of . + :vartype signatures: dict[str, str] + """ + + signatures: dict[str, str] + """Dictionary of .""" + + +class Sku(TypedDict, total=False): + """The sku of this Bastion Host. + + :ivar name: The name of the sku of this Bastion Host. Known values are: "Basic", "Standard", + "Developer", and "Premium". + :vartype name: Union[str, "BastionHostSkuName"] + """ + + name: Union[str, "BastionHostSkuName"] + """The name of the sku of this Bastion Host. Known values are: \"Basic\", \"Standard\", + \"Developer\", and \"Premium\".""" + + +class StaticCidr(CommonProxyResource): + """Instance of StaticCidr resource. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype systemData: "SystemData" + :ivar properties: Properties of static CIDR resource. + :vartype properties: "StaticCidrProperties" + """ + + properties: "StaticCidrProperties" + """Properties of static CIDR resource.""" + + +class StaticCidrProperties(TypedDict, total=False): + """Properties of static CIDR resource. + + :ivar description: + :vartype description: str + :ivar numberOfIPAddressesToAllocate: Number of IP addresses to allocate for a static CIDR + resource. The IP addresses will be assigned based on IpamPools available space. + :vartype numberOfIPAddressesToAllocate: str + :ivar addressPrefixes: List of IP address prefixes of the resource. + :vartype addressPrefixes: list[str] + :ivar totalNumberOfIPAddresses: Total number of IP addresses allocated for the static CIDR + resource. + :vartype totalNumberOfIPAddresses: str + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + numberOfIPAddressesToAllocate: str + """Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be + assigned based on IpamPools available space.""" + addressPrefixes: list[str] + """List of IP address prefixes of the resource.""" + totalNumberOfIPAddresses: str + """Total number of IP addresses allocated for the static CIDR resource.""" + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + + +class StaticMember(ChildResource): + """StaticMember Item. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar properties: The Static Member properties. + :vartype properties: "StaticMemberProperties" + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "StaticMemberProperties" + """The Static Member properties.""" + systemData: "SystemData" + """The system metadata related to this resource.""" + + +class StaticMemberProperties(TypedDict, total=False): + """Properties of static member. + + :ivar resourceId: Resource Id. + :vartype resourceId: str + :ivar region: Resource region. + :vartype region: str + :ivar provisioningState: The provisioning state of the scope assignment resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + resourceId: str + """Resource Id.""" + region: str + """Resource region.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the scope assignment resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class StaticRoute(TypedDict, total=False): + """List of all Static Routes. + + :ivar name: The name of the StaticRoute that is unique within a VnetRoute. + :vartype name: str + :ivar addressPrefixes: List of all address prefixes. + :vartype addressPrefixes: list[str] + :ivar nextHopIpAddress: The ip address of the next hop. + :vartype nextHopIpAddress: str + """ + + name: str + """The name of the StaticRoute that is unique within a VnetRoute.""" + addressPrefixes: list[str] + """List of all address prefixes.""" + nextHopIpAddress: str + """The ip address of the next hop.""" + + +class StaticRoutesConfig(TypedDict, total=False): + """Configuration for static routes on this HubVnetConnectionConfiguration for static routes on + this HubVnetConnection. + + :ivar propagateStaticRoutes: Boolean indicating whether static routes on this connection are + automatically propagate to route tables which this connection propagates to. + :vartype propagateStaticRoutes: bool + :ivar vnetLocalRouteOverrideCriteria: Parameter determining whether NVA in spoke vnet is + bypassed for traffic with destination in spoke. Known values are: "Contains" and "Equal". + :vartype vnetLocalRouteOverrideCriteria: Union[str, "VnetLocalRouteOverrideCriteria"] + """ + + propagateStaticRoutes: bool + """Boolean indicating whether static routes on this connection are automatically propagate to + route tables which this connection propagates to.""" + vnetLocalRouteOverrideCriteria: Union[str, "VnetLocalRouteOverrideCriteria"] + """Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in + spoke. Known values are: \"Contains\" and \"Equal\".""" + + +class StorageAccountSettings(TypedDict, total=False): + """Storage account where the connection analyzer writes its output. + + :ivar storageAccountId: Resource ID of the storage account. Required. + :vartype storageAccountId: str + :ivar path: Sub-path within the storage account where results are written. + :vartype path: str + """ + + storageAccountId: Required[str] + """Resource ID of the storage account. Required.""" + path: str + """Sub-path within the storage account where results are written.""" + + +class Subgroup(SubResourceModel): + """A subgroup in an interconnect group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the subgroup. + :vartype properties: "SubgroupProperties" + """ + + properties: "SubgroupProperties" + """Properties of the subgroup.""" + + +class SubgroupProfile(TypedDict, total=False): + """Subgroup profile of the interconnect group resource. + + :ivar vmSize: VM size of the subgroup profile. Required. + :vartype vmSize: str + :ivar scope: Scope of the subgroup profile. Known values are: "None" and "VerticalConnect". + :vartype scope: Union[str, "SubgroupProfileScope"] + :ivar size: Size of the subgroup profile. + :vartype size: int + """ + + vmSize: Required[str] + """VM size of the subgroup profile. Required.""" + scope: Union[str, "SubgroupProfileScope"] + """Scope of the subgroup profile. Known values are: \"None\" and \"VerticalConnect\".""" + size: int + """Size of the subgroup profile.""" + + +class SubgroupProperties(TypedDict, total=False): + """Properties of subgroup. + + :ivar internalSubgroupId: The unique identifier of the subgroup. + :vartype internalSubgroupId: str + :ivar interconnectBlock: The reference to an interconnect block resource. + :vartype interconnectBlock: "SubResource" + :ivar virtualMachines: A list of virtual machine references. + :vartype virtualMachines: list["SubResource"] + :ivar provisioningState: The provisioning state of the subgroup. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + internalSubgroupId: str + """The unique identifier of the subgroup.""" + interconnectBlock: "SubResource" + """The reference to an interconnect block resource.""" + virtualMachines: list["SubResource"] + """A list of virtual machine references.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the subgroup. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class Subnet(SubResourceModel): + """Subnet in a virtual network resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the subnet. + :vartype properties: "SubnetPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "SubnetPropertiesFormat" + """Properties of the subnet.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class SubnetPropertiesFormat(TypedDict, total=False): + """Properties of the subnet. + + :ivar addressPrefix: The address prefix for the subnet. + :vartype addressPrefix: str + :ivar addressPrefixes: List of address prefixes for the subnet. + :vartype addressPrefixes: list[str] + :ivar networkSecurityGroup: The reference to the NetworkSecurityGroup resource. + :vartype networkSecurityGroup: "NetworkSecurityGroup" + :ivar routeTable: The reference to the RouteTable resource. + :vartype routeTable: "RouteTable" + :ivar natGateway: Nat gateway associated with this subnet. + :vartype natGateway: "SubResource" + :ivar serviceEndpoints: An array of service endpoints. + :vartype serviceEndpoints: list["ServiceEndpointPropertiesFormat"] + :ivar serviceEndpointPolicies: An array of service endpoint policies. + :vartype serviceEndpointPolicies: list["ServiceEndpointPolicy"] + :ivar privateEndpoints: An array of references to private endpoints. + :vartype privateEndpoints: list["PrivateEndpoint"] + :ivar ipConfigurations: An array of references to the network interface IP configurations using + subnet. + :vartype ipConfigurations: list["IPConfiguration"] + :ivar ipConfigurationProfiles: Array of IP configuration profiles which reference this subnet. + :vartype ipConfigurationProfiles: list["IPConfigurationProfile"] + :ivar ipAllocations: Array of IpAllocation which reference this subnet. + :vartype ipAllocations: list["SubResource"] + :ivar resourceNavigationLinks: An array of references to the external resources using subnet. + :vartype resourceNavigationLinks: list["ResourceNavigationLink"] + :ivar serviceAssociationLinks: An array of references to services injecting into this subnet. + :vartype serviceAssociationLinks: list["ServiceAssociationLink"] + :ivar delegations: An array of references to the delegations on the subnet. + :vartype delegations: list["Delegation"] + :ivar purpose: A read-only string identifying the intention of use for this subnet based on + delegations and other user-defined properties. + :vartype purpose: str + :ivar provisioningState: The provisioning state of the subnet resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateEndpointNetworkPolicies: Enable or Disable apply network policies on private end + point in the subnet. Known values are: "Enabled", "Disabled", "NetworkSecurityGroupEnabled", + and "RouteTableEnabled". + :vartype privateEndpointNetworkPolicies: Union[str, + "VirtualNetworkPrivateEndpointNetworkPolicies"] + :ivar privateLinkServiceNetworkPolicies: Enable or Disable apply network policies on private + link service in the subnet. Known values are: "Enabled" and "Disabled". + :vartype privateLinkServiceNetworkPolicies: Union[str, + "VirtualNetworkPrivateLinkServiceNetworkPolicies"] + :ivar applicationGatewayIPConfigurations: Application gateway IP configurations of virtual + network resource. + :vartype applicationGatewayIPConfigurations: list["ApplicationGatewayIPConfiguration"] + :ivar sharingScope: Set this property to Tenant to allow sharing subnet with other + subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set + to false, both properties can only be set if subnet is empty. Known values are: "Tenant" and + "DelegatedServices". + :vartype sharingScope: Union[str, "SharingScope"] + :ivar defaultOutboundAccess: Set this property to false to disable default outbound + connectivity for all VMs in the subnet. + :vartype defaultOutboundAccess: bool + :ivar ipamPoolPrefixAllocations: A list of IPAM Pools for allocating IP address prefixes. + :vartype ipamPoolPrefixAllocations: list["IpamPoolPrefixAllocation"] + :ivar serviceGateway: Reference to an existing service gateway. + :vartype serviceGateway: "SubResource" + """ + + addressPrefix: str + """The address prefix for the subnet.""" + addressPrefixes: list[str] + """List of address prefixes for the subnet.""" + networkSecurityGroup: "NetworkSecurityGroup" + """The reference to the NetworkSecurityGroup resource.""" + routeTable: "RouteTable" + """The reference to the RouteTable resource.""" + natGateway: "SubResource" + """Nat gateway associated with this subnet.""" + serviceEndpoints: list["ServiceEndpointPropertiesFormat"] + """An array of service endpoints.""" + serviceEndpointPolicies: list["ServiceEndpointPolicy"] + """An array of service endpoint policies.""" + privateEndpoints: list["PrivateEndpoint"] + """An array of references to private endpoints.""" + ipConfigurations: list["IPConfiguration"] + """An array of references to the network interface IP configurations using subnet.""" + ipConfigurationProfiles: list["IPConfigurationProfile"] + """Array of IP configuration profiles which reference this subnet.""" + ipAllocations: list["SubResource"] + """Array of IpAllocation which reference this subnet.""" + resourceNavigationLinks: list["ResourceNavigationLink"] + """An array of references to the external resources using subnet.""" + serviceAssociationLinks: list["ServiceAssociationLink"] + """An array of references to services injecting into this subnet.""" + delegations: list["Delegation"] + """An array of references to the delegations on the subnet.""" + purpose: str + """A read-only string identifying the intention of use for this subnet based on delegations and + other user-defined properties.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the subnet resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateEndpointNetworkPolicies: Union[str, "VirtualNetworkPrivateEndpointNetworkPolicies"] + """Enable or Disable apply network policies on private end point in the subnet. Known values are: + \"Enabled\", \"Disabled\", \"NetworkSecurityGroupEnabled\", and \"RouteTableEnabled\".""" + privateLinkServiceNetworkPolicies: Union[str, "VirtualNetworkPrivateLinkServiceNetworkPolicies"] + """Enable or Disable apply network policies on private link service in the subnet. Known values + are: \"Enabled\" and \"Disabled\".""" + applicationGatewayIPConfigurations: list["ApplicationGatewayIPConfiguration"] + """Application gateway IP configurations of virtual network resource.""" + sharingScope: Union[str, "SharingScope"] + """Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD + tenant. This property can only be set if defaultOutboundAccess is set to false, both properties + can only be set if subnet is empty. Known values are: \"Tenant\" and \"DelegatedServices\".""" + defaultOutboundAccess: bool + """Set this property to false to disable default outbound connectivity for all VMs in the subnet.""" + ipamPoolPrefixAllocations: list["IpamPoolPrefixAllocation"] + """A list of IPAM Pools for allocating IP address prefixes.""" + serviceGateway: "SubResource" + """Reference to an existing service gateway.""" + + +class SubscriptionId(TypedDict, total=False): + """SubscriptionId. + + :ivar id: Subscription id in the ARM id format. + :vartype id: str + """ + + id: str + """Subscription id in the ARM id format.""" + + +class SwapResource(ProxyResourceWithReadOnlyID): + """SwapResource to represent slot type on the specified cloud service. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Swap resource properties. + :vartype properties: "SwapResourceProperties" + """ + + properties: "SwapResourceProperties" + """Swap resource properties.""" + + +class SwapResourceProperties(TypedDict, total=False): + """Swap resource properties. + + :ivar slotType: Specifies slot info on a cloud service. Known values are: "Production" and + "Staging". + :vartype slotType: Union[str, "SlotType"] + """ + + slotType: Union[str, "SlotType"] + """Specifies slot info on a cloud service. Known values are: \"Production\" and \"Staging\".""" + + +class SystemData(TypedDict, total=False): + """Metadata pertaining to creation and last modification of the resource. + + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str + """ + + createdBy: str + """The identity that created the resource.""" + createdByType: Union[str, "CreatedByType"] + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + createdAt: str + """The timestamp of resource creation (UTC).""" + lastModifiedBy: str + """The identity that last modified the resource.""" + lastModifiedByType: Union[str, "CreatedByType"] + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + lastModifiedAt: str + """The timestamp of resource last modification (UTC).""" + + +class TagsObject(TypedDict, total=False): + """Tags object for patch operations. + + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + tags: dict[str, str] + """Resource tags.""" + + +class TopologyParameters(TypedDict, total=False): + """Parameters that define the representation of topology. + + :ivar targetResourceGroupName: The name of the target resource group to perform topology on. + :vartype targetResourceGroupName: str + :ivar targetVirtualNetwork: The reference to the Virtual Network resource. + :vartype targetVirtualNetwork: "SubResource" + :ivar targetSubnet: The reference to the Subnet resource. + :vartype targetSubnet: "SubResource" + """ + + targetResourceGroupName: str + """The name of the target resource group to perform topology on.""" + targetVirtualNetwork: "SubResource" + """The reference to the Virtual Network resource.""" + targetSubnet: "SubResource" + """The reference to the Subnet resource.""" + + +class TrackedResourceWithSettableName(TypedDict, total=False): + """Common resource representation. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + id: str + """Resource ID.""" + name: str + """Resource name.""" + type: str + """Resource type.""" + location: str + """Resource location.""" + tags: dict[str, str] + """Resource tags.""" + + +class TrafficAnalyticsConfigurationProperties(TypedDict, total=False): + """Parameters that define the configuration of traffic analytics. + + :ivar enabled: Flag to enable/disable traffic analytics. + :vartype enabled: bool + :ivar workspaceId: The resource guid of the attached workspace. + :vartype workspaceId: str + :ivar workspaceRegion: The location of the attached workspace. + :vartype workspaceRegion: str + :ivar workspaceResourceId: Resource Id of the attached workspace. + :vartype workspaceResourceId: str + :ivar trafficAnalyticsInterval: The interval in minutes which would decide how frequently TA + service should do flow analytics. + :vartype trafficAnalyticsInterval: int + """ + + enabled: bool + """Flag to enable/disable traffic analytics.""" + workspaceId: str + """The resource guid of the attached workspace.""" + workspaceRegion: str + """The location of the attached workspace.""" + workspaceResourceId: str + """Resource Id of the attached workspace.""" + trafficAnalyticsInterval: int + """The interval in minutes which would decide how frequently TA service should do flow analytics.""" + + +class TrafficAnalyticsProperties(TypedDict, total=False): + """Parameters that define the configuration of traffic analytics. + + :ivar networkWatcherFlowAnalyticsConfiguration: Parameters that define the configuration of + traffic analytics. + :vartype networkWatcherFlowAnalyticsConfiguration: "TrafficAnalyticsConfigurationProperties" + """ + + networkWatcherFlowAnalyticsConfiguration: "TrafficAnalyticsConfigurationProperties" + """Parameters that define the configuration of traffic analytics.""" + + +class TrafficDetectionRule(TypedDict, total=False): + """Ddos Custom Policy traffic detection rule. + + :ivar trafficType: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be + applied upon. Known values are: "Tcp", "Udp", and "TcpSyn". + :vartype trafficType: Union[str, "DdosTrafficType"] + :ivar packetsPerSecond: The customized packets per second threshold. + :vartype packetsPerSecond: int + """ + + trafficType: Union[str, "DdosTrafficType"] + """The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon. Known + values are: \"Tcp\", \"Udp\", and \"TcpSyn\".""" + packetsPerSecond: int + """The customized packets per second threshold.""" + + +class TrafficSelectorPolicy(TypedDict, total=False): + """An traffic selector policy for a virtual network gateway connection. + + :ivar localAddressRanges: A collection of local address spaces in CIDR format. Required. + :vartype localAddressRanges: list[str] + :ivar remoteAddressRanges: A collection of remote address spaces in CIDR format. Required. + :vartype remoteAddressRanges: list[str] + """ + + localAddressRanges: Required[list[str]] + """A collection of local address spaces in CIDR format. Required.""" + remoteAddressRanges: Required[list[str]] + """A collection of remote address spaces in CIDR format. Required.""" + + +class TroubleshootingParameters(TypedDict, total=False): + """Parameters that define the resource to troubleshoot. + + :ivar targetResourceId: The target resource to troubleshoot. Required. + :vartype targetResourceId: str + :ivar properties: Properties of the troubleshooting resource. Required. + :vartype properties: "TroubleshootingProperties" + """ + + targetResourceId: Required[str] + """The target resource to troubleshoot. Required.""" + properties: Required["TroubleshootingProperties"] + """Properties of the troubleshooting resource. Required.""" + + +class TroubleshootingProperties(TypedDict, total=False): + """Storage location provided for troubleshoot. + + :ivar storageId: The ID for the storage account to save the troubleshoot result. Required. + :vartype storageId: str + :ivar storagePath: The path to the blob to save the troubleshoot result in. Required. + :vartype storagePath: str + """ + + storageId: Required[str] + """The ID for the storage account to save the troubleshoot result. Required.""" + storagePath: Required[str] + """The path to the blob to save the troubleshoot result in. Required.""" + + +class TunnelConnectionHealth(TypedDict, total=False): + """VirtualNetworkGatewayConnection properties. + + :ivar tunnel: Tunnel name. + :vartype tunnel: str + :ivar connectionStatus: Virtual Network Gateway connection status. Known values are: "Unknown", + "Connecting", "Connected", and "NotConnected". + :vartype connectionStatus: Union[str, "VirtualNetworkGatewayConnectionStatus"] + :ivar ingressBytesTransferred: The Ingress Bytes Transferred in this connection. + :vartype ingressBytesTransferred: int + :ivar egressBytesTransferred: The Egress Bytes Transferred in this connection. + :vartype egressBytesTransferred: int + :ivar lastConnectionEstablishedUtcTime: The time at which connection was established in Utc + format. + :vartype lastConnectionEstablishedUtcTime: str + """ + + tunnel: str + """Tunnel name.""" + connectionStatus: Union[str, "VirtualNetworkGatewayConnectionStatus"] + """Virtual Network Gateway connection status. Known values are: \"Unknown\", \"Connecting\", + \"Connected\", and \"NotConnected\".""" + ingressBytesTransferred: int + """The Ingress Bytes Transferred in this connection.""" + egressBytesTransferred: int + """The Egress Bytes Transferred in this connection.""" + lastConnectionEstablishedUtcTime: str + """The time at which connection was established in Utc format.""" + + +class UnprepareNetworkPoliciesRequest(TypedDict, total=False): + """Details of UnprepareNetworkPolicies for Subnet. + + :ivar serviceName: The name of the service for which subnet is being unprepared for. + :vartype serviceName: str + """ + + serviceName: str + """The name of the service for which subnet is being unprepared for.""" + + +class UpdateTagsRequest(TypedDict, total=False): + """Update tags request. + + :ivar id: Network security perimeter identifier. + :vartype id: str + :ivar tags: List of tags for Network Security Perimeter. + :vartype tags: dict[str, str] + """ + + id: str + """Network security perimeter identifier.""" + tags: dict[str, str] + """List of tags for Network Security Perimeter.""" + + +class VerificationIPFlowParameters(TypedDict, total=False): + """Parameters that define the IP flow to be verified. + + :ivar targetResourceId: The ID of the target resource to perform next-hop on. Required. + :vartype targetResourceId: str + :ivar direction: The direction of the packet represented as a 5-tuple. Required. Known values + are: "Inbound" and "Outbound". + :vartype direction: Union[str, "Direction"] + :ivar protocol: Protocol to be verified on. Required. Known values are: "TCP" and "UDP". + :vartype protocol: Union[str, "IpFlowProtocol"] + :ivar localPort: The local port. Acceptable values are a single integer in the range (0-65535). + Support for * for the source port, which depends on the direction. Required. + :vartype localPort: str + :ivar remotePort: The remote port. Acceptable values are a single integer in the range + (0-65535). Support for * for the source port, which depends on the direction. Required. + :vartype remotePort: str + :ivar localIPAddress: The local IP address. Acceptable values are valid IPv4 addresses. + Required. + :vartype localIPAddress: str + :ivar remoteIPAddress: The remote IP address. Acceptable values are valid IPv4 addresses. + Required. + :vartype remoteIPAddress: str + :ivar targetNicResourceId: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on + any of them, then this parameter must be specified. Otherwise optional). + :vartype targetNicResourceId: str + """ + + targetResourceId: Required[str] + """The ID of the target resource to perform next-hop on. Required.""" + direction: Required[Union[str, "Direction"]] + """The direction of the packet represented as a 5-tuple. Required. Known values are: \"Inbound\" + and \"Outbound\".""" + protocol: Required[Union[str, "IpFlowProtocol"]] + """Protocol to be verified on. Required. Known values are: \"TCP\" and \"UDP\".""" + localPort: Required[str] + """The local port. Acceptable values are a single integer in the range (0-65535). Support for * + for the source port, which depends on the direction. Required.""" + remotePort: Required[str] + """The remote port. Acceptable values are a single integer in the range (0-65535). Support for * + for the source port, which depends on the direction. Required.""" + localIPAddress: Required[str] + """The local IP address. Acceptable values are valid IPv4 addresses. Required.""" + remoteIPAddress: Required[str] + """The remote IP address. Acceptable values are valid IPv4 addresses. Required.""" + targetNicResourceId: str + """The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this + parameter must be specified. Otherwise optional).""" + + +class VerifierWorkspace(CommonTrackedResource): + """Instance of Verifier Workspace. + + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: Properties of Verifier Workspace resource. + :vartype properties: "VerifierWorkspaceProperties" + :ivar etag: String representing unique etag for the resource document. + :vartype etag: str + :ivar systemData: The system metadata related to this resource. + :vartype systemData: "SystemData" + """ + + properties: "VerifierWorkspaceProperties" + """Properties of Verifier Workspace resource.""" + etag: str + """String representing unique etag for the resource document.""" + + +class VerifierWorkspaceProperties(TypedDict, total=False): + """Properties of Verifier Workspace resource. + + :ivar description: + :vartype description: str + :ivar provisioningState: Provisioning states of a resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + description: str + provisioningState: Union[str, "ProvisioningState"] + """Provisioning states of a resource. Known values are: \"Failed\", \"Succeeded\", \"Canceled\", + \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VerifierWorkspaceUpdate(TypedDict, total=False): + """Represents the VerifierWorkspace update API request interface. + + :ivar tags: Dictionary of . + :vartype tags: dict[str, str] + :ivar properties: Represents the VerifierWorkspace update properties. + :vartype properties: "VerifierWorkspaceUpdateProperties" + """ + + tags: dict[str, str] + """Dictionary of .""" + properties: "VerifierWorkspaceUpdateProperties" + """Represents the VerifierWorkspace update properties.""" + + +class VerifierWorkspaceUpdateProperties(TypedDict, total=False): + """Represents the VerifierWorkspace update properties. + + :ivar description: + :vartype description: str + """ + + description: str + + +class VirtualApplianceAdditionalNicProperties(TypedDict, total=False): + """Network Virtual Appliance Additional Nic Properties. + + :ivar name: Name of additional nic. + :vartype name: str + :ivar hasPublicIp: Flag (true or false) for Intent for Public Ip on additional nic. + :vartype hasPublicIp: bool + """ + + name: str + """Name of additional nic.""" + hasPublicIp: bool + """Flag (true or false) for Intent for Public Ip on additional nic.""" + + +class VirtualApplianceIPConfiguration(TypedDict, total=False): + """Represents a single IP configuration. + + :ivar name: For hub NVAs, primary IP configs must be named 'privatenicipconfig' and + 'publicnicipconfig', with non-primary configs using these prefixes; no naming restrictions + apply for NVAs in VNets. Maximum 80 character are allowed. + :vartype name: str + :ivar properties: Represents a single IP configuration properties. + :vartype properties: "VirtualApplianceIPConfigurationProperties" + """ + + name: str + """For hub NVAs, primary IP configs must be named 'privatenicipconfig' and 'publicnicipconfig', + with non-primary configs using these prefixes; no naming restrictions apply for NVAs in VNets. + Maximum 80 character are allowed.""" + properties: "VirtualApplianceIPConfigurationProperties" + """Represents a single IP configuration properties.""" + + +class VirtualApplianceIPConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Represents a single IP configuration properties. + + :ivar primary: Whether or not this is primary IP configuration of the NIC. + :vartype primary: bool + """ + + primary: bool + """Whether or not this is primary IP configuration of the NIC.""" + + +class VirtualApplianceNetworkInterfaceConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """Represents a single NIC configuration. + + :ivar type: NIC type. This should be either PublicNic or PrivateNic. Known values are: + "PublicNic" and "PrivateNic". + :vartype type: Union[str, "NicTypeInRequest"] + :ivar properties: Represents a single NIC configuration properties. + :vartype properties: "VirtualApplianceNetworkInterfaceConfigurationProperties" + """ + + type: Union[str, "NicTypeInRequest"] + """NIC type. This should be either PublicNic or PrivateNic. Known values are: \"PublicNic\" and + \"PrivateNic\".""" + properties: "VirtualApplianceNetworkInterfaceConfigurationProperties" + """Represents a single NIC configuration properties.""" + + +class VirtualApplianceNetworkInterfaceConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Represents a single NIC configuration properties. + + :ivar ipConfigurations: + :vartype ipConfigurations: list["VirtualApplianceIPConfiguration"] + """ + + ipConfigurations: list["VirtualApplianceIPConfiguration"] + + +class VirtualApplianceNicProperties(TypedDict, total=False): + """Network Virtual Appliance NIC properties. + + :ivar nicType: NIC type - PublicNic, PrivateNic, or AdditionalNic; AdditionalPrivateNic and + AdditionalPublicNic are only supported for NVAs deployed in VNets. Known values are: + "PublicNic", "PrivateNic", and "AdditionalNic". + :vartype nicType: Union[str, "NicTypeInResponse"] + :ivar name: NIC name. + :vartype name: str + :ivar publicIpAddress: Public IP address. + :vartype publicIpAddress: str + :ivar privateIpAddress: Private IP address. + :vartype privateIpAddress: str + :ivar publicIpAddressV6: Public IPv6 address. Populated for dual-stack NVAs, including on + additional-NIC configurations when the NVA is dual-stack. + :vartype publicIpAddressV6: str + :ivar privateIpAddressV6: Private IPv6 address. Populated for dual-stack NVAs, including on + additional-NIC configurations when the NVA is dual-stack. + :vartype privateIpAddressV6: str + :ivar instanceName: Instance on which nic is attached. + :vartype instanceName: str + """ + + nicType: Union[str, "NicTypeInResponse"] + """NIC type - PublicNic, PrivateNic, or AdditionalNic; AdditionalPrivateNic and + AdditionalPublicNic are only supported for NVAs deployed in VNets. Known values are: + \"PublicNic\", \"PrivateNic\", and \"AdditionalNic\".""" + name: str + """NIC name.""" + publicIpAddress: str + """Public IP address.""" + privateIpAddress: str + """Private IP address.""" + publicIpAddressV6: str + """Public IPv6 address. Populated for dual-stack NVAs, including on additional-NIC configurations + when the NVA is dual-stack.""" + privateIpAddressV6: str + """Private IPv6 address. Populated for dual-stack NVAs, including on additional-NIC configurations + when the NVA is dual-stack.""" + instanceName: str + """Instance on which nic is attached.""" + + +class VirtualApplianceSite(SubResourceModel): + """Virtual Appliance Site resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the Virtual Appliance Sites. + :vartype properties: "VirtualApplianceSiteProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualApplianceSiteProperties" + """The properties of the Virtual Appliance Sites.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualApplianceSiteProperties(TypedDict, total=False): + """Properties of the rule group. + + :ivar addressPrefix: Address Prefix. + :vartype addressPrefix: str + :ivar o365Policy: Office 365 Policy. + :vartype o365Policy: "Office365PolicyProperties" + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + addressPrefix: str + """Address Prefix.""" + o365Policy: "Office365PolicyProperties" + """Office 365 Policy.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualApplianceSkuProperties(TypedDict, total=False): + """Network Virtual Appliance Sku Properties. + + :ivar vendor: Virtual Appliance Vendor. + :vartype vendor: str + :ivar bundledScaleUnit: Virtual Appliance Scale Unit. + :vartype bundledScaleUnit: str + :ivar marketPlaceVersion: Virtual Appliance Version. + :vartype marketPlaceVersion: str + """ + + vendor: str + """Virtual Appliance Vendor.""" + bundledScaleUnit: str + """Virtual Appliance Scale Unit.""" + marketPlaceVersion: str + """Virtual Appliance Version.""" + + +class VirtualHub(TrackedResourceWithSettableIdOptionalLocation): + """VirtualHub Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual hub. + :vartype properties: "VirtualHubProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar kind: Kind of service virtual hub. This is metadata used for the Azure portal experience + for Route Server. + :vartype kind: str + """ + + properties: "VirtualHubProperties" + """Properties of the virtual hub.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + kind: str + """Kind of service virtual hub. This is metadata used for the Azure portal experience for Route + Server.""" + + +class VirtualHubId(TypedDict, total=False): + """Virtual Hub identifier. + + :ivar id: The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be + deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same + subscription. + :vartype id: str + """ + + id: str + """The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The + Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription.""" + + +class VirtualHubProperties(TypedDict, total=False): + """Parameters for VirtualHub. + + :ivar virtualWan: The VirtualWAN to which the VirtualHub belongs. + :vartype virtualWan: "SubResource" + :ivar vpnGateway: The VpnGateway associated with this VirtualHub. + :vartype vpnGateway: "SubResource" + :ivar p2SVpnGateway: The P2SVpnGateway associated with this VirtualHub. + :vartype p2SVpnGateway: "SubResource" + :ivar expressRouteGateway: The expressRouteGateway associated with this VirtualHub. + :vartype expressRouteGateway: "SubResource" + :ivar azureFirewall: The azureFirewall associated with this VirtualHub. + :vartype azureFirewall: "SubResource" + :ivar securityPartnerProvider: The securityPartnerProvider associated with this VirtualHub. + :vartype securityPartnerProvider: "SubResource" + :ivar addressPrefix: Address-prefix for this VirtualHub. + :vartype addressPrefix: str + :ivar routeTable: The routeTable associated with this virtual hub. + :vartype routeTable: "VirtualHubRouteTable" + :ivar provisioningState: The provisioning state of the virtual hub resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar securityProviderName: The Security Provider name. + :vartype securityProviderName: str + :ivar virtualHubRouteTableV2s: List of all virtual hub route table v2s associated with this + VirtualHub. + :vartype virtualHubRouteTableV2s: list["VirtualHubRouteTableV2"] + :ivar sku: The sku of this VirtualHub. + :vartype sku: str + :ivar routingState: The routing state. Known values are: "None", "Provisioned", "Provisioning", + and "Failed". + :vartype routingState: Union[str, "RoutingState"] + :ivar bgpConnections: List of references to Bgp Connections. + :vartype bgpConnections: list["SubResource"] + :ivar ipConfigurations: List of references to IpConfigurations. + :vartype ipConfigurations: list["SubResource"] + :ivar routeMaps: List of references to RouteMaps. + :vartype routeMaps: list["SubResource"] + :ivar virtualRouterAsn: VirtualRouter ASN. + :vartype virtualRouterAsn: int + :ivar virtualRouterIps: VirtualRouter IPs. + :vartype virtualRouterIps: list[str] + :ivar addressPrefixV6: IPv6 Address-prefix for this VirtualHub. + :vartype addressPrefixV6: str + :ivar virtualRouterIpsV6: VirtualRouter IPv6 IPs. + :vartype virtualRouterIpsV6: list[str] + :ivar allowBranchToBranchTraffic: Flag to control transit for VirtualRouter hub. + :vartype allowBranchToBranchTraffic: bool + :ivar preferredRoutingGateway: The preferred gateway to route on-prem traffic. Known values + are: "ExpressRoute", "VpnGateway", and "None". + :vartype preferredRoutingGateway: Union[str, "PreferredRoutingGateway"] + :ivar hubRoutingPreference: The hubRoutingPreference of this VirtualHub. Known values are: + "ExpressRoute", "VpnGateway", and "ASPath". + :vartype hubRoutingPreference: Union[str, "HubRoutingPreference"] + :ivar virtualRouterAutoScaleConfiguration: The VirtualHub Router autoscale configuration. + :vartype virtualRouterAutoScaleConfiguration: "VirtualRouterAutoScaleConfiguration" + """ + + virtualWan: "SubResource" + """The VirtualWAN to which the VirtualHub belongs.""" + vpnGateway: "SubResource" + """The VpnGateway associated with this VirtualHub.""" + p2SVpnGateway: "SubResource" + """The P2SVpnGateway associated with this VirtualHub.""" + expressRouteGateway: "SubResource" + """The expressRouteGateway associated with this VirtualHub.""" + azureFirewall: "SubResource" + """The azureFirewall associated with this VirtualHub.""" + securityPartnerProvider: "SubResource" + """The securityPartnerProvider associated with this VirtualHub.""" + addressPrefix: str + """Address-prefix for this VirtualHub.""" + routeTable: "VirtualHubRouteTable" + """The routeTable associated with this virtual hub.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual hub resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + securityProviderName: str + """The Security Provider name.""" + virtualHubRouteTableV2s: list["VirtualHubRouteTableV2"] + """List of all virtual hub route table v2s associated with this VirtualHub.""" + sku: str + """The sku of this VirtualHub.""" + routingState: Union[str, "RoutingState"] + """The routing state. Known values are: \"None\", \"Provisioned\", \"Provisioning\", and + \"Failed\".""" + bgpConnections: list["SubResource"] + """List of references to Bgp Connections.""" + ipConfigurations: list["SubResource"] + """List of references to IpConfigurations.""" + routeMaps: list["SubResource"] + """List of references to RouteMaps.""" + virtualRouterAsn: int + """VirtualRouter ASN.""" + virtualRouterIps: list[str] + """VirtualRouter IPs.""" + addressPrefixV6: str + """IPv6 Address-prefix for this VirtualHub.""" + virtualRouterIpsV6: list[str] + """VirtualRouter IPv6 IPs.""" + allowBranchToBranchTraffic: bool + """Flag to control transit for VirtualRouter hub.""" + preferredRoutingGateway: Union[str, "PreferredRoutingGateway"] + """The preferred gateway to route on-prem traffic. Known values are: \"ExpressRoute\", + \"VpnGateway\", and \"None\".""" + hubRoutingPreference: Union[str, "HubRoutingPreference"] + """The hubRoutingPreference of this VirtualHub. Known values are: \"ExpressRoute\", + \"VpnGateway\", and \"ASPath\".""" + virtualRouterAutoScaleConfiguration: "VirtualRouterAutoScaleConfiguration" + """The VirtualHub Router autoscale configuration.""" + + +class VirtualHubRoute(TypedDict, total=False): + """VirtualHub route. + + :ivar addressPrefixes: List of all addressPrefixes. + :vartype addressPrefixes: list[str] + :ivar nextHopIpAddress: NextHop ip address. + :vartype nextHopIpAddress: str + """ + + addressPrefixes: list[str] + """List of all addressPrefixes.""" + nextHopIpAddress: str + """NextHop ip address.""" + + +class VirtualHubRouteTable(TypedDict, total=False): + """VirtualHub route table. + + :ivar routes: List of all routes. + :vartype routes: list["VirtualHubRoute"] + """ + + routes: list["VirtualHubRoute"] + """List of all routes.""" + + +class VirtualHubRouteTableV2(SubResource): + """VirtualHubRouteTableV2 Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the virtual hub route table v2. + :vartype properties: "VirtualHubRouteTableV2Properties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualHubRouteTableV2Properties" + """Properties of the virtual hub route table v2.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualHubRouteTableV2Properties(TypedDict, total=False): + """Parameters for VirtualHubRouteTableV2. + + :ivar routes: List of all routes. + :vartype routes: list["VirtualHubRouteV2"] + :ivar attachedConnections: List of all connections attached to this route table v2. + :vartype attachedConnections: list[str] + :ivar provisioningState: The provisioning state of the virtual hub route table v2 resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + routes: list["VirtualHubRouteV2"] + """List of all routes.""" + attachedConnections: list[str] + """List of all connections attached to this route table v2.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual hub route table v2 resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualHubRouteV2(TypedDict, total=False): + """VirtualHubRouteTableV2 route. + + :ivar destinationType: The type of destinations. + :vartype destinationType: str + :ivar destinations: List of all destinations. + :vartype destinations: list[str] + :ivar nextHopType: The type of next hops. + :vartype nextHopType: str + :ivar nextHops: NextHops ip address. + :vartype nextHops: list[str] + """ + + destinationType: str + """The type of destinations.""" + destinations: list[str] + """List of all destinations.""" + nextHopType: str + """The type of next hops.""" + nextHops: list[str] + """NextHops ip address.""" + + +class VirtualNetwork(Resource): + """Virtual Network resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual network. + :vartype properties: "VirtualNetworkPropertiesFormat" + :ivar extendedLocation: The extended location of the virtual network. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkPropertiesFormat" + """Properties of the virtual network.""" + extendedLocation: "ExtendedLocation" + """The extended location of the virtual network.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkAppliance(Resource): + """A virtual network appliance in a resource group. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual network appliance. + :vartype properties: "VirtualNetworkAppliancePropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkAppliancePropertiesFormat" + """Properties of the virtual network appliance.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkApplianceIpConfiguration(SubResource): + """The virtual network appliance ip configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the virtual network appliance ip configuration. + :vartype properties: "VirtualNetworkApplianceIpConfigurationProperties" + :ivar name: The name of virtual network appliance ip configuration. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar type: The resource type. + :vartype type: str + """ + + properties: "VirtualNetworkApplianceIpConfigurationProperties" + """Properties of the virtual network appliance ip configuration.""" + name: str + """The name of virtual network appliance ip configuration.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + type: str + """The resource type.""" + + +class VirtualNetworkApplianceIpConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of virtual network appliance IP configuration. + + :ivar privateIPAddress: The private IP address of the IP configuration. + :vartype privateIPAddress: str + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar primary: Whether the ip configuration is primary or not. + :vartype primary: bool + :ivar provisioningState: The provisioning state of the private link service IP configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateIPAddressVersion: Whether the specific IP configuration is IPv4 or IPv6. Default + is IPv4. Known values are: "IPv4" and "IPv6". + :vartype privateIPAddressVersion: Union[str, "IPVersion"] + """ + + privateIPAddress: str + """The private IP address of the IP configuration.""" + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + primary: bool + """Whether the ip configuration is primary or not.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the private link service IP configuration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + privateIPAddressVersion: Union[str, "IPVersion"] + """Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. Known values are: + \"IPv4\" and \"IPv6\".""" + + +class VirtualNetworkAppliancePropertiesFormat(TypedDict, total=False): + """VirtualNetworkAppliance properties. + + :ivar bandwidthInGbps: Bandwidth of the VirtualNetworkAppliance resource in Gbps. + :vartype bandwidthInGbps: float + :ivar ipConfigurations: A list of IPConfigurations of the virtual network appliance. + :vartype ipConfigurations: list["VirtualNetworkApplianceIpConfiguration"] + :ivar privateIPAddressVersion: Whether the specific virtual network appliance is IPv4 or Dual + Stack. Default is IPv4. Known values are: "IPv4" and "DualStack". + :vartype privateIPAddressVersion: Union[str, "VirtualNetworkApplianceIpVersionType"] + :ivar provisioningState: The provisioning state of the virtual network appliance resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceGuid: The resource GUID property of the virtual network appliance resource. + :vartype resourceGuid: str + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "Subnet" + """ + + bandwidthInGbps: float + """Bandwidth of the VirtualNetworkAppliance resource in Gbps.""" + ipConfigurations: list["VirtualNetworkApplianceIpConfiguration"] + """A list of IPConfigurations of the virtual network appliance.""" + privateIPAddressVersion: Union[str, "VirtualNetworkApplianceIpVersionType"] + """Whether the specific virtual network appliance is IPv4 or Dual Stack. Default is IPv4. Known + values are: \"IPv4\" and \"DualStack\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network appliance resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceGuid: str + """The resource GUID property of the virtual network appliance resource.""" + subnet: "Subnet" + """The reference to the subnet resource.""" + + +class VirtualNetworkBgpCommunities(TypedDict, total=False): + """Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. + + :ivar virtualNetworkCommunity: The BGP community associated with the virtual network. Required. + :vartype virtualNetworkCommunity: str + :ivar regionalCommunity: The BGP community associated with the region of the virtual network. + :vartype regionalCommunity: str + """ + + virtualNetworkCommunity: Required[str] + """The BGP community associated with the virtual network. Required.""" + regionalCommunity: str + """The BGP community associated with the region of the virtual network.""" + + +class VirtualNetworkEncryption(TypedDict, total=False): + """Indicates if encryption is enabled on virtual network and if VM without encryption is allowed + in encrypted VNet. + + :ivar enabled: Indicates if encryption is enabled on the virtual network. Required. + :vartype enabled: bool + :ivar enforcement: If the encrypted VNet allows VM that does not support encryption. This field + is for future support, AllowUnencrypted is the only supported value at general availability. + Known values are: "DropUnencrypted" and "AllowUnencrypted". + :vartype enforcement: Union[str, "VirtualNetworkEncryptionEnforcement"] + """ + + enabled: Required[bool] + """Indicates if encryption is enabled on the virtual network. Required.""" + enforcement: Union[str, "VirtualNetworkEncryptionEnforcement"] + """If the encrypted VNet allows VM that does not support encryption. This field is for future + support, AllowUnencrypted is the only supported value at general availability. Known values + are: \"DropUnencrypted\" and \"AllowUnencrypted\".""" + + +class VirtualNetworkGateway(Resource): + """A common class for general resource information. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual network gateway. Required. + :vartype properties: "VirtualNetworkGatewayPropertiesFormat" + :ivar extendedLocation: The extended location of type local virtual network gateway. + :vartype extendedLocation: "ExtendedLocation" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar identity: The identity of the virtual network gateway, if configured. + :vartype identity: "ManagedServiceIdentity" + """ + + properties: Required["VirtualNetworkGatewayPropertiesFormat"] + """Properties of the virtual network gateway. Required.""" + extendedLocation: "ExtendedLocation" + """The extended location of type local virtual network gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + identity: "ManagedServiceIdentity" + """The identity of the virtual network gateway, if configured.""" + + +class VirtualNetworkGatewayAutoScaleBounds(TypedDict, total=False): + """VirtualNetworkGatewayAutoScaleBounds. + + :ivar min: Minimum scale Units for Autoscale configuration. + :vartype min: int + :ivar max: Maximum Scale Units for Autoscale configuration. + :vartype max: int + """ + + min: int + """Minimum scale Units for Autoscale configuration.""" + max: int + """Maximum Scale Units for Autoscale configuration.""" + + +class VirtualNetworkGatewayAutoScaleConfiguration(TypedDict, total=False): # pylint: disable=name-too-long + """Virtual Network Gateway Autoscale Configuration details. + + :ivar bounds: The bounds of the autoscale configuration. + :vartype bounds: "VirtualNetworkGatewayAutoScaleBounds" + """ + + bounds: "VirtualNetworkGatewayAutoScaleBounds" + """The bounds of the autoscale configuration.""" + + +class VirtualNetworkGatewayConnection(Resource): + """A common class for general resource information. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual network gateway connection. Required. + :vartype properties: "VirtualNetworkGatewayConnectionPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Required["VirtualNetworkGatewayConnectionPropertiesFormat"] + """Properties of the virtual network gateway connection. Required.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkGatewayConnectionPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """VirtualNetworkGatewayConnection properties. + + :ivar authorizationKey: The authorizationKey. + :vartype authorizationKey: str + :ivar virtualNetworkGateway1: The reference to virtual network gateway resource. Required. + :vartype virtualNetworkGateway1: "VirtualNetworkGateway" + :ivar virtualNetworkGateway2: The reference to virtual network gateway resource. + :vartype virtualNetworkGateway2: "VirtualNetworkGateway" + :ivar localNetworkGateway2: The reference to local network gateway resource. + :vartype localNetworkGateway2: "LocalNetworkGateway" + :ivar ingressNatRules: List of ingress NatRules. + :vartype ingressNatRules: list["SubResource"] + :ivar egressNatRules: List of egress NatRules. + :vartype egressNatRules: list["SubResource"] + :ivar connectionType: Gateway connection type. Required. Known values are: "IPsec", + "Vnet2Vnet", "ExpressRoute", and "VPNClient". + :vartype connectionType: Union[str, "VirtualNetworkGatewayConnectionType"] + :ivar connectionProtocol: Connection protocol used for this connection. Known values are: + "IKEv2" and "IKEv1". + :vartype connectionProtocol: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + :ivar routingWeight: The routing weight. + :vartype routingWeight: int + :ivar dpdTimeoutSeconds: The dead peer detection timeout of this connection in seconds. + :vartype dpdTimeoutSeconds: int + :ivar connectionMode: The connection mode for this connection. Known values are: "Default", + "ResponderOnly", and "InitiatorOnly". + :vartype connectionMode: Union[str, "VirtualNetworkGatewayConnectionMode"] + :ivar tunnelProperties: Tunnel properties for virtual network gateway connection. + :vartype tunnelProperties: list["VirtualNetworkGatewayConnectionTunnelProperties"] + :ivar sharedKey: The IPSec shared key. + :vartype sharedKey: str + :ivar connectionStatus: Virtual Network Gateway connection status. Known values are: "Unknown", + "Connecting", "Connected", and "NotConnected". + :vartype connectionStatus: Union[str, "VirtualNetworkGatewayConnectionStatus"] + :ivar tunnelConnectionStatus: Collection of all tunnels' connection health status. + :vartype tunnelConnectionStatus: list["TunnelConnectionHealth"] + :ivar egressBytesTransferred: The egress bytes transferred in this connection. + :vartype egressBytesTransferred: int + :ivar ingressBytesTransferred: The ingress bytes transferred in this connection. + :vartype ingressBytesTransferred: int + :ivar peer: The reference to peerings resource. + :vartype peer: "SubResource" + :ivar enableBgp: EnableBgp flag. + :vartype enableBgp: bool + :ivar gatewayCustomBgpIpAddresses: GatewayCustomBgpIpAddresses to be used for virtual network + gateway Connection. + :vartype gatewayCustomBgpIpAddresses: list["GatewayCustomBgpIpAddressIpConfiguration"] + :ivar useLocalAzureIpAddress: Use private local Azure IP for the connection. + :vartype useLocalAzureIpAddress: bool + :ivar usePolicyBasedTrafficSelectors: Enable policy-based traffic selectors. + :vartype usePolicyBasedTrafficSelectors: bool + :ivar ipsecPolicies: The IPSec Policies to be considered by this connection. + :vartype ipsecPolicies: list["IpsecPolicy"] + :ivar trafficSelectorPolicies: The Traffic Selector Policies to be considered by this + connection. + :vartype trafficSelectorPolicies: list["TrafficSelectorPolicy"] + :ivar resourceGuid: The resource GUID property of the virtual network gateway connection + resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the virtual network gateway connection + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar expressRouteGatewayBypass: Bypass ExpressRoute Gateway for data forwarding. + :vartype expressRouteGatewayBypass: bool + :ivar enablePrivateLinkFastPath: Bypass the ExpressRoute gateway when accessing private-links. + ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. + :vartype enablePrivateLinkFastPath: bool + :ivar authenticationType: Gateway connection authentication type. Known values are: "PSK" and + "Certificate". + :vartype authenticationType: Union[str, "ConnectionAuthenticationType"] + :ivar certificateAuthentication: Certificate Authentication information for a certificate based + authentication connection. + :vartype certificateAuthentication: "CertificateAuthentication" + :ivar routingConfiguration: The routing configuration indicating the associated and propagated + route tables for this connection. + :vartype routingConfiguration: "RoutingConfiguration" + """ + + authorizationKey: str + """The authorizationKey.""" + virtualNetworkGateway1: Required["VirtualNetworkGateway"] + """The reference to virtual network gateway resource. Required.""" + virtualNetworkGateway2: "VirtualNetworkGateway" + """The reference to virtual network gateway resource.""" + localNetworkGateway2: "LocalNetworkGateway" + """The reference to local network gateway resource.""" + ingressNatRules: list["SubResource"] + """List of ingress NatRules.""" + egressNatRules: list["SubResource"] + """List of egress NatRules.""" + connectionType: Required[Union[str, "VirtualNetworkGatewayConnectionType"]] + """Gateway connection type. Required. Known values are: \"IPsec\", \"Vnet2Vnet\", + \"ExpressRoute\", and \"VPNClient\".""" + connectionProtocol: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + """Connection protocol used for this connection. Known values are: \"IKEv2\" and \"IKEv1\".""" + routingWeight: int + """The routing weight.""" + dpdTimeoutSeconds: int + """The dead peer detection timeout of this connection in seconds.""" + connectionMode: Union[str, "VirtualNetworkGatewayConnectionMode"] + """The connection mode for this connection. Known values are: \"Default\", \"ResponderOnly\", and + \"InitiatorOnly\".""" + tunnelProperties: list["VirtualNetworkGatewayConnectionTunnelProperties"] + """Tunnel properties for virtual network gateway connection.""" + sharedKey: str + """The IPSec shared key.""" + connectionStatus: Union[str, "VirtualNetworkGatewayConnectionStatus"] + """Virtual Network Gateway connection status. Known values are: \"Unknown\", \"Connecting\", + \"Connected\", and \"NotConnected\".""" + tunnelConnectionStatus: list["TunnelConnectionHealth"] + """Collection of all tunnels' connection health status.""" + egressBytesTransferred: int + """The egress bytes transferred in this connection.""" + ingressBytesTransferred: int + """The ingress bytes transferred in this connection.""" + peer: "SubResource" + """The reference to peerings resource.""" + enableBgp: bool + """EnableBgp flag.""" + gatewayCustomBgpIpAddresses: list["GatewayCustomBgpIpAddressIpConfiguration"] + """GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.""" + useLocalAzureIpAddress: bool + """Use private local Azure IP for the connection.""" + usePolicyBasedTrafficSelectors: bool + """Enable policy-based traffic selectors.""" + ipsecPolicies: list["IpsecPolicy"] + """The IPSec Policies to be considered by this connection.""" + trafficSelectorPolicies: list["TrafficSelectorPolicy"] + """The Traffic Selector Policies to be considered by this connection.""" + resourceGuid: str + """The resource GUID property of the virtual network gateway connection resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network gateway connection resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + expressRouteGatewayBypass: bool + """Bypass ExpressRoute Gateway for data forwarding.""" + enablePrivateLinkFastPath: bool + """Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath + (expressRouteGatewayBypass) must be enabled.""" + authenticationType: Union[str, "ConnectionAuthenticationType"] + """Gateway connection authentication type. Known values are: \"PSK\" and \"Certificate\".""" + certificateAuthentication: "CertificateAuthentication" + """Certificate Authentication information for a certificate based authentication connection.""" + routingConfiguration: "RoutingConfiguration" + """The routing configuration indicating the associated and propagated route tables for this + connection.""" + + +class VirtualNetworkGatewayConnectionTunnelProperties(TypedDict, total=False): # pylint: disable=name-too-long + """VirtualNetworkGatewayConnectionTunnelProperties. + + :ivar tunnelIpAddress: Tunnel remote IP address. + :vartype tunnelIpAddress: str + :ivar bgpPeeringAddress: Tunnel BGP peering address. + :vartype bgpPeeringAddress: str + """ + + tunnelIpAddress: str + """Tunnel remote IP address.""" + bgpPeeringAddress: str + """Tunnel BGP peering address.""" + + +class VirtualNetworkGatewayIPConfiguration(SubResource): + """IP configuration for virtual network gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the virtual network gateway ip configuration. + :vartype properties: "VirtualNetworkGatewayIPConfigurationPropertiesFormat" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkGatewayIPConfigurationPropertiesFormat" + """Properties of the virtual network gateway ip configuration.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkGatewayIPConfigurationPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of VirtualNetworkGatewayIPConfiguration. + + :ivar privateIPAllocationMethod: The private IP address allocation method. Known values are: + "Static" and "Dynamic". + :vartype privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + :ivar subnet: The reference to the subnet resource. + :vartype subnet: "SubResource" + :ivar publicIPAddress: The reference to the public IP resource. + :vartype publicIPAddress: "SubResource" + :ivar privateIPAddress: Private IP Address for this gateway. + :vartype privateIPAddress: str + :ivar provisioningState: The provisioning state of the virtual network gateway IP configuration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + privateIPAllocationMethod: Union[str, "IPAllocationMethod"] + """The private IP address allocation method. Known values are: \"Static\" and \"Dynamic\".""" + subnet: "SubResource" + """The reference to the subnet resource.""" + publicIPAddress: "SubResource" + """The reference to the public IP resource.""" + privateIPAddress: str + """Private IP Address for this gateway.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network gateway IP configuration resource. Known values + are: \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualNetworkGatewayMigrationParameters(TypedDict, total=False): + """Virtual network gateway migration parameters. + + :ivar migrationType: MigrationType for the virtual network gateway. Required. + "UpgradeDeploymentToStandardIP" + :vartype migrationType: Union[str, "VirtualNetworkGatewayMigrationType"] + :ivar resourceUrl: Resource url that needs to be passed in to migration. + :vartype resourceUrl: str + """ + + migrationType: Required[Union[str, "VirtualNetworkGatewayMigrationType"]] + """MigrationType for the virtual network gateway. Required. \"UpgradeDeploymentToStandardIP\"""" + resourceUrl: str + """Resource url that needs to be passed in to migration.""" + + +class VirtualNetworkGatewayMigrationStatus(TypedDict, total=False): + """Migration status for the Virtual Network Gateway. + + :ivar state: Represent the current state of gateway migration. Known values are: "None", + "InProgress", "Succeeded", and "Failed". + :vartype state: Union[str, "VirtualNetworkGatewayMigrationState"] + :ivar phase: Represent the current migration phase of gateway. Known values are: "None", + "Prepare", "PrepareSucceeded", "Execute", "ExecuteSucceeded", "Commit", "CommitSucceeded", + "AbortSucceeded", and "Abort". + :vartype phase: Union[str, "VirtualNetworkGatewayMigrationPhase"] + :ivar errorMessage: Error if any occurs during migration. + :vartype errorMessage: str + """ + + state: Union[str, "VirtualNetworkGatewayMigrationState"] + """Represent the current state of gateway migration. Known values are: \"None\", \"InProgress\", + \"Succeeded\", and \"Failed\".""" + phase: Union[str, "VirtualNetworkGatewayMigrationPhase"] + """Represent the current migration phase of gateway. Known values are: \"None\", \"Prepare\", + \"PrepareSucceeded\", \"Execute\", \"ExecuteSucceeded\", \"Commit\", \"CommitSucceeded\", + \"AbortSucceeded\", and \"Abort\".""" + errorMessage: str + """Error if any occurs during migration.""" + + +class VirtualNetworkGatewayNatRule(SubResourceModel): + """VirtualNetworkGatewayNatRule Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the Virtual Network Gateway NAT rule. + :vartype properties: "VirtualNetworkGatewayNatRuleProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkGatewayNatRuleProperties" + """Properties of the Virtual Network Gateway NAT rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkGatewayNatRuleProperties(TypedDict, total=False): + """Parameters for VirtualNetworkGatewayNatRule. + + :ivar provisioningState: The provisioning state of the NAT Rule resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar type: The type of NAT rule for VPN NAT. Known values are: "Static" and "Dynamic". + :vartype type: Union[str, "VpnNatRuleType"] + :ivar mode: The Source NAT direction of a VPN NAT. Known values are: "EgressSnat" and + "IngressSnat". + :vartype mode: Union[str, "VpnNatRuleMode"] + :ivar internalMappings: The private IP address internal mapping for NAT. + :vartype internalMappings: list["VpnNatRuleMapping"] + :ivar externalMappings: The private IP address external mapping for NAT. + :vartype externalMappings: list["VpnNatRuleMapping"] + :ivar ipConfigurationId: The IP Configuration ID this NAT rule applies to. + :vartype ipConfigurationId: str + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the NAT Rule resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + type: Union[str, "VpnNatRuleType"] + """The type of NAT rule for VPN NAT. Known values are: \"Static\" and \"Dynamic\".""" + mode: Union[str, "VpnNatRuleMode"] + """The Source NAT direction of a VPN NAT. Known values are: \"EgressSnat\" and \"IngressSnat\".""" + internalMappings: list["VpnNatRuleMapping"] + """The private IP address internal mapping for NAT.""" + externalMappings: list["VpnNatRuleMapping"] + """The private IP address external mapping for NAT.""" + ipConfigurationId: str + """The IP Configuration ID this NAT rule applies to.""" + + +class VirtualNetworkGatewayPolicyGroup(SubResource): + """Parameters for VirtualNetworkGatewayPolicyGroup. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of tVirtualNetworkGatewayPolicyGroup. + :vartype properties: "VirtualNetworkGatewayPolicyGroupProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkGatewayPolicyGroupProperties" + """Properties of tVirtualNetworkGatewayPolicyGroup.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkGatewayPolicyGroupMember(TypedDict, total=False): + """Vpn Client Connection configuration PolicyGroup member. + + :ivar name: Name of the VirtualNetworkGatewayPolicyGroupMember. + :vartype name: str + :ivar attributeType: The Vpn Policy member attribute type. Known values are: + "CertificateGroupId", "AADGroupId", and "RadiusAzureGroupId". + :vartype attributeType: Union[str, "VpnPolicyMemberAttributeType"] + :ivar attributeValue: The value of Attribute used for this + VirtualNetworkGatewayPolicyGroupMember. + :vartype attributeValue: str + """ + + name: str + """Name of the VirtualNetworkGatewayPolicyGroupMember.""" + attributeType: Union[str, "VpnPolicyMemberAttributeType"] + """The Vpn Policy member attribute type. Known values are: \"CertificateGroupId\", \"AADGroupId\", + and \"RadiusAzureGroupId\".""" + attributeValue: str + """The value of Attribute used for this VirtualNetworkGatewayPolicyGroupMember.""" + + +class VirtualNetworkGatewayPolicyGroupProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of VirtualNetworkGatewayPolicyGroup. + + :ivar isDefault: Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not. Required. + :vartype isDefault: bool + :ivar priority: Priority for VirtualNetworkGatewayPolicyGroup. Required. + :vartype priority: int + :ivar policyMembers: Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup. Required. + :vartype policyMembers: list["VirtualNetworkGatewayPolicyGroupMember"] + :ivar vngClientConnectionConfigurations: List of references to + vngClientConnectionConfigurations. + :vartype vngClientConnectionConfigurations: list["SubResource"] + :ivar provisioningState: The provisioning state of the VirtualNetworkGatewayPolicyGroup + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + isDefault: Required[bool] + """Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not. Required.""" + priority: Required[int] + """Priority for VirtualNetworkGatewayPolicyGroup. Required.""" + policyMembers: Required[list["VirtualNetworkGatewayPolicyGroupMember"]] + """Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup. Required.""" + vngClientConnectionConfigurations: list["SubResource"] + """List of references to vngClientConnectionConfigurations.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VirtualNetworkGatewayPolicyGroup resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualNetworkGatewayPropertiesFormat(TypedDict, total=False): + """VirtualNetworkGateway properties. + + :ivar autoScaleConfiguration: Autoscale configuration for virutal network gateway. + :vartype autoScaleConfiguration: "VirtualNetworkGatewayAutoScaleConfiguration" + :ivar ipConfigurations: IP configurations for virtual network gateway. + :vartype ipConfigurations: list["VirtualNetworkGatewayIPConfiguration"] + :ivar gatewayType: The type of this virtual network gateway. Known values are: "Vpn", + "ExpressRoute", and "LocalGateway". + :vartype gatewayType: Union[str, "VirtualNetworkGatewayType"] + :ivar vpnType: The type of this virtual network gateway. Known values are: "PolicyBased" and + "RouteBased". + :vartype vpnType: Union[str, "VpnType"] + :ivar vpnGatewayGeneration: The generation for this VirtualNetworkGateway. Must be None if + gatewayType is not VPN. Known values are: "None", "Generation1", and "Generation2". + :vartype vpnGatewayGeneration: Union[str, "VpnGatewayGeneration"] + :ivar enableBgp: Whether BGP is enabled for this virtual network gateway or not. + :vartype enableBgp: bool + :ivar enablePrivateIpAddress: Whether private IP needs to be enabled on this gateway for + connections or not. + :vartype enablePrivateIpAddress: bool + :ivar virtualNetworkGatewayMigrationStatus: The reference to the + VirtualNetworkGatewayMigrationStatus which represents the status of migration. + :vartype virtualNetworkGatewayMigrationStatus: "VirtualNetworkGatewayMigrationStatus" + :ivar activeActive: ActiveActive flag. + :vartype activeActive: bool + :ivar enableHighBandwidthVpnGateway: To enable Advanced Connectivity feature for VPN gateway. + :vartype enableHighBandwidthVpnGateway: bool + :ivar disableIPSecReplayProtection: disableIPSecReplayProtection flag. + :vartype disableIPSecReplayProtection: bool + :ivar gatewayDefaultSite: The reference to the LocalNetworkGateway resource which represents + local network site having default routes. Assign Null value in case of removing existing + default site setting. + :vartype gatewayDefaultSite: "SubResource" + :ivar sku: The reference to the VirtualNetworkGatewaySku resource which represents the SKU + selected for Virtual network gateway. + :vartype sku: "VirtualNetworkGatewaySku" + :ivar vpnClientConfiguration: The reference to the VpnClientConfiguration resource which + represents the P2S VpnClient configurations. + :vartype vpnClientConfiguration: "VpnClientConfiguration" + :ivar virtualNetworkGatewayPolicyGroups: The reference to the VirtualNetworkGatewayPolicyGroup + resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. + :vartype virtualNetworkGatewayPolicyGroups: list["VirtualNetworkGatewayPolicyGroup"] + :ivar bgpSettings: Virtual network gateway's BGP speaker settings. + :vartype bgpSettings: "BgpSettings" + :ivar customRoutes: The reference to the address space resource which represents the custom + routes address space specified by the customer for virtual network gateway and VpnClient. + :vartype customRoutes: "AddressSpace" + :ivar resourceGuid: The resource GUID property of the virtual network gateway resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the virtual network gateway resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar enableDnsForwarding: Whether dns forwarding is enabled or not. + :vartype enableDnsForwarding: bool + :ivar inboundDnsForwardingEndpoint: The IP address allocated by the gateway to which dns + requests can be sent. + :vartype inboundDnsForwardingEndpoint: str + :ivar vNetExtendedLocationResourceId: Customer vnet resource id. VirtualNetworkGateway of type + local gateway is associated with the customer vnet. + :vartype vNetExtendedLocationResourceId: str + :ivar natRules: NatRules for virtual network gateway. + :vartype natRules: list["VirtualNetworkGatewayNatRule"] + :ivar enableBgpRouteTranslationForNat: EnableBgpRouteTranslationForNat flag. + :vartype enableBgpRouteTranslationForNat: bool + :ivar allowVirtualWanTraffic: Configures this gateway to accept traffic from remote Virtual WAN + networks. + :vartype allowVirtualWanTraffic: bool + :ivar allowRemoteVnetTraffic: Configure this gateway to accept traffic from other Azure Virtual + Networks. This configuration does not support connectivity to Azure Virtual WAN. + :vartype allowRemoteVnetTraffic: bool + :ivar adminState: Property to indicate if the Express Route Gateway serves traffic when there + are multiple Express Route Gateways in the vnet. Known values are: "Enabled" and "Disabled". + :vartype adminState: Union[str, "AdminState"] + :ivar resiliencyModel: Property to indicate if the Express Route Gateway has resiliency model + of MultiHomed or SingleHomed. Known values are: "SingleHomed" and "MultiHomed". + :vartype resiliencyModel: Union[str, "ResiliencyModel"] + """ + + autoScaleConfiguration: "VirtualNetworkGatewayAutoScaleConfiguration" + """Autoscale configuration for virutal network gateway.""" + ipConfigurations: list["VirtualNetworkGatewayIPConfiguration"] + """IP configurations for virtual network gateway.""" + gatewayType: Union[str, "VirtualNetworkGatewayType"] + """The type of this virtual network gateway. Known values are: \"Vpn\", \"ExpressRoute\", and + \"LocalGateway\".""" + vpnType: Union[str, "VpnType"] + """The type of this virtual network gateway. Known values are: \"PolicyBased\" and \"RouteBased\".""" + vpnGatewayGeneration: Union[str, "VpnGatewayGeneration"] + """The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Known + values are: \"None\", \"Generation1\", and \"Generation2\".""" + enableBgp: bool + """Whether BGP is enabled for this virtual network gateway or not.""" + enablePrivateIpAddress: bool + """Whether private IP needs to be enabled on this gateway for connections or not.""" + virtualNetworkGatewayMigrationStatus: "VirtualNetworkGatewayMigrationStatus" + """The reference to the VirtualNetworkGatewayMigrationStatus which represents the status of + migration.""" + activeActive: bool + """ActiveActive flag.""" + enableHighBandwidthVpnGateway: bool + """To enable Advanced Connectivity feature for VPN gateway.""" + disableIPSecReplayProtection: bool + """disableIPSecReplayProtection flag.""" + gatewayDefaultSite: "SubResource" + """The reference to the LocalNetworkGateway resource which represents local network site having + default routes. Assign Null value in case of removing existing default site setting.""" + sku: "VirtualNetworkGatewaySku" + """The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for + Virtual network gateway.""" + vpnClientConfiguration: "VpnClientConfiguration" + """The reference to the VpnClientConfiguration resource which represents the P2S VpnClient + configurations.""" + virtualNetworkGatewayPolicyGroups: list["VirtualNetworkGatewayPolicyGroup"] + """The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available + VirtualNetworkGatewayPolicyGroup for the gateway.""" + bgpSettings: "BgpSettings" + """Virtual network gateway's BGP speaker settings.""" + customRoutes: "AddressSpace" + """The reference to the address space resource which represents the custom routes address space + specified by the customer for virtual network gateway and VpnClient.""" + resourceGuid: str + """The resource GUID property of the virtual network gateway resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + enableDnsForwarding: bool + """Whether dns forwarding is enabled or not.""" + inboundDnsForwardingEndpoint: str + """The IP address allocated by the gateway to which dns requests can be sent.""" + vNetExtendedLocationResourceId: str + """Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the + customer vnet.""" + natRules: list["VirtualNetworkGatewayNatRule"] + """NatRules for virtual network gateway.""" + enableBgpRouteTranslationForNat: bool + """EnableBgpRouteTranslationForNat flag.""" + allowVirtualWanTraffic: bool + """Configures this gateway to accept traffic from remote Virtual WAN networks.""" + allowRemoteVnetTraffic: bool + """Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration + does not support connectivity to Azure Virtual WAN.""" + adminState: Union[str, "AdminState"] + """Property to indicate if the Express Route Gateway serves traffic when there are multiple + Express Route Gateways in the vnet. Known values are: \"Enabled\" and \"Disabled\".""" + resiliencyModel: Union[str, "ResiliencyModel"] + """Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or + SingleHomed. Known values are: \"SingleHomed\" and \"MultiHomed\".""" + + +class VirtualNetworkGatewaySku(TypedDict, total=False): + """VirtualNetworkGatewaySku details. + + :ivar name: Gateway SKU name. Known values are: "Basic", "HighPerformance", "Standard", + "UltraPerformance", "VpnGw1", "VpnGw2", "VpnGw3", "VpnGw4", "VpnGw5", "VpnGw1AZ", "VpnGw2AZ", + "VpnGw3AZ", "VpnGw4AZ", "VpnGw5AZ", "ErGw1AZ", "ErGw2AZ", "ErGw3AZ", and "ErGwScale". + :vartype name: Union[str, "VirtualNetworkGatewaySkuName"] + :ivar tier: Gateway SKU tier. Known values are: "Basic", "HighPerformance", "Standard", + "UltraPerformance", "VpnGw1", "VpnGw2", "VpnGw3", "VpnGw4", "VpnGw5", "VpnGw1AZ", "VpnGw2AZ", + "VpnGw3AZ", "VpnGw4AZ", "VpnGw5AZ", "ErGw1AZ", "ErGw2AZ", "ErGw3AZ", and "ErGwScale". + :vartype tier: Union[str, "VirtualNetworkGatewaySkuTier"] + :ivar capacity: The capacity. + :vartype capacity: int + """ + + name: Union[str, "VirtualNetworkGatewaySkuName"] + """Gateway SKU name. Known values are: \"Basic\", \"HighPerformance\", \"Standard\", + \"UltraPerformance\", \"VpnGw1\", \"VpnGw2\", \"VpnGw3\", \"VpnGw4\", \"VpnGw5\", \"VpnGw1AZ\", + \"VpnGw2AZ\", \"VpnGw3AZ\", \"VpnGw4AZ\", \"VpnGw5AZ\", \"ErGw1AZ\", \"ErGw2AZ\", \"ErGw3AZ\", + and \"ErGwScale\".""" + tier: Union[str, "VirtualNetworkGatewaySkuTier"] + """Gateway SKU tier. Known values are: \"Basic\", \"HighPerformance\", \"Standard\", + \"UltraPerformance\", \"VpnGw1\", \"VpnGw2\", \"VpnGw3\", \"VpnGw4\", \"VpnGw5\", \"VpnGw1AZ\", + \"VpnGw2AZ\", \"VpnGw3AZ\", \"VpnGw4AZ\", \"VpnGw5AZ\", \"ErGw1AZ\", \"ErGw2AZ\", \"ErGw3AZ\", + and \"ErGwScale\".""" + capacity: int + """The capacity.""" + + +class VirtualNetworkPeering(SubResourceModel): + """Peerings in a virtual network resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the virtual network peering. + :vartype properties: "VirtualNetworkPeeringPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkPeeringPropertiesFormat" + """Properties of the virtual network peering.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkPeeringPropertiesFormat(TypedDict, total=False): + """Properties of the virtual network peering. + + :ivar allowVirtualNetworkAccess: Whether the VMs in the local virtual network space would be + able to access the VMs in remote virtual network space. + :vartype allowVirtualNetworkAccess: bool + :ivar allowForwardedTraffic: Whether the forwarded traffic from the VMs in the local virtual + network will be allowed/disallowed in remote virtual network. + :vartype allowForwardedTraffic: bool + :ivar allowGatewayTransit: If gateway links can be used in remote virtual networking to link to + this virtual network. + :vartype allowGatewayTransit: bool + :ivar useRemoteGateways: If remote gateways can be used on this virtual network. If the flag is + set to true, and allowGatewayTransit on remote peering is also true, virtual network will use + gateways of remote virtual network for transit. Only one peering can have this flag set to + true. This flag cannot be set if virtual network already has a gateway. + :vartype useRemoteGateways: bool + :ivar remoteVirtualNetwork: The reference to the remote virtual network. The remote virtual + network can be in the same or different region (preview). See here to register for the preview + and learn more + (`https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering + `_). + :vartype remoteVirtualNetwork: "SubResource" + :ivar localAddressSpace: The local address space of the local virtual network that is peered. + :vartype localAddressSpace: "AddressSpace" + :ivar localVirtualNetworkAddressSpace: The current local address space of the local virtual + network that is peered. + :vartype localVirtualNetworkAddressSpace: "AddressSpace" + :ivar remoteAddressSpace: The reference to the address space peered with the remote virtual + network. + :vartype remoteAddressSpace: "AddressSpace" + :ivar remoteVirtualNetworkAddressSpace: The reference to the current address space of the + remote virtual network. + :vartype remoteVirtualNetworkAddressSpace: "AddressSpace" + :ivar remoteBgpCommunities: The reference to the remote virtual network's Bgp Communities. + :vartype remoteBgpCommunities: "VirtualNetworkBgpCommunities" + :ivar remoteVirtualNetworkEncryption: The reference to the remote virtual network's encryption. + :vartype remoteVirtualNetworkEncryption: "VirtualNetworkEncryption" + :ivar peeringState: The status of the virtual network peering. Known values are: "Initiated", + "Connected", and "Disconnected". + :vartype peeringState: Union[str, "VirtualNetworkPeeringState"] + :ivar peeringSyncLevel: The peering sync status of the virtual network peering. Known values + are: "FullyInSync", "RemoteNotInSync", "LocalNotInSync", and "LocalAndRemoteNotInSync". + :vartype peeringSyncLevel: Union[str, "VirtualNetworkPeeringLevel"] + :ivar provisioningState: The provisioning state of the virtual network peering resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar doNotVerifyRemoteGateways: If we need to verify the provisioning state of the remote + gateway. + :vartype doNotVerifyRemoteGateways: bool + :ivar resourceGuid: The resourceGuid property of the Virtual Network peering resource. + :vartype resourceGuid: str + :ivar peerCompleteVnets: Whether complete virtual network address space is peered. + :vartype peerCompleteVnets: bool + :ivar enableOnlyIPv6Peering: Whether only Ipv6 address space is peered for subnet peering. + :vartype enableOnlyIPv6Peering: bool + :ivar localSubnetNames: List of local subnet names that are subnet peered with remote virtual + network. + :vartype localSubnetNames: list[str] + :ivar remoteSubnetNames: List of remote subnet names from remote virtual network that are + subnet peered. + :vartype remoteSubnetNames: list[str] + """ + + allowVirtualNetworkAccess: bool + """Whether the VMs in the local virtual network space would be able to access the VMs in remote + virtual network space.""" + allowForwardedTraffic: bool + """Whether the forwarded traffic from the VMs in the local virtual network will be + allowed/disallowed in remote virtual network.""" + allowGatewayTransit: bool + """If gateway links can be used in remote virtual networking to link to this virtual network.""" + useRemoteGateways: bool + """If remote gateways can be used on this virtual network. If the flag is set to true, and + allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote + virtual network for transit. Only one peering can have this flag set to true. This flag cannot + be set if virtual network already has a gateway.""" + remoteVirtualNetwork: "SubResource" + """The reference to the remote virtual network. The remote virtual network can be in the same or + different region (preview). See here to register for the preview and learn more + (`https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering + `_).""" + localAddressSpace: "AddressSpace" + """The local address space of the local virtual network that is peered.""" + localVirtualNetworkAddressSpace: "AddressSpace" + """The current local address space of the local virtual network that is peered.""" + remoteAddressSpace: "AddressSpace" + """The reference to the address space peered with the remote virtual network.""" + remoteVirtualNetworkAddressSpace: "AddressSpace" + """The reference to the current address space of the remote virtual network.""" + remoteBgpCommunities: "VirtualNetworkBgpCommunities" + """The reference to the remote virtual network's Bgp Communities.""" + remoteVirtualNetworkEncryption: "VirtualNetworkEncryption" + """The reference to the remote virtual network's encryption.""" + peeringState: Union[str, "VirtualNetworkPeeringState"] + """The status of the virtual network peering. Known values are: \"Initiated\", \"Connected\", and + \"Disconnected\".""" + peeringSyncLevel: Union[str, "VirtualNetworkPeeringLevel"] + """The peering sync status of the virtual network peering. Known values are: \"FullyInSync\", + \"RemoteNotInSync\", \"LocalNotInSync\", and \"LocalAndRemoteNotInSync\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network peering resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + doNotVerifyRemoteGateways: bool + """If we need to verify the provisioning state of the remote gateway.""" + resourceGuid: str + """The resourceGuid property of the Virtual Network peering resource.""" + peerCompleteVnets: bool + """Whether complete virtual network address space is peered.""" + enableOnlyIPv6Peering: bool + """Whether only Ipv6 address space is peered for subnet peering.""" + localSubnetNames: list[str] + """List of local subnet names that are subnet peered with remote virtual network.""" + remoteSubnetNames: list[str] + """List of remote subnet names from remote virtual network that are subnet peered.""" + + +class VirtualNetworkPropertiesFormat(TypedDict, total=False): + """Properties of the virtual network. + + :ivar addressSpace: The AddressSpace that contains an array of IP address ranges that can be + used by subnets. + :vartype addressSpace: "AddressSpace" + :ivar dhcpOptions: The dhcpOptions that contains an array of DNS servers available to VMs + deployed in the virtual network. + :vartype dhcpOptions: "DhcpOptions" + :ivar flowTimeoutInMinutes: The FlowTimeout value (in minutes) for the Virtual Network. + :vartype flowTimeoutInMinutes: int + :ivar subnets: A list of subnets in a Virtual Network. + :vartype subnets: list["Subnet"] + :ivar virtualNetworkPeerings: A list of peerings in a Virtual Network. + :vartype virtualNetworkPeerings: list["VirtualNetworkPeering"] + :ivar resourceGuid: The resourceGuid property of the Virtual Network resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the virtual network resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar enableDdosProtection: Indicates if DDoS protection is enabled for all the protected + resources in the virtual network. It requires a DDoS protection plan associated with the + resource. + :vartype enableDdosProtection: bool + :ivar enableVmProtection: Indicates if VM protection is enabled for all the subnets in the + virtual network. + :vartype enableVmProtection: bool + :ivar ddosProtectionPlan: The DDoS protection plan associated with the virtual network. + :vartype ddosProtectionPlan: "SubResource" + :ivar bgpCommunities: Bgp Communities sent over ExpressRoute with each route corresponding to a + prefix in this VNET. + :vartype bgpCommunities: "VirtualNetworkBgpCommunities" + :ivar encryption: Indicates if encryption is enabled on virtual network and if VM without + encryption is allowed in encrypted VNet. + :vartype encryption: "VirtualNetworkEncryption" + :ivar ipAllocations: Array of IpAllocation which reference this VNET. + :vartype ipAllocations: list["SubResource"] + :ivar flowLogs: A collection of references to flow log resources. + :vartype flowLogs: list["FlowLog"] + :ivar privateEndpointVNetPolicies: Private Endpoint VNet Policies. Known values are: "Disabled" + and "Basic". + :vartype privateEndpointVNetPolicies: Union[str, "PrivateEndpointVNetPolicies"] + :ivar defaultPublicNatGateway: A reference to the default public nat gateway being used by this + virtual network resource. + :vartype defaultPublicNatGateway: "SubResource" + :ivar summarizedGatewayPrefixes: A configurable list of summarized gateway prefixes advertised + for the virtual network. + :vartype summarizedGatewayPrefixes: "AddressSpace" + """ + + addressSpace: "AddressSpace" + """The AddressSpace that contains an array of IP address ranges that can be used by subnets.""" + dhcpOptions: "DhcpOptions" + """The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual + network.""" + flowTimeoutInMinutes: int + """The FlowTimeout value (in minutes) for the Virtual Network.""" + subnets: list["Subnet"] + """A list of subnets in a Virtual Network.""" + virtualNetworkPeerings: list["VirtualNetworkPeering"] + """A list of peerings in a Virtual Network.""" + resourceGuid: str + """The resourceGuid property of the Virtual Network resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + enableDdosProtection: bool + """Indicates if DDoS protection is enabled for all the protected resources in the virtual network. + It requires a DDoS protection plan associated with the resource.""" + enableVmProtection: bool + """Indicates if VM protection is enabled for all the subnets in the virtual network.""" + ddosProtectionPlan: "SubResource" + """The DDoS protection plan associated with the virtual network.""" + bgpCommunities: "VirtualNetworkBgpCommunities" + """Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.""" + encryption: "VirtualNetworkEncryption" + """Indicates if encryption is enabled on virtual network and if VM without encryption is allowed + in encrypted VNet.""" + ipAllocations: list["SubResource"] + """Array of IpAllocation which reference this VNET.""" + flowLogs: list["FlowLog"] + """A collection of references to flow log resources.""" + privateEndpointVNetPolicies: Union[str, "PrivateEndpointVNetPolicies"] + """Private Endpoint VNet Policies. Known values are: \"Disabled\" and \"Basic\".""" + defaultPublicNatGateway: "SubResource" + """A reference to the default public nat gateway being used by this virtual network resource.""" + summarizedGatewayPrefixes: "AddressSpace" + """A configurable list of summarized gateway prefixes advertised for the virtual network.""" + + +class VirtualNetworkTap(Resource): + """Virtual Network Tap resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Virtual Network Tap Properties. + :vartype properties: "VirtualNetworkTapPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualNetworkTapPropertiesFormat" + """Virtual Network Tap Properties.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualNetworkTapPropertiesFormat(TypedDict, total=False): + """Virtual Network Tap properties. + + :ivar networkInterfaceTapConfigurations: Specifies the list of resource IDs for the network + interface IP configuration that needs to be tapped. + :vartype networkInterfaceTapConfigurations: list["NetworkInterfaceTapConfiguration"] + :ivar resourceGuid: The resource GUID property of the virtual network tap resource. + :vartype resourceGuid: str + :ivar provisioningState: The provisioning state of the virtual network tap resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar destinationNetworkInterfaceIPConfiguration: The reference to the private IP Address of + the collector nic that will receive the tap. + :vartype destinationNetworkInterfaceIPConfiguration: "NetworkInterfaceIPConfiguration" + :ivar destinationLoadBalancerFrontEndIPConfiguration: The reference to the private IP address + on the internal Load Balancer that will receive the tap. + :vartype destinationLoadBalancerFrontEndIPConfiguration: "FrontendIPConfiguration" + :ivar destinationPort: The VXLAN destination port that will receive the tapped traffic. + :vartype destinationPort: int + """ + + networkInterfaceTapConfigurations: list["NetworkInterfaceTapConfiguration"] + """Specifies the list of resource IDs for the network interface IP configuration that needs to be + tapped.""" + resourceGuid: str + """The resource GUID property of the virtual network tap resource.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual network tap resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + destinationNetworkInterfaceIPConfiguration: "NetworkInterfaceIPConfiguration" + """The reference to the private IP Address of the collector nic that will receive the tap.""" + destinationLoadBalancerFrontEndIPConfiguration: "FrontendIPConfiguration" + """The reference to the private IP address on the internal Load Balancer that will receive the + tap.""" + destinationPort: int + """The VXLAN destination port that will receive the tapped traffic.""" + + +class VirtualRouter(Resource): + """VirtualRouter Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the Virtual Router. + :vartype properties: "VirtualRouterPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualRouterPropertiesFormat" + """Properties of the Virtual Router.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualRouterAutoScaleConfiguration(TypedDict, total=False): + """The VirtualHub Router autoscale configuration. + + :ivar minCapacity: The minimum number of scale units for VirtualHub Router. + :vartype minCapacity: int + """ + + minCapacity: int + """The minimum number of scale units for VirtualHub Router.""" + + +class VirtualRouterPeering(SubResourceModel): + """Virtual Router Peering resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: The properties of the Virtual Router Peering. + :vartype properties: "VirtualRouterPeeringProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualRouterPeeringProperties" + """The properties of the Virtual Router Peering.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualRouterPeeringProperties(TypedDict, total=False): + """Properties of the rule group. + + :ivar peerAsn: Peer ASN. + :vartype peerAsn: int + :ivar peerIp: Peer IP. + :vartype peerIp: str + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + peerAsn: int + """Peer ASN.""" + peerIp: str + """Peer IP.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualRouterPropertiesFormat(TypedDict, total=False): + """Virtual Router definition. + + :ivar virtualRouterAsn: VirtualRouter ASN. + :vartype virtualRouterAsn: int + :ivar virtualRouterIps: VirtualRouter IPs. + :vartype virtualRouterIps: list[str] + :ivar hostedSubnet: The Subnet on which VirtualRouter is hosted. + :vartype hostedSubnet: "SubResource" + :ivar hostedGateway: The Gateway on which VirtualRouter is hosted. + :vartype hostedGateway: "SubResource" + :ivar peerings: List of references to VirtualRouterPeerings. + :vartype peerings: list["SubResource"] + :ivar provisioningState: The provisioning state of the resource. Known values are: "Failed", + "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + virtualRouterAsn: int + """VirtualRouter ASN.""" + virtualRouterIps: list[str] + """VirtualRouter IPs.""" + hostedSubnet: "SubResource" + """The Subnet on which VirtualRouter is hosted.""" + hostedGateway: "SubResource" + """The Gateway on which VirtualRouter is hosted.""" + peerings: list["SubResource"] + """List of references to VirtualRouterPeerings.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VirtualWAN(TrackedResourceWithSettableIdOptionalLocation): + """VirtualWAN Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the virtual WAN. + :vartype properties: "VirtualWanProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VirtualWanProperties" + """Properties of the virtual WAN.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VirtualWanProperties(TypedDict, total=False): + """Parameters for VirtualWAN. + + :ivar disableVpnEncryption: Vpn encryption to be disabled or not. + :vartype disableVpnEncryption: bool + :ivar virtualHubs: List of VirtualHubs in the VirtualWAN. + :vartype virtualHubs: list["SubResource"] + :ivar vpnSites: List of VpnSites in the VirtualWAN. + :vartype vpnSites: list["SubResource"] + :ivar allowBranchToBranchTraffic: True if branch to branch traffic is allowed. + :vartype allowBranchToBranchTraffic: bool + :ivar allowVnetToVnetTraffic: True if Vnet to Vnet traffic is allowed. + :vartype allowVnetToVnetTraffic: bool + :ivar office365LocalBreakoutCategory: The office local breakout category. Known values are: + "Optimize", "OptimizeAndAllow", "All", and "None". + :vartype office365LocalBreakoutCategory: Union[str, "OfficeTrafficCategory"] + :ivar provisioningState: The provisioning state of the virtual WAN resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar type: The type of the VirtualWAN. + :vartype type: str + """ + + disableVpnEncryption: bool + """Vpn encryption to be disabled or not.""" + virtualHubs: list["SubResource"] + """List of VirtualHubs in the VirtualWAN.""" + vpnSites: list["SubResource"] + """List of VpnSites in the VirtualWAN.""" + allowBranchToBranchTraffic: bool + """True if branch to branch traffic is allowed.""" + allowVnetToVnetTraffic: bool + """True if Vnet to Vnet traffic is allowed.""" + office365LocalBreakoutCategory: Union[str, "OfficeTrafficCategory"] + """The office local breakout category. Known values are: \"Optimize\", \"OptimizeAndAllow\", + \"All\", and \"None\".""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the virtual WAN resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + type: str + """The type of the VirtualWAN.""" + + +class VirtualWanVpnProfileParameters(TypedDict, total=False): + """Virtual Wan Vpn profile parameters Vpn profile generation. + + :ivar vpnServerConfigurationResourceId: VpnServerConfiguration partial resource uri with which + VirtualWan is associated to. + :vartype vpnServerConfigurationResourceId: str + :ivar authenticationMethod: VPN client authentication method. Known values are: "EAPTLS" and + "EAPMSCHAPv2". + :vartype authenticationMethod: Union[str, "AuthenticationMethod"] + """ + + vpnServerConfigurationResourceId: str + """VpnServerConfiguration partial resource uri with which VirtualWan is associated to.""" + authenticationMethod: Union[str, "AuthenticationMethod"] + """VPN client authentication method. Known values are: \"EAPTLS\" and \"EAPMSCHAPv2\".""" + + +class VM(Resource): + """Describes a Virtual Machine. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + """ + + +class VnetRoute(TypedDict, total=False): + """List of routes that control routing from VirtualHub into a virtual network connection. + + :ivar staticRoutesConfig: Configuration for static routes on this HubVnetConnection. + :vartype staticRoutesConfig: "StaticRoutesConfig" + :ivar staticRoutes: List of all Static Routes. + :vartype staticRoutes: list["StaticRoute"] + :ivar bgpConnections: The list of references to HubBgpConnection objects. + :vartype bgpConnections: list["SubResource"] + """ + + staticRoutesConfig: "StaticRoutesConfig" + """Configuration for static routes on this HubVnetConnection.""" + staticRoutes: list["StaticRoute"] + """List of all Static Routes.""" + bgpConnections: list["SubResource"] + """The list of references to HubBgpConnection objects.""" + + +class VngClientConnectionConfiguration(SubResource): + """A vpn client connection configuration for client connection configuration. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the vpn client root certificate. + :vartype properties: "VngClientConnectionConfigurationProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VngClientConnectionConfigurationProperties" + """Properties of the vpn client root certificate.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VngClientConnectionConfigurationProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of VngClientConnectionConfiguration. + + :ivar vpnClientAddressPool: The reference to the address space resource which represents + Address space for P2S VpnClient. Required. + :vartype vpnClientAddressPool: "AddressSpace" + :ivar virtualNetworkGatewayPolicyGroups: List of references to + virtualNetworkGatewayPolicyGroups. Required. + :vartype virtualNetworkGatewayPolicyGroups: list["SubResource"] + :ivar provisioningState: The provisioning state of the VngClientConnectionConfiguration + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + vpnClientAddressPool: Required["AddressSpace"] + """The reference to the address space resource which represents Address space for P2S VpnClient. + Required.""" + virtualNetworkGatewayPolicyGroups: Required[list["SubResource"]] + """List of references to virtualNetworkGatewayPolicyGroups. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VngClientConnectionConfiguration resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VpnClientConfiguration(TypedDict, total=False): + """VpnClientConfiguration for P2S client. + + :ivar vpnClientAddressPool: The reference to the address space resource which represents + Address space for P2S VpnClient. + :vartype vpnClientAddressPool: "AddressSpace" + :ivar vpnClientRootCertificates: VpnClientRootCertificate for virtual network gateway. + :vartype vpnClientRootCertificates: list["VpnClientRootCertificate"] + :ivar vpnClientRevokedCertificates: VpnClientRevokedCertificate for Virtual network gateway. + :vartype vpnClientRevokedCertificates: list["VpnClientRevokedCertificate"] + :ivar vpnClientProtocols: VpnClientProtocols for Virtual network gateway. + :vartype vpnClientProtocols: list[Union[str, "VpnClientProtocol"]] + :ivar vpnAuthenticationTypes: VPN authentication types for the virtual network gateway.. + :vartype vpnAuthenticationTypes: list[Union[str, "VpnAuthenticationType"]] + :ivar vpnClientIpsecPolicies: VpnClientIpsecPolicies for virtual network gateway P2S client. + :vartype vpnClientIpsecPolicies: list["IpsecPolicy"] + :ivar radiusServerAddress: The radius server address property of the VirtualNetworkGateway + resource for vpn client connection. + :vartype radiusServerAddress: str + :ivar radiusServerSecret: The radius secret property of the VirtualNetworkGateway resource for + vpn client connection. We will no longer return radiusServerSecret in VirtualNetworkGateway + Create/Update/Get/List/UpdateTags APIs response. Please use VirtualNetworkGateway + ListRadiusSecrets API to fetch radius server secrets. + :vartype radiusServerSecret: str + :ivar radiusServers: The radiusServers property for multiple radius server configuration. + :vartype radiusServers: list["RadiusServer"] + :ivar aadTenant: The AADTenant property of the VirtualNetworkGateway resource for vpn client + connection used for AAD authentication. + :vartype aadTenant: str + :ivar aadAudience: The AADAudience property of the VirtualNetworkGateway resource for vpn + client connection used for AAD authentication. + :vartype aadAudience: str + :ivar aadIssuer: The AADIssuer property of the VirtualNetworkGateway resource for vpn client + connection used for AAD authentication. + :vartype aadIssuer: str + :ivar vngClientConnectionConfigurations: per ip address pool connection policy for virtual + network gateway P2S client. + :vartype vngClientConnectionConfigurations: list["VngClientConnectionConfiguration"] + """ + + vpnClientAddressPool: "AddressSpace" + """The reference to the address space resource which represents Address space for P2S VpnClient.""" + vpnClientRootCertificates: list["VpnClientRootCertificate"] + """VpnClientRootCertificate for virtual network gateway.""" + vpnClientRevokedCertificates: list["VpnClientRevokedCertificate"] + """VpnClientRevokedCertificate for Virtual network gateway.""" + vpnClientProtocols: list[Union[str, "VpnClientProtocol"]] + """VpnClientProtocols for Virtual network gateway.""" + vpnAuthenticationTypes: list[Union[str, "VpnAuthenticationType"]] + """VPN authentication types for the virtual network gateway..""" + vpnClientIpsecPolicies: list["IpsecPolicy"] + """VpnClientIpsecPolicies for virtual network gateway P2S client.""" + radiusServerAddress: str + """The radius server address property of the VirtualNetworkGateway resource for vpn client + connection.""" + radiusServerSecret: str + """The radius secret property of the VirtualNetworkGateway resource for vpn client connection. We + will no longer return radiusServerSecret in VirtualNetworkGateway + Create/Update/Get/List/UpdateTags APIs response. Please use VirtualNetworkGateway + ListRadiusSecrets API to fetch radius server secrets.""" + radiusServers: list["RadiusServer"] + """The radiusServers property for multiple radius server configuration.""" + aadTenant: str + """The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for + AAD authentication.""" + aadAudience: str + """The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used + for AAD authentication.""" + aadIssuer: str + """The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for + AAD authentication.""" + vngClientConnectionConfigurations: list["VngClientConnectionConfiguration"] + """per ip address pool connection policy for virtual network gateway P2S client.""" + + +class VpnClientConnectionHealth(TypedDict, total=False): + """VpnClientConnectionHealth properties. + + :ivar totalIngressBytesTransferred: Total of the Ingress Bytes Transferred in this P2S Vpn + connection. + :vartype totalIngressBytesTransferred: int + :ivar totalEgressBytesTransferred: Total of the Egress Bytes Transferred in this connection. + :vartype totalEgressBytesTransferred: int + :ivar vpnClientConnectionsCount: The total of p2s vpn clients connected at this time to this + P2SVpnGateway. + :vartype vpnClientConnectionsCount: int + :ivar allocatedIpAddresses: List of allocated ip addresses to the connected p2s vpn clients. + :vartype allocatedIpAddresses: list[str] + """ + + totalIngressBytesTransferred: int + """Total of the Ingress Bytes Transferred in this P2S Vpn connection.""" + totalEgressBytesTransferred: int + """Total of the Egress Bytes Transferred in this connection.""" + vpnClientConnectionsCount: int + """The total of p2s vpn clients connected at this time to this P2SVpnGateway.""" + allocatedIpAddresses: list[str] + """List of allocated ip addresses to the connected p2s vpn clients.""" + + +class VpnClientIPsecParameters(TypedDict, total=False): + """An IPSec parameters for a virtual network gateway P2S connection. + + :ivar saLifeTimeSeconds: The IPSec Security Association (also called Quick Mode or Phase 2 SA) + lifetime in seconds for P2S client. Required. + :vartype saLifeTimeSeconds: int + :ivar saDataSizeKilobytes: The IPSec Security Association (also called Quick Mode or Phase 2 + SA) payload size in KB for P2S client.. Required. + :vartype saDataSizeKilobytes: int + :ivar ipsecEncryption: The IPSec encryption algorithm (IKE phase 1). Required. Known values + are: "None", "DES", "DES3", "AES128", "AES192", "AES256", "GCMAES128", "GCMAES192", and + "GCMAES256". + :vartype ipsecEncryption: Union[str, "IpsecEncryption"] + :ivar ipsecIntegrity: The IPSec integrity algorithm (IKE phase 1). Required. Known values are: + "MD5", "SHA1", "SHA256", "GCMAES128", "GCMAES192", and "GCMAES256". + :vartype ipsecIntegrity: Union[str, "IpsecIntegrity"] + :ivar ikeEncryption: The IKE encryption algorithm (IKE phase 2). Required. Known values are: + "DES", "DES3", "AES128", "AES192", "AES256", "GCMAES256", and "GCMAES128". + :vartype ikeEncryption: Union[str, "IkeEncryption"] + :ivar ikeIntegrity: The IKE integrity algorithm (IKE phase 2). Required. Known values are: + "MD5", "SHA1", "SHA256", "SHA384", "GCMAES256", and "GCMAES128". + :vartype ikeIntegrity: Union[str, "IkeIntegrity"] + :ivar dhGroup: The DH Group used in IKE Phase 1 for initial SA. Required. Known values are: + "None", "DHGroup1", "DHGroup2", "DHGroup14", "DHGroup2048", "ECP256", "ECP384", and + "DHGroup24". + :vartype dhGroup: Union[str, "DhGroup"] + :ivar pfsGroup: The Pfs Group used in IKE Phase 2 for new child SA. Required. Known values are: + "None", "PFS1", "PFS2", "PFS2048", "ECP256", "ECP384", "PFS24", "PFS14", and "PFSMM". + :vartype pfsGroup: Union[str, "PfsGroup"] + """ + + saLifeTimeSeconds: Required[int] + """The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for + P2S client. Required.""" + saDataSizeKilobytes: Required[int] + """The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for + P2S client.. Required.""" + ipsecEncryption: Required[Union[str, "IpsecEncryption"]] + """The IPSec encryption algorithm (IKE phase 1). Required. Known values are: \"None\", \"DES\", + \"DES3\", \"AES128\", \"AES192\", \"AES256\", \"GCMAES128\", \"GCMAES192\", and \"GCMAES256\".""" + ipsecIntegrity: Required[Union[str, "IpsecIntegrity"]] + """The IPSec integrity algorithm (IKE phase 1). Required. Known values are: \"MD5\", \"SHA1\", + \"SHA256\", \"GCMAES128\", \"GCMAES192\", and \"GCMAES256\".""" + ikeEncryption: Required[Union[str, "IkeEncryption"]] + """The IKE encryption algorithm (IKE phase 2). Required. Known values are: \"DES\", \"DES3\", + \"AES128\", \"AES192\", \"AES256\", \"GCMAES256\", and \"GCMAES128\".""" + ikeIntegrity: Required[Union[str, "IkeIntegrity"]] + """The IKE integrity algorithm (IKE phase 2). Required. Known values are: \"MD5\", \"SHA1\", + \"SHA256\", \"SHA384\", \"GCMAES256\", and \"GCMAES128\".""" + dhGroup: Required[Union[str, "DhGroup"]] + """The DH Group used in IKE Phase 1 for initial SA. Required. Known values are: \"None\", + \"DHGroup1\", \"DHGroup2\", \"DHGroup14\", \"DHGroup2048\", \"ECP256\", \"ECP384\", and + \"DHGroup24\".""" + pfsGroup: Required[Union[str, "PfsGroup"]] + """The Pfs Group used in IKE Phase 2 for new child SA. Required. Known values are: \"None\", + \"PFS1\", \"PFS2\", \"PFS2048\", \"ECP256\", \"ECP384\", \"PFS24\", \"PFS14\", and \"PFSMM\".""" + + +class VpnClientParameters(TypedDict, total=False): + """Vpn Client Parameters for package generation. + + :ivar processorArchitecture: VPN client Processor Architecture. Known values are: "Amd64" and + "X86". + :vartype processorArchitecture: Union[str, "ProcessorArchitecture"] + :ivar authenticationMethod: VPN client authentication method. Known values are: "EAPTLS" and + "EAPMSCHAPv2". + :vartype authenticationMethod: Union[str, "AuthenticationMethod"] + :ivar radiusServerAuthCertificate: The public certificate data for the radius server + authentication certificate as a Base-64 encoded string. Required only if external radius + authentication has been configured with EAPTLS authentication. + :vartype radiusServerAuthCertificate: str + :ivar clientRootCertificates: A list of client root certificates public certificate data + encoded as Base-64 strings. Optional parameter for external radius based authentication with + EAPTLS. + :vartype clientRootCertificates: list[str] + """ + + processorArchitecture: Union[str, "ProcessorArchitecture"] + """VPN client Processor Architecture. Known values are: \"Amd64\" and \"X86\".""" + authenticationMethod: Union[str, "AuthenticationMethod"] + """VPN client authentication method. Known values are: \"EAPTLS\" and \"EAPMSCHAPv2\".""" + radiusServerAuthCertificate: str + """The public certificate data for the radius server authentication certificate as a Base-64 + encoded string. Required only if external radius authentication has been configured with EAPTLS + authentication.""" + clientRootCertificates: list[str] + """A list of client root certificates public certificate data encoded as Base-64 strings. Optional + parameter for external radius based authentication with EAPTLS.""" + + +class VpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of virtual network gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the vpn client revoked certificate. + :vartype properties: "VpnClientRevokedCertificatePropertiesFormat" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnClientRevokedCertificatePropertiesFormat" + """Properties of the vpn client revoked certificate.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnClientRevokedCertificatePropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the revoked VPN client certificate of virtual network gateway. + + :ivar thumbprint: The revoked VPN client certificate thumbprint. + :vartype thumbprint: str + :ivar provisioningState: The provisioning state of the VPN client revoked certificate resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + thumbprint: str + """The revoked VPN client certificate thumbprint.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN client revoked certificate resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VpnClientRootCertificate(SubResource): + """VPN client root certificate of virtual network gateway. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the vpn client root certificate. Required. + :vartype properties: "VpnClientRootCertificatePropertiesFormat" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: Required["VpnClientRootCertificatePropertiesFormat"] + """Properties of the vpn client root certificate. Required.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnClientRootCertificatePropertiesFormat(TypedDict, total=False): + """Properties of SSL certificates of application gateway. + + :ivar publicCertData: The certificate public data. Required. + :vartype publicCertData: str + :ivar provisioningState: The provisioning state of the VPN client root certificate resource. + Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + publicCertData: Required[str] + """The certificate public data. Required.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN client root certificate resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VpnConnection(SubResource): + """VpnConnection Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar properties: Properties of the VPN connection. + :vartype properties: "VpnConnectionProperties" + :ivar name: The name of the resource that is unique within a resource group. This name can be + used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnConnectionProperties" + """Properties of the VPN connection.""" + name: str + """The name of the resource that is unique within a resource group. This name can be used to + access the resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnConnectionPacketCaptureStartParameters(TypedDict, total=False): # pylint: disable=name-too-long + """Vpn Connection packet capture parameters supplied to start packet capture on gateway + connection. + + :ivar filterData: Start Packet capture parameters on vpn connection. + :vartype filterData: str + :ivar linkConnectionNames: List of site link connection names. + :vartype linkConnectionNames: list[str] + """ + + filterData: str + """Start Packet capture parameters on vpn connection.""" + linkConnectionNames: list[str] + """List of site link connection names.""" + + +class VpnConnectionPacketCaptureStopParameters(TypedDict, total=False): + """Vpn Connection packet capture parameters supplied to stop packet capture on gateway connection. + + :ivar sasUrl: SAS url for packet capture on vpn connection. + :vartype sasUrl: str + :ivar linkConnectionNames: List of site link connection names. + :vartype linkConnectionNames: list[str] + """ + + sasUrl: str + """SAS url for packet capture on vpn connection.""" + linkConnectionNames: list[str] + """List of site link connection names.""" + + +class VpnConnectionProperties(TypedDict, total=False): + """Parameters for VpnConnection. + + :ivar remoteVpnSite: Id of the connected vpn site. + :vartype remoteVpnSite: "SubResource" + :ivar routingWeight: Routing weight for vpn connection. + :vartype routingWeight: int + :ivar dpdTimeoutSeconds: DPD timeout in seconds for vpn connection. + :vartype dpdTimeoutSeconds: int + :ivar connectionStatus: The connection status. Known values are: "Unknown", "Connecting", + "Connected", and "NotConnected". + :vartype connectionStatus: Union[str, "VpnConnectionStatus"] + :ivar vpnConnectionProtocolType: Connection protocol used for this connection. Known values + are: "IKEv2" and "IKEv1". + :vartype vpnConnectionProtocolType: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + :ivar ingressBytesTransferred: Ingress bytes transferred. + :vartype ingressBytesTransferred: int + :ivar egressBytesTransferred: Egress bytes transferred. + :vartype egressBytesTransferred: int + :ivar connectionBandwidth: Expected bandwidth in MBPS. + :vartype connectionBandwidth: int + :ivar sharedKey: Deprecated: SharedKey for the vpn connection. This is no more used. + :vartype sharedKey: str + :ivar enableBgp: EnableBgp flag. + :vartype enableBgp: bool + :ivar usePolicyBasedTrafficSelectors: Enable policy-based traffic selectors. + :vartype usePolicyBasedTrafficSelectors: bool + :ivar ipsecPolicies: The IPSec Policies to be considered by this connection. + :vartype ipsecPolicies: list["IpsecPolicy"] + :ivar trafficSelectorPolicies: The Traffic Selector Policies to be considered by this + connection. + :vartype trafficSelectorPolicies: list["TrafficSelectorPolicy"] + :ivar enableRateLimiting: EnableBgp flag. + :vartype enableRateLimiting: bool + :ivar enableInternetSecurity: Enable internet security. + :vartype enableInternetSecurity: bool + :ivar useLocalAzureIpAddress: Use local azure ip to initiate connection. + :vartype useLocalAzureIpAddress: bool + :ivar provisioningState: The provisioning state of the VPN connection resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar vpnLinkConnections: List of all vpn site link connections to the gateway. + :vartype vpnLinkConnections: list["VpnSiteLinkConnection"] + :ivar routingConfiguration: The Routing Configuration indicating the associated and propagated + route tables on this connection. + :vartype routingConfiguration: "RoutingConfiguration" + """ + + remoteVpnSite: "SubResource" + """Id of the connected vpn site.""" + routingWeight: int + """Routing weight for vpn connection.""" + dpdTimeoutSeconds: int + """DPD timeout in seconds for vpn connection.""" + connectionStatus: Union[str, "VpnConnectionStatus"] + """The connection status. Known values are: \"Unknown\", \"Connecting\", \"Connected\", and + \"NotConnected\".""" + vpnConnectionProtocolType: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + """Connection protocol used for this connection. Known values are: \"IKEv2\" and \"IKEv1\".""" + ingressBytesTransferred: int + """Ingress bytes transferred.""" + egressBytesTransferred: int + """Egress bytes transferred.""" + connectionBandwidth: int + """Expected bandwidth in MBPS.""" + sharedKey: str + """Deprecated: SharedKey for the vpn connection. This is no more used.""" + enableBgp: bool + """EnableBgp flag.""" + usePolicyBasedTrafficSelectors: bool + """Enable policy-based traffic selectors.""" + ipsecPolicies: list["IpsecPolicy"] + """The IPSec Policies to be considered by this connection.""" + trafficSelectorPolicies: list["TrafficSelectorPolicy"] + """The Traffic Selector Policies to be considered by this connection.""" + enableRateLimiting: bool + """EnableBgp flag.""" + enableInternetSecurity: bool + """Enable internet security.""" + useLocalAzureIpAddress: bool + """Use local azure ip to initiate connection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN connection resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + vpnLinkConnections: list["VpnSiteLinkConnection"] + """List of all vpn site link connections to the gateway.""" + routingConfiguration: "RoutingConfiguration" + """The Routing Configuration indicating the associated and propagated route tables on this + connection.""" + + +class VpnDeviceScriptParameters(TypedDict, total=False): + """Vpn device configuration script generation parameters. + + :ivar vendor: The vendor for the vpn device. + :vartype vendor: str + :ivar deviceFamily: The device family for the vpn device. + :vartype deviceFamily: str + :ivar firmwareVersion: The firmware version for the vpn device. + :vartype firmwareVersion: str + """ + + vendor: str + """The vendor for the vpn device.""" + deviceFamily: str + """The device family for the vpn device.""" + firmwareVersion: str + """The firmware version for the vpn device.""" + + +class VpnGateway(TrackedResourceWithSettableIdOptionalLocation): + """VpnGateway Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the VPN gateway. + :vartype properties: "VpnGatewayProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnGatewayProperties" + """Properties of the VPN gateway.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnGatewayIpConfiguration(TypedDict, total=False): + """IP Configuration of a VPN Gateway Resource. + + :ivar id: The identifier of the IP configuration for a VPN Gateway. + :vartype id: str + :ivar publicIpAddress: The public IP address of this IP configuration. + :vartype publicIpAddress: str + :ivar privateIpAddress: The private IP address of this IP configuration. + :vartype privateIpAddress: str + """ + + id: str + """The identifier of the IP configuration for a VPN Gateway.""" + publicIpAddress: str + """The public IP address of this IP configuration.""" + privateIpAddress: str + """The private IP address of this IP configuration.""" + + +class VpnGatewayNatRule(SubResourceModel): + """VpnGatewayNatRule Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the VpnGateway NAT rule. + :vartype properties: "VpnGatewayNatRuleProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnGatewayNatRuleProperties" + """Properties of the VpnGateway NAT rule.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnGatewayNatRuleProperties(TypedDict, total=False): + """Parameters for VpnGatewayNatRule. + + :ivar provisioningState: The provisioning state of the NAT Rule resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar type: The type of NAT rule for VPN NAT. Known values are: "Static" and "Dynamic". + :vartype type: Union[str, "VpnNatRuleType"] + :ivar mode: The Source NAT direction of a VPN NAT. Known values are: "EgressSnat" and + "IngressSnat". + :vartype mode: Union[str, "VpnNatRuleMode"] + :ivar internalMappings: The private IP address internal mapping for NAT. + :vartype internalMappings: list["VpnNatRuleMapping"] + :ivar externalMappings: The private IP address external mapping for NAT. + :vartype externalMappings: list["VpnNatRuleMapping"] + :ivar ipConfigurationId: The IP Configuration ID this NAT rule applies to. + :vartype ipConfigurationId: str + :ivar egressVpnSiteLinkConnections: List of egress VpnSiteLinkConnections. + :vartype egressVpnSiteLinkConnections: list["SubResource"] + :ivar ingressVpnSiteLinkConnections: List of ingress VpnSiteLinkConnections. + :vartype ingressVpnSiteLinkConnections: list["SubResource"] + """ + + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the NAT Rule resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + type: Union[str, "VpnNatRuleType"] + """The type of NAT rule for VPN NAT. Known values are: \"Static\" and \"Dynamic\".""" + mode: Union[str, "VpnNatRuleMode"] + """The Source NAT direction of a VPN NAT. Known values are: \"EgressSnat\" and \"IngressSnat\".""" + internalMappings: list["VpnNatRuleMapping"] + """The private IP address internal mapping for NAT.""" + externalMappings: list["VpnNatRuleMapping"] + """The private IP address external mapping for NAT.""" + ipConfigurationId: str + """The IP Configuration ID this NAT rule applies to.""" + egressVpnSiteLinkConnections: list["SubResource"] + """List of egress VpnSiteLinkConnections.""" + ingressVpnSiteLinkConnections: list["SubResource"] + """List of ingress VpnSiteLinkConnections.""" + + +class VpnGatewayPacketCaptureStartParameters(TypedDict, total=False): + """Start packet capture parameters. + + :ivar filterData: Start Packet capture parameters on vpn gateway. + :vartype filterData: str + """ + + filterData: str + """Start Packet capture parameters on vpn gateway.""" + + +class VpnGatewayPacketCaptureStopParameters(TypedDict, total=False): + """Stop packet capture parameters. + + :ivar sasUrl: SAS url for packet capture on vpn gateway. + :vartype sasUrl: str + """ + + sasUrl: str + """SAS url for packet capture on vpn gateway.""" + + +class VpnGatewayProperties(TypedDict, total=False): + """Parameters for VpnGateway. + + :ivar virtualHub: The VirtualHub to which the gateway belongs. + :vartype virtualHub: "SubResource" + :ivar connections: List of all vpn connections to the gateway. + :vartype connections: list["VpnConnection"] + :ivar bgpSettings: Local network gateway's BGP speaker settings. + :vartype bgpSettings: "BgpSettings" + :ivar provisioningState: The provisioning state of the VPN gateway resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar vpnGatewayScaleUnit: The scale unit for this vpn gateway. + :vartype vpnGatewayScaleUnit: int + :ivar ipConfigurations: List of all IPs configured on the gateway. + :vartype ipConfigurations: list["VpnGatewayIpConfiguration"] + :ivar enableBgpRouteTranslationForNat: Enable BGP routes translation for NAT on this + VpnGateway. + :vartype enableBgpRouteTranslationForNat: bool + :ivar isRoutingPreferenceInternet: Enable Routing Preference property for the Public IP + Interface of the VpnGateway. + :vartype isRoutingPreferenceInternet: bool + :ivar natRules: List of all the nat Rules associated with the gateway. + :vartype natRules: list["VpnGatewayNatRule"] + """ + + virtualHub: "SubResource" + """The VirtualHub to which the gateway belongs.""" + connections: list["VpnConnection"] + """List of all vpn connections to the gateway.""" + bgpSettings: "BgpSettings" + """Local network gateway's BGP speaker settings.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN gateway resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + vpnGatewayScaleUnit: int + """The scale unit for this vpn gateway.""" + ipConfigurations: list["VpnGatewayIpConfiguration"] + """List of all IPs configured on the gateway.""" + enableBgpRouteTranslationForNat: bool + """Enable BGP routes translation for NAT on this VpnGateway.""" + isRoutingPreferenceInternet: bool + """Enable Routing Preference property for the Public IP Interface of the VpnGateway.""" + natRules: list["VpnGatewayNatRule"] + """List of all the nat Rules associated with the gateway.""" + + +class VpnLinkBgpSettings(TypedDict, total=False): + """BGP settings details for a link. + + :ivar asn: The BGP speaker's ASN. + :vartype asn: int + :ivar bgpPeeringAddress: The BGP peering address and BGP identifier of this BGP speaker. + :vartype bgpPeeringAddress: str + """ + + asn: int + """The BGP speaker's ASN.""" + bgpPeeringAddress: str + """The BGP peering address and BGP identifier of this BGP speaker.""" + + +class VpnLinkProviderProperties(TypedDict, total=False): + """List of properties of a link provider. + + :ivar linkProviderName: Name of the link provider. + :vartype linkProviderName: str + :ivar linkSpeedInMbps: Link speed. + :vartype linkSpeedInMbps: int + """ + + linkProviderName: str + """Name of the link provider.""" + linkSpeedInMbps: int + """Link speed.""" + + +class VpnNatRuleMapping(TypedDict, total=False): + """Vpn NatRule mapping. + + :ivar addressSpace: Address space for Vpn NatRule mapping. + :vartype addressSpace: str + :ivar portRange: Port range for Vpn NatRule mapping. + :vartype portRange: str + """ + + addressSpace: str + """Address space for Vpn NatRule mapping.""" + portRange: str + """Port range for Vpn NatRule mapping.""" + + +class VpnPacketCaptureStartParameters(TypedDict, total=False): + """Start packet capture parameters on virtual network gateway. + + :ivar filterData: Start Packet capture parameters. + :vartype filterData: str + """ + + filterData: str + """Start Packet capture parameters.""" + + +class VpnPacketCaptureStopParameters(TypedDict, total=False): + """Stop packet capture parameters. + + :ivar sasUrl: SAS url for packet capture on virtual network gateway. + :vartype sasUrl: str + """ + + sasUrl: str + """SAS url for packet capture on virtual network gateway.""" + + +class VpnServerConfigRadiusClientRootCertificate(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the Radius client root certificate of VpnServerConfiguration. + + :ivar name: The certificate name. + :vartype name: str + :ivar thumbprint: The Radius client root certificate thumbprint. + :vartype thumbprint: str + """ + + name: str + """The certificate name.""" + thumbprint: str + """The Radius client root certificate thumbprint.""" + + +class VpnServerConfigRadiusServerRootCertificate(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of Radius Server root certificate of VpnServerConfiguration. + + :ivar name: The certificate name. + :vartype name: str + :ivar publicCertData: The certificate public data. + :vartype publicCertData: str + """ + + name: str + """The certificate name.""" + publicCertData: str + """The certificate public data.""" + + +class VpnServerConfiguration(TrackedResourceWithSettableName): + """VpnServerConfiguration Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the P2SVpnServer configuration. + :vartype properties: "VpnServerConfigurationProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnServerConfigurationProperties" + """Properties of the P2SVpnServer configuration.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnServerConfigurationPolicyGroup(SubResourceModel): + """VpnServerConfigurationPolicyGroup Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the VpnServerConfigurationPolicyGroup. + :vartype properties: "VpnServerConfigurationPolicyGroupProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnServerConfigurationPolicyGroupProperties" + """Properties of the VpnServerConfigurationPolicyGroup.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnServerConfigurationPolicyGroupMember(TypedDict, total=False): + """VpnServerConfiguration PolicyGroup member. + + :ivar name: Name of the VpnServerConfigurationPolicyGroupMember. + :vartype name: str + :ivar attributeType: The Vpn Policy member attribute type. Known values are: + "CertificateGroupId", "AADGroupId", and "RadiusAzureGroupId". + :vartype attributeType: Union[str, "VpnPolicyMemberAttributeType"] + :ivar attributeValue: The value of Attribute used for this + VpnServerConfigurationPolicyGroupMember. + :vartype attributeValue: str + """ + + name: str + """Name of the VpnServerConfigurationPolicyGroupMember.""" + attributeType: Union[str, "VpnPolicyMemberAttributeType"] + """The Vpn Policy member attribute type. Known values are: \"CertificateGroupId\", \"AADGroupId\", + and \"RadiusAzureGroupId\".""" + attributeValue: str + """The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.""" + + +class VpnServerConfigurationPolicyGroupProperties(TypedDict, total=False): # pylint: disable=name-too-long + """Parameters for VpnServerConfigurationPolicyGroup. + + :ivar isDefault: Shows if this is a Default VpnServerConfigurationPolicyGroup or not. + :vartype isDefault: bool + :ivar priority: Priority for VpnServerConfigurationPolicyGroup. + :vartype priority: int + :ivar policyMembers: Multiple PolicyMembers for VpnServerConfigurationPolicyGroup. + :vartype policyMembers: list["VpnServerConfigurationPolicyGroupMember"] + :ivar p2SConnectionConfigurations: List of references to P2SConnectionConfigurations. + :vartype p2SConnectionConfigurations: list["SubResource"] + :ivar provisioningState: The provisioning state of the VpnServerConfigurationPolicyGroup + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + isDefault: bool + """Shows if this is a Default VpnServerConfigurationPolicyGroup or not.""" + priority: int + """Priority for VpnServerConfigurationPolicyGroup.""" + policyMembers: list["VpnServerConfigurationPolicyGroupMember"] + """Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.""" + p2SConnectionConfigurations: list["SubResource"] + """List of references to P2SConnectionConfigurations.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VpnServerConfigurationPolicyGroup resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VpnServerConfigurationProperties(TypedDict, total=False): + """Parameters for VpnServerConfiguration. + + :ivar name: The name of the VpnServerConfiguration that is unique within a resource group. + :vartype name: str + :ivar vpnProtocols: VPN protocols for the VpnServerConfiguration. + :vartype vpnProtocols: list[Union[str, "VpnGatewayTunnelingProtocol"]] + :ivar vpnAuthenticationTypes: VPN authentication types for the VpnServerConfiguration. + :vartype vpnAuthenticationTypes: list[Union[str, "VpnAuthenticationType"]] + :ivar vpnClientRootCertificates: VPN client root certificate of VpnServerConfiguration. + :vartype vpnClientRootCertificates: list["VpnServerConfigVpnClientRootCertificate"] + :ivar vpnClientRevokedCertificates: VPN client revoked certificate of VpnServerConfiguration. + :vartype vpnClientRevokedCertificates: list["VpnServerConfigVpnClientRevokedCertificate"] + :ivar radiusServerRootCertificates: Radius Server root certificate of VpnServerConfiguration. + :vartype radiusServerRootCertificates: list["VpnServerConfigRadiusServerRootCertificate"] + :ivar radiusClientRootCertificates: Radius client root certificate of VpnServerConfiguration. + :vartype radiusClientRootCertificates: list["VpnServerConfigRadiusClientRootCertificate"] + :ivar vpnClientIpsecPolicies: VpnClientIpsecPolicies for VpnServerConfiguration. + :vartype vpnClientIpsecPolicies: list["IpsecPolicy"] + :ivar radiusServerAddress: The radius server address property of the VpnServerConfiguration + resource for point to site client connection. + :vartype radiusServerAddress: str + :ivar radiusServerSecret: The radius secret property of the VpnServerConfiguration resource for + point to site client connection. We will no longer return radiusServerSecret in + VpnServerConfiguration Create/Update/Get/List/UpdateTags APIs response. Please use + VpnServerConfiguration ListRadiusSecrets API to fetch radius server secrets. + :vartype radiusServerSecret: str + :ivar radiusServers: Multiple Radius Server configuration for VpnServerConfiguration. + :vartype radiusServers: list["RadiusServer"] + :ivar aadAuthenticationParameters: The set of aad vpn authentication parameters. + :vartype aadAuthenticationParameters: "AadAuthenticationParameters" + :ivar provisioningState: The provisioning state of the VpnServerConfiguration resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioningState: str + :ivar p2SVpnGateways: List of references to P2SVpnGateways. + :vartype p2SVpnGateways: list["P2SVpnGateway"] + :ivar configurationPolicyGroups: List of all VpnServerConfigurationPolicyGroups. + :vartype configurationPolicyGroups: list["VpnServerConfigurationPolicyGroup"] + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + name: str + """The name of the VpnServerConfiguration that is unique within a resource group.""" + vpnProtocols: list[Union[str, "VpnGatewayTunnelingProtocol"]] + """VPN protocols for the VpnServerConfiguration.""" + vpnAuthenticationTypes: list[Union[str, "VpnAuthenticationType"]] + """VPN authentication types for the VpnServerConfiguration.""" + vpnClientRootCertificates: list["VpnServerConfigVpnClientRootCertificate"] + """VPN client root certificate of VpnServerConfiguration.""" + vpnClientRevokedCertificates: list["VpnServerConfigVpnClientRevokedCertificate"] + """VPN client revoked certificate of VpnServerConfiguration.""" + radiusServerRootCertificates: list["VpnServerConfigRadiusServerRootCertificate"] + """Radius Server root certificate of VpnServerConfiguration.""" + radiusClientRootCertificates: list["VpnServerConfigRadiusClientRootCertificate"] + """Radius client root certificate of VpnServerConfiguration.""" + vpnClientIpsecPolicies: list["IpsecPolicy"] + """VpnClientIpsecPolicies for VpnServerConfiguration.""" + radiusServerAddress: str + """The radius server address property of the VpnServerConfiguration resource for point to site + client connection.""" + radiusServerSecret: str + """The radius secret property of the VpnServerConfiguration resource for point to site client + connection. We will no longer return radiusServerSecret in VpnServerConfiguration + Create/Update/Get/List/UpdateTags APIs response. Please use VpnServerConfiguration + ListRadiusSecrets API to fetch radius server secrets.""" + radiusServers: list["RadiusServer"] + """Multiple Radius Server configuration for VpnServerConfiguration.""" + aadAuthenticationParameters: "AadAuthenticationParameters" + """The set of aad vpn authentication parameters.""" + provisioningState: str + """The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'.""" + p2SVpnGateways: list["P2SVpnGateway"] + """List of references to P2SVpnGateways.""" + configurationPolicyGroups: list["VpnServerConfigurationPolicyGroup"] + """List of all VpnServerConfigurationPolicyGroups.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnServerConfigVpnClientRevokedCertificate(TypedDict, total=False): # pylint: disable=name-too-long + """Properties of the revoked VPN client certificate of VpnServerConfiguration. + + :ivar name: The certificate name. + :vartype name: str + :ivar thumbprint: The revoked VPN client certificate thumbprint. + :vartype thumbprint: str + """ + + name: str + """The certificate name.""" + thumbprint: str + """The revoked VPN client certificate thumbprint.""" + + +class VpnServerConfigVpnClientRootCertificate(TypedDict, total=False): + """Properties of VPN client root certificate of VpnServerConfiguration. + + :ivar name: The certificate name. + :vartype name: str + :ivar publicCertData: The certificate public data. + :vartype publicCertData: str + """ + + name: str + """The certificate name.""" + publicCertData: str + """The certificate public data.""" + + +class VpnSite(TrackedResourceWithSettableIdOptionalLocation): + """VpnSite Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the VPN site. + :vartype properties: "VpnSiteProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnSiteProperties" + """Properties of the VPN site.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnSiteLink(SubResourceModel): + """VpnSiteLink Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the VPN site link. + :vartype properties: "VpnSiteLinkProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnSiteLinkProperties" + """Properties of the VPN site link.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnSiteLinkConnection(SubResourceModel): + """VpnSiteLinkConnection Resource. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Name of the resource. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar properties: Properties of the VPN site link connection. + :vartype properties: "VpnSiteLinkConnectionProperties" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "VpnSiteLinkConnectionProperties" + """Properties of the VPN site link connection.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class VpnSiteLinkConnectionProperties(TypedDict, total=False): + """Parameters for VpnConnection. + + :ivar vpnSiteLink: Id of the connected vpn site link. + :vartype vpnSiteLink: "SubResource" + :ivar routingWeight: Routing weight for vpn connection. + :vartype routingWeight: int + :ivar vpnLinkConnectionMode: Vpn link connection mode. Known values are: "Default", + "ResponderOnly", and "InitiatorOnly". + :vartype vpnLinkConnectionMode: Union[str, "VpnLinkConnectionMode"] + :ivar connectionStatus: The connection status. Known values are: "Unknown", "Connecting", + "Connected", and "NotConnected". + :vartype connectionStatus: Union[str, "VpnConnectionStatus"] + :ivar vpnConnectionProtocolType: Connection protocol used for this connection. Known values + are: "IKEv2" and "IKEv1". + :vartype vpnConnectionProtocolType: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + :ivar ingressBytesTransferred: Ingress bytes transferred. + :vartype ingressBytesTransferred: int + :ivar egressBytesTransferred: Egress bytes transferred. + :vartype egressBytesTransferred: int + :ivar connectionBandwidth: Expected bandwidth in MBPS. + :vartype connectionBandwidth: int + :ivar sharedKey: SharedKey for the vpn link connection. We will no longer return sharedKey in + any Create/Update/Get/List/UpdateTags VpnGateway/VpnConnection/VpnLinkConnection APIs response. + Please use 'Vpn Link Connections - List Default Shared Key' API to fetch Vpn link connection + sharedKey. + :vartype sharedKey: str + :ivar enableBgp: EnableBgp flag. + :vartype enableBgp: bool + :ivar vpnGatewayCustomBgpAddresses: vpnGatewayCustomBgpAddresses used by this connection. + :vartype vpnGatewayCustomBgpAddresses: list["GatewayCustomBgpIpAddressIpConfiguration"] + :ivar usePolicyBasedTrafficSelectors: Enable policy-based traffic selectors. + :vartype usePolicyBasedTrafficSelectors: bool + :ivar ipsecPolicies: The IPSec Policies to be considered by this connection. + :vartype ipsecPolicies: list["IpsecPolicy"] + :ivar enableRateLimiting: EnableBgp flag. + :vartype enableRateLimiting: bool + :ivar useLocalAzureIpAddress: Use local azure ip to initiate connection. + :vartype useLocalAzureIpAddress: bool + :ivar provisioningState: The provisioning state of the VPN site link connection resource. Known + values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar ingressNatRules: List of ingress NatRules. + :vartype ingressNatRules: list["SubResource"] + :ivar egressNatRules: List of egress NatRules. + :vartype egressNatRules: list["SubResource"] + :ivar dpdTimeoutSeconds: Dead Peer Detection timeout in seconds for VpnLink connection. + :vartype dpdTimeoutSeconds: int + """ + + vpnSiteLink: "SubResource" + """Id of the connected vpn site link.""" + routingWeight: int + """Routing weight for vpn connection.""" + vpnLinkConnectionMode: Union[str, "VpnLinkConnectionMode"] + """Vpn link connection mode. Known values are: \"Default\", \"ResponderOnly\", and + \"InitiatorOnly\".""" + connectionStatus: Union[str, "VpnConnectionStatus"] + """The connection status. Known values are: \"Unknown\", \"Connecting\", \"Connected\", and + \"NotConnected\".""" + vpnConnectionProtocolType: Union[str, "VirtualNetworkGatewayConnectionProtocol"] + """Connection protocol used for this connection. Known values are: \"IKEv2\" and \"IKEv1\".""" + ingressBytesTransferred: int + """Ingress bytes transferred.""" + egressBytesTransferred: int + """Egress bytes transferred.""" + connectionBandwidth: int + """Expected bandwidth in MBPS.""" + sharedKey: str + """SharedKey for the vpn link connection. We will no longer return sharedKey in any + Create/Update/Get/List/UpdateTags VpnGateway/VpnConnection/VpnLinkConnection APIs response. + Please use 'Vpn Link Connections - List Default Shared Key' API to fetch Vpn link connection + sharedKey.""" + enableBgp: bool + """EnableBgp flag.""" + vpnGatewayCustomBgpAddresses: list["GatewayCustomBgpIpAddressIpConfiguration"] + """vpnGatewayCustomBgpAddresses used by this connection.""" + usePolicyBasedTrafficSelectors: bool + """Enable policy-based traffic selectors.""" + ipsecPolicies: list["IpsecPolicy"] + """The IPSec Policies to be considered by this connection.""" + enableRateLimiting: bool + """EnableBgp flag.""" + useLocalAzureIpAddress: bool + """Use local azure ip to initiate connection.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN site link connection resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + ingressNatRules: list["SubResource"] + """List of ingress NatRules.""" + egressNatRules: list["SubResource"] + """List of egress NatRules.""" + dpdTimeoutSeconds: int + """Dead Peer Detection timeout in seconds for VpnLink connection.""" + + +class VpnSiteLinkProperties(TypedDict, total=False): + """Parameters for VpnSite. + + :ivar linkProperties: The link provider properties. + :vartype linkProperties: "VpnLinkProviderProperties" + :ivar ipAddress: The ip-address for the vpn-site-link. + :vartype ipAddress: str + :ivar fqdn: FQDN of vpn-site-link. + :vartype fqdn: str + :ivar bgpProperties: The set of bgp properties. + :vartype bgpProperties: "VpnLinkBgpSettings" + :ivar provisioningState: The provisioning state of the VPN site link resource. Known values + are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + """ + + linkProperties: "VpnLinkProviderProperties" + """The link provider properties.""" + ipAddress: str + """The ip-address for the vpn-site-link.""" + fqdn: str + """FQDN of vpn-site-link.""" + bgpProperties: "VpnLinkBgpSettings" + """The set of bgp properties.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN site link resource. Known values are: \"Failed\", + \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + + +class VpnSiteProperties(TypedDict, total=False): + """Parameters for VpnSite. + + :ivar virtualWan: The VirtualWAN to which the vpnSite belongs. + :vartype virtualWan: "SubResource" + :ivar deviceProperties: The device properties. + :vartype deviceProperties: "DeviceProperties" + :ivar ipAddress: The ip-address for the vpn-site. + :vartype ipAddress: str + :ivar siteKey: The key for vpn-site that can be used for connections. + :vartype siteKey: str + :ivar addressSpace: The AddressSpace that contains an array of IP address ranges. + :vartype addressSpace: "AddressSpace" + :ivar bgpProperties: The set of bgp properties. + :vartype bgpProperties: "BgpSettings" + :ivar provisioningState: The provisioning state of the VPN site resource. Known values are: + "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar isSecuritySite: IsSecuritySite flag. + :vartype isSecuritySite: bool + :ivar vpnSiteLinks: List of all vpn site links. + :vartype vpnSiteLinks: list["VpnSiteLink"] + :ivar o365Policy: Office365 Policy. + :vartype o365Policy: "O365PolicyProperties" + """ + + virtualWan: "SubResource" + """The VirtualWAN to which the vpnSite belongs.""" + deviceProperties: "DeviceProperties" + """The device properties.""" + ipAddress: str + """The ip-address for the vpn-site.""" + siteKey: str + """The key for vpn-site that can be used for connections.""" + addressSpace: "AddressSpace" + """The AddressSpace that contains an array of IP address ranges.""" + bgpProperties: "BgpSettings" + """The set of bgp properties.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the VPN site resource. Known values are: \"Failed\", \"Succeeded\", + \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + isSecuritySite: bool + """IsSecuritySite flag.""" + vpnSiteLinks: list["VpnSiteLink"] + """List of all vpn site links.""" + o365Policy: "O365PolicyProperties" + """Office365 Policy.""" + + +class WebApplicationFirewallCustomRule(TypedDict, total=False): + """Defines contents of a web application rule. + + :ivar name: The name of the resource that is unique within a policy. This name can be used to + access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + :ivar priority: Priority of the rule. Rules with a lower value will be evaluated before rules + with a higher value. Required. + :vartype priority: int + :ivar state: Describes if the custom rule is in enabled or disabled state. Defaults to Enabled + if not specified. Known values are: "Disabled" and "Enabled". + :vartype state: Union[str, "WebApplicationFirewallState"] + :ivar rateLimitDuration: Duration over which Rate Limit policy will be applied. Applies only + when ruleType is RateLimitRule. Known values are: "OneMin" and "FiveMins". + :vartype rateLimitDuration: Union[str, "ApplicationGatewayFirewallRateLimitDuration"] + :ivar rateLimitThreshold: Rate Limit threshold to apply in case ruleType is RateLimitRule. Must + be greater than or equal to 1. + :vartype rateLimitThreshold: int + :ivar ruleType: The rule type. Required. Known values are: "MatchRule", "RateLimitRule", and + "Invalid". + :vartype ruleType: Union[str, "WebApplicationFirewallRuleType"] + :ivar matchConditions: List of match conditions. Required. + :vartype matchConditions: list["MatchCondition"] + :ivar groupByUserSession: List of user session identifier group by clauses. + :vartype groupByUserSession: list["GroupByUserSession"] + :ivar action: Type of Actions. Required. Known values are: "Allow", "Block", "Log", + "JSChallenge", and "CAPTCHA". + :vartype action: Union[str, "WebApplicationFirewallAction"] + """ + + name: str + """The name of the resource that is unique within a policy. This name can be used to access the + resource.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + priority: Required[int] + """Priority of the rule. Rules with a lower value will be evaluated before rules with a higher + value. Required.""" + state: Union[str, "WebApplicationFirewallState"] + """Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not + specified. Known values are: \"Disabled\" and \"Enabled\".""" + rateLimitDuration: Union[str, "ApplicationGatewayFirewallRateLimitDuration"] + """Duration over which Rate Limit policy will be applied. Applies only when ruleType is + RateLimitRule. Known values are: \"OneMin\" and \"FiveMins\".""" + rateLimitThreshold: int + """Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal + to 1.""" + ruleType: Required[Union[str, "WebApplicationFirewallRuleType"]] + """The rule type. Required. Known values are: \"MatchRule\", \"RateLimitRule\", and \"Invalid\".""" + matchConditions: Required[list["MatchCondition"]] + """List of match conditions. Required.""" + groupByUserSession: list["GroupByUserSession"] + """List of user session identifier group by clauses.""" + action: Required[Union[str, "WebApplicationFirewallAction"]] + """Type of Actions. Required. Known values are: \"Allow\", \"Block\", \"Log\", \"JSChallenge\", + and \"CAPTCHA\".""" + + +class WebApplicationFirewallPolicy(Resource): + """Defines web application firewall policy. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar properties: Properties of the web application firewall policy. + :vartype properties: "WebApplicationFirewallPolicyPropertiesFormat" + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str + """ + + properties: "WebApplicationFirewallPolicyPropertiesFormat" + """Properties of the web application firewall policy.""" + etag: str + """A unique read-only string that changes whenever the resource is updated.""" + + +class WebApplicationFirewallPolicyPropertiesFormat(TypedDict, total=False): # pylint: disable=name-too-long + """Defines web application firewall policy properties. + + :ivar policySettings: The PolicySettings for policy. + :vartype policySettings: "PolicySettings" + :ivar customRules: The custom rules inside the policy. + :vartype customRules: list["WebApplicationFirewallCustomRule"] + :ivar applicationGateways: A collection of references to application gateways. + :vartype applicationGateways: list["ApplicationGateway"] + :ivar provisioningState: The provisioning state of the web application firewall policy + resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and + "Deleting". + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceState: Resource status of the policy. Known values are: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", and "Deleting". + :vartype resourceState: Union[str, "WebApplicationFirewallPolicyResourceState"] + :ivar managedRules: Describes the managedRules structure. Required. + :vartype managedRules: "ManagedRulesDefinition" + :ivar httpListeners: A collection of references to application gateway http listeners. + :vartype httpListeners: list["SubResource"] + :ivar pathBasedRules: A collection of references to application gateway path rules. + :vartype pathBasedRules: list["SubResource"] + :ivar applicationGatewayForContainers: A collection of references to application gateway for + containers. + :vartype applicationGatewayForContainers: + list["ApplicationGatewayForContainersReferenceDefinition"] + """ + + policySettings: "PolicySettings" + """The PolicySettings for policy.""" + customRules: list["WebApplicationFirewallCustomRule"] + """The custom rules inside the policy.""" + applicationGateways: list["ApplicationGateway"] + """A collection of references to application gateways.""" + provisioningState: Union[str, "ProvisioningState"] + """The provisioning state of the web application firewall policy resource. Known values are: + \"Failed\", \"Succeeded\", \"Canceled\", \"Creating\", \"Updating\", and \"Deleting\".""" + resourceState: Union[str, "WebApplicationFirewallPolicyResourceState"] + """Resource status of the policy. Known values are: \"Creating\", \"Enabling\", \"Enabled\", + \"Disabling\", \"Disabled\", and \"Deleting\".""" + managedRules: Required["ManagedRulesDefinition"] + """Describes the managedRules structure. Required.""" + httpListeners: list["SubResource"] + """A collection of references to application gateway http listeners.""" + pathBasedRules: list["SubResource"] + """A collection of references to application gateway path rules.""" + applicationGatewayForContainers: list["ApplicationGatewayForContainersReferenceDefinition"] + """A collection of references to application gateway for containers.""" + + +class WebApplicationFirewallScrubbingRules(TypedDict, total=False): + """Allow certain variables to be scrubbed on WAF logs. + + :ivar matchVariable: The variable to be scrubbed from the logs. Required. Known values are: + "RequestHeaderNames", "RequestCookieNames", "RequestArgNames", "RequestPostArgNames", + "RequestJSONArgNames", and "RequestIPAddress". + :vartype matchVariable: Union[str, "ScrubbingRuleEntryMatchVariable"] + :ivar selectorMatchOperator: When matchVariable is a collection, operate on the selector to + specify which elements in the collection this rule applies to. Required. Known values are: + "Equals" and "EqualsAny". + :vartype selectorMatchOperator: Union[str, "ScrubbingRuleEntryMatchOperator"] + :ivar selector: When matchVariable is a collection, operator used to specify which elements in + the collection this rule applies to. + :vartype selector: str + :ivar state: Defines the state of log scrubbing rule. Default value is Enabled. Known values + are: "Enabled" and "Disabled". + :vartype state: Union[str, "ScrubbingRuleEntryState"] + """ + + matchVariable: Required[Union[str, "ScrubbingRuleEntryMatchVariable"]] + """The variable to be scrubbed from the logs. Required. Known values are: \"RequestHeaderNames\", + \"RequestCookieNames\", \"RequestArgNames\", \"RequestPostArgNames\", \"RequestJSONArgNames\", + and \"RequestIPAddress\".""" + selectorMatchOperator: Required[Union[str, "ScrubbingRuleEntryMatchOperator"]] + """When matchVariable is a collection, operate on the selector to specify which elements in the + collection this rule applies to. Required. Known values are: \"Equals\" and \"EqualsAny\".""" + selector: str + """When matchVariable is a collection, operator used to specify which elements in the collection + this rule applies to.""" + state: Union[str, "ScrubbingRuleEntryState"] + """Defines the state of log scrubbing rule. Default value is Enabled. Known values are: + \"Enabled\" and \"Disabled\".""" + + +BaseAdminRule = Union[AdminRule, DefaultAdminRule] +FirewallPolicyRule = Union[ApplicationRule, NatRule, NetworkRule] +FirewallPolicyRuleCollection = Union[FirewallPolicyFilterRuleCollection, FirewallPolicyNatRuleCollection] diff --git a/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_create.py b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_create.py new file mode 100644 index 000000000000..6841b472c6c9 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_create.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python address_prefix_set_create.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.address_prefix_sets.begin_create_or_update( + resource_group_name="rg1", + application_security_group_name="test-asg", + address_prefix_set_name="test-prefix-set", + resource={"properties": {"addressPrefixes": ["10.0.0.0/16", "192.168.1.0/24", "2001:db8::/32"]}}, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/AddressPrefixSetCreate.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_delete.py b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_delete.py new file mode 100644 index 000000000000..5f40b9d3d854 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python address_prefix_set_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.address_prefix_sets.begin_delete( + resource_group_name="rg1", + application_security_group_name="test-asg", + address_prefix_set_name="test-prefix-set", + ).result() + + +# x-ms-original-file: 2025-09-01/AddressPrefixSetDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_get.py b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_get.py new file mode 100644 index 000000000000..681616de9643 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python address_prefix_set_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.address_prefix_sets.get( + resource_group_name="rg1", + application_security_group_name="test-asg", + address_prefix_set_name="test-prefix-set", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/AddressPrefixSetGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_list.py b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_list.py new file mode 100644 index 000000000000..4b9183b51c11 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/address_prefix_set_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python address_prefix_set_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.address_prefix_sets.list( + resource_group_name="rg1", + application_security_group_name="test-asg", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/AddressPrefixSetList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/all_virtual_network_gateway_radius_server_secrets_list.py b/sdk/network/azure-mgmt-network/generated_samples/all_virtual_network_gateway_radius_server_secrets_list.py index 4057f2ff42a6..5e25a476b4b1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/all_virtual_network_gateway_radius_server_secrets_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/all_virtual_network_gateway_radius_server_secrets_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AllVirtualNetworkGatewayRadiusServerSecretsList.json +# x-ms-original-file: 2025-09-01/AllVirtualNetworkGatewayRadiusServerSecretsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/all_vpn_server_configuration_radius_server_secrets_list.py b/sdk/network/azure-mgmt-network/generated_samples/all_vpn_server_configuration_radius_server_secrets_list.py index 12584ac242a7..0a3296472876 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/all_vpn_server_configuration_radius_server_secrets_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/all_vpn_server_configuration_radius_server_secrets_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AllVpnServerConfigurationRadiusServerSecretsList.json +# x-ms-original-file: 2025-09-01/AllVpnServerConfigurationRadiusServerSecretsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_request_headers_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_request_headers_get.py index 5e8bb8bd6a05..82529b749bb8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_request_headers_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_request_headers_get.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableRequestHeadersGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableRequestHeadersGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_response_headers_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_response_headers_get.py index b38331086390..2e8bf2137155 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_response_headers_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_response_headers_get.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableResponseHeadersGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableResponseHeadersGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_server_variables_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_server_variables_get.py index fd2bb1c7bce2..1649a30b9c5d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_server_variables_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_server_variables_get.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableServerVariablesGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableServerVariablesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_get.py index 3aea3ce5755f..9298f2f0993b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_get.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableSslOptionsGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableSslOptionsGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policies_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policies_get.py index e350fd2cacde..9b8662d6d941 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policies_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policies_get.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policy_get.py index 2404c9ab6c92..8833adeaca2b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_ssl_options_predefined_policy_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_waf_rule_sets_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_waf_rule_sets_get.py index 39028981acaf..6bd054dde556 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_waf_rule_sets_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_available_waf_rule_sets_get.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayAvailableWafRuleSetsGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayAvailableWafRuleSetsGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_get.py index 2b9fb6e14ee0..21f4a15f3f5b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayBackendHealthGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayBackendHealthGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_test.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_test.py index 1c41172d86d1..9c00e98483dd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_test.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_backend_health_test.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayBackendHealthTest.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayBackendHealthTest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_create.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_create.py index 857ec2079fb5..38deb363efd4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_create.py @@ -227,6 +227,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayCreate.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_delete.py index 6c02a103022d..4be33d7baed6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ApplicationGatewayDelete.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_get.py index 00371f1909a3..bb9619d3c34e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list.py index 989e487609b6..b06ea2066c73 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationGatewayList.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list_all.py index 6219eefe2a10..77a4214dc4ae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationGatewayListAll.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_delete.py index 2c57e088d9ef..53b9859ad945 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ApplicationGatewayPrivateEndpointConnectionDelete.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayPrivateEndpointConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_get.py index 22b600626ba8..cdfcb475f52a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayPrivateEndpointConnectionGet.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayPrivateEndpointConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_list.py index 45d49d628aab..b4ea98acd56a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationGatewayPrivateEndpointConnectionList.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayPrivateEndpointConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_update.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_update.py index 47f9eadb88c8..9c18a63b2bce 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_endpoint_connection_update.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayPrivateEndpointConnectionUpdate.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayPrivateEndpointConnectionUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_link_resource_list.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_link_resource_list.py index af007e084b60..e8c5242b4c58 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_link_resource_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_private_link_resource_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationGatewayPrivateLinkResourceList.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayPrivateLinkResourceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_start.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_start.py index 7b299716d98e..83f91fe873c4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_start.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_start.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ApplicationGatewayStart.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayStart.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_stop.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_stop.py index ab21c7dbae0d..0c83bac04795 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_stop.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_stop.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ApplicationGatewayStop.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayStop.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_update_tags.py index 117c05df7dc2..6a881d3cc652 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/ApplicationGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_create.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_create.py index 597acd5c163d..580286cc9294 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupCreate.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_delete.py index 610891fd6a39..e2424fb14437 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupDelete.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_get.py index 51ea5802ec2f..7c8561dafb31 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupGet.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list.py index 6c3a9031368b..69f57787dbe2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupList.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list_all.py index 33365c3abbf1..6b26ededa72f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupListAll.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_update_tags.py index 882276b367e4..7fbc654c38fa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/application_security_group_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/application_security_group_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ApplicationSecurityGroupUpdateTags.json +# x-ms-original-file: 2025-09-01/ApplicationSecurityGroupUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_get.py b/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_get.py index dcb20327f3db..b46e961c7d8e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_get.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AutoApprovedPrivateLinkServicesGet.json +# x-ms-original-file: 2025-09-01/AutoApprovedPrivateLinkServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_resource_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_resource_group_get.py index 4c695535d5fb..d6ef43af4683 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_resource_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/auto_approved_private_link_services_resource_group_get.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AutoApprovedPrivateLinkServicesResourceGroupGet.json +# x-ms-original-file: 2025-09-01/AutoApprovedPrivateLinkServicesResourceGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_delegations_resource_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/available_delegations_resource_group_get.py index 49b7c7d289d0..d207b183fb22 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_delegations_resource_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_delegations_resource_group_get.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailableDelegationsResourceGroupGet.json +# x-ms-original-file: 2025-09-01/AvailableDelegationsResourceGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_delegations_subscription_get.py b/sdk/network/azure-mgmt-network/generated_samples/available_delegations_subscription_get.py index c1c20af182fc..8884da99a3de 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_delegations_subscription_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_delegations_subscription_get.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailableDelegationsSubscriptionGet.json +# x-ms-original-file: 2025-09-01/AvailableDelegationsSubscriptionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_get.py b/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_get.py index 11ca08a1f82d..5c6d6add8b01 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_get.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailablePrivateEndpointTypesGet.json +# x-ms-original-file: 2025-09-01/AvailablePrivateEndpointTypesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_resource_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_resource_group_get.py index 0df67edf06f0..50f7348c4fb1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_resource_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_private_endpoint_types_resource_group_get.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailablePrivateEndpointTypesResourceGroupGet.json +# x-ms-original-file: 2025-09-01/AvailablePrivateEndpointTypesResourceGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list.py b/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list.py index d1cb2fc643f6..9b4db3011e99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailableServiceAliasesList.json +# x-ms-original-file: 2025-09-01/AvailableServiceAliasesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list_by_resource_group.py index dbbc7e105703..f445c215a173 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/available_service_aliases_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AvailableServiceAliasesListByResourceGroup.json +# x-ms-original-file: 2025-09-01/AvailableServiceAliasesListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_delete.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_delete.py index 7b595553c2ba..74d0024a8bfb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/AzureFirewallDelete.json +# x-ms-original-file: 2025-09-01/AzureFirewallDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_fqdn_tags_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_fqdn_tags_list_by_subscription.py index a85c0a7b3e84..29c048d7cbdb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_fqdn_tags_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_fqdn_tags_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AzureFirewallFqdnTagsListBySubscription.json +# x-ms-original-file: 2025-09-01/AzureFirewallFqdnTagsListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get.py index 14a07516ac4d..6ef2dede65c8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGet.json +# x-ms-original-file: 2025-09-01/AzureFirewallGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_additional_properties.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_additional_properties.py index 5fb0a32127ff..54c43751ae67 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_additional_properties.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_additional_properties.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGetWithAdditionalProperties.json +# x-ms-original-file: 2025-09-01/AzureFirewallGetWithAdditionalProperties.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_afc_configuration.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_afc_configuration.py index 8ffb229716a1..07e1d8c82357 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_afc_configuration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_afc_configuration.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGetWithAfcConfiguration.json +# x-ms-original-file: 2025-09-01/AzureFirewallGetWithAfcConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_ip_groups.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_ip_groups.py index 132c18293c60..f1743802196c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_ip_groups.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_ip_groups.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGetWithIpGroups.json +# x-ms-original-file: 2025-09-01/AzureFirewallGetWithIpGroups.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_mgmt_subnet.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_mgmt_subnet.py index a6097403be1f..f6be52dc4206 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_mgmt_subnet.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_mgmt_subnet.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGetWithMgmtSubnet.json +# x-ms-original-file: 2025-09-01/AzureFirewallGetWithMgmtSubnet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_zones.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_zones.py index 8be30e906953..d047d71ebf35 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_zones.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_get_with_zones.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallGetWithZones.json +# x-ms-original-file: 2025-09-01/AzureFirewallGetWithZones.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_resource_group.py index 79de36b0fb0e..b532820a5af8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AzureFirewallListByResourceGroup.json +# x-ms-original-file: 2025-09-01/AzureFirewallListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_subscription.py index d1510adea6d4..ec96e73e2c7e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AzureFirewallListBySubscription.json +# x-ms-original-file: 2025-09-01/AzureFirewallListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_learned_ip_prefixes.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_learned_ip_prefixes.py index 73666a4b40dc..8051ed279bb7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_learned_ip_prefixes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_list_learned_ip_prefixes.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallListLearnedIPPrefixes.json +# x-ms-original-file: 2025-09-01/AzureFirewallListLearnedIPPrefixes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture.py index 62a9af030f38..2272c7809e56 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture.py @@ -48,6 +48,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/AzureFirewallPacketCapture.json +# x-ms-original-file: 2025-09-01/AzureFirewallPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture_operation.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture_operation.py index 79fae43f1721..5b7c0ea16b2f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture_operation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_packet_capture_operation.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPacketCaptureOperation.json +# x-ms-original-file: 2025-09-01/AzureFirewallPacketCaptureOperation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put.py index 6b15dc0d8041..e30eca734001 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put.py @@ -139,6 +139,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPut.json +# x-ms-original-file: 2025-09-01/AzureFirewallPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_in_hub.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_in_hub.py index fe2d808c3a88..2aa5e8be5e13 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_in_hub.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_in_hub.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutInHub.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutInHub.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_additional_properties.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_additional_properties.py index 0abaed361d2b..889c60ca497e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_additional_properties.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_additional_properties.py @@ -140,6 +140,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutWithAdditionalProperties.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutWithAdditionalProperties.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_afc_configuration.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_afc_configuration.py index d3f0888eb60a..1ff656ffb046 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_afc_configuration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_afc_configuration.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutWithAfcConfiguration.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutWithAfcConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_ip_groups.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_ip_groups.py index ebcf96937263..4b57839f3718 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_ip_groups.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_ip_groups.py @@ -139,6 +139,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutWithIpGroups.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutWithIpGroups.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_mgmt_subnet.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_mgmt_subnet.py index e16372e5d34b..3932f0c8f950 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_mgmt_subnet.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_mgmt_subnet.py @@ -150,6 +150,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutWithMgmtSubnet.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutWithMgmtSubnet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_zones.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_zones.py index 5650df2e2453..7654b040586f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_zones.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_put_with_zones.py @@ -139,6 +139,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallPutWithZones.json +# x-ms-original-file: 2025-09-01/AzureFirewallPutWithZones.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_update_tags.py index 37a2786e81c8..36fd9ad985d2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureFirewallUpdateTags.json +# x-ms-original-file: 2025-09-01/AzureFirewallUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_web_categories_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/azure_web_categories_list_by_subscription.py index 88cebc6dd99c..d2450cd1ac6b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_web_categories_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_web_categories_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/AzureWebCategoriesListBySubscription.json +# x-ms-original-file: 2025-09-01/AzureWebCategoriesListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/azure_web_category_get.py b/sdk/network/azure-mgmt-network/generated_samples/azure_web_category_get.py index d638d392fa85..54774bbf68db 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/azure_web_category_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/azure_web_category_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/AzureWebCategoryGet.json +# x-ms-original-file: 2025-09-01/AzureWebCategoryGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_delete.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_delete.py index 0fe5db5e8b0f..e91792fa7bab 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/BastionHostDelete.json +# x-ms-original-file: 2025-09-01/BastionHostDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_delete.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_delete.py index e300de85806b..8ea4683ff4fb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/BastionHostDeveloperDelete.json +# x-ms-original-file: 2025-09-01/BastionHostDeveloperDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_get.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_get.py index fe5e9ede406d..72452bad8cae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostDeveloperGet.json +# x-ms-original-file: 2025-09-01/BastionHostDeveloperGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_put.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_put.py index e8f6e94ded43..f35110672bc5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_developer_put.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostDeveloperPut.json +# x-ms-original-file: 2025-09-01/BastionHostDeveloperPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get.py index 4418e02805d0..cb6c1c7b65f4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostGet.json +# x-ms-original-file: 2025-09-01/BastionHostGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_private_only.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_private_only.py index bd2ea5e0f3ed..a48f2314de87 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_private_only.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_private_only.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostGetWithPrivateOnly.json +# x-ms-original-file: 2025-09-01/BastionHostGetWithPrivateOnly.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_zones.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_zones.py index 9f603d7e9efc..dc990f5200a5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_zones.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_get_with_zones.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostGetWithZones.json +# x-ms-original-file: 2025-09-01/BastionHostGetWithZones.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_resource_group.py index f1fee1c91d62..415a9bba17f8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionHostListByResourceGroup.json +# x-ms-original-file: 2025-09-01/BastionHostListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_subscription.py index bebbe3fbdc02..e86c579fbad8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionHostListBySubscription.json +# x-ms-original-file: 2025-09-01/BastionHostListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_patch.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_patch.py index 6d8771dd5a88..1e5501d40cb5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostPatch.json +# x-ms-original-file: 2025-09-01/BastionHostPatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put.py index 43c9ddccf15e..0ab87834a057 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostPut.json +# x-ms-original-file: 2025-09-01/BastionHostPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_private_only.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_private_only.py index 028bd0c545e2..31ab24d400ca 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_private_only.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_private_only.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostPutWithPrivateOnly.json +# x-ms-original-file: 2025-09-01/BastionHostPutWithPrivateOnly.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_zones.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_zones.py index 92db42b726e0..f29ae225d961 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_zones.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_host_put_with_zones.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/BastionHostPutWithZones.json +# x-ms-original-file: 2025-09-01/BastionHostPutWithZones.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_session_delete.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_session_delete.py index 52ffe34de480..a9388827ca8b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_session_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_session_delete.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionSessionDelete.json +# x-ms-original-file: 2025-09-01/BastionSessionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_sessions_list.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_sessions_list.py index 6b0dbff6b3c8..72c311f92558 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_sessions_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_sessions_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionSessionsList.json +# x-ms-original-file: 2025-09-01/BastionSessionsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_create.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_create.py index 2c52b009886f..6dd75280951f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_create.py @@ -53,6 +53,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionShareableLinkCreate.json +# x-ms-original-file: 2025-09-01/BastionShareableLinkCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete.py index 47f3f1250c4d..d5e13a714eab 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete.py @@ -51,6 +51,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/BastionShareableLinkDelete.json +# x-ms-original-file: 2025-09-01/BastionShareableLinkDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete_by_token.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete_by_token.py index 34d8e12dfbee..1fc3b0308d1f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete_by_token.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_delete_by_token.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/BastionShareableLinkDeleteByToken.json +# x-ms-original-file: 2025-09-01/BastionShareableLinkDeleteByToken.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_get.py b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_get.py index f48e2664deab..03195cc96c6e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/bastion_shareable_link_get.py @@ -53,6 +53,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/BastionShareableLinkGet.json +# x-ms-original-file: 2025-09-01/BastionShareableLinkGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/check_dns_name_availability.py b/sdk/network/azure-mgmt-network/generated_samples/check_dns_name_availability.py index 10c3dce6020e..a06ca35b9cef 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/check_dns_name_availability.py +++ b/sdk/network/azure-mgmt-network/generated_samples/check_dns_name_availability.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CheckDnsNameAvailability.json +# x-ms-original-file: 2025-09-01/CheckDnsNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility.py b/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility.py index c47c19bacb96..5f947c1c4dee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility.py +++ b/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CheckPrivateLinkServiceVisibility.json +# x-ms-original-file: 2025-09-01/CheckPrivateLinkServiceVisibility.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility_by_resource_group.py index 696dd3d04cd7..695c253a1b33 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/check_private_link_service_visibility_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CheckPrivateLinkServiceVisibilityByResourceGroup.json +# x-ms-original-file: 2025-09-01/CheckPrivateLinkServiceVisibilityByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_get.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_get.py index 94097e449db0..697c5765d213 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CloudServiceNetworkInterfaceGet.json +# x-ms-original-file: 2025-09-01/CloudServiceNetworkInterfaceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_list.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_list.py index 64380c45214f..729454c32d22 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_network_interface_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CloudServiceNetworkInterfaceList.json +# x-ms-original-file: 2025-09-01/CloudServiceNetworkInterfaceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_get.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_get.py index a989b5e37bc7..562bac0aaeee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_get.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CloudServicePublicIpGet.json +# x-ms-original-file: 2025-09-01/CloudServicePublicIpGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_list_all.py index 603e8fd5c55f..6ce6963b4f04 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_public_ip_list_all.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CloudServicePublicIpListAll.json +# x-ms-original-file: 2025-09-01/CloudServicePublicIpListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_network_interface_list.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_network_interface_list.py index 5b6e164c4630..34ce78b647d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_network_interface_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_network_interface_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CloudServiceRoleInstanceNetworkInterfaceList.json +# x-ms-original-file: 2025-09-01/CloudServiceRoleInstanceNetworkInterfaceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_public_ip_list.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_public_ip_list.py index f11fb539d9b3..a793e59fd29b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_public_ip_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_role_instance_public_ip_list.py @@ -41,6 +41,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CloudServiceRoleInstancePublicIpList.json +# x-ms-original-file: 2025-09-01/CloudServiceRoleInstancePublicIpList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_get.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_get.py index 6763cc1ff88f..f0f5cb3dec98 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CloudServiceSwapGet.json +# x-ms-original-file: 2025-09-01/CloudServiceSwapGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_list.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_list.py index fdcad7fd355a..1b5e83589a16 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CloudServiceSwapList.json +# x-ms-original-file: 2025-09-01/CloudServiceSwapList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_put.py b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_put.py index 793ca803ee38..badbfb29c2d2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/cloud_service_swap_put.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/CloudServiceSwapPut.json +# x-ms-original-file: 2025-09-01/CloudServiceSwapPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_delete.py index 7cd48ae89135..8b989a543603 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ConfigurationPolicyGroupDelete.json +# x-ms-original-file: 2025-09-01/ConfigurationPolicyGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_get.py index b7fd7f207276..b2909accc2cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ConfigurationPolicyGroupGet.json +# x-ms-original-file: 2025-09-01/ConfigurationPolicyGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_list_by_vpn_server_configuration.py b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_list_by_vpn_server_configuration.py index 8cb4d457a61e..aae6b719f8b5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_list_by_vpn_server_configuration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_list_by_vpn_server_configuration.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ConfigurationPolicyGroupListByVpnServerConfiguration.json +# x-ms-original-file: 2025-09-01/ConfigurationPolicyGroupListByVpnServerConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_put.py index 901b719e4445..fdeb652f69a6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/configuration_policy_group_put.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ConfigurationPolicyGroupPut.json +# x-ms-original-file: 2025-09-01/ConfigurationPolicyGroupPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_delete.py b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_delete.py index f43525f95d0c..ddf6fa3a9696 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ConnectionPolicyDelete.json +# x-ms-original-file: 2025-09-01/ConnectionPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_get.py index 47cfcf550816..5a1087e5cc22 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ConnectionPolicyGet.json +# x-ms-original-file: 2025-09-01/ConnectionPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_list.py b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_list.py index eb4e064cb5b7..e3dae8b350d2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ConnectionPolicyList.json +# x-ms-original-file: 2025-09-01/ConnectionPolicyList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_put.py b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_put.py index fec3f56e4ce5..c52e1218e264 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/connection_policy_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/connection_policy_put.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ConnectionPolicyPut.json +# x-ms-original-file: 2025-09-01/ConnectionPolicyPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_create_customized_values.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_create_customized_values.py index 748cbfb0a28c..aba23eac274a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_create_customized_values.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_create_customized_values.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CustomIpPrefixCreateCustomizedValues.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixCreateCustomizedValues.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_delete.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_delete.py index 97274cf18c8f..f62b6a8b6b27 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/CustomIpPrefixDelete.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_get.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_get.py index 5fffb9e57817..54d44c0067d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CustomIpPrefixGet.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list.py index 9af74b466cc8..052c0ee0f793 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CustomIpPrefixList.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list_all.py index b462693ec126..44f996dc6b75 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/CustomIpPrefixListAll.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_update_tags.py index f6af69bd81e9..de2e1af60116 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/custom_ip_prefix_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/CustomIpPrefixUpdateTags.json +# x-ms-original-file: 2025-09-01/CustomIpPrefixUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_create.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_create.py index 191d92c0240e..4e9f3492b901 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosCustomPolicyCreate.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_delete.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_delete.py index 8e87dd7ea8bc..1cdbb5e21fbf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/DdosCustomPolicyDelete.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_get.py index 43bbed56f8e5..1416df66a7af 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosCustomPolicyGet.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list.py index efaf76502275..41346f73ebb9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DdosCustomPolicyList.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list_all.py index a084de64b339..3f69450ad9fd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DdosCustomPolicyListAll.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_update_tags.py index f9b1f1114353..0b57959e3ea0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_custom_policy_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosCustomPolicyUpdateTags.json +# x-ms-original-file: 2025-09-01/DdosCustomPolicyUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_create.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_create.py index 8157c5def641..e70faf4bbb2e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosProtectionPlanCreate.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_delete.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_delete.py index eb94fdcfe341..e2b45bc41148 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/DdosProtectionPlanDelete.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_get.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_get.py index 06924b24c638..8f1e2a64ac84 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosProtectionPlanGet.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list.py index de54a4312530..7dc8c4f667ed 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DdosProtectionPlanList.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list_all.py index 05d977b938ab..0bcb8b83978f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DdosProtectionPlanListAll.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_update_tags.py index e235f2dccd50..608ff6638451 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ddos_protection_plan_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DdosProtectionPlanUpdateTags.json +# x-ms-original-file: 2025-09-01/DdosProtectionPlanUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_get.py index 26c660f7cd3d..aba0ef5d3eb2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DefaultSecurityRuleGet.json +# x-ms-original-file: 2025-09-01/DefaultSecurityRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_list.py index 905cea68c48a..4ca56f7d7e6b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/default_security_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DefaultSecurityRuleList.json +# x-ms-original-file: 2025-09-01/DefaultSecurityRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_create.py b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_create.py index 9df1e8f5d9e4..0a2e15745102 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_create.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DscpConfigurationCreate.json +# x-ms-original-file: 2025-09-01/DscpConfigurationCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_delete.py index 1f0e36ca76b4..ad5c1e0d409f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/DscpConfigurationDelete.json +# x-ms-original-file: 2025-09-01/DscpConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_get.py index 116677cbb7f0..221f99f26a60 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/DscpConfigurationGet.json +# x-ms-original-file: 2025-09-01/DscpConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list.py index 5cb36e81c13d..c05df46d4aba 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DscpConfigurationList.json +# x-ms-original-file: 2025-09-01/DscpConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list_all.py index f576b61545f8..b2566f030378 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/dscp_configuration_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/DscpConfigurationListAll.json +# x-ms-original-file: 2025-09-01/DscpConfigurationListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_connection.py b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_connection.py index 8e05421a0f00..c4525b8b7cea 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_connection.py +++ b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_connection.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/EffectiveRoutesListForConnection.json +# x-ms-original-file: 2025-09-01/EffectiveRoutesListForConnection.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_route_table.py b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_route_table.py index ebef70072417..85def93b0cb8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_route_table.py +++ b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_route_table.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/EffectiveRoutesListForRouteTable.json +# x-ms-original-file: 2025-09-01/EffectiveRoutesListForRouteTable.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_virtual_hub.py b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_virtual_hub.py index 61509b3cdff9..2aa5dfd54188 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_virtual_hub.py +++ b/sdk/network/azure-mgmt-network/generated_samples/effective_routes_list_for_virtual_hub.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/EffectiveRoutesListForVirtualHub.json +# x-ms-original-file: 2025-09-01/EffectiveRoutesListForVirtualHub.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/endpoint_services_list.py b/sdk/network/azure-mgmt-network/generated_samples/endpoint_services_list.py index a37a17461b48..331bfd88cedb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/endpoint_services_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/endpoint_services_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/EndpointServicesList.json +# x-ms-original-file: 2025-09-01/EndpointServicesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_arp_table_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_arp_table_list.py index d7ffd1ec3591..870743146128 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_arp_table_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_arp_table_list.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitARPTableList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitARPTableList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_create.py index 8a885682c762..eb07bfdad5df 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitAuthorizationCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitAuthorizationCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_delete.py index 4250567bae18..4f90a6240849 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitAuthorizationDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitAuthorizationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_get.py index 807e1dc2f9d7..aab988b2e3be 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitAuthorizationGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitAuthorizationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_list.py index fb2214df4a0f..9faa4cb897be 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_authorization_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitAuthorizationList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitAuthorizationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_create.py index d91907e67008..8969b90a3a86 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_create.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitConnectionCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitConnectionCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_delete.py index c1c6aca3c73c..ac89ae5e9ba9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitConnectionDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_get.py index c8d6605e684c..8cb841bdc61e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitConnectionGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_list.py index 00a6b7785908..6d4636272461 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_connection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitConnectionList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create.py index fd112e42461b..e4815a415715 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create_on_express_route_port.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create_on_express_route_port.py index 9a46458e49e9..03f1006dca5b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create_on_express_route_port.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_create_on_express_route_port.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitCreateOnExpressRoutePort.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitCreateOnExpressRoutePort.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_delete.py index 303736e764dc..e3eebae0c685 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get.py index 278417c89983..e92817082376 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_all_tests_details.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_all_tests_details.py index b0af57104389..23c7fb50b1e1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_all_tests_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_all_tests_details.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitGetCircuitLinkFailoverAllTestsDetails.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitGetCircuitLinkFailoverAllTestsDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_single_test_details.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_single_test_details.py index 9f778e9bc9fe..d9eb0bee34b2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_single_test_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_get_circuit_link_failover_single_test_details.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitGetCircuitLinkFailoverSingleTestDetails.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitGetCircuitLinkFailoverSingleTestDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_resource_group.py index 5f373a14ea8a..1e27376e1dd2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_subscription.py index fc33a037a4ac..775795ac8304 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitListBySubscription.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_create.py index 47495ec31a68..d1221ccda913 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_create.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitPeeringCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitPeeringCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_delete.py index da9e720563e1..f1793cfdc129 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitPeeringDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitPeeringDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_get.py index 4038db1feaf0..8f697db1e72f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitPeeringGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_list.py index 081f95a028b6..098af956d008 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitPeeringList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitPeeringList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py index ab4310f2385c..1de5e81400b1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_peering_stats.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitPeeringStats.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitPeeringStats.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_list.py index e1d9444860ae..00b1ec0e7f8f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_list.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitRouteTableList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitRouteTableList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_summary_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_summary_list.py index 5bb79f703d24..92efec6a5f69 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_summary_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_route_table_summary_list.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitRouteTableSummaryList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitRouteTableSummaryList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_start_circuit_link_failover_test.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_start_circuit_link_failover_test.py index 1cf57e429d3f..58ce4481b6dd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_start_circuit_link_failover_test.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_start_circuit_link_failover_test.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitStartCircuitLinkFailoverTest.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitStartCircuitLinkFailoverTest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stats.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stats.py index f0a1869f5093..f3fcdc8ac4bc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stats.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stats.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitStats.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitStats.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stop_circuit_link_failover_test.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stop_circuit_link_failover_test.py index 43272ca25bf8..c08dec28dfe8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stop_circuit_link_failover_test.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_stop_circuit_link_failover_test.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitStopCircuitLinkFailoverTest.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitStopCircuitLinkFailoverTest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_update_tags.py index b59addcba347..f1bbd67e95ba 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_circuit_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCircuitUpdateTags.json +# x-ms-original-file: 2025-09-01/ExpressRouteCircuitUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_create.py index 6978f7fc9abe..b1082347dbb1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_create.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteConnectionCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteConnectionCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_delete.py index 562cbf6a7dbe..654b8f9b75d5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteConnectionDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_get.py index 2182ccd94b10..d5dc2d072803 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteConnectionGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_list.py index 2c4c74937a6a..1d6ed9edc4d6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_connection_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteConnectionList.json +# x-ms-original-file: 2025-09-01/ExpressRouteConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_create.py index ad5b098b1b2b..e2fec76e4de1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_create.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionBgpPeeringCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionBgpPeeringCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_delete.py index f1ca7e5d7398..9219bcfd286a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionBgpPeeringDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionBgpPeeringDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_get.py index 5f3bf6ce07b3..fe6361968eb2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionBgpPeeringGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionBgpPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_list.py index 368aaf238781..f8bd13f9f1bb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_bgp_peering_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionBgpPeeringList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionBgpPeeringList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_get.py index 541fe2a69ef7..42167d5674e7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list.py index 895f2d0bc56b..6a72242fe0cb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionList.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list_by_resource_group.py index dc52813903b5..5ef250aa790a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update.py index c468a6b4cff7..09db480fb5ca 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionUpdate.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update_tags.py index 4b83a739fedd..7da460baba34 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connection_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionUpdateTags.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_arp_table.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_arp_table.py index fc64860c55e9..a12fe94bcb76 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_arp_table.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_arp_table.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionsArpTable.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionsArpTable.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table.py index b45a8c332ca8..e319b9ed1748 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionsRouteTable.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionsRouteTable.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table_summary.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table_summary.py index dad6890988fe..b48b0d075e7b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table_summary.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_cross_connections_route_table_summary.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteCrossConnectionsRouteTableSummary.json +# x-ms-original-file: 2025-09-01/ExpressRouteCrossConnectionsRouteTableSummary.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_create.py index 52992f3567d4..dfbf258a1e9e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayCreate.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_delete.py index dcb39bc83a3a..e3aafb9c6661 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayDelete.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get.py index 23b9becff796..aefc1bef3a8c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_all_tests_details.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_all_tests_details.py index a966c0a88879..8379422d0178 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_all_tests_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_all_tests_details.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayGetFailoverAllTestsDetails.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayGetFailoverAllTestsDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_single_test_details.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_single_test_details.py index afeeaea25f8c..732966ae67bc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_single_test_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_failover_single_test_details.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayGetFailoverSingleTestDetails.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayGetFailoverSingleTestDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_resiliency_information.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_resiliency_information.py index fb61437c8757..9d9a8e91698d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_resiliency_information.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_resiliency_information.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayGetResiliencyInformation.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayGetResiliencyInformation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_routes_information.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_routes_information.py index b5b00ae9df85..c39d92006f77 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_routes_information.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_get_routes_information.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayGetRoutesInformation.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayGetRoutesInformation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_resource_group.py index 9e8e8c21dd0f..eb9d84eeb2dc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_resource_group.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_subscription.py index fd9f7392cdcc..704b49fd922e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_list_by_subscription.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayListBySubscription.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_start_site_failover_test.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_start_site_failover_test.py index 68e295f3538e..edd1ed0cd119 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_start_site_failover_test.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_start_site_failover_test.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayStartSiteFailoverTest.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayStartSiteFailoverTest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_stop_site_failover_test.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_stop_site_failover_test.py index 93e45833d34b..744355e6b82d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_stop_site_failover_test.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_stop_site_failover_test.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayStopSiteFailoverTest.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayStopSiteFailoverTest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_update_tags.py index eccc39986f54..204860a74f97 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/ExpressRouteGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_create.py new file mode 100644 index 000000000000..73d77e260eaa --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_create.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_create.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.begin_create_or_update( + resource_group_name="rg1", + express_route_lag_name="lagName", + resource={ + "location": "eastus2euap", + "properties": { + "bandwidthInGbps": 100, + "billingType": "MeteredData", + "encapsulation": "Dot1Q", + "lacpTimer": "Fast", + "minimumActivePortsRequired": 4, + "numberOfPorts": 4, + "peeringLocation": "peeringLocationName", + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagCreate.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_delete.py new file mode 100644 index 000000000000..281478d0b497 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_delete.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.express_route_lags.begin_delete( + resource_group_name="rg1", + express_route_lag_name="lagName", + ).result() + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_get.py new file mode 100644 index 000000000000..abc0edb30f69 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.get( + resource_group_name="rg1", + express_route_lag_name="lagName", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_get.py new file mode 100644 index 000000000000..1219b3daa7b0 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_link_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.links_get( + resource_group_name="rg1", + express_route_lag_name="lagName", + link_name="linkName", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagLinkGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_list.py new file mode 100644 index 000000000000..912835b27a80 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_link_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_link_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.links_list( + resource_group_name="rg1", + express_route_lag_name="lagName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagLinkList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list.py new file mode 100644 index 000000000000..df660035995b --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.list() + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list_by_resource_group.py new file mode 100644 index 000000000000..d97c9b818fc1 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_list_by_resource_group.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_list_by_resource_group.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.list_by_resource_group( + resource_group_name="rg1", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagListByResourceGroup.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_get.py new file mode 100644 index 000000000000..c2305637abc6 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_get.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_member_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.members_get( + resource_group_name="rg1", + express_route_lag_name="lagName", + link_name="linkName", + member_name="memberName", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagMemberGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_list.py new file mode 100644 index 000000000000..621f5216c766 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_member_list.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_member_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.members_list( + resource_group_name="rg1", + express_route_lag_name="lagName", + link_name="linkName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagMemberList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_patch.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_patch.py new file mode 100644 index 000000000000..3f4bef3cdad3 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_lag_patch.py @@ -0,0 +1,52 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_lag_patch.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.update( + resource_group_name="rg1", + express_route_lag_name="lagName", + properties={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/lagidentity": {} + }, + }, + "tags": {"tag1": "value1", "tag2": "value2"}, + }, + ) + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteLagPatch.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_link_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_link_get.py index 40fd58a9bb2a..1b2d8c138c10 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_link_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_link_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRouteLinkGet.json +# x-ms-original-file: 2025-09-01/ExpressRouteLinkGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_link_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_link_list.py index 446b423a6ab8..3ed03c61cb36 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_link_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_link_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteLinkList.json +# x-ms-original-file: 2025-09-01/ExpressRouteLinkList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_activation_key.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_activation_key.py new file mode 100644 index 000000000000..1ff9d376c82e --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_activation_key.py @@ -0,0 +1,55 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_multi_cloud_circuit_create_with_activation_key.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_circuits.begin_create_or_update( + resource_group_name="rg1", + circuit_name="circuitName", + parameters={ + "location": "eastus2euap", + "properties": { + "activationKey": "eyJzaGFyZWRDb25uZWN0aW9uVXVpZCI6IjE1ODliMDhhLTNmYWQtNDkzNi05MGQyLWE5ZDg3Y2JkNmM3MCIsImNvbm5lY3Rpb25TaXplTWJwcyI6MTAwMC4wLCJkZXN0aW5hdGlvbkFjY291bnRJZCI6IjEyMzQ1Njc4OSIsImVudmlyb25tZW50IjoidXN3ZXN0MiIsImRlc3RpbmF0aW9uRW52aXJvbm1lbnRVcmkiOiIvc3Vic2NyaXB0aW9ucy85OWMzMzc3Ni05ZjRlLTRlNTgtYWJlOC05MjYzZGIxYjljNmUvcmVzb3VyY2VHcm91cHMvQ3Jvc3NDb25uZWN0aW9uLXVzd2VzdDIvcHJvdmlkZXJzL01pY3Jvc29mdC5OZXR3b3JrL2V4cHJlc3NSb3V0ZUNyb3NzQ29ubmVjdGlvbnMvMTU4OWIwOGEtM2ZhZC00OTM2LTkwZDItYTlkODdjYmQ2YzcwIiwidmVyc2lvbiI6MX0=", + "serviceProviderProperties": { + "bandwidthInMbps": 200, + "peeringLocation": "uswest2", + "serviceProviderName": "AWS", + }, + }, + "sku": {"family": "MeteredData", "name": "MultiCloud_MeteredData", "tier": "MultiCloud"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteMultiCloudCircuitCreateWithActivationKey.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_partner_account_id.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_partner_account_id.py new file mode 100644 index 000000000000..bfad4eb99dd0 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_create_with_partner_account_id.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_multi_cloud_circuit_create_with_partner_account_id.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_circuits.begin_create_or_update( + resource_group_name="rg1", + circuit_name="circuitName", + parameters={ + "location": "eastus2euap", + "properties": { + "partnerAccountId": "123456789", + "serviceProviderProperties": { + "bandwidthInMbps": 200, + "peeringLocation": "uswest2", + "serviceProviderName": "AWS", + }, + }, + "sku": {"family": "MeteredData", "name": "MultiCloud_MeteredData", "tier": "MultiCloud"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteMultiCloudCircuitCreateWithPartnerAccountId.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_delete.py new file mode 100644 index 000000000000..67ea48da199d --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_delete.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_multi_cloud_circuit_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.express_route_circuits.begin_delete( + resource_group_name="rg1", + circuit_name="circuitName", + ).result() + + +# x-ms-original-file: 2025-09-01/ExpressRouteMultiCloudCircuitDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_get.py new file mode 100644 index 000000000000..7bda26995fce --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_multi_cloud_circuit_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python express_route_multi_cloud_circuit_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_circuits.get( + resource_group_name="rg1", + circuit_name="circuitName", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/ExpressRouteMultiCloudCircuitGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_create.py index 3fdcc93777dd..f47952989466 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortAuthorizationCreate.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortAuthorizationCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_delete.py index 1132f8e5cab0..6141ae5d9128 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRoutePortAuthorizationDelete.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortAuthorizationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_get.py index eaf45766e91e..e709506ecd87 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortAuthorizationGet.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortAuthorizationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_list.py index d004cc8ecc6f..f13809c00d5b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_authorization_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRoutePortAuthorizationList.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortAuthorizationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_create.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_create.py index fe893d9d8afe..607a96e14079 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_create.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortCreate.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_delete.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_delete.py index 1fc581e87760..4dbc8f667576 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ExpressRoutePortDelete.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_get.py index 33d222080132..ecdf0666963b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortGet.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list.py index b56559fc00c6..7da0e5fea73f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRoutePortList.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list_by_resource_group.py index 4f4966430a12..607d83920873 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRoutePortListByResourceGroup.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_link.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_link.py index 4e9dd901f8ad..d267947c234d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_link.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_link.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortUpdateLink.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortUpdateLink.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_tags.py index d7390c41b934..949a4ab010de 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_port_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortUpdateTags.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_get.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_get.py index 17c24f1a4f8d..7569f285f4cd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ExpressRoutePortsLocationGet.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortsLocationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_list.py index 12fca186ab91..5e12dacf50b7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_ports_location_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRoutePortsLocationList.json +# x-ms-original-file: 2025-09-01/ExpressRoutePortsLocationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_list.py index 6a2b45a1f03f..fe1d18fb5cee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ExpressRouteProviderList.json +# x-ms-original-file: 2025-09-01/ExpressRouteProviderList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port.py index ec71ac7ee1c9..298a8c5bbbfe 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/expressRouteProviderPort.json +# x-ms-original-file: 2025-09-01/expressRouteProviderPort.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port_list.py b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port_list.py index 48a15db2704d..54d33b1fc75a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/express_route_provider_port_list.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/expressRouteProviderPortList.json +# x-ms-original-file: 2025-09-01/expressRouteProviderPortList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_delete.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_delete.py index 0eb529eb1ff0..8fc9588f161a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/FirewallPolicyDelete.json +# x-ms-original-file: 2025-09-01/FirewallPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_delete.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_delete.py index 9879417e8520..a25450e875b4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/FirewallPolicyDraftDelete.json +# x-ms-original-file: 2025-09-01/FirewallPolicyDraftDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_deploy.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_deploy.py index 0a8073d54dcb..7b4991748eaf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_deploy.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_deploy.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/FirewallPolicyDraftDeploy.json +# x-ms-original-file: 2025-09-01/FirewallPolicyDraftDeploy.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_get.py index f84591720b2b..02849659ec76 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyDraftGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyDraftGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_put.py index 05dc25ec25bb..55fc17fa04e1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_draft_put.py @@ -95,6 +95,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyDraftPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyDraftPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_get.py index f11093adf1b7..ec074f18c9c1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_delete.py new file mode 100644 index 000000000000..0af981260404 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python firewall_policy_kube_selector_group_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.firewall_policy_kube_selector_groups.begin_delete( + resource_group_name="rg1", + firewall_policy_name="firewallPolicy", + kube_selector_group_name="kubeSelectorGroup1", + ).result() + + +# x-ms-original-file: 2025-09-01/FirewallPolicyKubeSelectorGroupDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_get.py new file mode 100644 index 000000000000..1ec5eca8d845 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python firewall_policy_kube_selector_group_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.firewall_policy_kube_selector_groups.get( + resource_group_name="rg1", + firewall_policy_name="firewallPolicy", + kube_selector_group_name="kubeSelectorGroup1", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/FirewallPolicyKubeSelectorGroupGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_list.py new file mode 100644 index 000000000000..38ef61cecd7d --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python firewall_policy_kube_selector_group_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.firewall_policy_kube_selector_groups.list( + resource_group_name="rg1", + firewall_policy_name="firewallPolicy", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/FirewallPolicyKubeSelectorGroupList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_put.py new file mode 100644 index 000000000000..459198d27127 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_kube_selector_group_put.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python firewall_policy_kube_selector_group_put.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.firewall_policy_kube_selector_groups.begin_create_or_update( + resource_group_name="rg1", + firewall_policy_name="firewallPolicy", + kube_selector_group_name="kubeSelectorGroup1", + resource={ + "properties": { + "namespaceSelector": {"matchLabels": {"kubernetes.io/metadata.name": "production"}}, + "podSelector": { + "matchExpressions": [{"key": "tier", "operator": "In", "values": ["frontend", "backend"]}], + "matchLabels": {"app": "web", "env": "production"}, + }, + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/FirewallPolicyKubeSelectorGroupPut.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_resource_group.py index 59f31f0c0182..c6a0a1faf42b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/FirewallPolicyListByResourceGroup.json +# x-ms-original-file: 2025-09-01/FirewallPolicyListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_subscription.py index e1b8d3fd3b0b..4abe18337254 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/FirewallPolicyListBySubscription.json +# x-ms-original-file: 2025-09-01/FirewallPolicyListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_get.py index 4f7b50c4be3f..340306c5b818 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyNatRuleCollectionGroupGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyNatRuleCollectionGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_put.py index 6f04876ed6fe..9de84cf78ef8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_nat_rule_collection_group_put.py @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyNatRuleCollectionGroupPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyNatRuleCollectionGroupPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_patch.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_patch.py index 2ccb2f5f5561..1c454b84bdeb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyPatch.json +# x-ms-original-file: 2025-09-01/FirewallPolicyPatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_put.py index a5fbdd131a00..3ae3e84253ef 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_put.py @@ -101,6 +101,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides.py index 59a714555d66..806600ee89e4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyQuerySignatureOverrides.json +# x-ms-original-file: 2025-09-01/FirewallPolicyQuerySignatureOverrides.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides_filter_values.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides_filter_values.py index 2f65d63c4288..9d3c485c92f2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides_filter_values.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_query_signature_overrides_filter_values.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyQuerySignatureOverridesFilterValues.json +# x-ms-original-file: 2025-09-01/FirewallPolicyQuerySignatureOverridesFilterValues.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_delete.py index 89be28c1f3e3..2b925acb23c5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupDelete.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_delete.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_delete.py index 5ab8dfb22968..c9413fac0572 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupDraftDelete.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupDraftDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_get.py index 7ff5169a544d..ae11719e6c51 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupDraftGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupDraftGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_put.py index 19a3dbfc6343..83080c29ceeb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_draft_put.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupDraftPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupDraftPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_get.py index 594675c7d97f..de6da4ea6ec4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_list.py index 9177bcb1ba80..cdaffd023ad5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupList.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_put.py index 175fc381de08..2a3f894379d1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_put.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_http_headers_to_insert.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_http_headers_to_insert.py index fef40e8e3867..3256d390da76 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_http_headers_to_insert.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_http_headers_to_insert.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_get.py index 07b189714c84..bbd16609bb63 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_list.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_list.py index 6626772f1bc0..9a4f429b6856 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_put.py index 4b0613b395f6..c5459c1750d9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_ip_groups_put.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_get.py index 46bdc2e07d1b..7696c139e81a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_list.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_list.py index 9b6fafb6c04a..925c5739dbb6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_put.py index 12faa49bf93f..93b63ba35ac5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_rule_collection_group_with_web_categories_put.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_get.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_get.py index 6d91c434e08d..e7158597f9a3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicySignatureOverridesGet.json +# x-ms-original-file: 2025-09-01/FirewallPolicySignatureOverridesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_list.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_list.py index da3126b49d7a..2cf8d2414ffe 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicySignatureOverridesList.json +# x-ms-original-file: 2025-09-01/FirewallPolicySignatureOverridesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_patch.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_patch.py index 62248832cf3d..15b87dec4b69 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_patch.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicySignatureOverridesPatch.json +# x-ms-original-file: 2025-09-01/FirewallPolicySignatureOverridesPatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_put.py b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_put.py index d3bb731f21ec..399271369ea6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/firewall_policy_signature_overrides_put.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/FirewallPolicySignatureOverridesPut.json +# x-ms-original-file: 2025-09-01/FirewallPolicySignatureOverridesPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_create.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_create.py new file mode 100644 index 000000000000..8b1f4eb0f6db --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_create.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_create.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.first_party_service_tags.begin_create_or_update( + resource_group_name="rg1", + first_party_service_tag_name="myServiceTag", + parameters={"location": "eastus", "properties": {"value": "myServiceTagValue"}, "tags": {"key1": "value1"}}, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagCreate.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_delete.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_delete.py new file mode 100644 index 000000000000..649ab7ef00b8 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_delete.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.first_party_service_tags.begin_delete( + resource_group_name="rg1", + first_party_service_tag_name="myServiceTag", + ).result() + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_get.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_get.py new file mode 100644 index 000000000000..2bf2b41635ca --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.first_party_service_tags.get( + resource_group_name="rg1", + first_party_service_tag_name="myServiceTag", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list.py new file mode 100644 index 000000000000..23b8d713298f --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.first_party_service_tags.list( + resource_group_name="rg1", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list_all.py new file mode 100644 index 000000000000..7bb8aa808abf --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_list_all.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_list_all.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.first_party_service_tags.list_all() + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagListAll.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_update_tags.py new file mode 100644 index 000000000000..bcef8052f771 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/first_party_service_tag_update_tags.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python first_party_service_tag_update_tags.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.first_party_service_tags.begin_update_tags( + resource_group_name="rg1", + first_party_service_tag_name="myServiceTag", + parameters={"tags": {"tag1": "value1", "tag2": "value2"}}, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/FirstPartyServiceTagUpdateTags.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_lags_loa.py b/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_lags_loa.py new file mode 100644 index 000000000000..a0a348e2b9ef --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_lags_loa.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python generate_express_route_lags_loa.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.express_route_lags.generate_loa( + resource_group_name="rg1", + express_route_lag_name="lagName", + body={"customerName": "Customer Name", "members": ["member1", "member2", "member3", "member4"]}, + ) + print(response) + + +# x-ms-original-file: 2025-09-01/GenerateExpressRouteLagsLOA.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_ports_loa.py b/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_ports_loa.py index 2b461358fbf7..b952205a804b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_ports_loa.py +++ b/sdk/network/azure-mgmt-network/generated_samples/generate_express_route_ports_loa.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GenerateExpressRoutePortsLOA.json +# x-ms-original-file: 2025-09-01/GenerateExpressRoutePortsLOA.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/generate_virtual_wan_vpn_server_configuration_vpn_profile.py b/sdk/network/azure-mgmt-network/generated_samples/generate_virtual_wan_vpn_server_configuration_vpn_profile.py index 8f5547ed291b..8a564abf91d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/generate_virtual_wan_vpn_server_configuration_vpn_profile.py +++ b/sdk/network/azure-mgmt-network/generated_samples/generate_virtual_wan_vpn_server_configuration_vpn_profile.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GenerateVirtualWanVpnServerConfigurationVpnProfile.json +# x-ms-original-file: 2025-09-01/GenerateVirtualWanVpnServerConfigurationVpnProfile.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests.py b/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests.py index 1b1e3d8076b8..9f9138340073 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests.py +++ b/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/GetApplicationGatewayWafDynamicManifests.json +# x-ms-original-file: 2025-09-01/GetApplicationGatewayWafDynamicManifests.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests_default.py b/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests_default.py index d358d30883d1..2f6d1d19c35c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests_default.py +++ b/sdk/network/azure-mgmt-network/generated_samples/get_application_gateway_waf_dynamic_manifests_default.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GetApplicationGatewayWafDynamicManifestsDefault.json +# x-ms-original-file: 2025-09-01/GetApplicationGatewayWafDynamicManifestsDefault.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/get_inbound_routes.py b/sdk/network/azure-mgmt-network/generated_samples/get_inbound_routes.py index cbc08f7726fb..3e82638e7154 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/get_inbound_routes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/get_inbound_routes.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GetInboundRoutes.json +# x-ms-original-file: 2025-09-01/GetInboundRoutes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/get_outbound_routes.py b/sdk/network/azure-mgmt-network/generated_samples/get_outbound_routes.py index e778e3312c2a..12ac01f329d8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/get_outbound_routes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/get_outbound_routes.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GetOutboundRoutes.json +# x-ms-original-file: 2025-09-01/GetOutboundRoutes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/get_virtual_wan_vpn_server_configurations.py b/sdk/network/azure-mgmt-network/generated_samples/get_virtual_wan_vpn_server_configurations.py index 88d904d7e8e7..3e17f5ceb37e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/get_virtual_wan_vpn_server_configurations.py +++ b/sdk/network/azure-mgmt-network/generated_samples/get_virtual_wan_vpn_server_configurations.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/GetVirtualWanVpnServerConfigurations.json +# x-ms-original-file: 2025-09-01/GetVirtualWanVpnServerConfigurations.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py index 9891105a3d81..8ec3f9ee05b3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/HubRouteTableDelete.json +# x-ms-original-file: 2025-09-01/HubRouteTableDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_get.py b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_get.py index 1b1aabf4142f..313a315580b0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/HubRouteTableGet.json +# x-ms-original-file: 2025-09-01/HubRouteTableGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_list.py b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_list.py index 7751e4a03373..8ff4d4dce268 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/HubRouteTableList.json +# x-ms-original-file: 2025-09-01/HubRouteTableList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_put.py b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_put.py index 2f424c0ee269..9238d1bc6647 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_put.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/HubRouteTablePut.json +# x-ms-original-file: 2025-09-01/HubRouteTablePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_delete.py index 17dc54d38261..1d954b72d379 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/HubVirtualNetworkConnectionDelete.json +# x-ms-original-file: 2025-09-01/HubVirtualNetworkConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_get.py index 3b6f37248b85..6592c0c0c18c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/HubVirtualNetworkConnectionGet.json +# x-ms-original-file: 2025-09-01/HubVirtualNetworkConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_list.py index 72db2d0aaa0b..2e906a46fec0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/HubVirtualNetworkConnectionList.json +# x-ms-original-file: 2025-09-01/HubVirtualNetworkConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_put.py b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_put.py index 8898c60ef3ae..508c4e544cb5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/hub_virtual_network_connection_put.py @@ -38,6 +38,7 @@ def main(): hub_virtual_network_connection_parameters={ "properties": { "enableInternetSecurity": False, + "enableOnlyIpv6Peering": "Disabled", "remoteVirtualNetwork": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1" }, @@ -81,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/HubVirtualNetworkConnectionPut.json +# x-ms-original-file: 2025-09-01/HubVirtualNetworkConnectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_create.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_create.py index a86f339572e3..3daeffa30af2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_create.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InboundNatRuleCreate.json +# x-ms-original-file: 2025-09-01/InboundNatRuleCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_delete.py index ab2eaf592637..9f62fca28d0b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/InboundNatRuleDelete.json +# x-ms-original-file: 2025-09-01/InboundNatRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_get.py index d56fda95d387..93fad1e3644a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InboundNatRuleGet.json +# x-ms-original-file: 2025-09-01/InboundNatRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_list.py index 1d6f6664dabb..c65960a62733 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_nat_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/InboundNatRuleList.json +# x-ms-original-file: 2025-09-01/InboundNatRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_get.py index 30abefd23477..2aebe9a62181 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InboundSecurityRuleGet.json +# x-ms-original-file: 2025-09-01/InboundSecurityRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_put.py index 0bcbb3ca246f..088f8b8aa33e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/inbound_security_rule_put.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InboundSecurityRulePut.json +# x-ms-original-file: 2025-09-01/InboundSecurityRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_create.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_create.py index c883e222c7c0..e21e2d3261a7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_create.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InterconnectGroupCreate.json +# x-ms-original-file: 2025-09-01/InterconnectGroupCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_delete.py index 6a091a81ab8e..389c9722cb53 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/InterconnectGroupDelete.json +# x-ms-original-file: 2025-09-01/InterconnectGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get.py index 6f52fc96fe24..7576e79ffa4b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InterconnectGroupGet.json +# x-ms-original-file: 2025-09-01/InterconnectGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get_node_availability.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get_node_availability.py index d886a9fde362..da14f3db7e7c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get_node_availability.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_get_node_availability.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InterconnectGroupGetNodeAvailability.json +# x-ms-original-file: 2025-09-01/InterconnectGroupGetNodeAvailability.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list.py index 2628b13f6995..7f2aac1f0ebb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/InterconnectGroupList.json +# x-ms-original-file: 2025-09-01/InterconnectGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list_all.py index b24d35e2fb0e..441ca8aee214 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/InterconnectGroupListAll.json +# x-ms-original-file: 2025-09-01/InterconnectGroupListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_update_tags.py index d761bde86f7d..8c1dde6ba6f1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/interconnect_group_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/InterconnectGroupUpdateTags.json +# x-ms-original-file: 2025-09-01/InterconnectGroupUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_create.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_create.py index fa041d32c422..4b38be62aaf0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpAllocationCreate.json +# x-ms-original-file: 2025-09-01/IpAllocationCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_delete.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_delete.py index b11364b0fdef..eeb7d6a28a7a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/IpAllocationDelete.json +# x-ms-original-file: 2025-09-01/IpAllocationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_get.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_get.py index b87ae6645796..04ed4384a3f0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpAllocationGet.json +# x-ms-original-file: 2025-09-01/IpAllocationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list.py index 2d5d4136f12a..bfc46e966ea9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpAllocationList.json +# x-ms-original-file: 2025-09-01/IpAllocationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list_by_resource_group.py index 0096fa1bb764..581793731db0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpAllocationListByResourceGroup.json +# x-ms-original-file: 2025-09-01/IpAllocationListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_update_tags.py index 26a1c426657e..b4f63286fa69 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_allocation_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpAllocationUpdateTags.json +# x-ms-original-file: 2025-09-01/IpAllocationUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_create.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_create.py index 1eb4f9456f19..8f488073ad5d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_create.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpGroupsCreate.json +# x-ms-original-file: 2025-09-01/IpGroupsCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_delete.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_delete.py index cbd35c9c8d59..1ee6494966de 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/IpGroupsDelete.json +# x-ms-original-file: 2025-09-01/IpGroupsDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_get.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_get.py index f773129604f0..f14907c16cc8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpGroupsGet.json +# x-ms-original-file: 2025-09-01/IpGroupsGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_resource_group.py index 559b55621ea3..27656d812804 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpGroupsListByResourceGroup.json +# x-ms-original-file: 2025-09-01/IpGroupsListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_subscription.py index 0b08fab32975..831f8cd4919d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpGroupsListBySubscription.json +# x-ms-original-file: 2025-09-01/IpGroupsListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_update_tags.py index ae24de7c0b78..4027b3e702e5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ip_groups_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ip_groups_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpGroupsUpdateTags.json +# x-ms-original-file: 2025-09-01/IpGroupsUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_create.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_create.py index e8bcf42dd941..890aee64baa7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_create.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpamPools_Create.json +# x-ms-original-file: 2025-09-01/IpamPools_Create.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_delete.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_delete.py index 70cc0b66d905..321fb945ec9e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/IpamPools_Delete.json +# x-ms-original-file: 2025-09-01/IpamPools_Delete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get.py index df6ed5412717..0a226a882951 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpamPools_Get.json +# x-ms-original-file: 2025-09-01/IpamPools_Get.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get_pool_usage.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get_pool_usage.py index da182eac17b4..0db056f6cc83 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get_pool_usage.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_get_pool_usage.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpamPools_GetPoolUsage.json +# x-ms-original-file: 2025-09-01/IpamPools_GetPoolUsage.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list.py index b46f69abff67..0412424435df 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpamPools_List.json +# x-ms-original-file: 2025-09-01/IpamPools_List.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list_associated_resources.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list_associated_resources.py index 0bdf9204aea2..84ebc2ead9b0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list_associated_resources.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_list_associated_resources.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/IpamPools_ListAssociatedResources.json +# x-ms-original-file: 2025-09-01/IpamPools_ListAssociatedResources.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_update.py b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_update.py index e79472534d77..1c37a03330d2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/ipam_pools_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/IpamPools_Update.json +# x-ms-original-file: 2025-09-01/IpamPools_Update.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_list_with_backend_addresses_pool_type.py b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_list_with_backend_addresses_pool_type.py index 6086477d76fa..480d8416adc4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_list_with_backend_addresses_pool_type.py +++ b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_list_with_backend_addresses_pool_type.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LBBackendAddressPoolListWithBackendAddressesPoolType.json +# x-ms-original-file: 2025-09-01/LBBackendAddressPoolListWithBackendAddressesPoolType.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_get.py b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_get.py index 684367172085..793818317382 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LBBackendAddressPoolWithBackendAddressesGet.json +# x-ms-original-file: 2025-09-01/LBBackendAddressPoolWithBackendAddressesGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_put.py b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_put.py index d86852982f2f..0d920925d4cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/lb_backend_address_pool_with_backend_addresses_put.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LBBackendAddressPoolWithBackendAddressesPut.json +# x-ms-original-file: 2025-09-01/LBBackendAddressPoolWithBackendAddressesPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_delete.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_delete.py index 64d6de5139eb..c257dfd3ea49 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/LoadBalancerBackendAddressPoolDelete.json +# x-ms-original-file: 2025-09-01/LoadBalancerBackendAddressPoolDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_get.py index d108565e839f..cf502b57277d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerBackendAddressPoolGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerBackendAddressPoolGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_list.py index 65f330afee07..f94a746a592b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_backend_address_pool_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerBackendAddressPoolList.json +# x-ms-original-file: 2025-09-01/LoadBalancerBackendAddressPoolList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create.py index 9e1f1a1f355a..5953165464d1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create.py @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreate.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_consumer.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_consumer.py index 2bcd88bee8f0..04a25a154eb6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_consumer.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_consumer.py @@ -110,6 +110,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateGatewayLoadBalancerConsumer.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateGatewayLoadBalancerConsumer.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_one_backend_pool.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_one_backend_pool.py index 050837ce93bb..a6252a6ecbb8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_one_backend_pool.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_one_backend_pool.py @@ -104,6 +104,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_two_backend_pool.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_two_backend_pool.py index 05a3a3f135d7..a983e6e7a12c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_two_backend_pool.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_gateway_load_balancer_provider_with_two_backend_pool.py @@ -98,6 +98,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_global_tier.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_global_tier.py index 2ae60fba86ce..66945b4eb1a5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_global_tier.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_global_tier.py @@ -106,6 +106,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateGlobalTier.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateGlobalTier.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_standard_sku.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_standard_sku.py index 6a8c003bd4c2..908598da32dc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_standard_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_standard_sku.py @@ -107,6 +107,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateStandardSku.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateStandardSku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_advanced_mode.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_advanced_mode.py new file mode 100644 index 000000000000..295a1c347df7 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_advanced_mode.py @@ -0,0 +1,97 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python load_balancer_create_with_advanced_mode.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.load_balancers.begin_create_or_update( + resource_group_name="rg1", + load_balancer_name="lb", + parameters={ + "location": "eastus", + "properties": { + "backendAddressPools": [{"name": "be-lb", "properties": {}}], + "frontendIPConfigurations": [ + { + "name": "fe-lb", + "properties": { + "enableConnectionTracking": True, + "subnet": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" + }, + }, + } + ], + "loadBalancingRules": [ + { + "name": "rulelb", + "properties": { + "backendAddressPool": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" + }, + "backendPort": 4789, + "enableFloatingIP": True, + "frontendIPConfiguration": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" + }, + "frontendPort": 4789, + "loadDistribution": "Default", + "probe": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" + }, + "protocol": "Udp", + }, + } + ], + "mode": "Advanced", + "probes": [ + { + "name": "probe-lb", + "properties": { + "intervalInSeconds": 15, + "numberOfProbes": 2, + "port": 80, + "probeThreshold": 1, + "protocol": "Http", + "requestPath": "healthcheck.aspx", + }, + } + ], + "scope": "Public", + }, + "sku": {"name": "Standard"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/LoadBalancerCreateWithAdvancedMode.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_inbound_nat_pool.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_inbound_nat_pool.py index bd4722ff6860..779632fc5f3e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_inbound_nat_pool.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_inbound_nat_pool.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateWithInboundNatPool.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateWithInboundNatPool.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_outbound_rules.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_outbound_rules.py index ac69a99ecab4..a120c31da844 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_outbound_rules.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_outbound_rules.py @@ -123,6 +123,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateWithOutboundRules.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateWithOutboundRules.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_sync_mode_property_on_pool.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_sync_mode_property_on_pool.py index c096f742af98..197064ea7cae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_sync_mode_property_on_pool.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_sync_mode_property_on_pool.py @@ -117,6 +117,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateWithSyncModePropertyOnPool.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateWithSyncModePropertyOnPool.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_zones.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_zones.py index 43680f8241e5..092cf065bda4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_zones.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_create_with_zones.py @@ -108,6 +108,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerCreateWithZones.json +# x-ms-original-file: 2025-09-01/LoadBalancerCreateWithZones.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_delete.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_delete.py index 7b32c2e5e838..32f9c6b661eb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/LoadBalancerDelete.json +# x-ms-original-file: 2025-09-01/LoadBalancerDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_get.py index a046881fd08d..fef0e72f9399 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerFrontendIPConfigurationGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerFrontendIPConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_list.py index bddf1114ff74..b4c4c44018d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_frontend_ip_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerFrontendIPConfigurationList.json +# x-ms-original-file: 2025-09-01/LoadBalancerFrontendIPConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get.py index 864fc3c524c6..43c4687e4935 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_inbound_nat_rule_port_mapping.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_inbound_nat_rule_port_mapping.py index 1dba6b07a851..153d2e7bcfb2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_inbound_nat_rule_port_mapping.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_inbound_nat_rule_port_mapping.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerGetInboundNatRulePortMapping.json +# x-ms-original-file: 2025-09-01/LoadBalancerGetInboundNatRulePortMapping.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_reduced.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_reduced.py index 80f3cb0ba4b3..e48eb14c7401 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_reduced.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_get_reduced.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerGetReduced.json +# x-ms-original-file: 2025-09-01/LoadBalancerGetReduced.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_health.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_health.py index ddd5811cd85b..cc334c142fc9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_health.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_health.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerHealth.json +# x-ms-original-file: 2025-09-01/LoadBalancerHealth.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list.py index 0a99c4d34995..d101bd2a408c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerList.json +# x-ms-original-file: 2025-09-01/LoadBalancerList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list_all.py index e41e81738876..063a1a574e3e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerListAll.json +# x-ms-original-file: 2025-09-01/LoadBalancerListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_get.py index 92f333240963..dd2cbff5833e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerLoadBalancingRuleGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerLoadBalancingRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_list.py index effc6f5a851c..12629610e7ff 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_load_balancing_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerLoadBalancingRuleList.json +# x-ms-original-file: 2025-09-01/LoadBalancerLoadBalancingRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_simple.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_simple.py index 18975bb3f488..e43f55ae94dc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_simple.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_simple.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerNetworkInterfaceListSimple.json +# x-ms-original-file: 2025-09-01/LoadBalancerNetworkInterfaceListSimple.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_vmss.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_vmss.py index e672b574e35b..76fbe296f58a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_vmss.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_network_interface_list_vmss.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerNetworkInterfaceListVmss.json +# x-ms-original-file: 2025-09-01/LoadBalancerNetworkInterfaceListVmss.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_get.py index b406ad766d83..f81fe4aad0be 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerOutboundRuleGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerOutboundRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_list.py index 0a23d0733bc7..79ba49c4609f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_outbound_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerOutboundRuleList.json +# x-ms-original-file: 2025-09-01/LoadBalancerOutboundRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_get.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_get.py index 56dd2961e3f7..464b895d979d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerProbeGet.json +# x-ms-original-file: 2025-09-01/LoadBalancerProbeGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_list.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_list.py index 5e0cf5d56198..9874b5918873 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_probe_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LoadBalancerProbeList.json +# x-ms-original-file: 2025-09-01/LoadBalancerProbeList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_update_tags.py index cb3c21d25ba3..0647247a892f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancer_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancer_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LoadBalancerUpdateTags.json +# x-ms-original-file: 2025-09-01/LoadBalancerUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/load_balancers_swap_public_ip_addresses.py b/sdk/network/azure-mgmt-network/generated_samples/load_balancers_swap_public_ip_addresses.py index 26b9a9778654..ec4a4bbcd638 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/load_balancers_swap_public_ip_addresses.py +++ b/sdk/network/azure-mgmt-network/generated_samples/load_balancers_swap_public_ip_addresses.py @@ -56,6 +56,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/LoadBalancersSwapPublicIpAddresses.json +# x-ms-original-file: 2025-09-01/LoadBalancersSwapPublicIpAddresses.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_create.py b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_create.py index d4cd99ed404c..afcc2c9917ae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_create.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LocalNetworkGatewayCreate.json +# x-ms-original-file: 2025-09-01/LocalNetworkGatewayCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_delete.py index 5ff5858ba2ac..30387ad0ba20 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/LocalNetworkGatewayDelete.json +# x-ms-original-file: 2025-09-01/LocalNetworkGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_get.py index 5fb33f60df07..e21ad969a676 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LocalNetworkGatewayGet.json +# x-ms-original-file: 2025-09-01/LocalNetworkGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_list.py index 2e869401184e..ea8acacdaa6d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/LocalNetworkGatewayList.json +# x-ms-original-file: 2025-09-01/LocalNetworkGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_update_tags.py index ae59987fabc8..89c86072300d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/local_network_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/LocalNetworkGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/LocalNetworkGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/migrate_load_balancer_to_ip_based.py b/sdk/network/azure-mgmt-network/generated_samples/migrate_load_balancer_to_ip_based.py index 7f2f8f26c04a..afd07cd4dab6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/migrate_load_balancer_to_ip_based.py +++ b/sdk/network/azure-mgmt-network/generated_samples/migrate_load_balancer_to_ip_based.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/MigrateLoadBalancerToIPBased.json +# x-ms-original-file: 2025-09-01/MigrateLoadBalancerToIPBased.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update.py index 62d772cd4e54..949215629a63 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayCreateOrUpdate.json +# x-ms-original-file: 2025-09-01/NatGatewayCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update_standard_v2_sku.py index 1b5ad54623a2..1e3f44303d5a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_create_or_update_standard_v2_sku.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayCreateOrUpdateStandardV2Sku.json +# x-ms-original-file: 2025-09-01/NatGatewayCreateOrUpdateStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_delete.py index a5ecbcce342e..d9af7d7eb88a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NatGatewayDelete.json +# x-ms-original-file: 2025-09-01/NatGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get.py index d2b7197889d6..70a9fa8ff4ae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayGet.json +# x-ms-original-file: 2025-09-01/NatGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get_standard_v2_sku.py index 40b49b6e067d..5151e27cff0e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_get_standard_v2_sku.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayGetStandardV2Sku.json +# x-ms-original-file: 2025-09-01/NatGatewayGetStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list.py index 1f676033e5b6..1212d7e685e7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NatGatewayList.json +# x-ms-original-file: 2025-09-01/NatGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list_all.py index 79acb0076a59..a234d614596a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NatGatewayListAll.json +# x-ms-original-file: 2025-09-01/NatGatewayListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags.py index f46502b7ee20..8bca5557d888 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/NatGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags_standard_v2_sku.py index 3da3979747ac..92098bf1d7d7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_update_tags_standard_v2_sku.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayUpdateTagsStandardV2Sku.json +# x-ms-original-file: 2025-09-01/NatGatewayUpdateTagsStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_create_or_update.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_create_or_update.py index 09136c6a3d9d..d1882f98ff19 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_create_or_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_create_or_update.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayWithNat64CreateOrUpdate.json +# x-ms-original-file: 2025-09-01/NatGatewayWithNat64CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_get.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_get.py index 4dfd64e1e7e5..5c1507f70068 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_nat64_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayWithNat64Get.json +# x-ms-original-file: 2025-09-01/NatGatewayWithNat64Get.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_create_or_update.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_create_or_update.py index 765b7c653b1e..e24cb5404200 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_create_or_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_create_or_update.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayWithServiceGatewayCreateOrUpdate.json +# x-ms-original-file: 2025-09-01/NatGatewayWithServiceGatewayCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_get.py index c42134e9e760..775086e863ad 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_gateway_with_service_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatGatewayWithServiceGatewayGet.json +# x-ms-original-file: 2025-09-01/NatGatewayWithServiceGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_delete.py index 0f424ac222c4..289bcf6c2585 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NatRuleDelete.json +# x-ms-original-file: 2025-09-01/NatRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_get.py index b8f2c37e0ed5..bc1fc462ad8f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatRuleGet.json +# x-ms-original-file: 2025-09-01/NatRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_list.py index 22315b08d061..ccebc0215f46 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NatRuleList.json +# x-ms-original-file: 2025-09-01/NatRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_put.py index 0eb6b87912a2..bb9cc6f36efb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nat_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nat_rule_put.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NatRulePut.json +# x-ms-original-file: 2025-09-01/NatRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_create.py index 3c541d3bfd00..9b30fd72b948 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_create.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceCreate.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_create_gateway_load_balancer_consumer.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_create_gateway_load_balancer_consumer.py index f55fe35c6188..9140c7458263 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_create_gateway_load_balancer_consumer.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_create_gateway_load_balancer_consumer.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_delete.py index 7b2b09279682..d8633c2966f0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkInterfaceDelete.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_nsg_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_nsg_list.py index 34892e22bb0a..f7d3ce66f3ee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_nsg_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_nsg_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceEffectiveNSGList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceEffectiveNSGList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_route_table_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_route_table_list.py index 81730bf5aa67..9c386556641e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_route_table_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_effective_route_table_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceEffectiveRouteTableList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceEffectiveRouteTableList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_get.py index ccf4a2152fb3..fe893197615d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceGet.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_get.py index 3408a5e73d4b..528ffe9f1ba5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceIPConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceIPConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_list.py index c12265183ac2..75fb15048f60 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_ip_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkInterfaceIPConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceIPConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_list.py index 22f71cf1b773..373b49382929 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkInterfaceList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_list_all.py index c634f0906db2..303a797f1a8c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkInterfaceListAll.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_load_balancer_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_load_balancer_list.py index 39df0e45c75e..6f24038e776d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_load_balancer_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_load_balancer_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkInterfaceLoadBalancerList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceLoadBalancerList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_create.py index 6715d65ca312..96c60cf67eb1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_create.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceTapConfigurationCreate.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceTapConfigurationCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_delete.py index ecdfef0be4bf..b32c09f37dc3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkInterfaceTapConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceTapConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_get.py index 20e2dd0e6bc7..a6443b367db9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceTapConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceTapConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_list.py index 117417186d82..7c0609c324d8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_tap_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkInterfaceTapConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceTapConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_interface_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_interface_update_tags.py index 954cce49ad71..6e2e8e3dfed8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_interface_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_interface_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkInterfaceUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkInterfaceUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_connectivity_configurations_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_connectivity_configurations_list.py index 340a1accbaa8..16ea6d490e52 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_connectivity_configurations_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_connectivity_configurations_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerActiveConnectivityConfigurationsList.json +# x-ms-original-file: 2025-09-01/NetworkManagerActiveConnectivityConfigurationsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_security_admin_rules_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_security_admin_rules_list.py index cc3b406a940e..e2cf8e8402bc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_security_admin_rules_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_active_security_admin_rules_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerActiveSecurityAdminRulesList.json +# x-ms-original-file: 2025-09-01/NetworkManagerActiveSecurityAdminRulesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_delete.py index c7fb77b78dec..90870de3ae49 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleCollectionDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleCollectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_get.py index 1985466ad1d3..cf38db3c3202 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleCollectionGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleCollectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_list.py index 8cba005efb1a..0c82e13f5f91 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleCollectionList.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleCollectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_put.py index 73c01b9ccb7a..4feaad65f65c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_collection_put.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleCollectionPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleCollectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_delete.py index f569704614da..e0583d929b42 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_delete.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_get.py index 4ee516d32a2b..345ea15d9727 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_list.py index 3493d6b3dea2..ed16572a486a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRuleList.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put.py index 96be261eeb77..f566b274e55a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRulePut.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put_network_group_source.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put_network_group_source.py index 703b1e5624b9..0b0a3f2410a5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put_network_group_source.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_admin_rule_put_network_group_source.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerAdminRulePut_NetworkGroupSource.json +# x-ms-original-file: 2025-09-01/NetworkManagerAdminRulePut_NetworkGroupSource.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_delete.py index 5e9cdf6dd85f..697371442aee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerCommitDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerCommitDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_get.py index d80d7c92b662..ff721f47405e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerCommitGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerCommitGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_list.py index f0ef38bf7b52..9a276840e426 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerCommitList.json +# x-ms-original-file: 2025-09-01/NetworkManagerCommitList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_post.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_post.py index af93066f9fb6..dd8791c84e61 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_post.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_post.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerCommitPost.json +# x-ms-original-file: 2025-09-01/NetworkManagerCommitPost.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_put.py index 93d924ff4f5c..d8099c05f9bb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_commit_put.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerCommitPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerCommitPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_delete.py index 27b4aec8c4f6..7e7ebb350c2d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionManagementGroupDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionManagementGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_get.py index 2010ba6ed412..049c1c30b678 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionManagementGroupGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionManagementGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_list.py index 3e5b744eb085..6d2047afb850 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionManagementGroupList.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionManagementGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_put.py index 7afe0857aae4..cc444a68670e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_management_group_put.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionManagementGroupPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionManagementGroupPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_delete.py index 4f90995be48c..f78ea6dd9a2d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_delete.py @@ -35,6 +35,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionSubscriptionDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionSubscriptionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_get.py index 38fe1df69c9e..ad80b79bcc84 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionSubscriptionGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionSubscriptionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_list.py index da8ccc4862a6..557b1f45963d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionSubscriptionList.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionSubscriptionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_put.py index 0a5db292d311..741dd3294e46 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connection_subscription_put.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectionSubscriptionPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectionSubscriptionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_delete.py index 0c2f06624658..b0dec29a0562 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerConnectivityConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectivityConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_get.py index f7d1a43fc854..3a25c8cc6651 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectivityConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectivityConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_list.py index 1df4b86dad00..1ba48580ec40 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectivityConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectivityConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_put.py index 8659a3eaf937..4668c960ef0a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_connectivity_configuration_put.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerConnectivityConfigurationPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerConnectivityConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_default_admin_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_default_admin_rule_get.py index 4fc66ab1b8af..c2fb67bd3fb7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_default_admin_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_default_admin_rule_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerDefaultAdminRuleGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerDefaultAdminRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_delete.py index 5b188616c6a4..bbb58ebb5161 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_deployment_status_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_deployment_status_list.py index a61dd91dab3d..3fd3adf1df3a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_deployment_status_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_deployment_status_list.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerDeploymentStatusList.json +# x-ms-original-file: 2025-09-01/NetworkManagerDeploymentStatusList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_connectivity_configurations_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_connectivity_configurations_list.py index cf42541295d3..3e34e643430d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_connectivity_configurations_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_connectivity_configurations_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerEffectiveConnectivityConfigurationsList.json +# x-ms-original-file: 2025-09-01/NetworkManagerEffectiveConnectivityConfigurationsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_security_admin_rules_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_security_admin_rules_list.py index 3a91adbfe5eb..cf0d7afa4d89 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_security_admin_rules_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_effective_security_admin_rules_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerEffectiveSecurityAdminRulesList.json +# x-ms-original-file: 2025-09-01/NetworkManagerEffectiveSecurityAdminRulesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_get.py index 43bdef078c24..1a83d835abad 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_delete.py index 0b8bb9038a46..0e97d9f9bc9d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerGroupDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_get.py index dffe6cb5198a..fa394c024b99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerGroupGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_list.py index 8c181d6e44c3..f3a1c4d38cd6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerGroupList.json +# x-ms-original-file: 2025-09-01/NetworkManagerGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_put.py index 2616cdf9fdf2..a90e08f7b3c0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_group_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerGroupPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerGroupPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_list.py index 11e5e33e3f24..265a1375b2bd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerList.json +# x-ms-original-file: 2025-09-01/NetworkManagerList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_list_all.py index 8c89e51d6871..d43b90f16bbc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerListAll.json +# x-ms-original-file: 2025-09-01/NetworkManagerListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_patch.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_patch.py index e75596cf1453..768a2fc2fb7f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerPatch.json +# x-ms-original-file: 2025-09-01/NetworkManagerPatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_put.py index b1699c0c7e0a..a67f98f4646d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_put.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_delete.py index e5bd9a5c170e..2012bf46f0b9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_get.py index 4ee52464575d..64b8edbf7838 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_list.py index 1e7d8d51fede..6f82437c6bc7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_put.py index e801268a5b63..a0bf4b01be31 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_configuration_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingConfigurationPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_delete.py index 38441d7db153..c83c95cc29cb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleCollectionDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleCollectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_get.py index 04bd90a5bc84..b42e97a54e78 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleCollectionGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleCollectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_list.py index ff04fb0ffde4..52b1ba08b636 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleCollectionList.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleCollectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_put.py index f4c981296722..efccb80f8707 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_collection_put.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleCollectionPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleCollectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_delete.py index 507e9454cef1..040b133fe002 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_delete.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_get.py index 44cfb4cbf0a5..bf22347f0148 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_list.py index 5b54890a88be..b9e9aab6dd12 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRuleList.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put.py index 46832801c31f..4f33dbcca7d5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRulePut.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put_ecmp.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put_ecmp.py index 0879ef6fcf7e..24ec62e0c9c5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put_ecmp.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_routing_rule_put_ecmp.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerRoutingRulePutEcmp.json +# x-ms-original-file: 2025-09-01/NetworkManagerRoutingRulePutEcmp.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_delete.py index 7ade844bed7e..3c6e40113ca2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NetworkManagerScopeConnectionDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerScopeConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_get.py index e4fc081e044b..69b7c4e38127 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerScopeConnectionGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerScopeConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_list.py index cbc8413ea7f2..73d4fa8b9778 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerScopeConnectionList.json +# x-ms-original-file: 2025-09-01/NetworkManagerScopeConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_put.py index 6d69029e6960..d6080ba629cc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_scope_connection_put.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerScopeConnectionPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerScopeConnectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_delete.py index 7ca5cdb01226..7797239dd0ac 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityAdminConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityAdminConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_get.py index 2b61ceb0e39a..80a2fe1a8473 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityAdminConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityAdminConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_list.py index 1cad54a92b22..3023e80e4260 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityAdminConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityAdminConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put.py index 7db7161c20e4..209ab55c3b0d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityAdminConfigurationPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityAdminConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put_manual_aggregation.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put_manual_aggregation.py index 61040b0c3ef4..3fd35261f3f8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put_manual_aggregation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_admin_configuration_put_manual_aggregation.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_delete.py index e1fff9f2109c..f0411f94ec9b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_get.py index 9495e7630f6f..9f092df50154 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserConfigurationGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_list.py index 3e68440af4f2..e9aba8d8e3d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserConfigurationList.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_put.py index 14e2b82cdd8c..dc464ff26aff 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_configuration_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserConfigurationPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_delete.py index ec665a2cab16..a80f06a87f23 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleCollectionDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleCollectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_get.py index 849f8396c6ac..0216e0496205 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleCollectionGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleCollectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_list.py index ca454074b7c0..c4745a8a5866 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleCollectionList.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleCollectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_put.py index d4305f927ac1..294217ea0bb1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_collection_put.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleCollectionPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleCollectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_delete.py index d88c20183079..510a4bf21215 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_delete.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_get.py index 5ecd3c546661..1a1518e76bb0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_list.py index 1b68ec0b2f41..03499ddc5ce0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRuleList.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_put.py index 27e4d756c7ca..db1d57ca5425 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_security_user_rule_put.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerSecurityUserRulePut.json +# x-ms-original-file: 2025-09-01/NetworkManagerSecurityUserRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_delete.py index 60499905d1c8..f61a9ffeeed0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NetworkManagerStaticMemberDelete.json +# x-ms-original-file: 2025-09-01/NetworkManagerStaticMemberDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_get.py index 4b8c6acd47c7..8fd5251d15a6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerStaticMemberGet.json +# x-ms-original-file: 2025-09-01/NetworkManagerStaticMemberGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_list.py index 17e584be1cdb..82725b75b2c1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkManagerStaticMemberList.json +# x-ms-original-file: 2025-09-01/NetworkManagerStaticMemberList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_put.py index 134d57a84cdc..aca36123308c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_manager_static_member_put.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkManagerStaticMemberPut.json +# x-ms-original-file: 2025-09-01/NetworkManagerStaticMemberPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_create_config_only.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_create_config_only.py index b38bdc0b952e..d7d71240f692 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_create_config_only.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_create_config_only.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkProfileCreateConfigOnly.json +# x-ms-original-file: 2025-09-01/NetworkProfileCreateConfigOnly.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_delete.py index 87b5919e75d0..db55712f1215 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkProfileDelete.json +# x-ms-original-file: 2025-09-01/NetworkProfileDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_config_only.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_config_only.py index 54af70747d08..648ec5686b39 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_config_only.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_config_only.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkProfileGetConfigOnly.json +# x-ms-original-file: 2025-09-01/NetworkProfileGetConfigOnly.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_with_container_nic.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_with_container_nic.py index 891b14f26f71..e3d7c520de66 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_with_container_nic.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_get_with_container_nic.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkProfileGetWithContainerNic.json +# x-ms-original-file: 2025-09-01/NetworkProfileGetWithContainerNic.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_list.py index a393247d5729..d56127946188 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkProfileList.json +# x-ms-original-file: 2025-09-01/NetworkProfileList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_list_all.py index 9df9cedb5529..f326fb82ec39 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkProfileListAll.json +# x-ms-original-file: 2025-09-01/NetworkProfileListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_profile_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_profile_update_tags.py index 8493d4f80c52..4512a727f0c3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_profile_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_profile_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkProfileUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkProfileUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create.py index e156897e64a4..25d9115f77e5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupCreate.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create_with_rule.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create_with_rule.py index ed32d7fccafe..c72318a7aa19 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create_with_rule.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_create_with_rule.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupCreateWithRule.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupCreateWithRule.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_delete.py index 5ea6daa20b0a..ca8b2077856a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupDelete.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_get.py index 536d4ab02d40..fa9856eb7ce5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupGet.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list.py index d9a4d6014749..8e80f1144e06 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupList.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list_all.py index dd9813e7c7b7..9cf88136149b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupListAll.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_create.py index b87b3b35e04d..298d664b8de0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_create.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupRuleCreate.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupRuleCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_delete.py index cea1eec8fdaa..d56612a5e474 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupRuleDelete.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_get.py index a407aea2a403..510d04649e82 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupRuleGet.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_list.py index 60591f73d12e..8523e4d3d6fa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupRuleList.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_update_tags.py index 1ba3547b9e95..3b42268b07a4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_group_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_group_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityGroupUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkSecurityGroupUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_delete.py index d754184c410c..37a986f80e21 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterDelete.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_get.py index 0095698690c0..ddbe6787dc59 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterGet.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list.py index 53c582f2039b..e7b7aa4190cc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterList.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list_all.py index 117fde4246ca..eb7665ba9155 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterListAll.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_patch.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_patch.py index f484af2749e3..4a92ba978dd0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterPatch.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterPatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_put.py index 8d2f38e97a5a..861fdc930b72 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_security_perimeter_put.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkSecurityPerimeterPut.json +# x-ms-original-file: 2025-09-01/NetworkSecurityPerimeterPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_abort_migration.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_abort_migration.py new file mode 100644 index 000000000000..3f915d3767a8 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_abort_migration.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_abort_migration.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.network_virtual_appliances.begin_abort_migration( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + ).result() + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceAbortMigration.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_boot_diagnostics.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_boot_diagnostics.py index 2cd1c04663d2..be3c0da5ac28 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_boot_diagnostics.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_boot_diagnostics.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceBootDiagnostics.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_commit_migration.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_commit_migration.py new file mode 100644 index 000000000000..8b554052a8f6 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_commit_migration.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_commit_migration.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.network_virtual_appliances.begin_commit_migration( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + body={"properties": {"migrationType": "MigrateToNewILBArchitecture"}}, + ).result() + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceCommitMigration.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_delete.py index 52b29e44c7ff..6ef8d85f0c09 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceConnectionDelete.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_get.py index 5fb98b1dea3a..a83c6e911d26 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceConnectionGet.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_list.py index bb6e873691e2..1d5e15350114 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceConnectionList.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_put.py index acf2e823dfe0..774ccef71fe8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_connection_put.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceConnectionPut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceConnectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_delete.py index 692014c8f0c1..80f065db4773 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceDelete.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_empty_restart.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_empty_restart.py index 20a8d92b216f..fc61796ef72f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_empty_restart.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_empty_restart.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceEmptyRestart.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceEmptyRestart.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_execute_migration.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_execute_migration.py new file mode 100644 index 000000000000..7e54c389605c --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_execute_migration.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_execute_migration.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.network_virtual_appliances.begin_execute_migration( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + body={"properties": {"migrationType": "MigrateToNewILBArchitecture"}}, + ).result() + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceExecuteMigration.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_get.py index ab080d5bf45a..0b9a7ced9071 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceGet.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_resource_group.py index 4af45e171a82..fcf00da88a19 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceListByResourceGroup.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_subscription.py index 6b978c1df6d7..748a5b22e94a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceListBySubscription.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_prepare_migration.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_prepare_migration.py new file mode 100644 index 000000000000..f9c8e4329d8c --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_prepare_migration.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_prepare_migration.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.network_virtual_appliances.begin_prepare_migration( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + body={"properties": {"migrationType": "MigrateToNewILBArchitecture"}}, + ).result() + + +# x-ms-original-file: 2025-09-01/NetworkVirtualAppliancePrepareMigration.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_put.py index 8127c6b53fd8..11a1f31f9e37 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_put.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualAppliancePut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualAppliancePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_saa_sput.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_saa_sput.py index 333d0c55afed..162ac413ca3f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_saa_sput.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_saa_sput.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSaaSPut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSaaSPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_delete.py index 93eed9233c13..ddd59c795759 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSiteDelete.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSiteDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_get.py index 861ca3ef3816..3c4b7f4df79f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSiteGet.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSiteGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_list.py index 26c7e391e2f8..30aadff9c819 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSiteList.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSiteList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_put.py index a3e5b4b7d557..cf033241d651 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_site_put.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSitePut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSitePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_get.py index 3a77f9626cc9..f39717410808 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSkuGet.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSkuGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_list.py index 2b9a672aee52..496a956e8df5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_sku_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSkuList.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSkuList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_reimage.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_reimage.py index bb81b847c625..fac9ca6ec560 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_reimage.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_reimage.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSpecificReimage.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSpecificReimage.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_restart.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_restart.py index e9ff09f267c2..69a376a61070 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_restart.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_specific_restart.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceSpecificRestart.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceSpecificRestart.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_update_tags.py index 14ff0ab44702..762e04975458 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_get.py new file mode 100644 index 000000000000..c4b7ba7270eb --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vhub_dual_stack_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.get( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVhubDualStackGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_put.py new file mode 100644 index 000000000000..ff4e834276a1 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_dual_stack_put.py @@ -0,0 +1,67 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vhub_dual_stack_put.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.begin_create_or_update( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + }, + }, + "location": "West US", + "properties": { + "addressFamily": ["IPv4", "IPv6"], + "bootStrapConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig" + ], + "cloudInitConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig" + ], + "nvaSku": {"bundledScaleUnit": "1", "marketPlaceVersion": "12.1", "vendor": "Cisco SDWAN"}, + "virtualApplianceAsn": 10000, + "virtualHub": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + }, + }, + "tags": {"key1": "value1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVhubDualStackPut.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_ipv4_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_ipv4_put.py new file mode 100644 index 000000000000..b296bb16cf41 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vhub_ipv4_put.py @@ -0,0 +1,95 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vhub_ipv4_put.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.begin_create_or_update( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + }, + }, + "location": "West US", + "properties": { + "additionalNics": [{"hasPublicIp": True, "name": "exrsdwan"}], + "addressFamily": ["IPv4"], + "bootStrapConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig" + ], + "cloudInitConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig" + ], + "internetIngressPublicIps": [ + { + "id": "/subscriptions/{{subscriptionId}}/resourceGroups/{{rg}}/providers/Microsoft.Network/publicIPAddresses/slbip" + } + ], + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "properties": { + "ipConfigurations": [ + {"name": "publicnicipconfig", "properties": {"primary": True}}, + {"name": "publicnicipconfig-2", "properties": {"primary": False}}, + ] + }, + "type": "PublicNic", + }, + { + "properties": { + "ipConfigurations": [ + {"name": "privatenicipconfig", "properties": {"primary": True}}, + {"name": "privatenicipconfig-2", "properties": {"primary": False}}, + ] + }, + "type": "PrivateNic", + }, + ] + }, + "nvaSku": {"bundledScaleUnit": "1", "marketPlaceVersion": "12.1", "vendor": "Cisco SDWAN"}, + "virtualApplianceAsn": 10000, + "virtualHub": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + }, + }, + "tags": {"key1": "value1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVhubIPv4Put.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_private_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_private_put.py index e7e77d5a46de..538a65849c41 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_private_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_private_put.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceVnetAdditionalPrivatePut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetAdditionalPrivatePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_public_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_public_put.py index dc6c06e27bc6..18ea6a3e4a9c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_public_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_additional_public_put.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceVnetAdditionalPublicPut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetAdditionalPublicPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_basic_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_basic_put.py index 43738ff48662..fb6e7e4cda39 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_basic_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_basic_put.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceVnetBasicPut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetBasicPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_get.py new file mode 100644 index 000000000000..1df9c7cfd848 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_get.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vnet_dual_stack_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.get( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetDualStackGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_put.py new file mode 100644 index 000000000000..11b242599d82 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_dual_stack_put.py @@ -0,0 +1,80 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vnet_dual_stack_put.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.begin_create_or_update( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + }, + }, + "location": "West US", + "properties": { + "addressFamily": ["IPv4", "IPv6"], + "bootStrapConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig" + ], + "cloudInitConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig" + ], + "nvaInterfaceConfigurations": [ + { + "name": "privateInterface", + "subnet": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "type": ["PrivateNic"], + }, + { + "name": "publicInterface", + "subnet": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2" + }, + "type": ["PublicNic"], + }, + ], + "nvaSku": {"bundledScaleUnit": "1", "marketPlaceVersion": "latest", "vendor": "Cisco SDWAN"}, + "virtualApplianceAsn": 10000, + }, + "tags": {"key1": "value1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetDualStackPut.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ingress_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ingress_put.py index 329dd7694d0e..c03a89c301de 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ingress_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ingress_put.py @@ -79,6 +79,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceVnetIngressPut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetIngressPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ipv4_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ipv4_put.py new file mode 100644 index 000000000000..1ebd636d548a --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_ipv4_put.py @@ -0,0 +1,80 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_virtual_appliance_vnet_ipv4_put.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_virtual_appliances.begin_create_or_update( + resource_group_name="rg1", + network_virtual_appliance_name="nva", + parameters={ + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {} + }, + }, + "location": "West US", + "properties": { + "addressFamily": ["IPv4"], + "bootStrapConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig" + ], + "cloudInitConfigurationBlobs": [ + "https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrcloudinitconfig" + ], + "nvaInterfaceConfigurations": [ + { + "name": "dataInterface", + "subnet": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1" + }, + "type": ["PrivateNic"], + }, + { + "name": "managementInterface", + "subnet": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet2" + }, + "type": ["PublicNic"], + }, + ], + "nvaSku": {"bundledScaleUnit": "1", "marketPlaceVersion": "latest", "vendor": "Cisco SDWAN"}, + "virtualApplianceAsn": 10000, + }, + "tags": {"key1": "value1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetIPv4Put.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_network_profile_put.py b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_network_profile_put.py index 0b46d8136def..38dae6a04a52 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_network_profile_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_virtual_appliance_vnet_network_profile_put.py @@ -96,6 +96,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkVirtualApplianceVnetNetworkProfilePut.json +# x-ms-original-file: 2025-09-01/NetworkVirtualApplianceVnetNetworkProfilePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_available_providers_list_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_available_providers_list_get.py index da25a580dfcf..5b6e8eba2512 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_available_providers_list_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_available_providers_list_get.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherAvailableProvidersListGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherAvailableProvidersListGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_azure_reachability_report_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_azure_reachability_report_get.py index 437d4c5350f3..628bf7b26ce6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_azure_reachability_report_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_azure_reachability_report_get.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherAzureReachabilityReportGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherAzureReachabilityReportGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_create.py new file mode 100644 index 000000000000..d51035794b00 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_create.py @@ -0,0 +1,63 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_create.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_watchers.begin_connection_analyzers_create( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + connection_analyzer_name="ca1", + body={ + "location": "eastus", + "properties": { + "destination": {"address": "www.bing.com", "type": "ExternalAddress"}, + "diagnosticOperations": ["ConnectivityCheck"], + "diagnosticOperationsSettings": { + "connectivityCheckSettings": {"generatePath": True, "preferredIPVersion": "IPv4"} + }, + "outputSettings": { + "storageAccountSettings": { + "storageAccountId": "/subscriptions/7f4a1d92-3b6e-4c8f-9a25-e1b8c3d7f024/resourceGroups/connectionAnalyzerRG/providers/Microsoft.Storage/storageAccounts/sa1" + } + }, + "source": { + "resourceId": "/subscriptions/7f4a1d92-3b6e-4c8f-9a25-e1b8c3d7f024/resourceGroups/connectionAnalyzerRG/providers/Microsoft.Compute/virtualMachines/ct1", + "type": "VM", + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerCreate.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_delete.py new file mode 100644 index 000000000000..cd33dbf09cb3 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_delete.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.network_watchers.begin_connection_analyzers_delete( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + connection_analyzer_name="ca1", + ).result() + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_get.py new file mode 100644 index 000000000000..05d3bc67e8e4 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_get.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_get.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_watchers.connection_analyzers_get( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + connection_analyzer_name="ca1", + ) + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerGet.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_list.py new file mode 100644 index 000000000000..591991b2a5c5 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_list.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_list.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_watchers.connection_analyzers_list( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerList.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_query.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_query.py new file mode 100644 index 000000000000..4fc4fce01305 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_query.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_query.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_watchers.begin_connection_analyzers_query( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + connection_analyzer_name="ca1", + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerQuery.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_update_tags.py new file mode 100644 index 000000000000..05e1b33d94ba --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_analyzer_update_tags.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_connection_analyzer_update_tags.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.network_watchers.connection_analyzers_update_tags( + resource_group_name="connectionAnalyzerRG", + network_watcher_name="nw1", + connection_analyzer_name="ca1", + body={"tags": {"tag1": "value1", "tag2": "value2"}}, + ) + print(response) + + +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionAnalyzerUpdateTags.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create.py index 53577efb0a0b..4da8cedcb32a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorCreate.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create_with_arc_network.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create_with_arc_network.py index b5268cceadd7..f9409165f4a0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create_with_arc_network.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_create_with_arc_network.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_delete.py index 13727518209e..a3883933cd48 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorDelete.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_get.py index d77fb7260288..dca938a9c6df 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_list.py index e8e174f3f4c0..6a35b851048b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorList.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_stop.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_stop.py index 5fff0c6642e0..356742ad5edf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_stop.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_stop.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorStop.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorStop.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_update_tags.py index ec67919d27be..e3feee35d50a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_update_tags.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_v2_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_v2_create.py index 4202259a7d23..38a3a0f099db 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_v2_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connection_monitor_v2_create.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectionMonitorV2Create.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectionMonitorV2Create.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connectivity_check.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connectivity_check.py index 610b30038322..440e478d8c95 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connectivity_check.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_connectivity_check.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherConnectivityCheck.json +# x-ms-original-file: 2025-09-01/NetworkWatcherConnectivityCheck.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_create.py index 4d1f22bd4e60..0a3a5ecab4bb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherCreate.json +# x-ms-original-file: 2025-09-01/NetworkWatcherCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_delete.py index c7ac94004b9e..a93369468429 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherDelete.json +# x-ms-original-file: 2025-09-01/NetworkWatcherDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_configure.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_configure.py index 9304427a5d39..510b031aa61b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_configure.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_configure.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogConfigure.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogConfigure.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_create.py index ec28e2482728..eb51f06cd376 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_create.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogCreate.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_delete.py index b87ae52af073..4c6e0b1f8b65 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogDelete.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_get.py index 53b2b624265a..845b4060ae8e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_list.py index 7e944e3a68a2..a02e85e2bc77 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogList.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_status_query.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_status_query.py index 419948e7f30b..2a209da9b3e4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_status_query.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_status_query.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogStatusQuery.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogStatusQuery.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_update_tags.py index 57b74444dee7..d2a8b9675e14 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_flow_log_update_tags.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherFlowLogUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkWatcherFlowLogUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_get.py index 3c08677efa36..192038339354 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_ip_flow_verify.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_ip_flow_verify.py index 0f837b81cc05..abb2cfb39150 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_ip_flow_verify.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_ip_flow_verify.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherIpFlowVerify.json +# x-ms-original-file: 2025-09-01/NetworkWatcherIpFlowVerify.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list.py index 86d7d4cc8ad9..886001bcd4eb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkWatcherList.json +# x-ms-original-file: 2025-09-01/NetworkWatcherList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list_all.py index 5c7185a3bf67..217ec1ff69f4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkWatcherListAll.json +# x-ms-original-file: 2025-09-01/NetworkWatcherListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_network_configuration_diagnostic.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_network_configuration_diagnostic.py index 0b3662862227..bb73949bf9f8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_network_configuration_diagnostic.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_network_configuration_diagnostic.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherNetworkConfigurationDiagnostic.json +# x-ms-original-file: 2025-09-01/NetworkWatcherNetworkConfigurationDiagnostic.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_next_hop_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_next_hop_get.py index e42e3336c5b5..49ece4efc4f6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_next_hop_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_next_hop_get.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherNextHopGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherNextHopGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create.py index e84e0fe756be..f754632f9c80 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCaptureCreate.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCaptureCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_delete.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_delete.py index b08e97e45f35..dee285a15039 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCaptureDelete.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCaptureDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_get.py index 202a6107fc98..2b0675b7218c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCaptureGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCaptureGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_query_status.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_query_status.py index a4fd1dcc4e68..809dd2801ec2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_query_status.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_query_status.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCaptureQueryStatus.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCaptureQueryStatus.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_stop.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_stop.py index e44eed070b93..dea913fa2f7f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_stop.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_stop.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCaptureStop.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCaptureStop.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_captures_list.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_captures_list.py index 03affed0550a..1475e3f7cb30 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_captures_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_captures_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NetworkWatcherPacketCapturesList.json +# x-ms-original-file: 2025-09-01/NetworkWatcherPacketCapturesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_security_group_view_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_security_group_view_get.py index ae1c5a004aee..4f482fc28f23 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_security_group_view_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_security_group_view_get.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherSecurityGroupViewGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherSecurityGroupViewGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_topology_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_topology_get.py index 4725e9c9775c..584bbe5af073 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_topology_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_topology_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherTopologyGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherTopologyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_get.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_get.py index 1c9fc605964c..249e9e79333a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_get.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherTroubleshootGet.json +# x-ms-original-file: 2025-09-01/NetworkWatcherTroubleshootGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_result_query.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_result_query.py index 29cc20304607..f5337606af63 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_result_query.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_troubleshoot_result_query.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherTroubleshootResultQuery.json +# x-ms-original-file: 2025-09-01/NetworkWatcherTroubleshootResultQuery.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_update_tags.py index ccde2697d486..afbfea605295 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NetworkWatcherUpdateTags.json +# x-ms-original-file: 2025-09-01/NetworkWatcherUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_delete.py index 476427d6253c..12f64c7514db 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NspAccessRuleDelete.json +# x-ms-original-file: 2025-09-01/NspAccessRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_get.py index c8d449e31bfd..62b656033b19 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAccessRuleGet.json +# x-ms-original-file: 2025-09-01/NspAccessRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_list.py index f66496ef6dc7..44b305d60370 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspAccessRuleList.json +# x-ms-original-file: 2025-09-01/NspAccessRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_put.py index 74587436cb52..f1e360e55e99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_put.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAccessRulePut.json +# x-ms-original-file: 2025-09-01/NspAccessRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_reconcile.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_reconcile.py index 238dc5be3966..e99bdd1fe3f9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_reconcile.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_access_rule_reconcile.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAccessRuleReconcile.json +# x-ms-original-file: 2025-09-01/NspAccessRuleReconcile.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_delete.py index 0119a2aed095..411fcfa42c6c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NspAssociationDelete.json +# x-ms-original-file: 2025-09-01/NspAssociationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_get.py index 099c8533f630..9fe3d0308bd7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAssociationGet.json +# x-ms-original-file: 2025-09-01/NspAssociationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_list.py index 46a3b17ed81d..f9b45adfa510 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspAssociationList.json +# x-ms-original-file: 2025-09-01/NspAssociationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_put.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_put.py index 1aca403bb175..4fc3a4a8b382 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_put.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAssociationPut.json +# x-ms-original-file: 2025-09-01/NspAssociationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_reconcile.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_reconcile.py index 35ba153eefff..7bec4ac536a9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_association_reconcile.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_association_reconcile.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspAssociationReconcile.json +# x-ms-original-file: 2025-09-01/NspAssociationReconcile.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_delete.py index 8e57a32839d0..119a77aac3cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NspLinkDelete.json +# x-ms-original-file: 2025-09-01/NspLinkDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_get.py index 12c484496020..4ccd8af60235 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspLinkGet.json +# x-ms-original-file: 2025-09-01/NspLinkGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_list.py index 6ecffea74754..b1359ce7b00a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspLinkList.json +# x-ms-original-file: 2025-09-01/NspLinkList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_put.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_put.py index 2a03e24f5385..b8348f81411d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_put.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspLinkPut.json +# x-ms-original-file: 2025-09-01/NspLinkPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_delete.py index 2bddb75cf584..c70b9ca12c17 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/NspLinkReferenceDelete.json +# x-ms-original-file: 2025-09-01/NspLinkReferenceDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_get.py index a4cbcbfd37dc..d24d63389bec 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspLinkReferenceGet.json +# x-ms-original-file: 2025-09-01/NspLinkReferenceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_list.py index bd029d699faf..1c87c94b8336 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_link_reference_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspLinkReferenceList.json +# x-ms-original-file: 2025-09-01/NspLinkReferenceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_delete.py index 53361e5ac581..100dbdd9c934 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NspLoggingConfigurationDelete.json +# x-ms-original-file: 2025-09-01/NspLoggingConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_get.py index 5bad3c1455f4..6495ff49cdaa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspLoggingConfigurationGet.json +# x-ms-original-file: 2025-09-01/NspLoggingConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_list.py index c840d6592121..ce114c77fb0c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspLoggingConfigurationList.json +# x-ms-original-file: 2025-09-01/NspLoggingConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_put.py index 7cec8cbb373b..3238c5e5276c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_logging_configuration_put.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspLoggingConfigurationPut.json +# x-ms-original-file: 2025-09-01/NspLoggingConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_operation_status_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_operation_status_get.py index c2a10114dc91..a0f7a320b2da 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_operation_status_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_operation_status_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspOperationStatusGet.json +# x-ms-original-file: 2025-09-01/NspOperationStatusGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_delete.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_delete.py index 7b0bce93232c..22296d3ccbc3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/NspProfileDelete.json +# x-ms-original-file: 2025-09-01/NspProfileDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_get.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_get.py index 12d64a5f40a3..1f856b9ddfd2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspProfileGet.json +# x-ms-original-file: 2025-09-01/NspProfileGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_list.py index a96221ad446f..416f75f7120a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspProfileList.json +# x-ms-original-file: 2025-09-01/NspProfileList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_put.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_put.py index 69ee325a5bfd..5e2ec525c63e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_profile_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/NspProfilePut.json +# x-ms-original-file: 2025-09-01/NspProfilePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/nsp_service_tags_list.py b/sdk/network/azure-mgmt-network/generated_samples/nsp_service_tags_list.py index 5cf3c054158b..a941b09fb5fd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/nsp_service_tags_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/nsp_service_tags_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/NspServiceTagsList.json +# x-ms-original-file: 2025-09-01/NspServiceTagsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/operation_list.py b/sdk/network/azure-mgmt-network/generated_samples/operation_list.py index 4e6de3f74b0a..04d3304b4ed3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/operation_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/operation_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/OperationList.json +# x-ms-original-file: 2025-09-01/OperationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_delete.py index bf67a9c7c5f5..7dc35640be4c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/P2SVpnGatewayDelete.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_generate_vpn_profile.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_generate_vpn_profile.py index c76845b4c2ed..d8dd52ae3ecc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_generate_vpn_profile.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_generate_vpn_profile.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayGenerateVpnProfile.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayGenerateVpnProfile.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get.py index f6efbde4768a..3fb28d06348d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayGet.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health.py index 33dbcc6ff774..42b436cfb5b3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayGetConnectionHealth.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayGetConnectionHealth.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health_detailed.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health_detailed.py index 256a6fd7a38c..1cfd2b5ce9fa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health_detailed.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_get_connection_health_detailed.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayGetConnectionHealthDetailed.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayGetConnectionHealthDetailed.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list.py index b77409066f0f..4bc877f3688b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayList.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list_by_resource_group.py index 509a4e15f1cd..a20e77c4ff2a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayListByResourceGroup.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_put.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_put.py index a7888c0611d6..0dfe7dd96ff8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_put.py @@ -82,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayPut.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_reset.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_reset.py index dcf7b0eab526..e953ad11cf00 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_reset.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_reset.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayReset.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayReset.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_update_tags.py index ba154c055763..7900973a27cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2_svpn_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/P2SVpnGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/P2SVpnGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/p2s_vpn_gateways_disconnect_p2s_vpn_connections.py b/sdk/network/azure-mgmt-network/generated_samples/p2s_vpn_gateways_disconnect_p2s_vpn_connections.py index 593a4cd98d62..dd1b13422d03 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/p2s_vpn_gateways_disconnect_p2s_vpn_connections.py +++ b/sdk/network/azure-mgmt-network/generated_samples/p2s_vpn_gateways_disconnect_p2s_vpn_connections.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/P2sVpnGatewaysDisconnectP2sVpnConnections.json +# x-ms-original-file: 2025-09-01/P2sVpnGatewaysDisconnectP2sVpnConnections.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_get.py index e591b9d9e170..2c7fb281b938 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PeerExpressRouteCircuitConnectionGet.json +# x-ms-original-file: 2025-09-01/PeerExpressRouteCircuitConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_list.py index 3afba334a4fa..f2ee4933308f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/peer_express_route_circuit_connection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PeerExpressRouteCircuitConnectionList.json +# x-ms-original-file: 2025-09-01/PeerExpressRouteCircuitConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/perimeter_associable_resources_list.py b/sdk/network/azure-mgmt-network/generated_samples/perimeter_associable_resources_list.py index 2a2f2ed0c13d..c945c3a4044b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/perimeter_associable_resources_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/perimeter_associable_resources_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PerimeterAssociableResourcesList.json +# x-ms-original-file: 2025-09-01/PerimeterAssociableResourcesList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create.py index d8cdc9af87be..17d94e198258 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointCreate.json +# x-ms-original-file: 2025-09-01/PrivateEndpointCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_for_manual_approval.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_for_manual_approval.py index ac5c918c8653..16795acd760c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_for_manual_approval.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_for_manual_approval.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointCreateForManualApproval.json +# x-ms-original-file: 2025-09-01/PrivateEndpointCreateForManualApproval.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_with_asg.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_with_asg.py index 8f6014712ea8..6d06c6a372a3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_with_asg.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_create_with_asg.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointCreateWithASG.json +# x-ms-original-file: 2025-09-01/PrivateEndpointCreateWithASG.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_delete.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_delete.py index e23416e86b5a..5f098a15934f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PrivateEndpointDelete.json +# x-ms-original-file: 2025-09-01/PrivateEndpointDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_create.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_create.py index 34297a87e9a2..87bbc018bbda 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_create.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointDnsZoneGroupCreate.json +# x-ms-original-file: 2025-09-01/PrivateEndpointDnsZoneGroupCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_delete.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_delete.py index a1dedcecdb89..1786644a36f9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PrivateEndpointDnsZoneGroupDelete.json +# x-ms-original-file: 2025-09-01/PrivateEndpointDnsZoneGroupDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_get.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_get.py index 50af328cd6ca..15575589973d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointDnsZoneGroupGet.json +# x-ms-original-file: 2025-09-01/PrivateEndpointDnsZoneGroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_list.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_list.py index f6ed486170b7..cb7a46832a80 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_dns_zone_group_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateEndpointDnsZoneGroupList.json +# x-ms-original-file: 2025-09-01/PrivateEndpointDnsZoneGroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get.py index 7c2f8565c5d8..68e5ffbff7c7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointGet.json +# x-ms-original-file: 2025-09-01/PrivateEndpointGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_for_manual_approval.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_for_manual_approval.py index 91b8e1f3fdea..89a70d5338b5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_for_manual_approval.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_for_manual_approval.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointGetForManualApproval.json +# x-ms-original-file: 2025-09-01/PrivateEndpointGetForManualApproval.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_with_asg.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_with_asg.py index 50e5f6a182d4..7796ea990fbb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_with_asg.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_get_with_asg.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateEndpointGetWithASG.json +# x-ms-original-file: 2025-09-01/PrivateEndpointGetWithASG.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list.py index 15b9c69d5815..5e92c852d11d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateEndpointList.json +# x-ms-original-file: 2025-09-01/PrivateEndpointList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list_all.py index 6fb7014d85eb..56ccf7333875 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_endpoint_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateEndpointListAll.json +# x-ms-original-file: 2025-09-01/PrivateEndpointListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_create.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_create.py index fe4d63c8a0e2..e63b2429a6f5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_create.py @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceCreate.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete.py index 4741b038e6e9..193d450df8e8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PrivateLinkServiceDelete.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete_private_endpoint_connection.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete_private_endpoint_connection.py index 4bea71344cc4..c95e8ba1374f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete_private_endpoint_connection.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_delete_private_endpoint_connection.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PrivateLinkServiceDeletePrivateEndpointConnection.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceDeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get.py index a3cb684385c7..5fbd31c8e0db 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceGet.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get_private_endpoint_connection.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get_private_endpoint_connection.py index 247ecd9428df..dc3a6cf91163 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get_private_endpoint_connection.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_get_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceGetPrivateEndpointConnection.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceGetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list.py index ad46dff56c58..ef243c7ecf73 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceList.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_all.py index cd5a0c50ba6c..66784e1404d4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceListAll.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_private_endpoint_connection.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_private_endpoint_connection.py index 0333904bef84..837ef01d9fd4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_private_endpoint_connection.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_list_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceListPrivateEndpointConnection.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceListPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_update_private_endpoint_connection.py b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_update_private_endpoint_connection.py index c36a43343557..487093d54e8d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/private_link_service_update_private_endpoint_connection.py +++ b/sdk/network/azure-mgmt-network/generated_samples/private_link_service_update_private_endpoint_connection.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PrivateLinkServiceUpdatePrivateEndpointConnection.json +# x-ms-original-file: 2025-09-01/PrivateLinkServiceUpdatePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_customized_values.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_customized_values.py index 7181469c822a..637aa5b815ad 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_customized_values.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_customized_values.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressCreateCustomizedValues.json +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateCustomizedValues.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults.py index 179ee034a9ae..4176bb7d4520 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressCreateDefaults.json +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateDefaults.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults_standard_v2_sku.py index 31c253174aea..bdd62ca3a846 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_defaults_standard_v2_sku.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressCreateDefaultsStandardV2Sku.json +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateDefaultsStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns.py index 2055a83f0081..7c8906141082 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressCreateDns.json +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateDns.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns_with_domain_name_label_scope.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns_with_domain_name_label_scope.py index bd489d63d158..4feb6f670857 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns_with_domain_name_label_scope.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_dns_with_domain_name_label_scope.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressCreateDnsWithDomainNameLabelScope.json +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateDnsWithDomainNameLabelScope.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_with_first_party_service_tag.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_with_first_party_service_tag.py new file mode 100644 index 000000000000..323644c8bdd7 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_create_with_first_party_service_tag.py @@ -0,0 +1,59 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python public_ip_address_create_with_first_party_service_tag.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.public_ip_addresses.begin_create_or_update( + resource_group_name="rg1", + public_ip_address_name="test-ip", + parameters={ + "location": "eastus", + "properties": { + "idleTimeoutInMinutes": 10, + "ipTags": [ + { + "firstPartyServiceTagId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/firstPartyServiceTags/myServiceTag", + "ipTagType": "FirstPartyUsage", + "tag": "SQL", + } + ], + "publicIPAddressVersion": "IPv4", + "publicIPAllocationMethod": "Static", + }, + "sku": {"name": "Standard", "tier": "Global"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/PublicIpAddressCreateWithFirstPartyServiceTag.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_delete.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_delete.py index 0cae8bb1add5..94ca020d8bea 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PublicIpAddressDelete.json +# x-ms-original-file: 2025-09-01/PublicIpAddressDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_disassociate_cloud_service_reserved_public_ip.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_disassociate_cloud_service_reserved_public_ip.py index 5e4f111eeb56..6361a821ce81 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_disassociate_cloud_service_reserved_public_ip.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_disassociate_cloud_service_reserved_public_ip.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressDisassociateCloudServiceReservedPublicIp.json +# x-ms-original-file: 2025-09-01/PublicIpAddressDisassociateCloudServiceReservedPublicIp.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get.py index 88c5161be71f..80ad50cb47bc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressGet.json +# x-ms-original-file: 2025-09-01/PublicIpAddressGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_ddos_protection_status.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_ddos_protection_status.py index fff825c0d09a..374edcb487ec 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_ddos_protection_status.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_ddos_protection_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressGetDdosProtectionStatus.json +# x-ms-original-file: 2025-09-01/PublicIpAddressGetDdosProtectionStatus.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_standard_v2_sku.py index 408da3e25110..a48dac1a4258 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_get_standard_v2_sku.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressGetStandardV2Sku.json +# x-ms-original-file: 2025-09-01/PublicIpAddressGetStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list.py index 12ad43b88428..e16ad7c70a3c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PublicIpAddressList.json +# x-ms-original-file: 2025-09-01/PublicIpAddressList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list_all.py index 91668dd59264..8fdafb1e8dca 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PublicIpAddressListAll.json +# x-ms-original-file: 2025-09-01/PublicIpAddressListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_reserve.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_reserve.py index 13cc268bb25e..5f7672c93d4c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_reserve.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_reserve.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressReserve.json +# x-ms-original-file: 2025-09-01/PublicIpAddressReserve.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_update_tags.py index 7de0095dbad8..dede22188cf8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_address_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpAddressUpdateTags.json +# x-ms-original-file: 2025-09-01/PublicIpAddressUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_customized_values.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_customized_values.py index 2bc2571320cf..9827937ff1d6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_customized_values.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_customized_values.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixCreateCustomizedValues.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixCreateCustomizedValues.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults.py index b82346b9645c..53bf8dc0fd01 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixCreateDefaults.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixCreateDefaults.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults_standard_v2_sku.py index 944f9dcc0baf..aa0b4c45408a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_defaults_standard_v2_sku.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixCreateDefaultsStandardV2Sku.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixCreateDefaultsStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_with_first_party_service_tag.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_with_first_party_service_tag.py new file mode 100644 index 000000000000..c365e338ebe0 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_create_with_first_party_service_tag.py @@ -0,0 +1,58 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python public_ip_prefix_create_with_first_party_service_tag.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.public_ip_prefixes.begin_create_or_update( + resource_group_name="rg1", + public_ip_prefix_name="test-ipprefix", + parameters={ + "location": "westus", + "properties": { + "ipTags": [ + { + "firstPartyServiceTagId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/firstPartyServiceTags/myServiceTag", + "ipTagType": "FirstPartyUsage", + "tag": "SQL", + } + ], + "prefixLength": 30, + "publicIPAddressVersion": "IPv4", + }, + "sku": {"name": "Standard", "tier": "Regional"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/PublicIpPrefixCreateWithFirstPartyServiceTag.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_delete.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_delete.py index ba0b4f0e9e0b..3277127535f9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/PublicIpPrefixDelete.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get.py index ce6fc6d762a4..dbf47241de16 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixGet.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get_standard_v2_sku.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get_standard_v2_sku.py index a853a8e42be4..390411e0378b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get_standard_v2_sku.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_get_standard_v2_sku.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixGetStandardV2Sku.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixGetStandardV2Sku.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list.py index 887073b64d64..9aa30d2b588e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PublicIpPrefixList.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list_all.py index d5a4c33a93c2..05e8ac3697d1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/PublicIpPrefixListAll.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_update_tags.py index bccfa5fc79b3..9b13fef356ba 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/public_ip_prefix_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/PublicIpPrefixUpdateTags.json +# x-ms-original-file: 2025-09-01/PublicIpPrefixUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/query_inbound_nat_rule_port_mapping.py b/sdk/network/azure-mgmt-network/generated_samples/query_inbound_nat_rule_port_mapping.py index ddd48ad36f03..09baf9515f44 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/query_inbound_nat_rule_port_mapping.py +++ b/sdk/network/azure-mgmt-network/generated_samples/query_inbound_nat_rule_port_mapping.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/QueryInboundNatRulePortMapping.json +# x-ms-original-file: 2025-09-01/QueryInboundNatRulePortMapping.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_delete.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_delete.py index 0f6a7d05d666..54da498837e7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisIntentDelete.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisIntentDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_get.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_get.py index 36e2ac30349e..8491fe7e629b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisIntentGet.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisIntentGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_list.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_list.py index 3a3cce970bdf..db915f268022 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisIntentList.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisIntentList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_put.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_put.py index edc45102c8fa..1aac7f88b33c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_intent_put.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisIntentPut.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisIntentPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_delete.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_delete.py index 382b0eaa81bb..a0ee547bff99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisRunDelete.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisRunDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_get.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_get.py index 4a7fc01bee2a..b6df1862a488 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisRunGet.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisRunGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_list.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_list.py index da2db348530e..cb43cb3639a4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisRunList.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisRunList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_put.py b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_put.py index 950fcf7bdf2a..5c17029fcb60 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/reachability_analysis_run_put.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ReachabilityAnalysisRunPut.json +# x-ms-original-file: 2025-09-01/ReachabilityAnalysisRunPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_create.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_create.py index 0110a1774ff7..61e56f94f462 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_create.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteFilterCreate.json +# x-ms-original-file: 2025-09-01/RouteFilterCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_delete.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_delete.py index 8c78c32dd20d..492737e76116 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RouteFilterDelete.json +# x-ms-original-file: 2025-09-01/RouteFilterDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_get.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_get.py index 966f49b4e037..42d02851aee2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteFilterGet.json +# x-ms-original-file: 2025-09-01/RouteFilterGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_list.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_list.py index 8f3e00648af9..ceb5b018bcb3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteFilterList.json +# x-ms-original-file: 2025-09-01/RouteFilterList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_list_by_resource_group.py index facb0a1d131c..18a35232f101 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteFilterListByResourceGroup.json +# x-ms-original-file: 2025-09-01/RouteFilterListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_create.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_create.py index d6b8a2abe0db..8be985a2ee9a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_create.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteFilterRuleCreate.json +# x-ms-original-file: 2025-09-01/RouteFilterRuleCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_delete.py index 476f0975da44..130d853dfa02 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RouteFilterRuleDelete.json +# x-ms-original-file: 2025-09-01/RouteFilterRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_get.py index 1e4720fc9f7b..db3a207cc884 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteFilterRuleGet.json +# x-ms-original-file: 2025-09-01/RouteFilterRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_list_by_route_filter.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_list_by_route_filter.py index 73112c693445..fdd5f55a82ab 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_list_by_route_filter.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_rule_list_by_route_filter.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteFilterRuleListByRouteFilter.json +# x-ms-original-file: 2025-09-01/RouteFilterRuleListByRouteFilter.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_filter_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/route_filter_update_tags.py index 0ac3f347c93b..6b13c5973501 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_filter_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_filter_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteFilterUpdateTags.json +# x-ms-original-file: 2025-09-01/RouteFilterUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_map_delete.py b/sdk/network/azure-mgmt-network/generated_samples/route_map_delete.py index acbf419ce826..efba0bd2b695 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_map_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_map_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RouteMapDelete.json +# x-ms-original-file: 2025-09-01/RouteMapDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_map_get.py b/sdk/network/azure-mgmt-network/generated_samples/route_map_get.py index 57ffdaf417e6..3f766df45f6a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_map_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_map_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteMapGet.json +# x-ms-original-file: 2025-09-01/RouteMapGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_map_list.py b/sdk/network/azure-mgmt-network/generated_samples/route_map_list.py index 1c5bb573ac18..6bd9941c87e6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_map_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_map_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteMapList.json +# x-ms-original-file: 2025-09-01/RouteMapList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_map_put.py b/sdk/network/azure-mgmt-network/generated_samples/route_map_put.py index 8fc9a717a582..f20bf3e7c3e5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_map_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_map_put.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteMapPut.json +# x-ms-original-file: 2025-09-01/RouteMapPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_create.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_create.py index 5cbe8dd5fe1f..744f3bf87fb8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableCreate.json +# x-ms-original-file: 2025-09-01/RouteTableCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_disable_peering_route.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_disable_peering_route.py index 2508dbab0d73..12bb1084b9b6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_disable_peering_route.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_disable_peering_route.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableCreateWithDisablePeeringRoute.json +# x-ms-original-file: 2025-09-01/RouteTableCreateWithDisablePeeringRoute.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_ecmp_route.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_ecmp_route.py index 6bd49b8715ba..0caf03b0b734 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_ecmp_route.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_ecmp_route.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableCreateWithEcmpRoute.json +# x-ms-original-file: 2025-09-01/RouteTableCreateWithEcmpRoute.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_route.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_route.py index 325b8d009d2a..933c4fd38b99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_route.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_create_with_route.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableCreateWithRoute.json +# x-ms-original-file: 2025-09-01/RouteTableCreateWithRoute.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_delete.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_delete.py index bbbe51c36d0b..ee6b7afff689 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RouteTableDelete.json +# x-ms-original-file: 2025-09-01/RouteTableDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_get.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_get.py index 8b492a835a7e..376273e10466 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableGet.json +# x-ms-original-file: 2025-09-01/RouteTableGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_list.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_list.py index e8660a23ffa7..1aa5bff35a80 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteTableList.json +# x-ms-original-file: 2025-09-01/RouteTableList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_list_all.py index e69e97c29a60..a4e0165ad0cc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteTableListAll.json +# x-ms-original-file: 2025-09-01/RouteTableListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create.py index eb546ea85f65..52f4cf392b0c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableRouteCreate.json +# x-ms-original-file: 2025-09-01/RouteTableRouteCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create_ecmp.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create_ecmp.py index e4f0dc57cca4..ca79af2bf689 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create_ecmp.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_create_ecmp.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableRouteCreateEcmp.json +# x-ms-original-file: 2025-09-01/RouteTableRouteCreateEcmp.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_delete.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_delete.py index 01a6d29a2b00..11d8a509891d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RouteTableRouteDelete.json +# x-ms-original-file: 2025-09-01/RouteTableRouteDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_get.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_get.py index f17fd9a87583..d30d90ae7ceb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableRouteGet.json +# x-ms-original-file: 2025-09-01/RouteTableRouteGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_list.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_list.py index efef9b5f090c..93a331010e9c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_route_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_route_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RouteTableRouteList.json +# x-ms-original-file: 2025-09-01/RouteTableRouteList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/route_table_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/route_table_update_tags.py index 4e3045435c33..989cdb5f66c2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/route_table_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/route_table_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RouteTableUpdateTags.json +# x-ms-original-file: 2025-09-01/RouteTableUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_delete.py b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_delete.py index b7561c1e553c..78145ebb39e0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/RoutingIntentDelete.json +# x-ms-original-file: 2025-09-01/RoutingIntentDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_get.py b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_get.py index 556a18dd42e4..f59e18816f27 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RoutingIntentGet.json +# x-ms-original-file: 2025-09-01/RoutingIntentGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_list.py b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_list.py index 984ddd564d57..9948aa5bb4ca 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/RoutingIntentList.json +# x-ms-original-file: 2025-09-01/RoutingIntentList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_put.py b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_put.py index b4cf6a9ede6f..6430deabd0b6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/routing_intent_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/routing_intent_put.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/RoutingIntentPut.json +# x-ms-original-file: 2025-09-01/RoutingIntentPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_delete.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_delete.py index 155e5591b780..6792235af3a0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderDelete.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_get.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_get.py index 2118a79fdf53..387a55aa43c9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderGet.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_resource_group.py index 550eab01d525..73b01d57550f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderListByResourceGroup.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_subscription.py index 8d69e9c7d032..82badfa3f3a8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderListBySubscription.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_put.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_put.py index 33b8fabf6aef..6a6fa6dc0d13 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_put.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderPut.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_update_tags.py index 4923f983772e..eaaafe720682 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/security_partner_provider_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SecurityPartnerProviderUpdateTags.json +# x-ms-original-file: 2025-09-01/SecurityPartnerProviderUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_community_list.py b/sdk/network/azure-mgmt-network/generated_samples/service_community_list.py index 1e38332b0ad3..527e0e790a45 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_community_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_community_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceCommunityList.json +# x-ms-original-file: 2025-09-01/ServiceCommunityList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create.py index 942e92c389ba..77ef70ec0c81 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyCreate.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create_with_definition.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create_with_definition.py index 977f00dcf3c1..a5aa269d2e7e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create_with_definition.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_create_with_definition.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyCreateWithDefinition.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyCreateWithDefinition.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_create.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_create.py index 7a706e670597..81c96482e949 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_create.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyDefinitionCreate.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyDefinitionCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_delete.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_delete.py index 1f9f2b8257fe..c5480a82d5b2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyDefinitionDelete.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyDefinitionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_get.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_get.py index 1865508ce163..da060bce9fed 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyDefinitionGet.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyDefinitionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_list.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_list.py index f2e8019e659c..938277f3a692 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_definition_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyDefinitionList.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyDefinitionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_delete.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_delete.py index 90abc13a5848..bcf2565ab8a7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyDelete.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_get.py index e13a21be9c6c..db2f591277dd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyGet.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list.py index 0cf624aa815a..343210992603 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyList.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list_all.py index ae2726eb32db..1b04efc4722b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyListAll.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_update_tags.py index 6d6bdec858e9..5f4f179c009e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_endpoint_policy_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceEndpointPolicyUpdateTags.json +# x-ms-original-file: 2025-09-01/ServiceEndpointPolicyUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_create.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_create.py index ba5d89a5a5b9..2ecb0bfdba6d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_create.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayCreate.json +# x-ms-original-file: 2025-09-01/ServiceGatewayCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_delete.py index 329ce04c4b7c..8941ccdf44bd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/ServiceGatewayDelete.json +# x-ms-original-file: 2025-09-01/ServiceGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_full_update_address_locations_request.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_full_update_address_locations_request.py index abf2ffcabcfa..48262bd5b039 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_full_update_address_locations_request.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_full_update_address_locations_request.py @@ -30,7 +30,7 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - client.service_gateways.begin_update_address_locations( + response = client.service_gateways.update_address_locations( resource_group_name="rg1", service_gateway_name="sg", parameters={ @@ -48,9 +48,10 @@ def main(): }, ], }, - ).result() + ) + print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayFullUpdateAddressLocationsRequest.json +# x-ms-original-file: 2025-09-01/ServiceGatewayFullUpdateAddressLocationsRequest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get.py index 76366936bb40..4ebe53dad88c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayGet.json +# x-ms-original-file: 2025-09-01/ServiceGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_address_locations_response.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_address_locations_response.py index 4f54589c682b..5a964a533e43 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_address_locations_response.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_address_locations_response.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceGatewayGetAddressLocationsResponse.json +# x-ms-original-file: 2025-09-01/ServiceGatewayGetAddressLocationsResponse.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_services_response.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_services_response.py index d6719421b2fb..d34316ecddd8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_services_response.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_get_services_response.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceGatewayGetServicesResponse.json +# x-ms-original-file: 2025-09-01/ServiceGatewayGetServicesResponse.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list.py index b590b7f9e604..98a0601e1667 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceGatewayList.json +# x-ms-original-file: 2025-09-01/ServiceGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list_all.py index 04bbb1385691..98943ed24c75 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceGatewayListAll.json +# x-ms-original-file: 2025-09-01/ServiceGatewayListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_partial_update_address_locations_request.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_partial_update_address_locations_request.py index 9d9c40cfef45..c47f62337859 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_partial_update_address_locations_request.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_partial_update_address_locations_request.py @@ -30,7 +30,7 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - client.service_gateways.begin_update_address_locations( + response = client.service_gateways.update_address_locations( resource_group_name="rg1", service_gateway_name="sg", parameters={ @@ -49,9 +49,10 @@ def main(): {"addressLocation": "192.0.0.3"}, ], }, - ).result() + ) + print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayPartialUpdateAddressLocationsRequest.json +# x-ms-original-file: 2025-09-01/ServiceGatewayPartialUpdateAddressLocationsRequest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_services_request.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_services_request.py index 255558385fd2..a5339a9a991c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_services_request.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_services_request.py @@ -31,7 +31,7 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - client.service_gateways.begin_update_services( + response = client.service_gateways.update_services( resource_group_name="rg1", service_gateway_name="sg", parameters={ @@ -58,9 +58,10 @@ def main(): }, ], }, - ).result() + ) + print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayUpdateServicesRequest.json +# x-ms-original-file: 2025-09-01/ServiceGatewayUpdateServicesRequest.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_tags.py index 58debf92cc24..34c25ab07b3f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/ServiceGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result.py b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result.py index 7bd91e48659a..7c9be0edaa56 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceTagInformationListResult.json +# x-ms-original-file: 2025-09-01/ServiceTagInformationListResult.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_no_address_prefixes.py b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_no_address_prefixes.py index 2865b59a3319..2faebfca045c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_no_address_prefixes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_no_address_prefixes.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceTagInformationListResultWithNoAddressPrefixes.json +# x-ms-original-file: 2025-09-01/ServiceTagInformationListResultWithNoAddressPrefixes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_tagname.py b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_tagname.py index 6cbaa7a4b88b..f9e1d39d7a02 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_tagname.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_tag_information_list_result_with_tagname.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/ServiceTagInformationListResultWithTagname.json +# x-ms-original-file: 2025-09-01/ServiceTagInformationListResultWithTagname.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/service_tags_list.py b/sdk/network/azure-mgmt-network/generated_samples/service_tags_list.py index 76c025aa8260..878abac4b39a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/service_tags_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/service_tags_list.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/ServiceTagsList.json +# x-ms-original-file: 2025-09-01/ServiceTagsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_create.py b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_create.py index c3754900f0a9..90bb00395d3e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/StaticCidrs_Create.json +# x-ms-original-file: 2025-09-01/StaticCidrs_Create.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_delete.py b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_delete.py index 0409a25b9beb..0cbb124092c8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/StaticCidrs_Delete.json +# x-ms-original-file: 2025-09-01/StaticCidrs_Delete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_get.py b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_get.py index eb2ca072fdf5..a1b7d344d2fd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/StaticCidrs_Get.json +# x-ms-original-file: 2025-09-01/StaticCidrs_Get.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_list.py b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_list.py index 510ad15565a2..427c9097854c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/static_cidrs_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/StaticCidrs_List.json +# x-ms-original-file: 2025-09-01/StaticCidrs_List.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subgroup_get.py b/sdk/network/azure-mgmt-network/generated_samples/subgroup_get.py index 639c45689530..774aae2f52f1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subgroup_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subgroup_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubgroupGet.json +# x-ms-original-file: 2025-09-01/SubgroupGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subgroup_list.py b/sdk/network/azure-mgmt-network/generated_samples/subgroup_list.py index bd671d97a65b..e1f7e48dde48 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subgroup_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subgroup_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/SubgroupList.json +# x-ms-original-file: 2025-09-01/SubgroupList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create.py index 4b2c3bb5fbce..4a56d95e1861 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreate.json +# x-ms-original-file: 2025-09-01/SubnetCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint.py index 52b8cc2e99d3..af5824a1e3c9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreateServiceEndpoint.json +# x-ms-original-file: 2025-09-01/SubnetCreateServiceEndpoint.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint_network_identifier.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint_network_identifier.py index 59440b341c55..279581dfae87 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint_network_identifier.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_service_endpoint_network_identifier.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreateServiceEndpointNetworkIdentifier.json +# x-ms-original-file: 2025-09-01/SubnetCreateServiceEndpointNetworkIdentifier.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_delegation.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_delegation.py index f7f16316bb77..459cf9a7540e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_delegation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_delegation.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreateWithDelegation.json +# x-ms-original-file: 2025-09-01/SubnetCreateWithDelegation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_service_gateway.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_service_gateway.py index 1d1b59eebf95..7bf5ff05a2c8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_service_gateway.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_service_gateway.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreateWithServiceGateway.json +# x-ms-original-file: 2025-09-01/SubnetCreateWithServiceGateway.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_sharing_scope.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_sharing_scope.py index ee1d5e4a9941..9c16fe9fc470 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_sharing_scope.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_create_with_sharing_scope.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetCreateWithSharingScope.json +# x-ms-original-file: 2025-09-01/SubnetCreateWithSharingScope.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_delete.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_delete.py index 402d9de8dd2f..b8fe02c81cbd 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SubnetDelete.json +# x-ms-original-file: 2025-09-01/SubnetDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_get.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_get.py index ed6032ab96bb..813cca997322 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetGet.json +# x-ms-original-file: 2025-09-01/SubnetGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_delegation.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_delegation.py index 63f9df460bbb..503b343058c1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_delegation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_delegation.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetGetWithDelegation.json +# x-ms-original-file: 2025-09-01/SubnetGetWithDelegation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_sharing_scope.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_sharing_scope.py index afd5a0baa632..f18b84454817 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_sharing_scope.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_get_with_sharing_scope.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/SubnetGetWithSharingScope.json +# x-ms-original-file: 2025-09-01/SubnetGetWithSharingScope.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_list.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_list.py index fed2e83d35c8..79c9089dc5eb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/SubnetList.json +# x-ms-original-file: 2025-09-01/SubnetList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_prepare_network_policies.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_prepare_network_policies.py index bd30df379e07..f9731f71843b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_prepare_network_policies.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_prepare_network_policies.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SubnetPrepareNetworkPolicies.json +# x-ms-original-file: 2025-09-01/SubnetPrepareNetworkPolicies.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/subnet_unprepare_network_policies.py b/sdk/network/azure-mgmt-network/generated_samples/subnet_unprepare_network_policies.py index 1867cad3da6d..dac572e1d8cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/subnet_unprepare_network_policies.py +++ b/sdk/network/azure-mgmt-network/generated_samples/subnet_unprepare_network_policies.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/SubnetUnprepareNetworkPolicies.json +# x-ms-original-file: 2025-09-01/SubnetUnprepareNetworkPolicies.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/usage_list.py b/sdk/network/azure-mgmt-network/generated_samples/usage_list.py index 32bc67e669a7..a8fbcb7a9be5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/usage_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/usage_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/UsageList.json +# x-ms-original-file: 2025-09-01/UsageList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/usage_list_spaced_location.py b/sdk/network/azure-mgmt-network/generated_samples/usage_list_spaced_location.py index 879a52b5ad29..5541efb9882e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/usage_list_spaced_location.py +++ b/sdk/network/azure-mgmt-network/generated_samples/usage_list_spaced_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/UsageListSpacedLocation.json +# x-ms-original-file: 2025-09-01/UsageListSpacedLocation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_delete.py b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_delete.py index 634a0ed25104..d8990c56de7d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VerifierWorkspaceDelete.json +# x-ms-original-file: 2025-09-01/VerifierWorkspaceDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_get.py b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_get.py index 5ad03df72188..c1ee20489486 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VerifierWorkspaceGet.json +# x-ms-original-file: 2025-09-01/VerifierWorkspaceGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_list.py b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_list.py index 7dc6e66618fe..fcae65dd37c9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VerifierWorkspaceList.json +# x-ms-original-file: 2025-09-01/VerifierWorkspaceList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_patch.py b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_patch.py index a030ebf4fd51..267fcf1dacfc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_patch.py +++ b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VerifierWorkspacePatch.json +# x-ms-original-file: 2025-09-01/VerifierWorkspacePatch.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_put.py b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_put.py index ffaf9be329a3..0c4dc42441c1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/verifier_workspace_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VerifierWorkspacePut.json +# x-ms-original-file: 2025-09-01/VerifierWorkspacePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_delete.py index 60550efe5cf7..aa650fbf055b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualHubBgpConnectionDelete.json +# x-ms-original-file: 2025-09-01/VirtualHubBgpConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_get.py index 869494675f90..3b36c39ebe8d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubBgpConnectionGet.json +# x-ms-original-file: 2025-09-01/VirtualHubBgpConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_list.py index 16b2df33aac6..a3648233342d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualHubBgpConnectionList.json +# x-ms-original-file: 2025-09-01/VirtualHubBgpConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_put.py index ac89dabcf71b..37c9b68302c7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_bgp_connection_put.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubBgpConnectionPut.json +# x-ms-original-file: 2025-09-01/VirtualHubBgpConnectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_delete.py index d47ba1237cad..4c897e9a731c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualHubDelete.json +# x-ms-original-file: 2025-09-01/VirtualHubDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_get.py index 8d7bff797699..d9389bf5db2a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubGet.json +# x-ms-original-file: 2025-09-01/VirtualHubGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_delete.py index 24d16f2c3e4e..104d5fed8679 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualHubIpConfigurationDelete.json +# x-ms-original-file: 2025-09-01/VirtualHubIpConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_get.py index 423622accfb0..de77c83293ed 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubIpConfigurationGet.json +# x-ms-original-file: 2025-09-01/VirtualHubIpConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_list.py index d8e272cc886e..c239b9b669ee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualHubIpConfigurationList.json +# x-ms-original-file: 2025-09-01/VirtualHubIpConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_put.py index 9b2740612f4a..0f4a607af188 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_ip_configuration_put.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubIpConfigurationPut.json +# x-ms-original-file: 2025-09-01/VirtualHubIpConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list.py index 8b8373d30ada..63937c309ab6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualHubList.json +# x-ms-original-file: 2025-09-01/VirtualHubList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list_by_resource_group.py index c6660b4ca015..6b8fbe377dd5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualHubListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VirtualHubListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_put.py index 87e32715b93d..6277b585f6a1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_put.py @@ -38,6 +38,7 @@ def main(): "location": "West US", "properties": { "addressPrefix": "10.168.0.0/24", + "addressPrefixV6": "2001:db8::/56", "sku": "Basic", "virtualWan": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1" @@ -49,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubPut.json +# x-ms-original-file: 2025-09-01/VirtualHubPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_delete.py index 7939a11811e2..70c3c374612b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualHubRouteTableV2Delete.json +# x-ms-original-file: 2025-09-01/VirtualHubRouteTableV2Delete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_get.py index ae8dc9b725a8..596e4ffd6927 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubRouteTableV2Get.json +# x-ms-original-file: 2025-09-01/VirtualHubRouteTableV2Get.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_list.py index 7892093af2d5..f52c03c3f191 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualHubRouteTableV2List.json +# x-ms-original-file: 2025-09-01/VirtualHubRouteTableV2List.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_put.py index 3617c16e7891..7216b6cf1aaa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_route_table_v2_put.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubRouteTableV2Put.json +# x-ms-original-file: 2025-09-01/VirtualHubRouteTableV2Put.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_update_tags.py index d5632dd54053..206492a6248a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_hub_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualHubUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualHubUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_create_or_update.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_create_or_update.py index 51eca048f6a8..ce8aa1ee4d70 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_create_or_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_create_or_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_delete.py index be2c629d53e0..ae8802223101 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_Delete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_Delete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_get.py index 5aa4a6310a63..fde0ada1d83e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_Get.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_Get.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list.py index e78a23229caf..80f9c910bc60 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_List.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_List.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list_by_subscription.py index 346bcd9bf92b..e65b861978c0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_ListBySubscription.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_update_tags.py index 91e55f12e9cb..6c3eef435c71 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_appliances_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkAppliances_UpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualNetworkAppliances_UpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_check_ip_address_availability.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_check_ip_address_availability.py index 1318fa2ba1e0..654a3bfb2483 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_check_ip_address_availability.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_check_ip_address_availability.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCheckIPAddressAvailability.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCheckIPAddressAvailability.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create.py index c7bc16fd2131..55919186ec65 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoint_policy.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoint_policy.py index 6f88a8ab4137..623eea54bcaa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoint_policy.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoint_policy.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateServiceEndpointPolicy.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateServiceEndpointPolicy.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoints.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoints.py index 62f904fba458..439a8d237407 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoints.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_service_endpoints.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateServiceEndpoints.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateServiceEndpoints.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet.py index 5f1813176170..5a5f2ead8a06 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateSubnet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateSubnet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_address_prefixes.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_address_prefixes.py index 50251110521e..a87b16ddbc1b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_address_prefixes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_address_prefixes.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateSubnetWithAddressPrefixes.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateSubnetWithAddressPrefixes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_delegation.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_delegation.py index 3644d1134395..0afb57d2ce45 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_delegation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_subnet_with_delegation.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateSubnetWithDelegation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateSubnetWithDelegation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_bgp_communities.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_bgp_communities.py index 99bc4a16ddc6..374aca5cc065 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_bgp_communities.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_bgp_communities.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateWithBgpCommunities.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateWithBgpCommunities.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_encryption.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_encryption.py index 91826b728d23..5d0041a0e6b8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_encryption.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_encryption.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateWithEncryption.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateWithEncryption.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_ipam_pool.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_ipam_pool.py index 50f759d2b309..1b34e2be8cf7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_ipam_pool.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_create_with_ipam_pool.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkCreateWithIpamPool.json +# x-ms-original-file: 2025-09-01/VirtualNetworkCreateWithIpamPool.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_delete.py index 302cef26b191..01452818bb27 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_abort_migration.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_abort_migration.py index 2759ff7aebea..506ad4530c1e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_abort_migration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_abort_migration.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayAbortMigration.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayAbortMigration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_commit_migration.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_commit_migration.py index 7fec02b3e873..6273a0a26296 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_commit_migration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_commit_migration.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayCommitMigration.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayCommitMigration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_create.py index 393b0e4fcd93..dece2e9eb4fb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_create.py @@ -131,6 +131,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_delete.py index 539e5bbc1229..9b840c60ab9f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get.py index 132874f00ad1..9e7e0a358bc5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_ike_sas.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_ike_sas.py index c70cf370e984..caa409198ceb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_ike_sas.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_ike_sas.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionGetIkeSas.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionGetIkeSas.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_shared_key.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_shared_key.py index 8a209f51d6cb..61cd4d98f508 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_shared_key.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_get_shared_key.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionGetSharedKey.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionGetSharedKey.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset.py index 4ad77ef614c4..004cd6bbb010 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionReset.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionReset.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset_shared_key.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset_shared_key.py index 6a44467b373a..ffc9d3e99668 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset_shared_key.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_reset_shared_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionResetSharedKey.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionResetSharedKey.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_set_shared_key.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_set_shared_key.py index 64bae9cbad07..483daeedc526 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_set_shared_key.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_set_shared_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionSetSharedKey.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionSetSharedKey.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture.py index 08d51a4b0ec4..28c3d7f83f3d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionStartPacketCapture.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionStartPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture_filter_data.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture_filter_data.py index 31f6680c6771..6c48caafb975 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture_filter_data.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_start_packet_capture_filter_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_stop_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_stop_packet_capture.py index df12a4c25a71..fc69dea2b6b7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_stop_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_stop_packet_capture.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionStopPacketCapture.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionStopPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_update_tags.py index 9280045c67ec..9edfe22f54f4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connection_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connections_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connections_list.py index ae21f3417486..fd793c503c38 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connections_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_connections_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayConnectionsList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayConnectionsList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_delete.py index 89fdfd2ebe6e..9e1566970d69 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_execute_migration.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_execute_migration.py index 86a093649b58..2068482b4105 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_execute_migration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_execute_migration.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayExecuteMigration.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayExecuteMigration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_client_package.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_client_package.py index d87f31989ddc..b97fcd39def3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_client_package.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_client_package.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGenerateVpnClientPackage.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGenerateVpnClientPackage.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_profile.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_profile.py index 423c232f606f..a9d96a03bd64 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_profile.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_generate_vpn_profile.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGenerateVpnProfile.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGenerateVpnProfile.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get.py index 1dd58c988706..fd453ff7c83e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_advertised_routes.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_advertised_routes.py index 082979c4ee3c..d6a671060c49 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_advertised_routes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_advertised_routes.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetAdvertisedRoutes.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetAdvertisedRoutes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_bgp_peer_status.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_bgp_peer_status.py index 37b8998d62d3..30e724da2b40 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_bgp_peer_status.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_bgp_peer_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetBGPPeerStatus.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetBGPPeerStatus.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_effective_routes.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_effective_routes.py new file mode 100644 index 000000000000..f9ac83b16e39 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_effective_routes.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python virtual_network_gateway_get_effective_routes.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.virtual_network_gateways.begin_get_effective_routes( + resource_group_name="rg1", + virtual_network_gateway_name="vpngw", + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetEffectiveRoutes.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_all_tests_details.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_all_tests_details.py index 429fd77fde36..cd1376fc4de4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_all_tests_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_all_tests_details.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetFailoverAllTestsDetails.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetFailoverAllTestsDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_single_test_details.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_single_test_details.py index 636e6f663d49..fdfe970d1c2b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_single_test_details.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_failover_single_test_details.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetFailoverSingleTestDetails.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetFailoverSingleTestDetails.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_resiliency_information.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_resiliency_information.py index 9c2b383859f4..4ccd92e99b40 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_resiliency_information.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_resiliency_information.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetResiliencyInformation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetResiliencyInformation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_routes_information.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_routes_information.py index 02f867939c7f..3ed6baabf024 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_routes_information.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_routes_information.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetRoutesInformation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetRoutesInformation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_client_ipsec_parameters.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_client_ipsec_parameters.py index 2cb26716dd91..25d9addfeeaa 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_client_ipsec_parameters.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_client_ipsec_parameters.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetVpnClientIpsecParameters.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetVpnClientIpsecParameters.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_profile_package_url.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_profile_package_url.py index 531e5c5c7d79..654901f93a40 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_profile_package_url.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpn_profile_package_url.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetVpnProfilePackageUrl.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetVpnProfilePackageUrl.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpnclient_connection_health.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpnclient_connection_health.py index 0ad20003eeae..86157a183be4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpnclient_connection_health.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_get_vpnclient_connection_health.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayGetVpnclientConnectionHealth.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayGetVpnclientConnectionHealth.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_learned_routes.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_learned_routes.py index 4dab54b70485..b5ea449d83ab 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_learned_routes.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_learned_routes.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayLearnedRoutes.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayLearnedRoutes.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_list.py index 1e50ea1140c9..e9edda888d24 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_delete.py index f290a438689b..660cc241d0bb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayNatRuleDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayNatRuleDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_get.py index 376e65d6c012..c222b749d6c4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayNatRuleGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayNatRuleGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_list.py index 7708829eeebc..6493abed51a9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayNatRuleList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayNatRuleList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_put.py index 914c201398f5..e2c660ad0c13 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_nat_rule_put.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayNatRulePut.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayNatRulePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_prepare_migration.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_prepare_migration.py index 557ef7aacb32..10c55f8055ec 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_prepare_migration.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_prepare_migration.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayPrepareMigration.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayPrepareMigration.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset.py index a61ac1d24c53..4ffafb881cec 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayReset.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayReset.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset_vpn_client_shared_key.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset_vpn_client_shared_key.py index e2f11d81b90c..cfe35e18fdc3 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset_vpn_client_shared_key.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_reset_vpn_client_shared_key.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayResetVpnClientSharedKey.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayResetVpnClientSharedKey.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_set_vpn_client_ipsec_parameters.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_set_vpn_client_ipsec_parameters.py index b850f3139ad6..72405ca258cc 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_set_vpn_client_ipsec_parameters.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_set_vpn_client_ipsec_parameters.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewaySetVpnClientIpsecParameters.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewaySetVpnClientIpsecParameters.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture.py index 88a67af4de19..ecf41e2e944d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayStartPacketCapture.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayStartPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture_filter_data.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture_filter_data.py index 9c18cfafbaaf..1ab1ca7a31ae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture_filter_data.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_packet_capture_filter_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayStartPacketCaptureFilterData.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayStartPacketCaptureFilterData.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_site_failover_simulation.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_site_failover_simulation.py index 59ee6ffcf9c6..260976b83e72 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_site_failover_simulation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_start_site_failover_simulation.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayStartSiteFailoverSimulation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayStartSiteFailoverSimulation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_packet_capture.py index ef8d64fd63ae..87d5ee3b6f8c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_packet_capture.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayStopPacketCapture.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayStopPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_site_failover_simulation.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_site_failover_simulation.py index 459fc34a99dd..e02c2447a5cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_site_failover_simulation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_stop_site_failover_simulation.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayStopSiteFailoverSimulation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayStopSiteFailoverSimulation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_supported_vpn_device.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_supported_vpn_device.py index 0da84c67388d..4256a2d03c09 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_supported_vpn_device.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_supported_vpn_device.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewaySupportedVpnDevice.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewaySupportedVpnDevice.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update.py index 9f9919a39693..b78a8202186a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update.py @@ -112,6 +112,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayUpdate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update_tags.py index 41f94a180d6a..c516aa5ff340 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_vpn_device_configuration_script.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_vpn_device_configuration_script.py index 7124ac1f979a..095ff8e55600 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_vpn_device_configuration_script.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateway_vpn_device_configuration_script.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewayVpnDeviceConfigurationScript.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewayVpnDeviceConfigurationScript.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_disconnect_p2s_vpn_connections.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_disconnect_p2s_vpn_connections.py index 54d9b1c85542..8774abe3c84a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_disconnect_p2s_vpn_connections.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_disconnect_p2s_vpn_connections.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_list_connections.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_list_connections.py index 853c522b59be..a90fa2af3eb8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_list_connections.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_gateways_list_connections.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkGatewaysListConnections.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGatewaysListConnections.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get.py index fca5485c9205..5e7b721fac15 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_ddos_protection_status.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_ddos_protection_status.py index 9f0735fc4a42..cc04c592fb20 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_ddos_protection_status.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_ddos_protection_status.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkGetDdosProtectionStatus.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGetDdosProtectionStatus.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_resource_navigation_links.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_resource_navigation_links.py index 5fcc8fcb06df..609effbf4059 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_resource_navigation_links.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_resource_navigation_links.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGetResourceNavigationLinks.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGetResourceNavigationLinks.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_service_association_links.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_service_association_links.py index 59c96ac72eb5..0ae5c3969be7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_service_association_links.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_service_association_links.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGetServiceAssociationLinks.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGetServiceAssociationLinks.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_service_association_link.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_service_association_link.py index 4b6342b7a83f..5fc95fa5a02a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_service_association_link.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_service_association_link.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGetWithServiceAssociationLink.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGetWithServiceAssociationLink.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_subnet_delegation.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_subnet_delegation.py index 2f864eee5064..e2b39cafc7ac 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_subnet_delegation.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_get_with_subnet_delegation.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkGetWithSubnetDelegation.json +# x-ms-original-file: 2025-09-01/VirtualNetworkGetWithSubnetDelegation.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list.py index dd9b979b92ca..6e2fd042b9ba 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_all.py index 4333c8088794..6b02ba1dbd2f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkListAll.json +# x-ms-original-file: 2025-09-01/VirtualNetworkListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_usage.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_usage.py index 47719463bb42..908dfc3d64d5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_usage.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_list_usage.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkListUsage.json +# x-ms-original-file: 2025-09-01/VirtualNetworkListUsage.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_move_ip_configurations.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_move_ip_configurations.py new file mode 100644 index 000000000000..a54d639c05c7 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_move_ip_configurations.py @@ -0,0 +1,62 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python virtual_network_move_ip_configurations.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.virtual_networks.begin_move_ip_configurations( + resource_group_name="rg1", + virtual_network_name="test-vnet", + body={ + "moveIpConfigurationItems": [ + { + "sourceIpConfiguration": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1/ipConfigurations/ipconfig1" + }, + "targetIpConfiguration": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic2/ipConfigurations/ipconfig2" + }, + }, + { + "sourceIpConfiguration": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic3/ipConfigurations/ipconfig3" + }, + "targetIpConfiguration": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic4/ipConfigurations/ipconfig4" + }, + }, + ] + }, + ).result() + + +# x-ms-original-file: 2025-09-01/VirtualNetworkMoveIpConfigurations.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create.py index 50ee79931c3b..5293185fa21c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create_with_remote_virtual_network_encryption.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create_with_remote_virtual_network_encryption.py index 4873533af7ad..ec18b47140c1 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create_with_remote_virtual_network_encryption.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_create_with_remote_virtual_network_encryption.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py index b7a99e2f61b6..ec444f6676ab 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get.py index 0cd3d1b0141a..e32e55092c6d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get_with_remote_virtual_network_encryption.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get_with_remote_virtual_network_encryption.py index c84719b9d578..c85400803f08 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get_with_remote_virtual_network_encryption.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_get_with_remote_virtual_network_encryption.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list.py index a94acd19c318..8da581975ee9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list_with_remote_virtual_network_encryption.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list_with_remote_virtual_network_encryption.py index fbaeed1cfb51..459831b89d94 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list_with_remote_virtual_network_encryption.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_list_with_remote_virtual_network_encryption.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_sync.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_sync.py index 10d32e245a11..7e7973766987 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_sync.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_peering_sync.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkPeeringSync.json +# x-ms-original-file: 2025-09-01/VirtualNetworkPeeringSync.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_get.py index 7c8e93ce6679..f107e729ef4a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkScalableGatewayGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkScalableGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_update.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_update.py index 7666f4eb7986..d18fad387c41 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_scalable_gateway_update.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkScalableGatewayUpdate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkScalableGatewayUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_create.py index 7d3b4e2e272b..fd5863f2f2ea 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_create.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkSubnetPeeringCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkSubnetPeeringCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_get.py index b1fc9c61ad63..40b6b538c68b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkSubnetPeeringGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkSubnetPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_sync.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_sync.py index c4055e730419..6069436dcdad 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_sync.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_subnet_peering_sync.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkSubnetPeeringSync.json +# x-ms-original-file: 2025-09-01/VirtualNetworkSubnetPeeringSync.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_create.py index d42f2496aefc..33e21735e896 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_create.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkTapCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py index d936a08ce86b..8d590b59bac9 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualNetworkTapDelete.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_get.py index ee0b3881ba33..fd3172ceaa3f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkTapGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list.py index b8bd280ce1ed..0f01dc440f4d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkTapList.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list_all.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list_all.py index 41c5ba94ef95..b4af536bfc3b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list_all.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_list_all.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualNetworkTapListAll.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapListAll.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py index 7fe691cb38ee..19a70ffaef1a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkTapUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualNetworkTapUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_update_tags.py index b4410822c374..3e39b41035b6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualNetworkUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_create.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_create.py index ec627cba24eb..2e0816064b69 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_create.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_create.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkV6SubnetPeeringCreate.json +# x-ms-original-file: 2025-09-01/VirtualNetworkV6SubnetPeeringCreate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_get.py index 6e0e7f780d81..38b742e373e8 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkV6SubnetPeeringGet.json +# x-ms-original-file: 2025-09-01/VirtualNetworkV6SubnetPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_sync.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_sync.py index 3f0545f82510..230aa664c515 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_sync.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_network_v6_subnet_peering_sync.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualNetworkV6SubnetPeeringSync.json +# x-ms-original-file: 2025-09-01/VirtualNetworkV6SubnetPeeringSync.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_delete.py index bbd9c691ec7b..97368f299611 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualRouterDelete.json +# x-ms-original-file: 2025-09-01/VirtualRouterDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_get.py index f686920f625a..69d7c385ed49 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterGet.json +# x-ms-original-file: 2025-09-01/VirtualRouterGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_resource_group.py index 65fd6814c9a5..c16adc8d92e2 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualRouterListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VirtualRouterListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_subscription.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_subscription.py index 53be2218928f..5bc7e8d618f4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_subscription.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualRouterListBySubscription.json +# x-ms-original-file: 2025-09-01/VirtualRouterListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_advertised_route.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_advertised_route.py index ffa45ba75bf0..1c91d42ab78e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_advertised_route.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_advertised_route.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterPeerListAdvertisedRoute.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeerListAdvertisedRoute.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_learned_route.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_learned_route.py index 4bb35918d8cc..50fa04eb01d5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_learned_route.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peer_list_learned_route.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterPeerListLearnedRoute.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeerListLearnedRoute.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_delete.py index 971492522be4..9d7ef378c7d5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualRouterPeeringDelete.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeeringDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_get.py index f99d8e6adcc8..a731aba6a7ae 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterPeeringGet.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeeringGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_list.py index 5075987f3816..8fe1bfa645ce 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualRouterPeeringList.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeeringList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_put.py index f94182fb4f73..cf376ddaf4bf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_peering_put.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterPeeringPut.json +# x-ms-original-file: 2025-09-01/VirtualRouterPeeringPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_put.py index 10bfec9795a5..26f39dcfceaf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_router_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_router_put.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualRouterPut.json +# x-ms-original-file: 2025-09-01/VirtualRouterPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_delete.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_delete.py index a32e1888f5c8..2ecdedb13e8a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VirtualWANDelete.json +# x-ms-original-file: 2025-09-01/VirtualWANDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_get.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_get.py index 109f60776036..8c672d739033 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualWANGet.json +# x-ms-original-file: 2025-09-01/VirtualWANGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list.py index 18083a7187da..36e95353f51e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualWANList.json +# x-ms-original-file: 2025-09-01/VirtualWANList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list_by_resource_group.py index 8e44ec437576..c6271212f7be 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VirtualWANListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VirtualWANListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_put.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_put.py index 2e28fbcc49e1..3160515970ce 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_put.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualWANPut.json +# x-ms-original-file: 2025-09-01/VirtualWANPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_supported_security_providers.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_supported_security_providers.py index 0dcb3704f58e..077bb4135f77 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_supported_security_providers.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_supported_security_providers.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualWanSupportedSecurityProviders.json +# x-ms-original-file: 2025-09-01/VirtualWanSupportedSecurityProviders.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_update_tags.py index 7374b99e52b4..144114c31ed0 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/virtual_wan_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VirtualWANUpdateTags.json +# x-ms-original-file: 2025-09-01/VirtualWANUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_delete.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_delete.py index ed19e0c1ba16..cf637298c6c6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnConnectionDelete.json +# x-ms-original-file: 2025-09-01/VpnConnectionDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_get.py index aa0a6a56cd7c..89b2824905b7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnConnectionGet.json +# x-ms-original-file: 2025-09-01/VpnConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_list.py index afa9f6504d61..be5f0695ca3e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnConnectionList.json +# x-ms-original-file: 2025-09-01/VpnConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_put.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_put.py index f086568d04e7..097b15681860 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_put.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnConnectionPut.json +# x-ms-original-file: 2025-09-01/VpnConnectionPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture.py index faba17ae333b..fe2d73baa37d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnConnectionStartPacketCapture.json +# x-ms-original-file: 2025-09-01/VpnConnectionStartPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture_filter_data.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture_filter_data.py index b4451576e573..d3d37f6b62c7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture_filter_data.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_start_packet_capture_filter_data.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnConnectionStartPacketCaptureFilterData.json +# x-ms-original-file: 2025-09-01/VpnConnectionStartPacketCaptureFilterData.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_stop_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_stop_packet_capture.py index 5a0bd2285989..e97b08a5fae7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_stop_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_connection_stop_packet_capture.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnConnectionStopPacketCapture.json +# x-ms-original-file: 2025-09-01/VpnConnectionStopPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_delete.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_delete.py index b6250be1adbf..b8e2661d0fa6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnGatewayDelete.json +# x-ms-original-file: 2025-09-01/VpnGatewayDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_get.py index afdcea3da3fe..3dfa68b3ddd4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayGet.json +# x-ms-original-file: 2025-09-01/VpnGatewayGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list.py index bcc9f7d16694..87fa2ac5f766 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnGatewayList.json +# x-ms-original-file: 2025-09-01/VpnGatewayList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list_by_resource_group.py index ce14f6f20119..b407742a0d5a 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnGatewayListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VpnGatewayListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_put.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_put.py index 8fde7b36526f..4da641779054 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_put.py @@ -97,6 +97,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayPut.json +# x-ms-original-file: 2025-09-01/VpnGatewayPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_reset.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_reset.py index 64423797bc0c..77e7a757e4ed 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_reset.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_reset.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayReset.json +# x-ms-original-file: 2025-09-01/VpnGatewayReset.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture.py index 639635dd66d4..87551a45550b 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayStartPacketCapture.json +# x-ms-original-file: 2025-09-01/VpnGatewayStartPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture_filter_data.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture_filter_data.py index 2761d2226702..88c11d85aff4 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture_filter_data.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_start_packet_capture_filter_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayStartPacketCaptureFilterData.json +# x-ms-original-file: 2025-09-01/VpnGatewayStartPacketCaptureFilterData.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_stop_packet_capture.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_stop_packet_capture.py index d84f7786dcc2..763196663318 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_stop_packet_capture.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_stop_packet_capture.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayStopPacketCapture.json +# x-ms-original-file: 2025-09-01/VpnGatewayStopPacketCapture.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_update_tags.py index 54a611ffdac4..ca34e0c60930 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_gateway_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnGatewayUpdateTags.json +# x-ms-original-file: 2025-09-01/VpnGatewayUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_delete.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_delete.py index f0d8305e895c..fb738b222cb6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnServerConfigurationDelete.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_get.py index e702eefef10d..ef646cf5cc03 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnServerConfigurationGet.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list.py index 1abea437541e..9575cf8eae02 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnServerConfigurationList.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list_by_resource_group.py index 4f4378abca6e..92024405c851 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnServerConfigurationListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_put.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_put.py index b417cc3c498d..3cd9dd7dd1cf 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_put.py @@ -112,6 +112,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnServerConfigurationPut.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_update_tags.py index 1bfdf7eda271..0ac91bcb9380 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_server_configuration_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnServerConfigurationUpdateTags.json +# x-ms-original-file: 2025-09-01/VpnServerConfigurationUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_delete.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_delete.py index 6c8a49a776ed..8db1f4765533 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnSiteDelete.json +# x-ms-original-file: 2025-09-01/VpnSiteDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_get.py index 6b6fef8d7db1..11e0e8d66ffb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteGet.json +# x-ms-original-file: 2025-09-01/VpnSiteGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_get.py index db3a19e3f198..5445a6d7c978 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionDefaultSharedKeyGet.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionDefaultSharedKeyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_list.py index 7e9052df26a2..d4680c3f757c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_list.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionDefaultSharedKeyList.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionDefaultSharedKeyList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_put.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_put.py index 801e46f125f4..447ab983cd2d 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_default_shared_key_put.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionDefaultSharedKeyPut.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionDefaultSharedKeyPut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get.py index 35662023aadb..36611ead4919 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionGet.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get_ike_sas.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get_ike_sas.py index cc055adb311b..b95d3f6df3e7 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get_ike_sas.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_get_ike_sas.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionGetIkeSas.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionGetIkeSas.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_list.py index bc698a4f1a11..ba8885c2f176 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionList.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_reset.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_reset.py index 9b50e75eece4..090be700ed99 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_reset.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_reset.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionReset.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionReset.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_shared_keys_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_shared_keys_get.py index 1351b374a855..85c84b78174f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_shared_keys_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_connection_shared_keys_get.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnSiteLinkConnectionSharedKeysGet.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkConnectionSharedKeysGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_get.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_get.py index a7299b8a6ae1..cc35bd792747 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteLinkGet.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_list_by_vpn_site.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_list_by_vpn_site.py index e2a4be590dc6..a70ab789e5f6 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_list_by_vpn_site.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_link_list_by_vpn_site.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnSiteLinkListByVpnSite.json +# x-ms-original-file: 2025-09-01/VpnSiteLinkListByVpnSite.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list.py index 78ea29a69e23..7ee4534ff87e 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnSiteList.json +# x-ms-original-file: 2025-09-01/VpnSiteList.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list_by_resource_group.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list_by_resource_group.py index cc886efefe8b..ce5086241a83 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list_by_resource_group.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/VpnSiteListByResourceGroup.json +# x-ms-original-file: 2025-09-01/VpnSiteListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_put.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_put.py index cb41d1d8704f..b8c20fef1ccb 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_put.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_put.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSitePut.json +# x-ms-original-file: 2025-09-01/VpnSitePut.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_update_tags.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_update_tags.py index 77a81d140dd6..8f42e98ea01f 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_site_update_tags.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_site_update_tags.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/VpnSiteUpdateTags.json +# x-ms-original-file: 2025-09-01/VpnSiteUpdateTags.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/vpn_sites_configuration_download.py b/sdk/network/azure-mgmt-network/generated_samples/vpn_sites_configuration_download.py index cd9daf78d61c..0eaac075a071 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/vpn_sites_configuration_download.py +++ b/sdk/network/azure-mgmt-network/generated_samples/vpn_sites_configuration_download.py @@ -43,6 +43,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/VpnSitesConfigurationDownload.json +# x-ms-original-file: 2025-09-01/VpnSitesConfigurationDownload.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/waf_list_all_policies.py b/sdk/network/azure-mgmt-network/generated_samples/waf_list_all_policies.py index d564874a4e98..578fedab71b5 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/waf_list_all_policies.py +++ b/sdk/network/azure-mgmt-network/generated_samples/waf_list_all_policies.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WafListAllPolicies.json +# x-ms-original-file: 2025-09-01/WafListAllPolicies.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/waf_list_policies.py b/sdk/network/azure-mgmt-network/generated_samples/waf_list_policies.py index 2a04b87cc797..93804e2e5548 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/waf_list_policies.py +++ b/sdk/network/azure-mgmt-network/generated_samples/waf_list_policies.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-07-01/WafListPolicies.json +# x-ms-original-file: 2025-09-01/WafListPolicies.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_create_or_update.py b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_create_or_update.py index 429119c4bb7a..01e54afcd1ee 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_create_or_update.py +++ b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_create_or_update.py @@ -241,6 +241,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WafPolicyCreateOrUpdate.json +# x-ms-original-file: 2025-09-01/WafPolicyCreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_delete.py b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_delete.py index 41deca2371ff..5a48b5a2f221 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_delete.py +++ b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-07-01/WafPolicyDelete.json +# x-ms-original-file: 2025-09-01/WafPolicyDelete.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_get.py b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_get.py index e442afdb45fb..62c464f7326c 100644 --- a/sdk/network/azure-mgmt-network/generated_samples/waf_policy_get.py +++ b/sdk/network/azure-mgmt-network/generated_samples/waf_policy_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-07-01/WafPolicyGet.json +# x-ms-original-file: 2025-09-01/WafPolicyGet.json if __name__ == "__main__": main() diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management.py index c16950180001..42ab351ef58b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management.py @@ -34,7 +34,7 @@ def test_begin_put_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result result = [r for r in response] # please add some check logic here by yourself @@ -56,7 +56,7 @@ def test_begin_delete_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_begin_delete_bastion_shareable_link_by_token(self, resource_group): resource_group_name=resource_group.name, bastion_host_name="str", bsl_token_request={"tokens": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_get_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -103,7 +103,7 @@ def test_begin_get_active_sessions(self, resource_group): response = self.client.begin_get_active_sessions( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result result = [r for r in response] # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_disconnect_active_sessions(self, resource_group): resource_group_name=resource_group.name, bastion_host_name="str", session_ids={"sessionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -127,7 +127,7 @@ def test_disconnect_active_sessions(self, resource_group): def test_express_route_provider_port(self, resource_group): response = self.client.express_route_provider_port( providerport="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ def test_list_active_connectivity_configurations(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -153,7 +153,7 @@ def test_list_active_security_admin_rules(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -166,7 +166,7 @@ def test_list_network_manager_effective_connectivity_configurations(self, resour resource_group_name=resource_group.name, virtual_network_name="str", parameters={"skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -179,7 +179,7 @@ def test_list_network_manager_effective_security_admin_rules(self, resource_grou resource_group_name=resource_group.name, virtual_network_name="str", parameters={"skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -191,7 +191,7 @@ def test_supported_security_providers(self, resource_group): response = self.client.supported_security_providers( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -204,7 +204,7 @@ def test_begin_generatevirtualwanvpnserverconfigurationvpnprofile(self, resource resource_group_name=resource_group.name, virtual_wan_name="str", vpn_client_params={"authenticationMethod": "str", "vpnServerConfigurationResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -216,7 +216,7 @@ def test_check_dns_name_availability(self, resource_group): response = self.client.check_dns_name_availability( location="str", domain_name_label="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations.py new file mode 100644 index 000000000000..de012e6716fd --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementAddressPrefixSetsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_address_prefix_sets_get(self, resource_group): + response = self.client.address_prefix_sets.get( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_address_prefix_sets_begin_create_or_update(self, resource_group): + response = self.client.address_prefix_sets.begin_create_or_update( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + resource={ + "etag": "str", + "id": "str", + "name": "str", + "properties": {"addressPrefixes": ["str"], "provisioningState": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_address_prefix_sets_begin_delete(self, resource_group): + response = self.client.address_prefix_sets.begin_delete( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_address_prefix_sets_list(self, resource_group): + response = self.client.address_prefix_sets.list( + resource_group_name=resource_group.name, + application_security_group_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations_async.py new file mode 100644 index 000000000000..7150862c96f2 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_address_prefix_sets_operations_async.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network.aio import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementAddressPrefixSetsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_address_prefix_sets_get(self, resource_group): + response = await self.client.address_prefix_sets.get( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_address_prefix_sets_begin_create_or_update(self, resource_group): + response = await ( + await self.client.address_prefix_sets.begin_create_or_update( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + resource={ + "etag": "str", + "id": "str", + "name": "str", + "properties": {"addressPrefixes": ["str"], "provisioningState": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_address_prefix_sets_begin_delete(self, resource_group): + response = await ( + await self.client.address_prefix_sets.begin_delete( + resource_group_name=resource_group.name, + application_security_group_name="str", + address_prefix_set_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_address_prefix_sets_list(self, resource_group): + response = self.client.address_prefix_sets.list( + resource_group_name=resource_group.name, + application_security_group_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations.py index c56e1b64eea6..e2dc264f614d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations.py @@ -26,7 +26,7 @@ def test_admin_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_admin_rule_collections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_admin_rule_collections_begin_delete(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_admin_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations_async.py index 64416b9e49be..cbbf79ef5204 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rule_collections_operations_async.py @@ -27,7 +27,7 @@ async def test_admin_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_admin_rule_collections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_admin_rule_collections_begin_delete(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -90,7 +90,7 @@ async def test_admin_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations.py index f04b40aeb033..dc624fd1c5ca 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations.py @@ -27,7 +27,7 @@ def test_admin_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_admin_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -85,7 +85,7 @@ def test_admin_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_admin_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations_async.py index 5859aa76bf3b..4c07b09e2c75 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_admin_rules_operations_async.py @@ -28,7 +28,7 @@ async def test_admin_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -71,7 +71,7 @@ async def test_admin_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ async def test_admin_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -102,7 +102,7 @@ async def test_admin_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations.py index 64fa8b0a00c4..d33da76e4f7b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations.py @@ -26,7 +26,7 @@ def test_application_gateway_private_endpoint_connections_get(self, resource_gro resource_group_name=resource_group.name, application_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -632,7 +632,13 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -664,6 +670,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -751,7 +758,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -794,6 +805,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1101,6 +1113,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1550,7 +1563,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1593,6 +1610,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1686,6 +1704,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1753,6 +1772,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2350,7 +2370,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2393,6 +2417,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2641,6 +2666,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2690,6 +2716,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3015,6 +3042,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3424,7 +3452,13 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3456,6 +3490,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3549,6 +3584,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3598,6 +3634,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3964,6 +4001,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4397,7 +4435,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4438,6 +4480,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4531,6 +4574,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4596,6 +4640,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5476,7 +5521,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5517,6 +5566,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5609,6 +5659,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5674,6 +5725,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6117,7 +6169,13 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6149,6 +6207,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6449,7 +6508,11 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6490,6 +6553,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6514,6 +6578,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6575,6 +6640,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6640,6 +6706,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6724,6 +6791,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6775,6 +6843,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6822,6 +6891,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6886,6 +6956,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6941,6 +7012,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6992,6 +7064,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7196,6 +7269,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7247,6 +7321,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7462,7 +7537,7 @@ def test_application_gateway_private_endpoint_connections_begin_update(self, res }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7475,7 +7550,7 @@ def test_application_gateway_private_endpoint_connections_begin_delete(self, res resource_group_name=resource_group.name, application_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7487,7 +7562,7 @@ def test_application_gateway_private_endpoint_connections_list(self, resource_gr response = self.client.application_gateway_private_endpoint_connections.list( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations_async.py index 2ef3e8f1d2ae..32620821656a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_endpoint_connections_operations_async.py @@ -27,7 +27,7 @@ async def test_application_gateway_private_endpoint_connections_get(self, resour resource_group_name=resource_group.name, application_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -642,7 +642,13 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -674,6 +680,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -766,6 +773,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -813,6 +821,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1129,6 +1138,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1583,6 +1593,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1630,6 +1641,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1723,6 +1735,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1790,6 +1803,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2396,6 +2410,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2443,6 +2458,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2693,6 +2709,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2744,6 +2761,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3079,6 +3097,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3496,7 +3515,13 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3528,6 +3553,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3621,6 +3647,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3672,6 +3699,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4050,6 +4078,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4499,7 +4528,11 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4542,6 +4575,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4635,6 +4669,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4702,6 +4737,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5607,7 +5643,11 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5650,6 +5690,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5742,6 +5783,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5809,6 +5851,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6256,7 +6299,13 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6288,6 +6337,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6593,7 +6643,11 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6636,6 +6690,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6660,6 +6715,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6721,6 +6777,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6788,6 +6845,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6874,6 +6932,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6925,6 +6984,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6974,6 +7034,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7041,6 +7102,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7102,6 +7164,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7167,6 +7230,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7371,6 +7435,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7436,6 +7501,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7653,7 +7719,7 @@ async def test_application_gateway_private_endpoint_connections_begin_update(sel }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7668,7 +7734,7 @@ async def test_application_gateway_private_endpoint_connections_begin_delete(sel resource_group_name=resource_group.name, application_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7681,7 +7747,7 @@ async def test_application_gateway_private_endpoint_connections_list(self, resou response = self.client.application_gateway_private_endpoint_connections.list( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations.py index 646ecca8dff1..00b65badadcd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations.py @@ -24,7 +24,7 @@ def test_application_gateway_private_link_resources_list(self, resource_group): response = self.client.application_gateway_private_link_resources.list( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations_async.py index 30f0ac0c6314..8b588a5c9fb5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_private_link_resources_operations_async.py @@ -25,7 +25,7 @@ async def test_application_gateway_private_link_resources_list(self, resource_gr response = self.client.application_gateway_private_link_resources.list( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations.py index 38a05d7c062b..487ee3f40cd7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_application_gateway_waf_dynamic_manifests_default_get(self, resource_group): response = self.client.application_gateway_waf_dynamic_manifests_default.get( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations_async.py index 95ff15cd7637..abbd9a9f710e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_default_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_application_gateway_waf_dynamic_manifests_default_get(self, resource_group): response = await self.client.application_gateway_waf_dynamic_manifests_default.get( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations.py index a89a624ce006..ea283eb8c835 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_application_gateway_waf_dynamic_manifests_get(self, resource_group): response = self.client.application_gateway_waf_dynamic_manifests.get( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations_async.py index 51668f3d8c05..4403d64ab56a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateway_waf_dynamic_manifests_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_application_gateway_waf_dynamic_manifests_get(self, resource_group): response = self.client.application_gateway_waf_dynamic_manifests.get( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations.py index 3305bf2ae850..23362b4770fa 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations.py @@ -25,7 +25,7 @@ def test_application_gateways_get(self, resource_group): response = self.client.application_gateways.get( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -548,6 +548,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -745,6 +746,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1216,6 +1218,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1312,6 +1315,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1518,7 +1522,13 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1550,6 +1560,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1630,7 +1641,13 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1662,6 +1679,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1944,6 +1962,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2005,6 +2024,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2072,6 +2092,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2242,6 +2263,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2303,6 +2325,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2370,6 +2393,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2800,6 +2824,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2861,6 +2886,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2928,6 +2954,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3001,6 +3028,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3070,6 +3098,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3137,6 +3166,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3327,6 +3357,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4526,7 +4557,13 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4558,6 +4595,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4651,6 +4689,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4702,6 +4741,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5921,7 +5961,11 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "type": "str", } ], - "globalConfiguration": {"enableRequestBuffering": bool, "enableResponseBuffering": bool}, + "globalConfiguration": { + "disableDefaultServerHeaderInResponse": bool, + "enableRequestBuffering": bool, + "enableResponseBuffering": bool, + }, "httpListeners": [ { "etag": "str", @@ -6594,7 +6638,13 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6626,6 +6676,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6718,6 +6769,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6769,6 +6821,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7110,6 +7163,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7570,6 +7624,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7621,6 +7676,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7723,6 +7779,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7790,6 +7847,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8415,6 +8473,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8466,6 +8525,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8723,6 +8783,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8790,6 +8851,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9135,6 +9197,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -9584,7 +9647,11 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -9627,6 +9694,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9720,6 +9788,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9787,6 +9856,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10173,6 +10243,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -10629,6 +10700,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10678,6 +10750,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10778,6 +10851,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10845,6 +10919,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11783,6 +11858,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11832,6 +11908,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11931,6 +12008,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11998,6 +12076,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12458,7 +12537,13 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -12490,6 +12575,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -12816,6 +12902,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12865,6 +12952,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12892,6 +12980,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -12953,6 +13042,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13020,6 +13110,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13115,6 +13206,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13176,6 +13268,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13241,6 +13334,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13308,6 +13402,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13369,6 +13464,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13436,6 +13532,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13652,6 +13749,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13719,6 +13817,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14217,7 +14316,7 @@ def test_application_gateways_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14230,7 +14329,7 @@ def test_application_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, application_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14242,7 +14341,7 @@ def test_application_gateways_begin_delete(self, resource_group): response = self.client.application_gateways.begin_delete( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14253,7 +14352,7 @@ def test_application_gateways_begin_delete(self, resource_group): def test_application_gateways_list(self, resource_group): response = self.client.application_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -14263,7 +14362,7 @@ def test_application_gateways_list(self, resource_group): @recorded_by_proxy def test_application_gateways_list_all(self, resource_group): response = self.client.application_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -14275,7 +14374,7 @@ def test_application_gateways_begin_start(self, resource_group): response = self.client.application_gateways.begin_start( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14287,7 +14386,7 @@ def test_application_gateways_begin_stop(self, resource_group): response = self.client.application_gateways.begin_stop( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14299,7 +14398,7 @@ def test_application_gateways_begin_backend_health(self, resource_group): response = self.client.application_gateways.begin_backend_health( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14322,7 +14421,7 @@ def test_application_gateways_begin_backend_health_on_demand(self, resource_grou "protocol": "str", "timeout": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -14332,7 +14431,7 @@ def test_application_gateways_begin_backend_health_on_demand(self, resource_grou @recorded_by_proxy def test_application_gateways_list_available_ssl_options(self, resource_group): response = self.client.application_gateways.list_available_ssl_options( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14342,7 +14441,7 @@ def test_application_gateways_list_available_ssl_options(self, resource_group): @recorded_by_proxy def test_application_gateways_list_available_ssl_predefined_policies(self, resource_group): response = self.client.application_gateways.list_available_ssl_predefined_policies( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -14353,7 +14452,7 @@ def test_application_gateways_list_available_ssl_predefined_policies(self, resou def test_application_gateways_get_ssl_predefined_policy(self, resource_group): response = self.client.application_gateways.get_ssl_predefined_policy( predefined_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14363,7 +14462,7 @@ def test_application_gateways_get_ssl_predefined_policy(self, resource_group): @recorded_by_proxy def test_application_gateways_list_available_server_variables(self, resource_group): response = self.client.application_gateways.list_available_server_variables( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14373,7 +14472,7 @@ def test_application_gateways_list_available_server_variables(self, resource_gro @recorded_by_proxy def test_application_gateways_list_available_request_headers(self, resource_group): response = self.client.application_gateways.list_available_request_headers( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14383,7 +14482,7 @@ def test_application_gateways_list_available_request_headers(self, resource_grou @recorded_by_proxy def test_application_gateways_list_available_response_headers(self, resource_group): response = self.client.application_gateways.list_available_response_headers( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14393,7 +14492,7 @@ def test_application_gateways_list_available_response_headers(self, resource_gro @recorded_by_proxy def test_application_gateways_list_available_waf_rule_sets(self, resource_group): response = self.client.application_gateways.list_available_waf_rule_sets( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations_async.py index 9f1c2dd267de..a52d9f8cd927 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_gateways_operations_async.py @@ -26,7 +26,7 @@ async def test_application_gateways_get(self, resource_group): response = await self.client.application_gateways.get( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -559,6 +559,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -756,6 +757,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1245,6 +1247,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1343,6 +1346,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1551,7 +1555,13 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1583,6 +1593,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1670,7 +1681,11 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1711,6 +1726,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1999,6 +2015,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2060,6 +2077,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2127,6 +2145,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2301,6 +2320,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2370,6 +2390,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2437,6 +2458,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2867,6 +2889,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2928,6 +2951,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2995,6 +3019,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3070,6 +3095,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3139,6 +3165,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3206,6 +3233,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3398,6 +3426,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4615,7 +4644,11 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4656,6 +4689,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4749,6 +4783,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4814,6 +4849,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6049,7 +6085,11 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "type": "str", } ], - "globalConfiguration": {"enableRequestBuffering": bool, "enableResponseBuffering": bool}, + "globalConfiguration": { + "disableDefaultServerHeaderInResponse": bool, + "enableRequestBuffering": bool, + "enableResponseBuffering": bool, + }, "httpListeners": [ { "etag": "str", @@ -6742,7 +6782,11 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6783,6 +6827,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6875,6 +6920,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6940,6 +6986,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7285,6 +7332,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7751,6 +7799,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7816,6 +7865,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7920,6 +7970,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7987,6 +8038,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8627,6 +8679,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8692,6 +8745,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8949,6 +9003,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9016,6 +9071,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9365,6 +9421,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -9819,6 +9876,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9866,6 +9924,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9959,6 +10018,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10026,6 +10086,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10418,6 +10479,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10878,6 +10940,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10929,6 +10992,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11031,6 +11095,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11098,6 +11163,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12048,6 +12114,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12099,6 +12166,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12200,6 +12268,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12267,6 +12336,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12737,7 +12807,13 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -12769,6 +12845,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -13100,6 +13177,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13151,6 +13229,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13178,6 +13257,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13247,6 +13327,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13314,6 +13395,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13411,6 +13493,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13472,6 +13555,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13539,6 +13623,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13610,6 +13695,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13671,6 +13757,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13738,6 +13825,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13958,6 +14046,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14025,6 +14114,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14530,7 +14620,7 @@ async def test_application_gateways_begin_create_or_update(self, resource_group) "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14544,7 +14634,7 @@ async def test_application_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, application_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14557,7 +14647,7 @@ async def test_application_gateways_begin_delete(self, resource_group): await self.client.application_gateways.begin_delete( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14569,7 +14659,7 @@ async def test_application_gateways_begin_delete(self, resource_group): async def test_application_gateways_list(self, resource_group): response = self.client.application_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -14579,7 +14669,7 @@ async def test_application_gateways_list(self, resource_group): @recorded_by_proxy_async async def test_application_gateways_list_all(self, resource_group): response = self.client.application_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -14592,7 +14682,7 @@ async def test_application_gateways_begin_start(self, resource_group): await self.client.application_gateways.begin_start( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14606,7 +14696,7 @@ async def test_application_gateways_begin_stop(self, resource_group): await self.client.application_gateways.begin_stop( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14620,7 +14710,7 @@ async def test_application_gateways_begin_backend_health(self, resource_group): await self.client.application_gateways.begin_backend_health( resource_group_name=resource_group.name, application_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14645,7 +14735,7 @@ async def test_application_gateways_begin_backend_health_on_demand(self, resourc "protocol": "str", "timeout": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -14656,7 +14746,7 @@ async def test_application_gateways_begin_backend_health_on_demand(self, resourc @recorded_by_proxy_async async def test_application_gateways_list_available_ssl_options(self, resource_group): response = await self.client.application_gateways.list_available_ssl_options( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14666,7 +14756,7 @@ async def test_application_gateways_list_available_ssl_options(self, resource_gr @recorded_by_proxy_async async def test_application_gateways_list_available_ssl_predefined_policies(self, resource_group): response = self.client.application_gateways.list_available_ssl_predefined_policies( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -14677,7 +14767,7 @@ async def test_application_gateways_list_available_ssl_predefined_policies(self, async def test_application_gateways_get_ssl_predefined_policy(self, resource_group): response = await self.client.application_gateways.get_ssl_predefined_policy( predefined_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14687,7 +14777,7 @@ async def test_application_gateways_get_ssl_predefined_policy(self, resource_gro @recorded_by_proxy_async async def test_application_gateways_list_available_server_variables(self, resource_group): response = await self.client.application_gateways.list_available_server_variables( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14697,7 +14787,7 @@ async def test_application_gateways_list_available_server_variables(self, resour @recorded_by_proxy_async async def test_application_gateways_list_available_request_headers(self, resource_group): response = await self.client.application_gateways.list_available_request_headers( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14707,7 +14797,7 @@ async def test_application_gateways_list_available_request_headers(self, resourc @recorded_by_proxy_async async def test_application_gateways_list_available_response_headers(self, resource_group): response = await self.client.application_gateways.list_available_response_headers( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -14717,7 +14807,7 @@ async def test_application_gateways_list_available_response_headers(self, resour @recorded_by_proxy_async async def test_application_gateways_list_available_waf_rule_sets(self, resource_group): response = await self.client.application_gateways.list_available_waf_rule_sets( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations.py index 6138313d8bd4..fb37f8bfb64a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations.py @@ -24,7 +24,7 @@ def test_application_security_groups_get(self, resource_group): response = self.client.application_security_groups.get( resource_group_name=resource_group.name, application_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_application_security_groups_begin_create_or_update(self, resource_group "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_application_security_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, application_security_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_application_security_groups_begin_delete(self, resource_group): response = self.client.application_security_groups.begin_delete( resource_group_name=resource_group.name, application_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -81,7 +81,7 @@ def test_application_security_groups_begin_delete(self, resource_group): def test_application_security_groups_list(self, resource_group): response = self.client.application_security_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_application_security_groups_list(self, resource_group): @recorded_by_proxy def test_application_security_groups_list_all(self, resource_group): response = self.client.application_security_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations_async.py index 48a51ae5ef95..a6e9a9935bd3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_application_security_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_application_security_groups_get(self, resource_group): response = await self.client.application_security_groups.get( resource_group_name=resource_group.name, application_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_application_security_groups_begin_create_or_update(self, resource "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -61,7 +61,7 @@ async def test_application_security_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, application_security_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ async def test_application_security_groups_begin_delete(self, resource_group): await self.client.application_security_groups.begin_delete( resource_group_name=resource_group.name, application_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -86,7 +86,7 @@ async def test_application_security_groups_begin_delete(self, resource_group): async def test_application_security_groups_list(self, resource_group): response = self.client.application_security_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -96,7 +96,7 @@ async def test_application_security_groups_list(self, resource_group): @recorded_by_proxy_async async def test_application_security_groups_list_all(self, resource_group): response = self.client.application_security_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_async.py index ed5418498fc1..459751bd95d6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_async.py @@ -42,7 +42,7 @@ async def test_begin_put_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result result = [r async for r in response] @@ -72,7 +72,7 @@ async def test_begin_delete_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -87,7 +87,7 @@ async def test_begin_delete_bastion_shareable_link_by_token(self, resource_group resource_group_name=resource_group.name, bastion_host_name="str", bsl_token_request={"tokens": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -110,7 +110,7 @@ async def test_get_bastion_shareable_link(self, resource_group): } ] }, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -123,7 +123,7 @@ async def test_begin_get_active_sessions(self, resource_group): await self.client.begin_get_active_sessions( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result result = [r async for r in response] @@ -137,7 +137,7 @@ async def test_disconnect_active_sessions(self, resource_group): resource_group_name=resource_group.name, bastion_host_name="str", session_ids={"sessionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -148,7 +148,7 @@ async def test_disconnect_active_sessions(self, resource_group): async def test_express_route_provider_port(self, resource_group): response = await self.client.express_route_provider_port( providerport="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -161,7 +161,7 @@ async def test_list_active_connectivity_configurations(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -174,7 +174,7 @@ async def test_list_active_security_admin_rules(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -187,7 +187,7 @@ async def test_list_network_manager_effective_connectivity_configurations(self, resource_group_name=resource_group.name, virtual_network_name="str", parameters={"skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -200,7 +200,7 @@ async def test_list_network_manager_effective_security_admin_rules(self, resourc resource_group_name=resource_group.name, virtual_network_name="str", parameters={"skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -212,7 +212,7 @@ async def test_supported_security_providers(self, resource_group): response = await self.client.supported_security_providers( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -226,7 +226,7 @@ async def test_begin_generatevirtualwanvpnserverconfigurationvpnprofile(self, re resource_group_name=resource_group.name, virtual_wan_name="str", vpn_client_params={"authenticationMethod": "str", "vpnServerConfigurationResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -239,7 +239,7 @@ async def test_check_dns_name_availability(self, resource_group): response = await self.client.check_dns_name_availability( location="str", domain_name_label="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations.py index 5b26667e5c7e..1623ce7ac85d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_available_delegations_list(self, resource_group): response = self.client.available_delegations.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations_async.py index 4dc848667f72..5057998d9c47 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_delegations_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_available_delegations_list(self, resource_group): response = self.client.available_delegations.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations.py index 79b9bda19e4e..58757507e20c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_available_endpoint_services_list(self, resource_group): response = self.client.available_endpoint_services.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations_async.py index 9e199ab638d2..9a2661807a01 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_endpoint_services_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_available_endpoint_services_list(self, resource_group): response = self.client.available_endpoint_services.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations.py index eed783180cb6..7474257b5620 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_available_private_endpoint_types_list(self, resource_group): response = self.client.available_private_endpoint_types.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -35,7 +35,7 @@ def test_available_private_endpoint_types_list_by_resource_group(self, resource_ response = self.client.available_private_endpoint_types.list_by_resource_group( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations_async.py index caa5a92e4328..7ec8177ff5bf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_private_endpoint_types_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_available_private_endpoint_types_list(self, resource_group): response = self.client.available_private_endpoint_types.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -36,7 +36,7 @@ async def test_available_private_endpoint_types_list_by_resource_group(self, res response = self.client.available_private_endpoint_types.list_by_resource_group( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations.py index 1323f29f0bda..b2a7ce36ea1e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations.py @@ -24,7 +24,7 @@ def test_available_resource_group_delegations_list(self, resource_group): response = self.client.available_resource_group_delegations.list( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations_async.py index e909d91ce107..853dbb8126f9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_resource_group_delegations_operations_async.py @@ -25,7 +25,7 @@ async def test_available_resource_group_delegations_list(self, resource_group): response = self.client.available_resource_group_delegations.list( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations.py index e2d622cff317..6abceebf16d8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_available_service_aliases_list(self, resource_group): response = self.client.available_service_aliases.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -35,7 +35,7 @@ def test_available_service_aliases_list_by_resource_group(self, resource_group): response = self.client.available_service_aliases.list_by_resource_group( resource_group_name=resource_group.name, location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations_async.py index f20357240756..acde9cf889a6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_available_service_aliases_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_available_service_aliases_list(self, resource_group): response = self.client.available_service_aliases.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -36,7 +36,7 @@ async def test_available_service_aliases_list_by_resource_group(self, resource_g response = self.client.available_service_aliases.list_by_resource_group( resource_group_name=resource_group.name, location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations.py index c8fc2a24ef24..e6d67075b03e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_azure_firewall_fqdn_tags_list_all(self, resource_group): response = self.client.azure_firewall_fqdn_tags.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations_async.py index 12deaa67174f..5b6e293f0962 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewall_fqdn_tags_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_azure_firewall_fqdn_tags_list_all(self, resource_group): response = self.client.azure_firewall_fqdn_tags.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations.py index 9a9b3f10643a..83698f847594 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations.py @@ -24,7 +24,7 @@ def test_azure_firewalls_get(self, resource_group): response = self.client.azure_firewalls.get( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -160,7 +160,7 @@ def test_azure_firewalls_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -173,7 +173,7 @@ def test_azure_firewalls_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, azure_firewall_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -185,7 +185,7 @@ def test_azure_firewalls_begin_delete(self, resource_group): response = self.client.azure_firewalls.begin_delete( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -196,7 +196,7 @@ def test_azure_firewalls_begin_delete(self, resource_group): def test_azure_firewalls_list(self, resource_group): response = self.client.azure_firewalls.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -206,7 +206,7 @@ def test_azure_firewalls_list(self, resource_group): @recorded_by_proxy def test_azure_firewalls_list_all(self, resource_group): response = self.client.azure_firewalls.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -218,7 +218,7 @@ def test_azure_firewalls_begin_list_learned_prefixes(self, resource_group): response = self.client.azure_firewalls.begin_list_learned_prefixes( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -240,7 +240,7 @@ def test_azure_firewalls_begin_packet_capture(self, resource_group): "protocol": "str", "sasUrl": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -262,7 +262,7 @@ def test_azure_firewalls_begin_packet_capture_operation(self, resource_group): "protocol": "str", "sasUrl": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations_async.py index 9d5beafb6eec..f72a580eee8d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_azure_firewalls_operations_async.py @@ -25,7 +25,7 @@ async def test_azure_firewalls_get(self, resource_group): response = await self.client.azure_firewalls.get( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -162,7 +162,7 @@ async def test_azure_firewalls_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -177,7 +177,7 @@ async def test_azure_firewalls_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, azure_firewall_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -191,7 +191,7 @@ async def test_azure_firewalls_begin_delete(self, resource_group): await self.client.azure_firewalls.begin_delete( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -203,7 +203,7 @@ async def test_azure_firewalls_begin_delete(self, resource_group): async def test_azure_firewalls_list(self, resource_group): response = self.client.azure_firewalls.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -213,7 +213,7 @@ async def test_azure_firewalls_list(self, resource_group): @recorded_by_proxy_async async def test_azure_firewalls_list_all(self, resource_group): response = self.client.azure_firewalls.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -226,7 +226,7 @@ async def test_azure_firewalls_begin_list_learned_prefixes(self, resource_group) await self.client.azure_firewalls.begin_list_learned_prefixes( resource_group_name=resource_group.name, azure_firewall_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -250,7 +250,7 @@ async def test_azure_firewalls_begin_packet_capture(self, resource_group): "protocol": "str", "sasUrl": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -274,7 +274,7 @@ async def test_azure_firewalls_begin_packet_capture_operation(self, resource_gro "protocol": "str", "sasUrl": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations.py index 27808f9476a0..75286c80f420 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations.py @@ -24,7 +24,7 @@ def test_bastion_hosts_get(self, resource_group): response = self.client.bastion_hosts.get( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_bastion_hosts_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_bastion_hosts_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, bastion_host_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_bastion_hosts_begin_delete(self, resource_group): response = self.client.bastion_hosts.begin_delete( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_bastion_hosts_begin_delete(self, resource_group): def test_bastion_hosts_list_by_resource_group(self, resource_group): response = self.client.bastion_hosts.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -121,7 +121,7 @@ def test_bastion_hosts_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_bastion_hosts_list(self, resource_group): response = self.client.bastion_hosts.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations_async.py index 018b51085ecc..c8332c5eedf6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bastion_hosts_operations_async.py @@ -25,7 +25,7 @@ async def test_bastion_hosts_get(self, resource_group): response = await self.client.bastion_hosts.get( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_bastion_hosts_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -92,7 +92,7 @@ async def test_bastion_hosts_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, bastion_host_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -106,7 +106,7 @@ async def test_bastion_hosts_begin_delete(self, resource_group): await self.client.bastion_hosts.begin_delete( resource_group_name=resource_group.name, bastion_host_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -118,7 +118,7 @@ async def test_bastion_hosts_begin_delete(self, resource_group): async def test_bastion_hosts_list_by_resource_group(self, resource_group): response = self.client.bastion_hosts.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -128,7 +128,7 @@ async def test_bastion_hosts_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_bastion_hosts_list(self, resource_group): response = self.client.bastion_hosts.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations.py index 3088ca6fbcdf..5dea16bf053d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_bgp_service_communities_list(self, resource_group): response = self.client.bgp_service_communities.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations_async.py index b4b56e41a08e..eccda8b10d1a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_bgp_service_communities_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_bgp_service_communities_list(self, resource_group): response = self.client.bgp_service_communities.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations.py index d41aac20a74f..d528059e5a10 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations.py @@ -25,7 +25,7 @@ def test_commits_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", commit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_commits_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_commits_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", commit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_commits_list(self, resource_group): response = self.client.commits.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations_async.py index c171b1a361f9..44377f1daa81 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_commits_operations_async.py @@ -26,7 +26,7 @@ async def test_commits_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", commit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_commits_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -79,7 +79,7 @@ async def test_commits_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", commit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -92,7 +92,7 @@ async def test_commits_list(self, resource_group): response = self.client.commits.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations.py index 19563afe0671..cc639a085a3f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations.py @@ -25,7 +25,7 @@ def test_configuration_policy_groups_get(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", configuration_policy_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_configuration_policy_groups_begin_create_or_update(self, resource_group }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_configuration_policy_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", configuration_policy_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_configuration_policy_groups_list_by_vpn_server_configuration(self, reso response = self.client.configuration_policy_groups.list_by_vpn_server_configuration( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations_async.py index 6cc1ee7f8356..e30dfa5cf7b4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_configuration_policy_groups_operations_async.py @@ -26,7 +26,7 @@ async def test_configuration_policy_groups_get(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", configuration_policy_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_configuration_policy_groups_begin_create_or_update(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -68,7 +68,7 @@ async def test_configuration_policy_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", configuration_policy_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -81,7 +81,7 @@ async def test_configuration_policy_groups_list_by_vpn_server_configuration(self response = self.client.configuration_policy_groups.list_by_vpn_server_configuration( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations.py index a11c1732bb2b..9d545efa04a8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations.py @@ -25,7 +25,7 @@ def test_connection_monitors_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -95,7 +95,7 @@ def test_connection_monitors_begin_create_or_update(self, resource_group): "location": "str", "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -109,7 +109,7 @@ def test_connection_monitors_update_tags(self, resource_group): network_watcher_name="str", connection_monitor_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -122,7 +122,7 @@ def test_connection_monitors_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -134,7 +134,7 @@ def test_connection_monitors_list(self, resource_group): response = self.client.connection_monitors.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -147,7 +147,7 @@ def test_connection_monitors_begin_stop(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations_async.py index 14bcbf5846c4..14574f95f342 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_monitors_operations_async.py @@ -26,7 +26,7 @@ async def test_connection_monitors_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -97,7 +97,7 @@ async def test_connection_monitors_begin_create_or_update(self, resource_group): "location": "str", "tags": {"str": "str"}, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -112,7 +112,7 @@ async def test_connection_monitors_update_tags(self, resource_group): network_watcher_name="str", connection_monitor_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -126,7 +126,7 @@ async def test_connection_monitors_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -139,7 +139,7 @@ async def test_connection_monitors_list(self, resource_group): response = self.client.connection_monitors.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -153,7 +153,7 @@ async def test_connection_monitors_begin_stop(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", connection_monitor_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations.py index 6c9f0a26c6a2..faabea19172f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations.py @@ -25,7 +25,7 @@ def test_connection_policies_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_connection_policies_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_connection_policies_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_connection_policies_list(self, resource_group): response = self.client.connection_policies.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations_async.py index e1ac65bffce2..4f85062fa5d3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connection_policies_operations_async.py @@ -26,7 +26,7 @@ async def test_connection_policies_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_connection_policies_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -82,7 +82,7 @@ async def test_connection_policies_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +95,7 @@ async def test_connection_policies_list(self, resource_group): response = self.client.connection_policies.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations.py index b3f8e30c117a..05ecfdd3a712 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations.py @@ -25,7 +25,7 @@ def test_connectivity_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_connectivity_configurations_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_connectivity_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,7 +94,7 @@ def test_connectivity_configurations_list(self, resource_group): response = self.client.connectivity_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations_async.py index da9e15655652..5c26a79fcde3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_connectivity_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_connectivity_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ async def test_connectivity_configurations_create_or_update(self, resource_group }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -84,7 +84,7 @@ async def test_connectivity_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -97,7 +97,7 @@ async def test_connectivity_configurations_list(self, resource_group): response = self.client.connectivity_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations.py index bd68c5c0303b..5d70b22a015d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations.py @@ -24,7 +24,7 @@ def test_custom_ip_prefixes_get(self, resource_group): response = self.client.custom_ip_prefixes.get( resource_group_name=resource_group.name, custom_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_custom_ip_prefixes_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_custom_ip_prefixes_update_tags(self, resource_group): resource_group_name=resource_group.name, custom_ip_prefix_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_custom_ip_prefixes_begin_delete(self, resource_group): response = self.client.custom_ip_prefixes.begin_delete( resource_group_name=resource_group.name, custom_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_custom_ip_prefixes_begin_delete(self, resource_group): def test_custom_ip_prefixes_list(self, resource_group): response = self.client.custom_ip_prefixes.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -109,7 +109,7 @@ def test_custom_ip_prefixes_list(self, resource_group): @recorded_by_proxy def test_custom_ip_prefixes_list_all(self, resource_group): response = self.client.custom_ip_prefixes.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations_async.py index 9b725d054bac..b6aa308da495 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_custom_ip_prefixes_operations_async.py @@ -25,7 +25,7 @@ async def test_custom_ip_prefixes_get(self, resource_group): response = await self.client.custom_ip_prefixes.get( resource_group_name=resource_group.name, custom_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_custom_ip_prefixes_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -79,7 +79,7 @@ async def test_custom_ip_prefixes_update_tags(self, resource_group): resource_group_name=resource_group.name, custom_ip_prefix_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_custom_ip_prefixes_begin_delete(self, resource_group): await self.client.custom_ip_prefixes.begin_delete( resource_group_name=resource_group.name, custom_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -104,7 +104,7 @@ async def test_custom_ip_prefixes_begin_delete(self, resource_group): async def test_custom_ip_prefixes_list(self, resource_group): response = self.client.custom_ip_prefixes.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -114,7 +114,7 @@ async def test_custom_ip_prefixes_list(self, resource_group): @recorded_by_proxy_async async def test_custom_ip_prefixes_list_all(self, resource_group): response = self.client.custom_ip_prefixes.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations.py index daf9a95a54b9..02fe8ccaa9b0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations.py @@ -24,7 +24,7 @@ def test_ddos_custom_policies_get(self, resource_group): response = self.client.ddos_custom_policies.get( resource_group_name=resource_group.name, ddos_custom_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_ddos_custom_policies_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_ddos_custom_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, ddos_custom_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_ddos_custom_policies_begin_delete(self, resource_group): response = self.client.ddos_custom_policies.begin_delete( resource_group_name=resource_group.name, ddos_custom_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_ddos_custom_policies_begin_delete(self, resource_group): def test_ddos_custom_policies_list(self, resource_group): response = self.client.ddos_custom_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -109,7 +109,7 @@ def test_ddos_custom_policies_list(self, resource_group): @recorded_by_proxy def test_ddos_custom_policies_list_all(self, resource_group): response = self.client.ddos_custom_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations_async.py index d7ca9b40a45d..711d607d5afd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_custom_policies_operations_async.py @@ -25,7 +25,7 @@ async def test_ddos_custom_policies_get(self, resource_group): response = await self.client.ddos_custom_policies.get( resource_group_name=resource_group.name, ddos_custom_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_ddos_custom_policies_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -79,7 +79,7 @@ async def test_ddos_custom_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, ddos_custom_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_ddos_custom_policies_begin_delete(self, resource_group): await self.client.ddos_custom_policies.begin_delete( resource_group_name=resource_group.name, ddos_custom_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -104,7 +104,7 @@ async def test_ddos_custom_policies_begin_delete(self, resource_group): async def test_ddos_custom_policies_list(self, resource_group): response = self.client.ddos_custom_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -114,7 +114,7 @@ async def test_ddos_custom_policies_list(self, resource_group): @recorded_by_proxy_async async def test_ddos_custom_policies_list_all(self, resource_group): response = self.client.ddos_custom_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations.py index 8e3d4380086d..3ee9dfa06baf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations.py @@ -24,7 +24,7 @@ def test_ddos_protection_plans_get(self, resource_group): response = self.client.ddos_protection_plans.get( resource_group_name=resource_group.name, ddos_protection_plan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_ddos_protection_plans_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_ddos_protection_plans_update_tags(self, resource_group): resource_group_name=resource_group.name, ddos_protection_plan_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_ddos_protection_plans_begin_delete(self, resource_group): response = self.client.ddos_protection_plans.begin_delete( resource_group_name=resource_group.name, ddos_protection_plan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_ddos_protection_plans_begin_delete(self, resource_group): def test_ddos_protection_plans_list_by_resource_group(self, resource_group): response = self.client.ddos_protection_plans.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_ddos_protection_plans_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_ddos_protection_plans_list(self, resource_group): response = self.client.ddos_protection_plans.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations_async.py index 0267ff275589..6596673022d6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ddos_protection_plans_operations_async.py @@ -25,7 +25,7 @@ async def test_ddos_protection_plans_get(self, resource_group): response = await self.client.ddos_protection_plans.get( resource_group_name=resource_group.name, ddos_protection_plan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_ddos_protection_plans_begin_create_or_update(self, resource_group "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -66,7 +66,7 @@ async def test_ddos_protection_plans_update_tags(self, resource_group): resource_group_name=resource_group.name, ddos_protection_plan_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_ddos_protection_plans_begin_delete(self, resource_group): await self.client.ddos_protection_plans.begin_delete( resource_group_name=resource_group.name, ddos_protection_plan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_ddos_protection_plans_begin_delete(self, resource_group): async def test_ddos_protection_plans_list_by_resource_group(self, resource_group): response = self.client.ddos_protection_plans.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ async def test_ddos_protection_plans_list_by_resource_group(self, resource_group @recorded_by_proxy_async async def test_ddos_protection_plans_list(self, resource_group): response = self.client.ddos_protection_plans.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations.py index 7ea96ba1785a..02569844534a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations.py @@ -25,7 +25,7 @@ def test_default_security_rules_get(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", default_security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_default_security_rules_list(self, resource_group): response = self.client.default_security_rules.list( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations_async.py index 776f6a28ad18..46c58a955c77 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_default_security_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_default_security_rules_get(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", default_security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_default_security_rules_list(self, resource_group): response = self.client.default_security_rules.list( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations.py index b87be27be953..dc1228b9fbe1 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations.py @@ -25,7 +25,7 @@ def test_dscp_configuration_get(self, resource_group): response = self.client.dscp_configuration.get( resource_group_name=resource_group.name, dscp_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -651,7 +651,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -683,6 +689,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -763,7 +770,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -795,6 +808,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1180,6 +1194,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1698,7 +1713,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1730,6 +1751,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1823,6 +1845,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1874,6 +1897,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2547,7 +2571,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2579,6 +2609,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2947,7 +2978,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2979,6 +3016,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3372,7 +3410,11 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3415,6 +3457,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3803,6 +3846,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4297,7 +4341,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4329,6 +4379,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4417,7 +4468,11 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4460,6 +4515,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5015,6 +5071,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5064,6 +5121,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5420,6 +5478,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5930,7 +5989,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5962,6 +6027,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6055,6 +6121,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6104,6 +6171,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7134,7 +7202,13 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7166,6 +7240,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7258,6 +7333,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7307,6 +7383,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7759,7 +7836,7 @@ def test_dscp_configuration_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7771,7 +7848,7 @@ def test_dscp_configuration_begin_delete(self, resource_group): response = self.client.dscp_configuration.begin_delete( resource_group_name=resource_group.name, dscp_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7782,7 +7859,7 @@ def test_dscp_configuration_begin_delete(self, resource_group): def test_dscp_configuration_list(self, resource_group): response = self.client.dscp_configuration.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -7792,7 +7869,7 @@ def test_dscp_configuration_list(self, resource_group): @recorded_by_proxy def test_dscp_configuration_list_all(self, resource_group): response = self.client.dscp_configuration.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations_async.py index 6e5c71b0fd01..13e692f006fa 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_dscp_configuration_operations_async.py @@ -26,7 +26,7 @@ async def test_dscp_configuration_get(self, resource_group): response = await self.client.dscp_configuration.get( resource_group_name=resource_group.name, dscp_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -668,7 +668,13 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -700,6 +706,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -787,7 +794,11 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -828,6 +839,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1216,6 +1228,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1752,7 +1765,11 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1793,6 +1810,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1886,6 +1904,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1951,6 +1970,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2635,7 +2655,11 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2676,6 +2700,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3044,7 +3069,13 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3076,6 +3107,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3477,6 +3509,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3524,6 +3557,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3924,6 +3958,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4430,7 +4465,13 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4462,6 +4503,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4555,6 +4597,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4602,6 +4645,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5169,6 +5213,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5220,6 +5265,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5586,6 +5632,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6104,7 +6151,13 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6136,6 +6189,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6229,6 +6283,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6280,6 +6335,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7328,7 +7384,13 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7360,6 +7422,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7452,6 +7515,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7503,6 +7567,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7965,7 +8030,7 @@ async def test_dscp_configuration_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7979,7 +8044,7 @@ async def test_dscp_configuration_begin_delete(self, resource_group): await self.client.dscp_configuration.begin_delete( resource_group_name=resource_group.name, dscp_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7991,7 +8056,7 @@ async def test_dscp_configuration_begin_delete(self, resource_group): async def test_dscp_configuration_list(self, resource_group): response = self.client.dscp_configuration.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -8001,7 +8066,7 @@ async def test_dscp_configuration_list(self, resource_group): @recorded_by_proxy_async async def test_dscp_configuration_list_all(self, resource_group): response = self.client.dscp_configuration.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations.py index de95561e9009..6ce4100258bd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations.py @@ -25,7 +25,7 @@ def test_express_route_circuit_authorizations_get(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_express_route_circuit_authorizations_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_express_route_circuit_authorizations_begin_delete(self, resource_group) resource_group_name=resource_group.name, circuit_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_express_route_circuit_authorizations_list(self, resource_group): response = self.client.express_route_circuit_authorizations.list( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations_async.py index 865e0df57b16..f072876101d1 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_authorizations_operations_async.py @@ -26,7 +26,7 @@ async def test_express_route_circuit_authorizations_get(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_express_route_circuit_authorizations_begin_create_or_update(self, }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_express_route_circuit_authorizations_begin_delete(self, resource_ resource_group_name=resource_group.name, circuit_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_express_route_circuit_authorizations_list(self, resource_group): response = self.client.express_route_circuit_authorizations.list( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations.py index 58af119f50fe..5cdd8e717c37 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations.py @@ -26,7 +26,7 @@ def test_express_route_circuit_connections_get(self, resource_group): circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -55,7 +55,7 @@ def test_express_route_circuit_connections_begin_create_or_update(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_express_route_circuit_connections_begin_delete(self, resource_group): circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_express_route_circuit_connections_list(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations_async.py index d17826391a7b..54fe45192320 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_connections_operations_async.py @@ -27,7 +27,7 @@ async def test_express_route_circuit_connections_get(self, resource_group): circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -57,7 +57,7 @@ async def test_express_route_circuit_connections_begin_create_or_update(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -73,7 +73,7 @@ async def test_express_route_circuit_connections_begin_delete(self, resource_gro circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -87,7 +87,7 @@ async def test_express_route_circuit_connections_list(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations.py index a906fb0975ff..c3ef7135e307 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations.py @@ -25,7 +25,7 @@ def test_express_route_circuit_peerings_get(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -127,7 +127,7 @@ def test_express_route_circuit_peerings_begin_create_or_update(self, resource_gr }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -140,7 +140,7 @@ def test_express_route_circuit_peerings_begin_delete(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -152,7 +152,7 @@ def test_express_route_circuit_peerings_list(self, resource_group): response = self.client.express_route_circuit_peerings.list( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations_async.py index 3b73024b3aec..69b08349d276 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuit_peerings_operations_async.py @@ -26,7 +26,7 @@ async def test_express_route_circuit_peerings_get(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ async def test_express_route_circuit_peerings_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -154,7 +154,7 @@ async def test_express_route_circuit_peerings_begin_delete(self, resource_group) resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -167,7 +167,7 @@ async def test_express_route_circuit_peerings_list(self, resource_group): response = self.client.express_route_circuit_peerings.list( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations.py index 1b548191171c..05aa67f71a77 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations.py @@ -24,7 +24,7 @@ def test_express_route_circuits_get(self, resource_group): response = self.client.express_route_circuits.get( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -42,6 +42,7 @@ def test_express_route_circuits_begin_create_or_update(self, resource_group): "location": "str", "name": "str", "properties": { + "activationKey": "str", "allowClassicOperations": bool, "authorizationKey": "str", "authorizationStatus": "str", @@ -65,6 +66,7 @@ def test_express_route_circuits_begin_create_or_update(self, resource_group): "expressRoutePort": {"id": "str"}, "gatewayManagerEtag": "str", "globalReachEnabled": bool, + "partnerAccountId": "str", "peerings": [ { "etag": "str", @@ -172,6 +174,7 @@ def test_express_route_circuits_begin_create_or_update(self, resource_group): } ], "provisioningState": "str", + "resiliencyLevel": "str", "serviceKey": "str", "serviceProviderNotes": "str", "serviceProviderProperties": { @@ -186,7 +189,7 @@ def test_express_route_circuits_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -199,7 +202,7 @@ def test_express_route_circuits_update_tags(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -211,7 +214,7 @@ def test_express_route_circuits_begin_delete(self, resource_group): response = self.client.express_route_circuits.begin_delete( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -222,7 +225,7 @@ def test_express_route_circuits_begin_delete(self, resource_group): def test_express_route_circuits_list(self, resource_group): response = self.client.express_route_circuits.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -232,7 +235,7 @@ def test_express_route_circuits_list(self, resource_group): @recorded_by_proxy def test_express_route_circuits_list_all(self, resource_group): response = self.client.express_route_circuits.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -244,7 +247,7 @@ def test_express_route_circuits_get_stats(self, resource_group): response = self.client.express_route_circuits.get_stats( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -256,7 +259,7 @@ def test_express_route_circuits_begin_get_circuit_link_failover_all_tests_detail response = self.client.express_route_circuits.begin_get_circuit_link_failover_all_tests_details( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -271,7 +274,7 @@ def test_express_route_circuits_begin_get_circuit_link_failover_single_test_deta link_type="str", circuit_test_category="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -285,7 +288,7 @@ def test_express_route_circuits_begin_start_circuit_link_failover_test(self, res circuit_name="str", link_type="str", circuit_test_category="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -303,7 +306,7 @@ def test_express_route_circuits_begin_stop_circuit_link_failover_test(self, reso "linkType": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -317,7 +320,7 @@ def test_express_route_circuits_begin_list_arp_table(self, resource_group): circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -331,7 +334,7 @@ def test_express_route_circuits_begin_list_routes_table(self, resource_group): circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -345,7 +348,7 @@ def test_express_route_circuits_begin_list_routes_table_summary(self, resource_g circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -358,7 +361,7 @@ def test_express_route_circuits_get_peering_stats(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations_async.py index 086f865d92ea..acb57f2ef9af 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_circuits_operations_async.py @@ -25,7 +25,7 @@ async def test_express_route_circuits_get(self, resource_group): response = await self.client.express_route_circuits.get( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -44,6 +44,7 @@ async def test_express_route_circuits_begin_create_or_update(self, resource_grou "location": "str", "name": "str", "properties": { + "activationKey": "str", "allowClassicOperations": bool, "authorizationKey": "str", "authorizationStatus": "str", @@ -67,6 +68,7 @@ async def test_express_route_circuits_begin_create_or_update(self, resource_grou "expressRoutePort": {"id": "str"}, "gatewayManagerEtag": "str", "globalReachEnabled": bool, + "partnerAccountId": "str", "peerings": [ { "etag": "str", @@ -174,6 +176,7 @@ async def test_express_route_circuits_begin_create_or_update(self, resource_grou } ], "provisioningState": "str", + "resiliencyLevel": "str", "serviceKey": "str", "serviceProviderNotes": "str", "serviceProviderProperties": { @@ -188,7 +191,7 @@ async def test_express_route_circuits_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -202,7 +205,7 @@ async def test_express_route_circuits_update_tags(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -215,7 +218,7 @@ async def test_express_route_circuits_begin_delete(self, resource_group): await self.client.express_route_circuits.begin_delete( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -227,7 +230,7 @@ async def test_express_route_circuits_begin_delete(self, resource_group): async def test_express_route_circuits_list(self, resource_group): response = self.client.express_route_circuits.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -237,7 +240,7 @@ async def test_express_route_circuits_list(self, resource_group): @recorded_by_proxy_async async def test_express_route_circuits_list_all(self, resource_group): response = self.client.express_route_circuits.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -249,7 +252,7 @@ async def test_express_route_circuits_get_stats(self, resource_group): response = await self.client.express_route_circuits.get_stats( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -262,7 +265,7 @@ async def test_express_route_circuits_begin_get_circuit_link_failover_all_tests_ await self.client.express_route_circuits.begin_get_circuit_link_failover_all_tests_details( resource_group_name=resource_group.name, circuit_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -279,7 +282,7 @@ async def test_express_route_circuits_begin_get_circuit_link_failover_single_tes link_type="str", circuit_test_category="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -295,7 +298,7 @@ async def test_express_route_circuits_begin_start_circuit_link_failover_test(sel circuit_name="str", link_type="str", circuit_test_category="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -315,7 +318,7 @@ async def test_express_route_circuits_begin_stop_circuit_link_failover_test(self "linkType": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -331,7 +334,7 @@ async def test_express_route_circuits_begin_list_arp_table(self, resource_group) circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -347,7 +350,7 @@ async def test_express_route_circuits_begin_list_routes_table(self, resource_gro circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -363,7 +366,7 @@ async def test_express_route_circuits_begin_list_routes_table_summary(self, reso circuit_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -377,7 +380,7 @@ async def test_express_route_circuits_get_peering_stats(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations.py index f49ca3132d39..8154b4cb8395 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations.py @@ -52,7 +52,7 @@ def test_express_route_connections_begin_create_or_update(self, resource_group): "routingWeight": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_express_route_connections_get(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_express_route_connections_begin_delete(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_express_route_connections_list(self, resource_group): response = self.client.express_route_connections.list( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations_async.py index 7e8b5e60f604..4abbda77fa52 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_connections_operations_async.py @@ -56,7 +56,7 @@ async def test_express_route_connections_begin_create_or_update(self, resource_g "routingWeight": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -70,7 +70,7 @@ async def test_express_route_connections_get(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -84,7 +84,7 @@ async def test_express_route_connections_begin_delete(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -97,7 +97,7 @@ async def test_express_route_connections_list(self, resource_group): response = await self.client.express_route_connections.list( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations.py index a49c95f02ee9..db0782be93e6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations.py @@ -24,7 +24,7 @@ def test_express_route_cross_connection_peerings_list(self, resource_group): response = self.client.express_route_cross_connection_peerings.list( resource_group_name=resource_group.name, cross_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_express_route_cross_connection_peerings_begin_delete(self, resource_gro resource_group_name=resource_group.name, cross_connection_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_express_route_cross_connection_peerings_get(self, resource_group): resource_group_name=resource_group.name, cross_connection_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_express_route_cross_connection_peerings_begin_create_or_update(self, re "vlanId": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations_async.py index 2836ec3698da..5f479465b20e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connection_peerings_operations_async.py @@ -25,7 +25,7 @@ async def test_express_route_cross_connection_peerings_list(self, resource_group response = self.client.express_route_cross_connection_peerings.list( resource_group_name=resource_group.name, cross_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_express_route_cross_connection_peerings_begin_delete(self, resour resource_group_name=resource_group.name, cross_connection_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -53,7 +53,7 @@ async def test_express_route_cross_connection_peerings_get(self, resource_group) resource_group_name=resource_group.name, cross_connection_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -120,7 +120,7 @@ async def test_express_route_cross_connection_peerings_begin_create_or_update(se "vlanId": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations.py index d366357e85f3..fd120314261e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations.py @@ -24,7 +24,7 @@ def test_express_route_cross_connections_get(self, resource_group): response = self.client.express_route_cross_connections.get( resource_group_name=resource_group.name, cross_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ def test_express_route_cross_connections_begin_create_or_update(self, resource_g "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -128,7 +128,7 @@ def test_express_route_cross_connections_update_tags(self, resource_group): resource_group_name=resource_group.name, cross_connection_name="str", cross_connection_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ def test_express_route_cross_connections_update_tags(self, resource_group): def test_express_route_cross_connections_list_by_resource_group(self, resource_group): response = self.client.express_route_cross_connections.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -149,7 +149,7 @@ def test_express_route_cross_connections_list_by_resource_group(self, resource_g @recorded_by_proxy def test_express_route_cross_connections_list(self, resource_group): response = self.client.express_route_cross_connections.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -163,7 +163,7 @@ def test_express_route_cross_connections_begin_list_arp_table(self, resource_gro cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -177,7 +177,7 @@ def test_express_route_cross_connections_begin_list_routes_table_summary(self, r cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -191,7 +191,7 @@ def test_express_route_cross_connections_begin_list_routes_table(self, resource_ cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations_async.py index 89b01ee0540d..e86de5a0e2cc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_cross_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_express_route_cross_connections_get(self, resource_group): response = await self.client.express_route_cross_connections.get( resource_group_name=resource_group.name, cross_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -117,7 +117,7 @@ async def test_express_route_cross_connections_begin_create_or_update(self, reso "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -131,7 +131,7 @@ async def test_express_route_cross_connections_update_tags(self, resource_group) resource_group_name=resource_group.name, cross_connection_name="str", cross_connection_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -142,7 +142,7 @@ async def test_express_route_cross_connections_update_tags(self, resource_group) async def test_express_route_cross_connections_list_by_resource_group(self, resource_group): response = self.client.express_route_cross_connections.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -152,7 +152,7 @@ async def test_express_route_cross_connections_list_by_resource_group(self, reso @recorded_by_proxy_async async def test_express_route_cross_connections_list(self, resource_group): response = self.client.express_route_cross_connections.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -167,7 +167,7 @@ async def test_express_route_cross_connections_begin_list_arp_table(self, resour cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -183,7 +183,7 @@ async def test_express_route_cross_connections_begin_list_routes_table_summary(s cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -199,7 +199,7 @@ async def test_express_route_cross_connections_begin_list_routes_table(self, res cross_connection_name="str", peering_name="str", device_path="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations.py index ac563b1c16d9..108e643163e2 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations.py @@ -24,7 +24,7 @@ def test_express_route_gateways_get(self, resource_group): response = self.client.express_route_gateways.get( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -81,7 +81,7 @@ def test_express_route_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,7 +94,7 @@ def test_express_route_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", express_route_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -106,7 +106,7 @@ def test_express_route_gateways_begin_delete(self, resource_group): response = self.client.express_route_gateways.begin_delete( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +117,7 @@ def test_express_route_gateways_begin_delete(self, resource_group): def test_express_route_gateways_list_by_resource_group(self, resource_group): response = self.client.express_route_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -127,7 +127,7 @@ def test_express_route_gateways_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_express_route_gateways_list_by_subscription(self, resource_group): response = self.client.express_route_gateways.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ def test_express_route_gateways_begin_get_failover_all_tests_details(self, resou response = self.client.express_route_gateways.begin_get_failover_all_tests_details( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -153,7 +153,7 @@ def test_express_route_gateways_begin_get_failover_single_test_details(self, res express_route_gateway_name="str", peering_location="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -166,7 +166,7 @@ def test_express_route_gateways_begin_start_site_failover_test(self, resource_gr resource_group_name=resource_group.name, express_route_gateway_name="str", peering_location="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -183,7 +183,7 @@ def test_express_route_gateways_begin_stop_site_failover_test(self, resource_gro "peeringLocation": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -195,7 +195,7 @@ def test_express_route_gateways_begin_get_routes_information(self, resource_grou response = self.client.express_route_gateways.begin_get_routes_information( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -207,7 +207,7 @@ def test_express_route_gateways_begin_get_resiliency_information(self, resource_ response = self.client.express_route_gateways.begin_get_resiliency_information( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations_async.py index 1a63e217ac93..113544313848 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_express_route_gateways_get(self, resource_group): response = await self.client.express_route_gateways.get( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_express_route_gateways_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -98,7 +98,7 @@ async def test_express_route_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, express_route_gateway_name="str", express_route_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -112,7 +112,7 @@ async def test_express_route_gateways_begin_delete(self, resource_group): await self.client.express_route_gateways.begin_delete( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -124,7 +124,7 @@ async def test_express_route_gateways_begin_delete(self, resource_group): async def test_express_route_gateways_list_by_resource_group(self, resource_group): response = await self.client.express_route_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -134,7 +134,7 @@ async def test_express_route_gateways_list_by_resource_group(self, resource_grou @recorded_by_proxy_async async def test_express_route_gateways_list_by_subscription(self, resource_group): response = await self.client.express_route_gateways.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -147,7 +147,7 @@ async def test_express_route_gateways_begin_get_failover_all_tests_details(self, await self.client.express_route_gateways.begin_get_failover_all_tests_details( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -163,7 +163,7 @@ async def test_express_route_gateways_begin_get_failover_single_test_details(sel express_route_gateway_name="str", peering_location="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -178,7 +178,7 @@ async def test_express_route_gateways_begin_start_site_failover_test(self, resou resource_group_name=resource_group.name, express_route_gateway_name="str", peering_location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -197,7 +197,7 @@ async def test_express_route_gateways_begin_stop_site_failover_test(self, resour "peeringLocation": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -211,7 +211,7 @@ async def test_express_route_gateways_begin_get_routes_information(self, resourc await self.client.express_route_gateways.begin_get_routes_information( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -225,7 +225,7 @@ async def test_express_route_gateways_begin_get_resiliency_information(self, res await self.client.express_route_gateways.begin_get_resiliency_information( resource_group_name=resource_group.name, express_route_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations.py new file mode 100644 index 000000000000..6c87a3b1bc72 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations.py @@ -0,0 +1,228 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementExpressRouteLagsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_get(self, resource_group): + response = self.client.express_route_lags.get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_begin_create_or_update(self, resource_group): + response = self.client.express_route_lags.begin_create_or_update( + resource_group_name=resource_group.name, + express_route_lag_name="str", + resource={ + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "properties": { + "allocationDate": "str", + "bandwidthInGbps": 0, + "billingType": "str", + "encapsulation": "str", + "etherType": "str", + "lacpTimer": "str", + "links": [ + { + "id": "str", + "name": "str", + "type": "str", + "etag": "str", + "properties": { + "adminState": "str", + "interfaceName": "str", + "macSecConfig": { + "cakSecretIdentifier": "str", + "cipher": "str", + "cknSecretIdentifier": "str", + "sciState": "str", + }, + "members": [ + { + "id": "str", + "name": "str", + "type": "str", + "etag": "str", + "properties": { + "adminState": "str", + "coloLocation": "str", + "connectorType": "str", + "interfaceName": "str", + "patchPanelId": "str", + "provisioningState": "str", + "rackId": "str", + }, + } + ], + "provisioningState": "str", + "routerName": "str", + }, + } + ], + "minimumActivePortsRequired": 0, + "mtu": "str", + "numberOfPorts": 0, + "peeringLocation": "str", + "provisionedBandwidthInGbps": 0.0, + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_update(self, resource_group): + response = self.client.express_route_lags.update( + resource_group_name=resource_group.name, + express_route_lag_name="str", + properties={ + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "tags": {"str": "str"}, + }, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_begin_delete(self, resource_group): + response = self.client.express_route_lags.begin_delete( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_list_by_resource_group(self, resource_group): + response = self.client.express_route_lags.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_list(self, resource_group): + response = self.client.express_route_lags.list( + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_generate_loa(self, resource_group): + response = self.client.express_route_lags.generate_loa( + resource_group_name=resource_group.name, + express_route_lag_name="str", + body={"customerName": "str", "members": ["str"]}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_links_get(self, resource_group): + response = self.client.express_route_lags.links_get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_links_list(self, resource_group): + response = self.client.express_route_lags.links_list( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_members_get(self, resource_group): + response = self.client.express_route_lags.members_get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + member_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_express_route_lags_members_list(self, resource_group): + response = self.client.express_route_lags.members_list( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations_async.py new file mode 100644 index 000000000000..9b7d7ea197cb --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_lags_operations_async.py @@ -0,0 +1,233 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network.aio import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementExpressRouteLagsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_get(self, resource_group): + response = await self.client.express_route_lags.get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_begin_create_or_update(self, resource_group): + response = await ( + await self.client.express_route_lags.begin_create_or_update( + resource_group_name=resource_group.name, + express_route_lag_name="str", + resource={ + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "location": "str", + "name": "str", + "properties": { + "allocationDate": "str", + "bandwidthInGbps": 0, + "billingType": "str", + "encapsulation": "str", + "etherType": "str", + "lacpTimer": "str", + "links": [ + { + "id": "str", + "name": "str", + "type": "str", + "etag": "str", + "properties": { + "adminState": "str", + "interfaceName": "str", + "macSecConfig": { + "cakSecretIdentifier": "str", + "cipher": "str", + "cknSecretIdentifier": "str", + "sciState": "str", + }, + "members": [ + { + "id": "str", + "name": "str", + "type": "str", + "etag": "str", + "properties": { + "adminState": "str", + "coloLocation": "str", + "connectorType": "str", + "interfaceName": "str", + "patchPanelId": "str", + "provisioningState": "str", + "rackId": "str", + }, + } + ], + "provisioningState": "str", + "routerName": "str", + }, + } + ], + "minimumActivePortsRequired": 0, + "mtu": "str", + "numberOfPorts": 0, + "peeringLocation": "str", + "provisionedBandwidthInGbps": 0.0, + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_update(self, resource_group): + response = await self.client.express_route_lags.update( + resource_group_name=resource_group.name, + express_route_lag_name="str", + properties={ + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, + }, + "tags": {"str": "str"}, + }, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_begin_delete(self, resource_group): + response = await ( + await self.client.express_route_lags.begin_delete( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_list_by_resource_group(self, resource_group): + response = self.client.express_route_lags.list_by_resource_group( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_list(self, resource_group): + response = self.client.express_route_lags.list( + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_generate_loa(self, resource_group): + response = await self.client.express_route_lags.generate_loa( + resource_group_name=resource_group.name, + express_route_lag_name="str", + body={"customerName": "str", "members": ["str"]}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_links_get(self, resource_group): + response = await self.client.express_route_lags.links_get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_links_list(self, resource_group): + response = self.client.express_route_lags.links_list( + resource_group_name=resource_group.name, + express_route_lag_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_members_get(self, resource_group): + response = await self.client.express_route_lags.members_get( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + member_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_express_route_lags_members_list(self, resource_group): + response = self.client.express_route_lags.members_list( + resource_group_name=resource_group.name, + express_route_lag_name="str", + link_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations.py index dfc554644f72..9990aed9bab9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations.py @@ -25,7 +25,7 @@ def test_express_route_links_get(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_express_route_links_list(self, resource_group): response = self.client.express_route_links.list( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations_async.py index bd039bb5bf83..e5ca60145b65 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_links_operations_async.py @@ -26,7 +26,7 @@ async def test_express_route_links_get(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_express_route_links_list(self, resource_group): response = self.client.express_route_links.list( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations.py index 57d082484de3..4934da1e00e2 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations.py @@ -25,7 +25,7 @@ def test_express_route_port_authorizations_get(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_express_route_port_authorizations_begin_create_or_update(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_express_route_port_authorizations_begin_delete(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_express_route_port_authorizations_list(self, resource_group): response = self.client.express_route_port_authorizations.list( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations_async.py index b277407b60a0..91b27b20a705 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_port_authorizations_operations_async.py @@ -26,7 +26,7 @@ async def test_express_route_port_authorizations_get(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_express_route_port_authorizations_begin_create_or_update(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_express_route_port_authorizations_begin_delete(self, resource_gro resource_group_name=resource_group.name, express_route_port_name="str", authorization_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_express_route_port_authorizations_list(self, resource_group): response = self.client.express_route_port_authorizations.list( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations.py index 361cd1578037..48a21ebccfbf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_express_route_ports_locations_get(self, resource_group): response = self.client.express_route_ports_locations.get( location_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_express_route_ports_locations_get(self, resource_group): @recorded_by_proxy def test_express_route_ports_locations_list(self, resource_group): response = self.client.express_route_ports_locations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations_async.py index aca85a642bb1..15e443bd5a5a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_locations_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_express_route_ports_locations_get(self, resource_group): response = await self.client.express_route_ports_locations.get( location_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_express_route_ports_locations_get(self, resource_group): @recorded_by_proxy_async async def test_express_route_ports_locations_list(self, resource_group): response = self.client.express_route_ports_locations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations.py index 782bbfbc3e46..82930f6b41f0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations.py @@ -24,7 +24,7 @@ def test_express_route_ports_get(self, resource_group): response = self.client.express_route_ports.get( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_express_route_ports_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_express_route_ports_update_tags(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_express_route_ports_begin_delete(self, resource_group): response = self.client.express_route_ports.begin_delete( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -122,7 +122,7 @@ def test_express_route_ports_begin_delete(self, resource_group): def test_express_route_ports_list_by_resource_group(self, resource_group): response = self.client.express_route_ports.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -132,7 +132,7 @@ def test_express_route_ports_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_express_route_ports_list(self, resource_group): response = self.client.express_route_ports.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -145,7 +145,7 @@ def test_express_route_ports_generate_loa(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", request={"customerName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations_async.py index 66d98c6fc803..9451ed18bc30 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_ports_operations_async.py @@ -25,7 +25,7 @@ async def test_express_route_ports_get(self, resource_group): response = await self.client.express_route_ports.get( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_express_route_ports_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -102,7 +102,7 @@ async def test_express_route_ports_update_tags(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ async def test_express_route_ports_begin_delete(self, resource_group): await self.client.express_route_ports.begin_delete( resource_group_name=resource_group.name, express_route_port_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -127,7 +127,7 @@ async def test_express_route_ports_begin_delete(self, resource_group): async def test_express_route_ports_list_by_resource_group(self, resource_group): response = self.client.express_route_ports.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -137,7 +137,7 @@ async def test_express_route_ports_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_express_route_ports_list(self, resource_group): response = self.client.express_route_ports.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -150,7 +150,7 @@ async def test_express_route_ports_generate_loa(self, resource_group): resource_group_name=resource_group.name, express_route_port_name="str", request={"customerName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations.py index 728c1e7c445b..fb61d6804a75 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_express_route_provider_ports_location_list(self, resource_group): response = self.client.express_route_provider_ports_location.list( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations_async.py index 071bf2477017..6951aae0e310 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_provider_ports_location_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_express_route_provider_ports_location_list(self, resource_group): response = await self.client.express_route_provider_ports_location.list( - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations.py index 44856f1882f4..17741bbd5c97 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_express_route_service_providers_list(self, resource_group): response = self.client.express_route_service_providers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations_async.py index be93a57dbb45..3dd5f597b017 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_express_route_service_providers_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_express_route_service_providers_list(self, resource_group): response = self.client.express_route_service_providers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations.py index ca11b50f69f0..89dc8bc20e27 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations.py @@ -24,7 +24,7 @@ def test_firewall_policies_get(self, resource_group): response = self.client.firewall_policies.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -48,6 +48,7 @@ def test_firewall_policies_begin_create_or_update(self, resource_group): "location": "str", "name": "str", "properties": { + "afcManaged": bool, "basePolicy": {"id": "str"}, "childPolicies": [{"id": "str"}], "dnsSettings": {"enableProxy": bool, "requireProxyForNetworkRules": bool, "servers": ["str"]}, @@ -88,6 +89,7 @@ def test_firewall_policies_begin_create_or_update(self, resource_group): "mode": "str", "profile": "str", }, + "kubeSelectorGroups": [{"id": "str"}], "provisioningState": "str", "ruleCollectionGroups": [{"id": "str"}], "size": "str", @@ -101,7 +103,7 @@ def test_firewall_policies_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -114,7 +116,7 @@ def test_firewall_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -126,7 +128,7 @@ def test_firewall_policies_begin_delete(self, resource_group): response = self.client.firewall_policies.begin_delete( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -137,7 +139,7 @@ def test_firewall_policies_begin_delete(self, resource_group): def test_firewall_policies_list(self, resource_group): response = self.client.firewall_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -147,7 +149,7 @@ def test_firewall_policies_list(self, resource_group): @recorded_by_proxy def test_firewall_policies_list_all(self, resource_group): response = self.client.firewall_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations_async.py index 5ccb9b55d170..64f03c6a6dbf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policies_operations_async.py @@ -25,7 +25,7 @@ async def test_firewall_policies_get(self, resource_group): response = await self.client.firewall_policies.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,6 +50,7 @@ async def test_firewall_policies_begin_create_or_update(self, resource_group): "location": "str", "name": "str", "properties": { + "afcManaged": bool, "basePolicy": {"id": "str"}, "childPolicies": [{"id": "str"}], "dnsSettings": {"enableProxy": bool, "requireProxyForNetworkRules": bool, "servers": ["str"]}, @@ -90,6 +91,7 @@ async def test_firewall_policies_begin_create_or_update(self, resource_group): "mode": "str", "profile": "str", }, + "kubeSelectorGroups": [{"id": "str"}], "provisioningState": "str", "ruleCollectionGroups": [{"id": "str"}], "size": "str", @@ -103,7 +105,7 @@ async def test_firewall_policies_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -117,7 +119,7 @@ async def test_firewall_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -130,7 +132,7 @@ async def test_firewall_policies_begin_delete(self, resource_group): await self.client.firewall_policies.begin_delete( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -142,7 +144,7 @@ async def test_firewall_policies_begin_delete(self, resource_group): async def test_firewall_policies_list(self, resource_group): response = self.client.firewall_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -152,7 +154,7 @@ async def test_firewall_policies_list(self, resource_group): @recorded_by_proxy_async async def test_firewall_policies_list_all(self, resource_group): response = self.client.firewall_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations.py index 3f2be3a12f2a..d1d8301294e9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations.py @@ -24,7 +24,7 @@ def test_firewall_policy_deployments_begin_deploy(self, resource_group): response = self.client.firewall_policy_deployments.begin_deploy( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations_async.py index 07deb4f6431d..b65293ac80fb 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_deployments_operations_async.py @@ -26,7 +26,7 @@ async def test_firewall_policy_deployments_begin_deploy(self, resource_group): await self.client.firewall_policy_deployments.begin_deploy( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations.py index 65f9c678c0b1..c681f00f0294 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations.py @@ -24,7 +24,7 @@ def test_firewall_policy_drafts_get(self, resource_group): response = self.client.firewall_policy_drafts.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_firewall_policy_drafts_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_firewall_policy_drafts_delete(self, resource_group): response = self.client.firewall_policy_drafts.delete( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations_async.py index 0bd34db3af31..36c8f27a7246 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_drafts_operations_async.py @@ -25,7 +25,7 @@ async def test_firewall_policy_drafts_get(self, resource_group): response = await self.client.firewall_policy_drafts.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_firewall_policy_drafts_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -100,7 +100,7 @@ async def test_firewall_policy_drafts_delete(self, resource_group): response = await self.client.firewall_policy_drafts.delete( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations.py index ae428142b8dd..11fe6447fcbe 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations.py @@ -25,7 +25,7 @@ def test_firewall_policy_idps_signatures_filter_values_list(self, resource_group resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"filterName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations_async.py index 4578b8e11d64..6a51253e068c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_filter_values_operations_async.py @@ -26,7 +26,7 @@ async def test_firewall_policy_idps_signatures_filter_values_list(self, resource resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"filterName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations.py index fdab5f16cc3b..72df585f7e76 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations.py @@ -31,7 +31,7 @@ def test_firewall_policy_idps_signatures_list(self, resource_group): "search": "str", "skip": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations_async.py index 4ef70aba48a3..ace26955b1cc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_operations_async.py @@ -32,7 +32,7 @@ async def test_firewall_policy_idps_signatures_list(self, resource_group): "search": "str", "skip": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations.py index 6dd0e50e882e..02f63b63b47c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations.py @@ -24,7 +24,7 @@ def test_firewall_policy_idps_signatures_overrides_get(self, resource_group): response = self.client.firewall_policy_idps_signatures_overrides.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_firewall_policy_idps_signatures_overrides_put(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"id": "str", "name": "str", "properties": {"signatures": {"str": "str"}}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_firewall_policy_idps_signatures_overrides_patch(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"id": "str", "name": "str", "properties": {"signatures": {"str": "str"}}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_firewall_policy_idps_signatures_overrides_list(self, resource_group): response = self.client.firewall_policy_idps_signatures_overrides.list( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations_async.py index bbcb27f3f523..8a1ba5e3cf06 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_idps_signatures_overrides_operations_async.py @@ -25,7 +25,7 @@ async def test_firewall_policy_idps_signatures_overrides_get(self, resource_grou response = await self.client.firewall_policy_idps_signatures_overrides.get( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_firewall_policy_idps_signatures_overrides_put(self, resource_grou resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"id": "str", "name": "str", "properties": {"signatures": {"str": "str"}}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_firewall_policy_idps_signatures_overrides_patch(self, resource_gr resource_group_name=resource_group.name, firewall_policy_name="str", parameters={"id": "str", "name": "str", "properties": {"signatures": {"str": "str"}}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ async def test_firewall_policy_idps_signatures_overrides_list(self, resource_gro response = await self.client.firewall_policy_idps_signatures_overrides.list( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations.py new file mode 100644 index 000000000000..07a8a1cf4e55 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations.py @@ -0,0 +1,87 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementFirewallPolicyKubeSelectorGroupsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_firewall_policy_kube_selector_groups_get(self, resource_group): + response = self.client.firewall_policy_kube_selector_groups.get( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_firewall_policy_kube_selector_groups_begin_create_or_update(self, resource_group): + response = self.client.firewall_policy_kube_selector_groups.begin_create_or_update( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + resource={ + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "namespaceSelector": { + "matchExpressions": [{"key": "str", "operator": "str", "values": ["str"]}], + "matchLabels": {"str": "str"}, + }, + "podSelector": { + "matchExpressions": [{"key": "str", "operator": "str", "values": ["str"]}], + "matchLabels": {"str": "str"}, + }, + "provisioningState": "str", + }, + "type": "str", + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_firewall_policy_kube_selector_groups_begin_delete(self, resource_group): + response = self.client.firewall_policy_kube_selector_groups.begin_delete( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_firewall_policy_kube_selector_groups_list(self, resource_group): + response = self.client.firewall_policy_kube_selector_groups.list( + resource_group_name=resource_group.name, + firewall_policy_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations_async.py new file mode 100644 index 000000000000..7e6a97fba7b8 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_kube_selector_groups_operations_async.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network.aio import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementFirewallPolicyKubeSelectorGroupsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_firewall_policy_kube_selector_groups_get(self, resource_group): + response = await self.client.firewall_policy_kube_selector_groups.get( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_firewall_policy_kube_selector_groups_begin_create_or_update(self, resource_group): + response = await ( + await self.client.firewall_policy_kube_selector_groups.begin_create_or_update( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + resource={ + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "namespaceSelector": { + "matchExpressions": [{"key": "str", "operator": "str", "values": ["str"]}], + "matchLabels": {"str": "str"}, + }, + "podSelector": { + "matchExpressions": [{"key": "str", "operator": "str", "values": ["str"]}], + "matchLabels": {"str": "str"}, + }, + "provisioningState": "str", + }, + "type": "str", + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_firewall_policy_kube_selector_groups_begin_delete(self, resource_group): + response = await ( + await self.client.firewall_policy_kube_selector_groups.begin_delete( + resource_group_name=resource_group.name, + firewall_policy_name="str", + kube_selector_group_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_firewall_policy_kube_selector_groups_list(self, resource_group): + response = self.client.firewall_policy_kube_selector_groups.list( + resource_group_name=resource_group.name, + firewall_policy_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations.py index 91c3da56a7fd..038f3224033b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations.py @@ -25,7 +25,7 @@ def test_firewall_policy_rule_collection_group_drafts_get(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -44,7 +44,7 @@ def test_firewall_policy_rule_collection_group_drafts_create_or_update(self, res "properties": {"priority": 0, "ruleCollections": ["firewall_policy_rule_collection"], "size": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -57,7 +57,7 @@ def test_firewall_policy_rule_collection_group_drafts_delete(self, resource_grou resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations_async.py index 5f5b407978bd..e24c0b1cb541 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_group_drafts_operations_async.py @@ -26,7 +26,7 @@ async def test_firewall_policy_rule_collection_group_drafts_get(self, resource_g resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ async def test_firewall_policy_rule_collection_group_drafts_create_or_update(sel "properties": {"priority": 0, "ruleCollections": ["firewall_policy_rule_collection"], "size": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ async def test_firewall_policy_rule_collection_group_drafts_delete(self, resourc resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations.py index 6324a5185b47..7f107e53240a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations.py @@ -25,7 +25,7 @@ def test_firewall_policy_rule_collection_groups_get(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_firewall_policy_rule_collection_groups_begin_create_or_update(self, res }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_firewall_policy_rule_collection_groups_begin_delete(self, resource_grou resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_firewall_policy_rule_collection_groups_list(self, resource_group): response = self.client.firewall_policy_rule_collection_groups.list( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations_async.py index 470ff02518ea..2186763e96f8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_firewall_policy_rule_collection_groups_operations_async.py @@ -26,7 +26,7 @@ async def test_firewall_policy_rule_collection_groups_get(self, resource_group): resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_firewall_policy_rule_collection_groups_begin_create_or_update(sel }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_firewall_policy_rule_collection_groups_begin_delete(self, resourc resource_group_name=resource_group.name, firewall_policy_name="str", rule_collection_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_firewall_policy_rule_collection_groups_list(self, resource_group) response = self.client.firewall_policy_rule_collection_groups.list( resource_group_name=resource_group.name, firewall_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations.py new file mode 100644 index 000000000000..fc5e239f8db8 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementFirstPartyServiceTagsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_get(self, resource_group): + response = self.client.first_party_service_tags.get( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_begin_create_or_update(self, resource_group): + response = self.client.first_party_service_tags.begin_create_or_update( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + parameters={ + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "value": "str", + "failedReason": "str", + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_begin_update_tags(self, resource_group): + response = self.client.first_party_service_tags.begin_update_tags( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + parameters={"tags": {"str": "str"}}, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_begin_delete(self, resource_group): + response = self.client.first_party_service_tags.begin_delete( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_list(self, resource_group): + response = self.client.first_party_service_tags.list( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_first_party_service_tags_list_all(self, resource_group): + response = self.client.first_party_service_tags.list_all( + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations_async.py new file mode 100644 index 000000000000..49d19ddaf679 --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_first_party_service_tags_operations_async.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.network.aio import NetworkManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestNetworkManagementFirstPartyServiceTagsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(NetworkManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_get(self, resource_group): + response = await self.client.first_party_service_tags.get( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_begin_create_or_update(self, resource_group): + response = await ( + await self.client.first_party_service_tags.begin_create_or_update( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + parameters={ + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "value": "str", + "failedReason": "str", + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_begin_update_tags(self, resource_group): + response = await ( + await self.client.first_party_service_tags.begin_update_tags( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + parameters={"tags": {"str": "str"}}, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_begin_delete(self, resource_group): + response = await ( + await self.client.first_party_service_tags.begin_delete( + resource_group_name=resource_group.name, + first_party_service_tag_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_list(self, resource_group): + response = self.client.first_party_service_tags.list( + resource_group_name=resource_group.name, + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_first_party_service_tags_list_all(self, resource_group): + response = self.client.first_party_service_tags.list_all( + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations.py index 274e1ddb0d2c..afb911cee5e7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations.py @@ -25,7 +25,7 @@ def test_flow_logs_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", flow_log_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_flow_logs_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_flow_logs_update_tags(self, resource_group): network_watcher_name="str", flow_log_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_flow_logs_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", flow_log_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_flow_logs_list(self, resource_group): response = self.client.flow_logs.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations_async.py index 7e8f9a7e9a90..200a7e36d00c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_flow_logs_operations_async.py @@ -26,7 +26,7 @@ async def test_flow_logs_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", flow_log_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ async def test_flow_logs_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -89,7 +89,7 @@ async def test_flow_logs_update_tags(self, resource_group): network_watcher_name="str", flow_log_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -103,7 +103,7 @@ async def test_flow_logs_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", flow_log_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -116,7 +116,7 @@ async def test_flow_logs_list(self, resource_group): response = self.client.flow_logs.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations.py index faf1c52ff447..d7c69c3aaa93 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations.py @@ -25,7 +25,7 @@ def test_hub_route_tables_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ def test_hub_route_tables_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_hub_route_tables_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -84,7 +84,7 @@ def test_hub_route_tables_list(self, resource_group): response = self.client.hub_route_tables.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations_async.py index 6db74ff5830c..dea798f5adcb 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_route_tables_operations_async.py @@ -26,7 +26,7 @@ async def test_hub_route_tables_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_hub_route_tables_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -76,7 +76,7 @@ async def test_hub_route_tables_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -89,7 +89,7 @@ async def test_hub_route_tables_list(self, resource_group): response = self.client.hub_route_tables.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations.py index 08032a5d4f08..e44ae6fa0f27 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations.py @@ -34,6 +34,7 @@ def test_hub_virtual_network_connections_begin_create_or_update(self, resource_g "allowRemoteVnetToUseHubVnetGateways": bool, "connectionPolicy": {"id": "str"}, "enableInternetSecurity": bool, + "enableOnlyIpv6Peering": "str", "provisioningState": "str", "remoteVirtualNetwork": {"id": "str"}, "routingConfiguration": { @@ -52,7 +53,7 @@ def test_hub_virtual_network_connections_begin_create_or_update(self, resource_g }, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +66,7 @@ def test_hub_virtual_network_connections_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -78,7 +79,7 @@ def test_hub_virtual_network_connections_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -90,7 +91,7 @@ def test_hub_virtual_network_connections_list(self, resource_group): response = self.client.hub_virtual_network_connections.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations_async.py index 823e44cce5c7..d48fbd5a8139 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_hub_virtual_network_connections_operations_async.py @@ -36,6 +36,7 @@ async def test_hub_virtual_network_connections_begin_create_or_update(self, reso "allowRemoteVnetToUseHubVnetGateways": bool, "connectionPolicy": {"id": "str"}, "enableInternetSecurity": bool, + "enableOnlyIpv6Peering": "str", "provisioningState": "str", "remoteVirtualNetwork": {"id": "str"}, "routingConfiguration": { @@ -56,7 +57,7 @@ async def test_hub_virtual_network_connections_begin_create_or_update(self, reso }, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -71,7 +72,7 @@ async def test_hub_virtual_network_connections_begin_delete(self, resource_group resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -85,7 +86,7 @@ async def test_hub_virtual_network_connections_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -97,7 +98,7 @@ async def test_hub_virtual_network_connections_list(self, resource_group): response = self.client.hub_virtual_network_connections.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations.py index cf0ef63a4c74..72a7a0a66454 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations.py @@ -26,7 +26,7 @@ def test_inbound_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", inbound_nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -476,6 +476,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -657,6 +658,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1094,6 +1096,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1176,6 +1179,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1370,7 +1374,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1402,6 +1406,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1479,7 +1484,13 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1511,6 +1522,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1777,6 +1789,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1828,6 +1841,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1875,6 +1889,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2028,6 +2043,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2083,6 +2099,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2134,6 +2151,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2517,6 +2535,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2568,6 +2587,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2617,6 +2637,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2684,6 +2705,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2745,6 +2767,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2810,6 +2833,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2994,6 +3018,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4153,7 +4178,13 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4185,6 +4216,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4273,7 +4305,11 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4314,6 +4350,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5344,7 +5381,7 @@ def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5357,7 +5394,7 @@ def test_inbound_nat_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", inbound_nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5369,7 +5406,7 @@ def test_inbound_nat_rules_list(self, resource_group): response = self.client.inbound_nat_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations_async.py index b173b16dbac8..acfe64d4e889 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_nat_rules_operations_async.py @@ -27,7 +27,7 @@ async def test_inbound_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", inbound_nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -487,6 +487,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -670,6 +671,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1115,6 +1117,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1197,6 +1200,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1393,7 +1397,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1425,6 +1429,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1502,7 +1507,13 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1534,6 +1545,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1800,6 +1812,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1851,6 +1864,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1900,6 +1914,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2056,6 +2071,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2117,6 +2133,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2182,6 +2199,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2576,6 +2594,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2631,6 +2650,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2682,6 +2702,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2749,6 +2770,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2810,6 +2832,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2877,6 +2900,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3063,6 +3087,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4238,7 +4263,13 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4270,6 +4301,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4358,7 +4390,11 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4401,6 +4437,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5438,7 +5475,7 @@ async def test_inbound_nat_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5453,7 +5490,7 @@ async def test_inbound_nat_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", inbound_nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5466,7 +5503,7 @@ async def test_inbound_nat_rules_list(self, resource_group): response = self.client.inbound_nat_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations.py index e49adeaa9d1e..f79631d3aefd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations.py @@ -25,7 +25,7 @@ def test_inbound_security_rule_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_inbound_security_rule_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations_async.py index 409ab9b5ecb7..c4a2811e293f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_inbound_security_rule_operations_async.py @@ -26,7 +26,7 @@ async def test_inbound_security_rule_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ async def test_inbound_security_rule_begin_create_or_update(self, resource_group }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations.py index c4755e83d1c8..5ae3b6a979e0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations.py @@ -24,7 +24,7 @@ def test_interconnect_groups_get(self, resource_group): response = self.client.interconnect_groups.get( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_interconnect_groups_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_interconnect_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, interconnect_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_interconnect_groups_delete(self, resource_group): response = self.client.interconnect_groups.delete( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_interconnect_groups_delete(self, resource_group): def test_interconnect_groups_list(self, resource_group): response = self.client.interconnect_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -109,7 +109,7 @@ def test_interconnect_groups_list(self, resource_group): @recorded_by_proxy def test_interconnect_groups_list_all(self, resource_group): response = self.client.interconnect_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -121,7 +121,7 @@ def test_interconnect_groups_begin_get_node_availability(self, resource_group): response = self.client.interconnect_groups.begin_get_node_availability( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations_async.py index bb9bcdeb3ade..dfbc8b5d92a5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_interconnect_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_interconnect_groups_get(self, resource_group): response = await self.client.interconnect_groups.get( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_interconnect_groups_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_interconnect_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, interconnect_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ async def test_interconnect_groups_delete(self, resource_group): response = await self.client.interconnect_groups.delete( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -100,7 +100,7 @@ async def test_interconnect_groups_delete(self, resource_group): async def test_interconnect_groups_list(self, resource_group): response = self.client.interconnect_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -110,7 +110,7 @@ async def test_interconnect_groups_list(self, resource_group): @recorded_by_proxy_async async def test_interconnect_groups_list_all(self, resource_group): response = self.client.interconnect_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -123,7 +123,7 @@ async def test_interconnect_groups_begin_get_node_availability(self, resource_gr await self.client.interconnect_groups.begin_get_node_availability( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations.py index be5c23013808..74dae8aa7863 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations.py @@ -24,7 +24,7 @@ def test_ip_allocations_get(self, resource_group): response = self.client.ip_allocations.get( resource_group_name=resource_group.name, ip_allocation_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ def test_ip_allocations_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_ip_allocations_update_tags(self, resource_group): resource_group_name=resource_group.name, ip_allocation_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_ip_allocations_begin_delete(self, resource_group): response = self.client.ip_allocations.begin_delete( resource_group_name=resource_group.name, ip_allocation_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_ip_allocations_begin_delete(self, resource_group): def test_ip_allocations_list_by_resource_group(self, resource_group): response = self.client.ip_allocations.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_ip_allocations_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_ip_allocations_list(self, resource_group): response = self.client.ip_allocations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations_async.py index ff9e31217ca5..ebc4b310e055 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_allocations_operations_async.py @@ -25,7 +25,7 @@ async def test_ip_allocations_get(self, resource_group): response = await self.client.ip_allocations.get( resource_group_name=resource_group.name, ip_allocation_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_ip_allocations_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -70,7 +70,7 @@ async def test_ip_allocations_update_tags(self, resource_group): resource_group_name=resource_group.name, ip_allocation_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_ip_allocations_begin_delete(self, resource_group): await self.client.ip_allocations.begin_delete( resource_group_name=resource_group.name, ip_allocation_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +95,7 @@ async def test_ip_allocations_begin_delete(self, resource_group): async def test_ip_allocations_list_by_resource_group(self, resource_group): response = self.client.ip_allocations.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_ip_allocations_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_ip_allocations_list(self, resource_group): response = self.client.ip_allocations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations.py index 50f6530dd3d9..0109b159b544 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations.py @@ -24,7 +24,7 @@ def test_ip_groups_get(self, resource_group): response = self.client.ip_groups.get( resource_group_name=resource_group.name, ip_groups_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_ip_groups_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_ip_groups_update_groups(self, resource_group): resource_group_name=resource_group.name, ip_groups_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_ip_groups_begin_delete(self, resource_group): response = self.client.ip_groups.begin_delete( resource_group_name=resource_group.name, ip_groups_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_ip_groups_begin_delete(self, resource_group): def test_ip_groups_list_by_resource_group(self, resource_group): response = self.client.ip_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_ip_groups_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_ip_groups_list(self, resource_group): response = self.client.ip_groups.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations_async.py index fb57fdf5388d..07c39d8834b7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ip_groups_operations_async.py @@ -25,7 +25,7 @@ async def test_ip_groups_get(self, resource_group): response = await self.client.ip_groups.get( resource_group_name=resource_group.name, ip_groups_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_ip_groups_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -66,7 +66,7 @@ async def test_ip_groups_update_groups(self, resource_group): resource_group_name=resource_group.name, ip_groups_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_ip_groups_begin_delete(self, resource_group): await self.client.ip_groups.begin_delete( resource_group_name=resource_group.name, ip_groups_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_ip_groups_begin_delete(self, resource_group): async def test_ip_groups_list_by_resource_group(self, resource_group): response = self.client.ip_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ async def test_ip_groups_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_ip_groups_list(self, resource_group): response = self.client.ip_groups.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations.py index 9900a63f37ec..a69eae9e4a55 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations.py @@ -25,7 +25,7 @@ def test_ipam_pools_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_ipam_pools_begin_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_ipam_pools_update(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_ipam_pools_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_ipam_pools_list(self, resource_group): response = self.client.ipam_pools.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -113,7 +113,7 @@ def test_ipam_pools_get_pool_usage(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -126,7 +126,7 @@ def test_ipam_pools_list_associated_resources(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations_async.py index b55dd2fb274b..4a41569163a7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_ipam_pools_operations_async.py @@ -26,7 +26,7 @@ async def test_ipam_pools_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_ipam_pools_begin_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -78,7 +78,7 @@ async def test_ipam_pools_update(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_ipam_pools_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -105,7 +105,7 @@ async def test_ipam_pools_list(self, resource_group): response = self.client.ipam_pools.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -118,7 +118,7 @@ async def test_ipam_pools_get_pool_usage(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -131,7 +131,7 @@ async def test_ipam_pools_list_associated_resources(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations.py index a8c868982737..e5878e495be1 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations.py @@ -26,7 +26,7 @@ def test_load_balancer_backend_address_pools_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", backend_address_pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -464,6 +464,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -647,6 +648,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1092,6 +1094,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1174,6 +1177,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1370,7 +1374,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1402,6 +1406,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1479,7 +1484,13 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1511,6 +1522,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1777,6 +1789,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1828,6 +1841,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1877,6 +1891,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2033,6 +2048,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2094,6 +2110,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2159,6 +2176,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2553,6 +2571,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2608,6 +2627,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2659,6 +2679,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2726,6 +2747,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2787,6 +2809,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2854,6 +2877,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3040,6 +3064,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4215,7 +4240,13 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4247,6 +4278,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4335,7 +4367,11 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4378,6 +4414,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5432,7 +5469,7 @@ def test_load_balancer_backend_address_pools_begin_create_or_update(self, resour }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5445,7 +5482,7 @@ def test_load_balancer_backend_address_pools_begin_delete(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", backend_address_pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5457,7 +5494,7 @@ def test_load_balancer_backend_address_pools_list(self, resource_group): response = self.client.load_balancer_backend_address_pools.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations_async.py index 2b4830c4f8d5..1ccf5eb61923 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_backend_address_pools_operations_async.py @@ -27,7 +27,7 @@ async def test_load_balancer_backend_address_pools_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", backend_address_pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -466,6 +466,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -649,6 +650,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1098,6 +1100,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1188,6 +1191,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1388,7 +1392,9 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1420,6 +1426,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1497,7 +1504,13 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1529,6 +1542,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1797,6 +1811,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1852,6 +1867,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1903,6 +1919,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2067,6 +2084,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2128,6 +2146,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2195,6 +2214,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2602,6 +2622,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2663,6 +2684,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2728,6 +2750,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2795,6 +2818,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2856,6 +2880,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2923,6 +2948,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3111,6 +3137,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4300,7 +4327,13 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4332,6 +4365,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4425,6 +4459,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4472,6 +4507,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5558,7 +5594,7 @@ async def test_load_balancer_backend_address_pools_begin_create_or_update(self, }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5573,7 +5609,7 @@ async def test_load_balancer_backend_address_pools_begin_delete(self, resource_g resource_group_name=resource_group.name, load_balancer_name="str", backend_address_pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5586,7 +5622,7 @@ async def test_load_balancer_backend_address_pools_list(self, resource_group): response = self.client.load_balancer_backend_address_pools.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations.py index 567292b66d4e..0b6df4800497 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations.py @@ -25,7 +25,7 @@ def test_load_balancer_frontend_ip_configurations_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", frontend_ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_load_balancer_frontend_ip_configurations_list(self, resource_group): response = self.client.load_balancer_frontend_ip_configurations.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations_async.py index b375d22083c3..8edc04f35395 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_frontend_ip_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_load_balancer_frontend_ip_configurations_get(self, resource_group resource_group_name=resource_group.name, load_balancer_name="str", frontend_ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_load_balancer_frontend_ip_configurations_list(self, resource_grou response = self.client.load_balancer_frontend_ip_configurations.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations.py index 7222e2f1f075..138c36170ce5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations.py @@ -25,7 +25,7 @@ def test_load_balancer_load_balancing_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", load_balancing_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_load_balancer_load_balancing_rules_list(self, resource_group): response = self.client.load_balancer_load_balancing_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_load_balancer_load_balancing_rules_begin_health(self, resource_group): group_name="str", load_balancer_name="str", load_balancing_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations_async.py index d02f8754b348..ea33ce3377f5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_load_balancing_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_load_balancer_load_balancing_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", load_balancing_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_load_balancer_load_balancing_rules_list(self, resource_group): response = self.client.load_balancer_load_balancing_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_load_balancer_load_balancing_rules_begin_health(self, resource_gr group_name="str", load_balancer_name="str", load_balancing_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations.py index cc6a48b249c2..c14a27b65f89 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations.py @@ -24,7 +24,7 @@ def test_load_balancer_network_interfaces_list(self, resource_group): response = self.client.load_balancer_network_interfaces.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations_async.py index 8caea932c098..616864a0a0c2 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_network_interfaces_operations_async.py @@ -25,7 +25,7 @@ async def test_load_balancer_network_interfaces_list(self, resource_group): response = self.client.load_balancer_network_interfaces.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations.py index f63471bb1f2f..fcb4cfd57a20 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations.py @@ -25,7 +25,7 @@ def test_load_balancer_outbound_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", outbound_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_load_balancer_outbound_rules_list(self, resource_group): response = self.client.load_balancer_outbound_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations_async.py index ccd1fa85f78f..672af1fc55d0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_outbound_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_load_balancer_outbound_rules_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", outbound_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_load_balancer_outbound_rules_list(self, resource_group): response = self.client.load_balancer_outbound_rules.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations.py index a06c1bd9cf17..0ec82629a560 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations.py @@ -25,7 +25,7 @@ def test_load_balancer_probes_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", probe_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_load_balancer_probes_list(self, resource_group): response = self.client.load_balancer_probes.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations_async.py index 5a86783ebceb..7049856c9d1f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancer_probes_operations_async.py @@ -26,7 +26,7 @@ async def test_load_balancer_probes_get(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", probe_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_load_balancer_probes_list(self, resource_group): response = self.client.load_balancer_probes.list( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations.py index 1324fca1b020..e4c21c8c8690 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations.py @@ -25,7 +25,7 @@ def test_load_balancers_get(self, resource_group): response = self.client.load_balancers.get( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -495,6 +495,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -692,6 +693,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1163,6 +1165,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1259,6 +1262,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1465,7 +1469,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1497,6 +1507,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1577,7 +1588,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1609,6 +1626,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1891,6 +1909,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1952,6 +1971,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2019,6 +2039,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2189,6 +2210,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2250,6 +2272,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2317,6 +2340,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2747,6 +2771,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2808,6 +2833,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2875,6 +2901,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2948,6 +2975,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3017,6 +3045,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3084,6 +3113,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3274,6 +3304,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4473,7 +4504,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4505,6 +4542,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4598,6 +4636,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4649,6 +4688,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5799,6 +5839,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -7605,7 +7646,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7637,6 +7678,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7715,7 +7757,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7747,6 +7795,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -8052,7 +8101,11 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -8095,6 +8148,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -8574,6 +8628,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8639,6 +8694,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8999,6 +9055,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9046,6 +9103,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9530,6 +9588,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9597,6 +9656,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10250,6 +10310,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10441,6 +10502,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10905,6 +10967,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11001,6 +11064,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11203,7 +11267,9 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11235,6 +11301,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11315,7 +11382,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11347,6 +11420,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11621,6 +11695,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11682,6 +11757,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11747,6 +11823,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11913,6 +11990,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11974,6 +12052,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12041,6 +12120,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12462,6 +12542,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -12523,6 +12604,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12590,6 +12672,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12661,6 +12744,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -12722,6 +12806,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12789,6 +12874,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12979,6 +13065,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -14172,7 +14259,13 @@ def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -14204,6 +14297,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -14297,6 +14391,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14346,6 +14441,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15470,6 +15566,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "type": "str", } ], + "mode": "str", "outboundRules": [ { "etag": "str", @@ -15514,7 +15611,7 @@ def test_load_balancers_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -15527,7 +15624,7 @@ def test_load_balancers_update_tags(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15539,7 +15636,7 @@ def test_load_balancers_begin_delete(self, resource_group): response = self.client.load_balancers.begin_delete( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -15550,7 +15647,7 @@ def test_load_balancers_begin_delete(self, resource_group): def test_load_balancers_list(self, resource_group): response = self.client.load_balancers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -15560,7 +15657,7 @@ def test_load_balancers_list(self, resource_group): @recorded_by_proxy def test_load_balancers_list_all(self, resource_group): response = self.client.load_balancers.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -15572,7 +15669,7 @@ def test_load_balancers_migrate_to_ip_based(self, resource_group): response = self.client.load_balancers.migrate_to_ip_based( group_name="str", load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15586,7 +15683,7 @@ def test_load_balancers_begin_list_inbound_nat_rule_port_mappings(self, resource load_balancer_name="str", backend_pool_name="str", parameters={"ipAddress": "str", "ipConfiguration": {"id": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -15598,7 +15695,7 @@ def test_load_balancers_begin_swap_public_ip_addresses(self, resource_group): response = self.client.load_balancers.begin_swap_public_ip_addresses( location="str", parameters={"frontendIPConfigurations": [{"id": "str", "properties": {"publicIPAddress": {"id": "str"}}}]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations_async.py index 7819b0ad876e..e9f463166b08 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_load_balancers_operations_async.py @@ -26,7 +26,7 @@ async def test_load_balancers_get(self, resource_group): response = await self.client.load_balancers.get( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -504,6 +504,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -701,6 +702,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1190,6 +1192,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1288,6 +1291,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1496,7 +1500,13 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1528,6 +1538,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1615,7 +1626,11 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1656,6 +1671,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1944,6 +1960,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2005,6 +2022,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2072,6 +2090,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2246,6 +2265,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2315,6 +2335,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2382,6 +2403,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2812,6 +2834,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2873,6 +2896,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2940,6 +2964,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3015,6 +3040,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3084,6 +3110,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3151,6 +3178,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3343,6 +3371,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4560,7 +4589,11 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4601,6 +4634,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4694,6 +4728,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4759,6 +4794,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5927,6 +5963,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -7749,7 +7786,9 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7781,6 +7820,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7859,7 +7899,13 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7891,6 +7937,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -8213,6 +8260,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8260,6 +8308,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -8755,6 +8804,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8822,6 +8872,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9186,6 +9237,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9235,6 +9287,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9735,6 +9788,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9802,6 +9856,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10478,6 +10533,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10675,6 +10731,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11146,6 +11203,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11242,6 +11300,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11448,7 +11507,13 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11480,6 +11545,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11560,7 +11626,13 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11592,6 +11664,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11874,6 +11947,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11935,6 +12009,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12002,6 +12077,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12172,6 +12248,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -12233,6 +12310,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12300,6 +12378,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12730,6 +12809,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -12791,6 +12871,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12858,6 +12939,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12931,6 +13013,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13000,6 +13083,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13067,6 +13151,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13257,6 +13342,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -14456,7 +14542,13 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -14488,6 +14580,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -14581,6 +14674,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14632,6 +14726,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15782,6 +15877,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "type": "str", } ], + "mode": "str", "outboundRules": [ { "etag": "str", @@ -15826,7 +15922,7 @@ async def test_load_balancers_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -15840,7 +15936,7 @@ async def test_load_balancers_update_tags(self, resource_group): resource_group_name=resource_group.name, load_balancer_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15853,7 +15949,7 @@ async def test_load_balancers_begin_delete(self, resource_group): await self.client.load_balancers.begin_delete( resource_group_name=resource_group.name, load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -15865,7 +15961,7 @@ async def test_load_balancers_begin_delete(self, resource_group): async def test_load_balancers_list(self, resource_group): response = self.client.load_balancers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -15875,7 +15971,7 @@ async def test_load_balancers_list(self, resource_group): @recorded_by_proxy_async async def test_load_balancers_list_all(self, resource_group): response = self.client.load_balancers.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -15887,7 +15983,7 @@ async def test_load_balancers_migrate_to_ip_based(self, resource_group): response = await self.client.load_balancers.migrate_to_ip_based( group_name="str", load_balancer_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15902,7 +15998,7 @@ async def test_load_balancers_begin_list_inbound_nat_rule_port_mappings(self, re load_balancer_name="str", backend_pool_name="str", parameters={"ipAddress": "str", "ipConfiguration": {"id": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -15918,7 +16014,7 @@ async def test_load_balancers_begin_swap_public_ip_addresses(self, resource_grou parameters={ "frontendIPConfigurations": [{"id": "str", "properties": {"publicIPAddress": {"id": "str"}}}] }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations.py index 781e8736caeb..691dbdd6dbe1 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations.py @@ -24,7 +24,7 @@ def test_local_network_gateways_get(self, resource_group): response = self.client.local_network_gateways.get( resource_group_name=resource_group.name, local_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_local_network_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_local_network_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, local_network_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -94,7 +94,7 @@ def test_local_network_gateways_begin_delete(self, resource_group): response = self.client.local_network_gateways.begin_delete( resource_group_name=resource_group.name, local_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -105,7 +105,7 @@ def test_local_network_gateways_begin_delete(self, resource_group): def test_local_network_gateways_list(self, resource_group): response = self.client.local_network_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations_async.py index 0cff86d12a12..d70a5264466e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_local_network_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_local_network_gateways_get(self, resource_group): response = await self.client.local_network_gateways.get( resource_group_name=resource_group.name, local_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_local_network_gateways_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -89,7 +89,7 @@ async def test_local_network_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, local_network_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ async def test_local_network_gateways_begin_delete(self, resource_group): await self.client.local_network_gateways.begin_delete( resource_group_name=resource_group.name, local_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -114,7 +114,7 @@ async def test_local_network_gateways_begin_delete(self, resource_group): async def test_local_network_gateways_list(self, resource_group): response = self.client.local_network_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations.py index 9ffa6f2e0a05..a9155256aab7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations.py @@ -24,7 +24,7 @@ def test_management_group_network_manager_connections_get(self, resource_group): response = self.client.management_group_network_manager_connections.get( management_group_id="str", network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_management_group_network_manager_connections_create_or_update(self, res }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_management_group_network_manager_connections_delete(self, resource_grou response = self.client.management_group_network_manager_connections.delete( management_group_id="str", network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_management_group_network_manager_connections_delete(self, resource_grou def test_management_group_network_manager_connections_list(self, resource_group): response = self.client.management_group_network_manager_connections.list( management_group_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations_async.py index afde94a3ec05..5abd08459531 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_management_group_network_manager_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_management_group_network_manager_connections_get(self, resource_g response = await self.client.management_group_network_manager_connections.get( management_group_id="str", network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_management_group_network_manager_connections_create_or_update(sel }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_management_group_network_manager_connections_delete(self, resourc response = await self.client.management_group_network_manager_connections.delete( management_group_id="str", network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_management_group_network_manager_connections_delete(self, resourc async def test_management_group_network_manager_connections_list(self, resource_group): response = self.client.management_group_network_manager_connections.list( management_group_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations.py index 6e41a8300cb0..66b390897222 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations.py @@ -24,7 +24,7 @@ def test_nat_gateways_get(self, resource_group): response = self.client.nat_gateways.get( resource_group_name=resource_group.name, nat_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ def test_nat_gateways_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_nat_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, nat_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -84,7 +84,7 @@ def test_nat_gateways_begin_delete(self, resource_group): response = self.client.nat_gateways.begin_delete( resource_group_name=resource_group.name, nat_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -95,7 +95,7 @@ def test_nat_gateways_begin_delete(self, resource_group): def test_nat_gateways_list(self, resource_group): response = self.client.nat_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -105,7 +105,7 @@ def test_nat_gateways_list(self, resource_group): @recorded_by_proxy def test_nat_gateways_list_all(self, resource_group): response = self.client.nat_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations_async.py index f75756bec21c..a2998b28ef7d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_nat_gateways_get(self, resource_group): response = await self.client.nat_gateways.get( resource_group_name=resource_group.name, nat_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_nat_gateways_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -75,7 +75,7 @@ async def test_nat_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, nat_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_nat_gateways_begin_delete(self, resource_group): await self.client.nat_gateways.begin_delete( resource_group_name=resource_group.name, nat_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -100,7 +100,7 @@ async def test_nat_gateways_begin_delete(self, resource_group): async def test_nat_gateways_list(self, resource_group): response = self.client.nat_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -110,7 +110,7 @@ async def test_nat_gateways_list(self, resource_group): @recorded_by_proxy_async async def test_nat_gateways_list_all(self, resource_group): response = self.client.nat_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations.py index 3c4ef76048e7..4fa8ec3ff40b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations.py @@ -25,7 +25,7 @@ def test_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ def test_nat_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_nat_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_nat_rules_list_by_vpn_gateway(self, resource_group): response = self.client.nat_rules.list_by_vpn_gateway( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations_async.py index 3a9dbedffb36..a1f079428a57 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_nat_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_nat_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -71,7 +71,7 @@ async def test_nat_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -84,7 +84,7 @@ async def test_nat_rules_list_by_vpn_gateway(self, resource_group): response = self.client.nat_rules.list_by_vpn_gateway( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations.py index 08679d73a2ec..b42797bad31b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations.py @@ -25,7 +25,7 @@ def test_network_groups_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_network_groups_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_network_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_network_groups_list(self, resource_group): response = self.client.network_groups.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations_async.py index 75bc7ddd5a3e..4fe5649de21a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_groups_operations_async.py @@ -26,7 +26,7 @@ async def test_network_groups_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ async def test_network_groups_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ async def test_network_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -86,7 +86,7 @@ async def test_network_groups_list(self, resource_group): response = self.client.network_groups.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations.py index 0476a14b17ef..d8dd6ead1219 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations.py @@ -25,7 +25,7 @@ def test_network_interface_ip_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_network_interface_ip_configurations_list(self, resource_group): response = self.client.network_interface_ip_configurations.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations_async.py index 79fb1b326148..e135638e16b4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_ip_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_network_interface_ip_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_network_interface_ip_configurations_list(self, resource_group): response = self.client.network_interface_ip_configurations.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations.py index c9ab0d68a1f6..a59e0451a85c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations.py @@ -24,7 +24,7 @@ def test_network_interface_load_balancers_list(self, resource_group): response = self.client.network_interface_load_balancers.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations_async.py index bae2246f0edb..72cd1a076dcc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_load_balancers_operations_async.py @@ -25,7 +25,7 @@ async def test_network_interface_load_balancers_list(self, resource_group): response = self.client.network_interface_load_balancers.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations.py index eaee51e50747..f3061a29f281 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations.py @@ -26,7 +26,7 @@ def test_network_interface_tap_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", tap_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -57,6 +57,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1435,7 +1436,9 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1467,6 +1470,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1545,7 +1549,13 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1577,6 +1587,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1899,6 +1910,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1946,6 +1958,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2539,6 +2552,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2588,6 +2602,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3456,6 +3471,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4013,6 +4029,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4226,7 +4243,9 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4258,6 +4277,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4335,7 +4355,13 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4367,6 +4393,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4635,6 +4662,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4690,6 +4718,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4741,6 +4770,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5258,6 +5288,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5319,6 +5350,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5384,6 +5416,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5585,7 +5618,7 @@ def test_network_interface_tap_configurations_begin_create_or_update(self, resou }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5598,7 +5631,7 @@ def test_network_interface_tap_configurations_begin_delete(self, resource_group) resource_group_name=resource_group.name, network_interface_name="str", tap_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5610,7 +5643,7 @@ def test_network_interface_tap_configurations_list(self, resource_group): response = self.client.network_interface_tap_configurations.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations_async.py index 337365c801f4..135703afb84f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interface_tap_configurations_operations_async.py @@ -27,7 +27,7 @@ async def test_network_interface_tap_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", tap_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,6 +59,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1473,7 +1474,9 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1505,6 +1508,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1586,7 +1590,13 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1618,6 +1628,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1944,6 +1955,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1993,6 +2005,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2603,6 +2616,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2654,6 +2668,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3547,6 +3562,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4125,6 +4141,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4346,7 +4363,9 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4378,6 +4397,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4458,7 +4478,13 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4490,6 +4516,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4764,6 +4791,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4825,6 +4853,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4890,6 +4919,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5421,6 +5451,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5482,6 +5513,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5549,6 +5581,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5754,7 +5787,7 @@ async def test_network_interface_tap_configurations_begin_create_or_update(self, }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5769,7 +5802,7 @@ async def test_network_interface_tap_configurations_begin_delete(self, resource_ resource_group_name=resource_group.name, network_interface_name="str", tap_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5782,7 +5815,7 @@ async def test_network_interface_tap_configurations_list(self, resource_group): response = self.client.network_interface_tap_configurations.list( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations.py index 95dbdbcce5ff..a88aecc81171 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations.py @@ -27,7 +27,7 @@ def test_network_interfaces_get_cloud_service_network_interface(self, resource_g cloud_service_name="str", role_instance_name="str", network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ def test_network_interfaces_list_cloud_service_role_instance_network_interfaces( resource_group_name=resource_group.name, cloud_service_name="str", role_instance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_network_interfaces_get(self, resource_group): response = self.client.network_interfaces.get( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -664,7 +664,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -696,6 +696,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -773,7 +774,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -805,6 +812,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1185,6 +1193,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1679,7 +1688,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1711,6 +1726,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1799,7 +1815,11 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1842,6 +1862,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2460,7 +2481,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2492,6 +2519,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2851,7 +2879,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2883,6 +2917,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3269,7 +3304,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3301,6 +3342,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3681,6 +3723,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4148,7 +4191,9 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4180,6 +4225,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4261,7 +4307,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4293,6 +4345,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4833,7 +4886,11 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4874,6 +4931,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5206,6 +5264,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5696,7 +5755,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5728,6 +5793,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5816,7 +5882,11 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5857,6 +5927,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6835,7 +6906,13 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6867,6 +6944,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6954,7 +7032,11 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6995,6 +7077,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7393,7 +7476,7 @@ def test_network_interfaces_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7406,7 +7489,7 @@ def test_network_interfaces_update_tags(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -7418,7 +7501,7 @@ def test_network_interfaces_begin_delete(self, resource_group): response = self.client.network_interfaces.begin_delete( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7429,7 +7512,7 @@ def test_network_interfaces_begin_delete(self, resource_group): def test_network_interfaces_list(self, resource_group): response = self.client.network_interfaces.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -7439,7 +7522,7 @@ def test_network_interfaces_list(self, resource_group): @recorded_by_proxy def test_network_interfaces_list_all(self, resource_group): response = self.client.network_interfaces.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -7451,7 +7534,7 @@ def test_network_interfaces_begin_get_effective_route_table(self, resource_group response = self.client.network_interfaces.begin_get_effective_route_table( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7463,7 +7546,7 @@ def test_network_interfaces_begin_list_effective_network_security_groups(self, r response = self.client.network_interfaces.begin_list_effective_network_security_groups( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7504,7 +7587,7 @@ def test_network_interfaces_list_cloud_service_network_interfaces(self, resource response = self.client.network_interfaces.list_cloud_service_network_interfaces( resource_group_name=resource_group.name, cloud_service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations_async.py index 28e94dd5aa7b..e0c0405f9127 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_interfaces_operations_async.py @@ -28,7 +28,7 @@ async def test_network_interfaces_get_cloud_service_network_interface(self, reso cloud_service_name="str", role_instance_name="str", network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -41,7 +41,7 @@ async def test_network_interfaces_list_cloud_service_role_instance_network_inter resource_group_name=resource_group.name, cloud_service_name="str", role_instance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -80,7 +80,7 @@ async def test_network_interfaces_get(self, resource_group): response = await self.client.network_interfaces.get( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -668,7 +668,9 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -700,6 +702,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -777,7 +780,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -809,6 +818,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1189,6 +1199,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1695,7 +1706,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1727,6 +1744,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1820,6 +1838,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1867,6 +1886,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2499,7 +2519,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2531,6 +2557,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2894,7 +2921,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2926,6 +2959,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3312,7 +3346,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3344,6 +3384,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3727,6 +3768,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4207,7 +4249,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4239,6 +4287,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4320,7 +4369,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4352,6 +4407,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4895,7 +4951,11 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4938,6 +4998,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5272,6 +5333,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5766,7 +5828,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5798,6 +5866,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5886,7 +5955,11 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5929,6 +6002,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6915,7 +6989,13 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6947,6 +7027,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7034,7 +7115,11 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -7077,6 +7162,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7477,7 +7563,7 @@ async def test_network_interfaces_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7491,7 +7577,7 @@ async def test_network_interfaces_update_tags(self, resource_group): resource_group_name=resource_group.name, network_interface_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -7504,7 +7590,7 @@ async def test_network_interfaces_begin_delete(self, resource_group): await self.client.network_interfaces.begin_delete( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7516,7 +7602,7 @@ async def test_network_interfaces_begin_delete(self, resource_group): async def test_network_interfaces_list(self, resource_group): response = self.client.network_interfaces.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -7526,7 +7612,7 @@ async def test_network_interfaces_list(self, resource_group): @recorded_by_proxy_async async def test_network_interfaces_list_all(self, resource_group): response = self.client.network_interfaces.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -7539,7 +7625,7 @@ async def test_network_interfaces_begin_get_effective_route_table(self, resource await self.client.network_interfaces.begin_get_effective_route_table( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7553,7 +7639,7 @@ async def test_network_interfaces_begin_list_effective_network_security_groups(s await self.client.network_interfaces.begin_list_effective_network_security_groups( resource_group_name=resource_group.name, network_interface_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7595,7 +7681,7 @@ async def test_network_interfaces_list_cloud_service_network_interfaces(self, re response = self.client.network_interfaces.list_cloud_service_network_interfaces( resource_group_name=resource_group.name, cloud_service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations.py index 8663a18e515a..2706786d6aa8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations.py @@ -30,7 +30,7 @@ def test_network_manager_commits_begin_post(self, resource_group): "commitId": "str", "configurationIds": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations_async.py index 3d06955cadd4..ad70fd468eaa 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_commits_operations_async.py @@ -32,7 +32,7 @@ async def test_network_manager_commits_begin_post(self, resource_group): "commitId": "str", "configurationIds": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations.py index 9d662cd2769f..3d5ddfe4940a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations.py @@ -25,7 +25,7 @@ def test_network_manager_deployment_status_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"deploymentTypes": ["str"], "regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations_async.py index f90a6572d725..0908f50a2c46 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_deployment_status_operations_async.py @@ -26,7 +26,7 @@ async def test_network_manager_deployment_status_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"deploymentTypes": ["str"], "regions": ["str"], "skipToken": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations.py index 6b0f7ee82e75..37a5141407c3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations.py @@ -25,7 +25,7 @@ def test_network_manager_routing_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_network_manager_routing_configurations_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_network_manager_routing_configurations_begin_delete(self, resource_grou resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_network_manager_routing_configurations_list(self, resource_group): response = self.client.network_manager_routing_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations_async.py index 3ba00da59aba..c952987d3223 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_manager_routing_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_network_manager_routing_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ async def test_network_manager_routing_configurations_create_or_update(self, res }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ async def test_network_manager_routing_configurations_begin_delete(self, resourc resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -86,7 +86,7 @@ async def test_network_manager_routing_configurations_list(self, resource_group) response = self.client.network_manager_routing_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations.py index 54649cbbecda..50a9a345c107 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations.py @@ -24,7 +24,7 @@ def test_network_managers_get(self, resource_group): response = self.client.network_managers.get( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_network_managers_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_network_managers_patch(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_network_managers_begin_delete(self, resource_group): response = self.client.network_managers.begin_delete( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -101,7 +101,7 @@ def test_network_managers_begin_delete(self, resource_group): def test_network_managers_list(self, resource_group): response = self.client.network_managers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_network_managers_list(self, resource_group): @recorded_by_proxy def test_network_managers_list_by_subscription(self, resource_group): response = self.client.network_managers.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations_async.py index dd81a3c0c987..d2ffd98a57c4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_managers_operations_async.py @@ -25,7 +25,7 @@ async def test_network_managers_get(self, resource_group): response = await self.client.network_managers.get( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_network_managers_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_network_managers_patch(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_network_managers_begin_delete(self, resource_group): await self.client.network_managers.begin_delete( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -104,7 +104,7 @@ async def test_network_managers_begin_delete(self, resource_group): async def test_network_managers_list(self, resource_group): response = self.client.network_managers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -114,7 +114,7 @@ async def test_network_managers_list(self, resource_group): @recorded_by_proxy_async async def test_network_managers_list_by_subscription(self, resource_group): response = self.client.network_managers.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations.py index 265e6cad89fa..7cffa3f2f355 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations.py @@ -25,7 +25,7 @@ def test_network_profiles_get(self, resource_group): response = self.client.network_profiles.get( resource_group_name=resource_group.name, network_profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -123,7 +123,13 @@ def test_network_profiles_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -155,6 +161,7 @@ def test_network_profiles_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -486,6 +493,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -537,6 +545,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -564,6 +573,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -633,6 +643,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -700,6 +711,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -886,6 +898,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -947,6 +960,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1014,6 +1028,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1184,6 +1199,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1245,6 +1261,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1312,6 +1329,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1532,6 +1550,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1599,6 +1618,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1976,6 +1996,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2041,6 +2062,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2068,6 +2090,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2137,6 +2160,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2204,6 +2228,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2492,6 +2517,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2553,6 +2579,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2620,6 +2647,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2693,6 +2721,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2762,6 +2791,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2829,6 +2859,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3049,6 +3080,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3116,6 +3148,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3390,7 +3423,11 @@ def test_network_profiles_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3433,6 +3470,7 @@ def test_network_profiles_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3778,6 +3816,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3845,6 +3884,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3872,6 +3912,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3941,6 +3982,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4008,6 +4050,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4198,6 +4241,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4259,6 +4303,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4326,6 +4371,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4502,6 +4548,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4571,6 +4618,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4638,6 +4686,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4860,6 +4909,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4927,6 +4977,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5312,6 +5363,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5379,6 +5431,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5408,6 +5461,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5477,6 +5531,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5544,6 +5599,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5836,6 +5892,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5905,6 +5962,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5972,6 +6030,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6047,6 +6106,7 @@ def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6116,6 +6176,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6183,6 +6244,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6405,6 +6467,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6472,6 +6535,7 @@ def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6678,7 +6742,7 @@ def test_network_profiles_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6691,7 +6755,7 @@ def test_network_profiles_update_tags(self, resource_group): resource_group_name=resource_group.name, network_profile_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6703,7 +6767,7 @@ def test_network_profiles_begin_delete(self, resource_group): response = self.client.network_profiles.begin_delete( resource_group_name=resource_group.name, network_profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -6714,7 +6778,7 @@ def test_network_profiles_begin_delete(self, resource_group): def test_network_profiles_list(self, resource_group): response = self.client.network_profiles.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -6724,7 +6788,7 @@ def test_network_profiles_list(self, resource_group): @recorded_by_proxy def test_network_profiles_list_all(self, resource_group): response = self.client.network_profiles.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations_async.py index a380e371db6b..80954c10949f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_profiles_operations_async.py @@ -26,7 +26,7 @@ async def test_network_profiles_get(self, resource_group): response = await self.client.network_profiles.get( resource_group_name=resource_group.name, network_profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -124,7 +124,13 @@ async def test_network_profiles_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -156,6 +162,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -487,6 +494,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -538,6 +546,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -565,6 +574,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -634,6 +644,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -701,6 +712,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -887,6 +899,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -948,6 +961,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1015,6 +1029,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1185,6 +1200,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1246,6 +1262,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1313,6 +1330,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1533,6 +1551,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1600,6 +1619,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1977,6 +1997,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2042,6 +2063,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2069,6 +2091,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2138,6 +2161,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2205,6 +2229,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2493,6 +2518,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2554,6 +2580,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2621,6 +2648,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2694,6 +2722,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2763,6 +2792,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2830,6 +2860,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3050,6 +3081,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3117,6 +3149,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3391,7 +3424,11 @@ async def test_network_profiles_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3434,6 +3471,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3779,6 +3817,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3846,6 +3885,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3873,6 +3913,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3942,6 +3983,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4009,6 +4051,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4199,6 +4242,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4260,6 +4304,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4327,6 +4372,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4503,6 +4549,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4572,6 +4619,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4639,6 +4687,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4861,6 +4910,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4928,6 +4978,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5313,6 +5364,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5380,6 +5432,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5409,6 +5462,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5478,6 +5532,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5545,6 +5600,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5837,6 +5893,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5906,6 +5963,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5973,6 +6031,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6048,6 +6107,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6117,6 +6177,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6184,6 +6245,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6406,6 +6468,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6473,6 +6536,7 @@ async def test_network_profiles_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6679,7 +6743,7 @@ async def test_network_profiles_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6692,7 +6756,7 @@ async def test_network_profiles_update_tags(self, resource_group): resource_group_name=resource_group.name, network_profile_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6705,7 +6769,7 @@ async def test_network_profiles_begin_delete(self, resource_group): await self.client.network_profiles.begin_delete( resource_group_name=resource_group.name, network_profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -6717,7 +6781,7 @@ async def test_network_profiles_begin_delete(self, resource_group): async def test_network_profiles_list(self, resource_group): response = self.client.network_profiles.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -6727,7 +6791,7 @@ async def test_network_profiles_list(self, resource_group): @recorded_by_proxy_async async def test_network_profiles_list_all(self, resource_group): response = self.client.network_profiles.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations.py index 3fb3c42ad896..695701e888e6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations.py @@ -25,7 +25,7 @@ def test_network_security_groups_get(self, resource_group): response = self.client.network_security_groups.get( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -557,7 +557,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -589,6 +595,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -669,7 +676,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -701,6 +714,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -927,6 +941,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1252,7 +1267,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1284,6 +1305,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1377,6 +1399,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1428,6 +1451,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1840,7 +1864,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1872,6 +1902,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2109,7 +2140,11 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2152,6 +2187,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2378,6 +2414,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2683,7 +2720,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2715,6 +2758,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2803,7 +2847,11 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2846,6 +2894,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3239,6 +3288,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3288,6 +3338,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3467,6 +3518,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3786,7 +3838,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3818,6 +3876,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3911,6 +3970,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3960,6 +4020,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4622,7 +4683,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4654,6 +4721,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4746,6 +4814,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4795,6 +4864,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5167,7 +5237,13 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5199,6 +5275,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5458,7 +5535,11 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5499,6 +5580,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5523,6 +5605,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5584,6 +5667,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5649,6 +5733,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5733,6 +5818,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5784,6 +5870,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5831,6 +5918,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5895,6 +5983,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5950,6 +6039,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6001,6 +6091,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6205,6 +6296,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6256,6 +6348,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6428,7 +6521,7 @@ def test_network_security_groups_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -6441,7 +6534,7 @@ def test_network_security_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6453,7 +6546,7 @@ def test_network_security_groups_begin_delete(self, resource_group): response = self.client.network_security_groups.begin_delete( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -6464,7 +6557,7 @@ def test_network_security_groups_begin_delete(self, resource_group): def test_network_security_groups_list(self, resource_group): response = self.client.network_security_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -6474,7 +6567,7 @@ def test_network_security_groups_list(self, resource_group): @recorded_by_proxy def test_network_security_groups_list_all(self, resource_group): response = self.client.network_security_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations_async.py index e22b686978f7..7faf9f87f240 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_groups_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_groups_get(self, resource_group): response = await self.client.network_security_groups.get( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -566,7 +566,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -598,6 +604,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -685,7 +692,11 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -726,6 +737,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -952,6 +964,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1295,7 +1308,11 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1336,6 +1353,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1429,6 +1447,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1494,6 +1513,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1906,7 +1926,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1938,6 +1964,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2180,6 +2207,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2227,6 +2255,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2458,6 +2487,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2775,7 +2805,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2807,6 +2843,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2900,6 +2937,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2947,6 +2985,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3345,6 +3384,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3396,6 +3436,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3577,6 +3618,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3902,7 +3944,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3934,6 +3982,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4027,6 +4076,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4078,6 +4128,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4748,7 +4799,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4780,6 +4837,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4872,6 +4930,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4923,6 +4982,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5297,7 +5357,13 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5329,6 +5395,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5596,7 +5663,11 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -5639,6 +5710,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5663,6 +5735,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5724,6 +5797,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5791,6 +5865,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5877,6 +5952,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5928,6 +6004,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5977,6 +6054,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6044,6 +6122,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6105,6 +6184,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6170,6 +6250,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6374,6 +6455,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6439,6 +6521,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6613,7 +6696,7 @@ async def test_network_security_groups_begin_create_or_update(self, resource_gro "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -6627,7 +6710,7 @@ async def test_network_security_groups_update_tags(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -6640,7 +6723,7 @@ async def test_network_security_groups_begin_delete(self, resource_group): await self.client.network_security_groups.begin_delete( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -6652,7 +6735,7 @@ async def test_network_security_groups_begin_delete(self, resource_group): async def test_network_security_groups_list(self, resource_group): response = self.client.network_security_groups.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -6662,7 +6745,7 @@ async def test_network_security_groups_list(self, resource_group): @recorded_by_proxy_async async def test_network_security_groups_list_all(self, resource_group): response = self.client.network_security_groups.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations.py index 8530220c7faa..94db5239af65 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations.py @@ -26,7 +26,7 @@ def test_network_security_perimeter_access_rules_get(self, resource_group): network_security_perimeter_name="str", profile_name="str", access_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_network_security_perimeter_access_rules_create_or_update(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_network_security_perimeter_access_rules_delete(self, resource_group): network_security_perimeter_name="str", profile_name="str", access_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_network_security_perimeter_access_rules_list(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -106,7 +106,7 @@ def test_network_security_perimeter_access_rules_reconcile(self, resource_group) profile_name="str", access_rule_name="str", parameters={}, - api_version="2025-07-01", + api_version="2025-09-01", content_type="str", ) diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations_async.py index 42e514f93009..51b5d91a4229 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_access_rules_operations_async.py @@ -27,7 +27,7 @@ async def test_network_security_perimeter_access_rules_get(self, resource_group) network_security_perimeter_name="str", profile_name="str", access_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_network_security_perimeter_access_rules_create_or_update(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_network_security_perimeter_access_rules_delete(self, resource_gro network_security_perimeter_name="str", profile_name="str", access_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ async def test_network_security_perimeter_access_rules_list(self, resource_group resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -107,7 +107,7 @@ async def test_network_security_perimeter_access_rules_reconcile(self, resource_ profile_name="str", access_rule_name="str", parameters={}, - api_version="2025-07-01", + api_version="2025-09-01", content_type="str", ) diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations.py index 1be84cf457bd..abf1bdcb1eef 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_network_security_perimeter_associable_resource_types_list(self, resource_group): response = self.client.network_security_perimeter_associable_resource_types.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations_async.py index 262b2ba05e38..24cdeee8736a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associable_resource_types_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_network_security_perimeter_associable_resource_types_list(self, resource_group): response = self.client.network_security_perimeter_associable_resource_types.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations.py index aba0f06b066c..894b602eca35 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations.py @@ -25,7 +25,7 @@ def test_network_security_perimeter_associations_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", association_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_network_security_perimeter_associations_begin_create_or_update(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_network_security_perimeter_associations_begin_delete(self, resource_gro resource_group_name=resource_group.name, network_security_perimeter_name="str", association_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_network_security_perimeter_associations_list(self, resource_group): response = self.client.network_security_perimeter_associations.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -97,7 +97,7 @@ def test_network_security_perimeter_associations_reconcile(self, resource_group) network_security_perimeter_name="str", association_name="str", parameters={}, - api_version="2025-07-01", + api_version="2025-09-01", content_type="str", ) diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations_async.py index 9b30bdd262ee..f1a317751037 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_associations_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_perimeter_associations_get(self, resource_group) resource_group_name=resource_group.name, network_security_perimeter_name="str", association_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ async def test_network_security_perimeter_associations_begin_create_or_update(se }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -75,7 +75,7 @@ async def test_network_security_perimeter_associations_begin_delete(self, resour resource_group_name=resource_group.name, network_security_perimeter_name="str", association_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -88,7 +88,7 @@ async def test_network_security_perimeter_associations_list(self, resource_group response = self.client.network_security_perimeter_associations.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -102,7 +102,7 @@ async def test_network_security_perimeter_associations_reconcile(self, resource_ network_security_perimeter_name="str", association_name="str", parameters={}, - api_version="2025-07-01", + api_version="2025-09-01", content_type="str", ) diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations.py index 9a7b937c8849..7dd7b12fb2aa 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations.py @@ -25,7 +25,7 @@ def test_network_security_perimeter_link_references_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", link_reference_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_network_security_perimeter_link_references_begin_delete(self, resource_ resource_group_name=resource_group.name, network_security_perimeter_name="str", link_reference_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_network_security_perimeter_link_references_list(self, resource_group): response = self.client.network_security_perimeter_link_references.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations_async.py index 93d0f018d7d2..c314f34751aa 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_link_references_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_perimeter_link_references_get(self, resource_gro resource_group_name=resource_group.name, network_security_perimeter_name="str", link_reference_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ async def test_network_security_perimeter_link_references_begin_delete(self, res resource_group_name=resource_group.name, network_security_perimeter_name="str", link_reference_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -53,7 +53,7 @@ async def test_network_security_perimeter_link_references_list(self, resource_gr response = self.client.network_security_perimeter_link_references.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations.py index c46df5d78f26..e556d5b012d3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations.py @@ -25,7 +25,7 @@ def test_network_security_perimeter_links_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_network_security_perimeter_links_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_network_security_perimeter_links_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_network_security_perimeter_links_list(self, resource_group): response = self.client.network_security_perimeter_links.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations_async.py index b6b5e01c2e6a..89cbdec1d03f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_links_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_perimeter_links_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_network_security_perimeter_links_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_network_security_perimeter_links_begin_delete(self, resource_grou resource_group_name=resource_group.name, network_security_perimeter_name="str", link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_network_security_perimeter_links_list(self, resource_group): response = self.client.network_security_perimeter_links.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations.py index 438c404fca2c..3c155136214b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations.py @@ -25,7 +25,7 @@ def test_network_security_perimeter_logging_configurations_get(self, resource_gr resource_group_name=resource_group.name, network_security_perimeter_name="str", logging_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_network_security_perimeter_logging_configurations_create_or_update(self }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_network_security_perimeter_logging_configurations_delete(self, resource resource_group_name=resource_group.name, network_security_perimeter_name="str", logging_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_network_security_perimeter_logging_configurations_list(self, resource_g response = self.client.network_security_perimeter_logging_configurations.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations_async.py index 1b44725fa336..66ae4a4d0831 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_logging_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_perimeter_logging_configurations_get(self, resou resource_group_name=resource_group.name, network_security_perimeter_name="str", logging_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_network_security_perimeter_logging_configurations_create_or_updat }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_network_security_perimeter_logging_configurations_delete(self, re resource_group_name=resource_group.name, network_security_perimeter_name="str", logging_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_network_security_perimeter_logging_configurations_list(self, reso response = self.client.network_security_perimeter_logging_configurations.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations.py index f8c53e0a91da..a63b92efb04b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations.py @@ -24,7 +24,7 @@ def test_network_security_perimeter_operation_statuses_get(self, resource_group) response = self.client.network_security_perimeter_operation_statuses.get( location="str", operation_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations_async.py index 6fe8425b54f7..6a5bfb4ee0f4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_operation_statuses_operations_async.py @@ -25,7 +25,7 @@ async def test_network_security_perimeter_operation_statuses_get(self, resource_ response = await self.client.network_security_perimeter_operation_statuses.get( location="str", operation_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations.py index af8d7160c53e..0399c93298e0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations.py @@ -25,7 +25,7 @@ def test_network_security_perimeter_profiles_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_network_security_perimeter_profiles_create_or_update(self, resource_gro }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_network_security_perimeter_profiles_delete(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_network_security_perimeter_profiles_list(self, resource_group): response = self.client.network_security_perimeter_profiles.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations_async.py index 7d921d2450ad..81b2f02dd3da 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_profiles_operations_async.py @@ -26,7 +26,7 @@ async def test_network_security_perimeter_profiles_get(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_network_security_perimeter_profiles_create_or_update(self, resour }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_network_security_perimeter_profiles_delete(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", profile_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_network_security_perimeter_profiles_list(self, resource_group): response = self.client.network_security_perimeter_profiles.list( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations.py index 6618ea207f58..bdf05bd34d3e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_network_security_perimeter_service_tags_list(self, resource_group): response = self.client.network_security_perimeter_service_tags.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations_async.py index 0628224fc6a4..ed7a1ae67bea 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeter_service_tags_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_network_security_perimeter_service_tags_list(self, resource_group): response = self.client.network_security_perimeter_service_tags.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations.py index 7b179d6ff6dc..6034fb14b3be 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations.py @@ -24,7 +24,7 @@ def test_network_security_perimeters_get(self, resource_group): response = self.client.network_security_perimeters.get( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_network_security_perimeters_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_network_security_perimeters_patch(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", parameters={"id": "str", "tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_network_security_perimeters_begin_delete(self, resource_group): response = self.client.network_security_perimeters.begin_delete( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_network_security_perimeters_begin_delete(self, resource_group): def test_network_security_perimeters_list(self, resource_group): response = self.client.network_security_perimeters.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -98,7 +98,7 @@ def test_network_security_perimeters_list(self, resource_group): @recorded_by_proxy def test_network_security_perimeters_list_by_subscription(self, resource_group): response = self.client.network_security_perimeters.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations_async.py index 8d9641e967f4..122bed4ca56e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_security_perimeters_operations_async.py @@ -25,7 +25,7 @@ async def test_network_security_perimeters_get(self, resource_group): response = await self.client.network_security_perimeters.get( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_network_security_perimeters_create_or_update(self, resource_group "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_network_security_perimeters_patch(self, resource_group): resource_group_name=resource_group.name, network_security_perimeter_name="str", parameters={"id": "str", "tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_network_security_perimeters_begin_delete(self, resource_group): await self.client.network_security_perimeters.begin_delete( resource_group_name=resource_group.name, network_security_perimeter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_network_security_perimeters_begin_delete(self, resource_group): async def test_network_security_perimeters_list(self, resource_group): response = self.client.network_security_perimeters.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ async def test_network_security_perimeters_list(self, resource_group): @recorded_by_proxy_async async def test_network_security_perimeters_list_by_subscription(self, resource_group): response = self.client.network_security_perimeters.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations.py index 881c85e35905..7f1e993996ee 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations.py @@ -51,7 +51,7 @@ def test_network_virtual_appliance_connections_begin_create_or_update(self, reso "tunnelIdentifier": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_network_virtual_appliance_connections_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_network_virtual_appliance_connections_begin_delete(self, resource_group resource_group_name=resource_group.name, network_virtual_appliance_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_network_virtual_appliance_connections_list(self, resource_group): response = self.client.network_virtual_appliance_connections.list( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations_async.py index 7c803e4df8eb..d24cc5882915 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliance_connections_operations_async.py @@ -55,7 +55,7 @@ async def test_network_virtual_appliance_connections_begin_create_or_update(self "tunnelIdentifier": 0, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -69,7 +69,7 @@ async def test_network_virtual_appliance_connections_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_network_virtual_appliance_connections_begin_delete(self, resource resource_group_name=resource_group.name, network_virtual_appliance_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_network_virtual_appliance_connections_list(self, resource_group): response = self.client.network_virtual_appliance_connections.list( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations.py index ed3500fb1dc6..8dfb9c456cd9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations.py @@ -24,7 +24,7 @@ def test_network_virtual_appliances_get(self, resource_group): response = self.client.network_virtual_appliances.get( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -49,7 +49,9 @@ def test_network_virtual_appliances_begin_create_or_update(self, resource_group) "name": "str", "properties": { "additionalNics": [{"hasPublicIp": bool, "name": "str"}], + "addressFamily": ["str"], "addressPrefix": "str", + "addressPrefixV6": "str", "bootStrapConfigurationBlobs": ["str"], "cloudInitConfiguration": "str", "cloudInitConfigurationBlobs": ["str"], @@ -57,6 +59,7 @@ def test_network_virtual_appliances_begin_create_or_update(self, resource_group) "deploymentType": "str", "inboundSecurityRules": [{"id": "str"}], "internetIngressPublicIps": [{"id": "str"}], + "migrationStatus": {"migrationPhase": "str", "migrationPhaseStatus": "str", "migrationType": "str"}, "networkProfile": { "networkInterfaceConfigurations": [ { @@ -73,6 +76,7 @@ def test_network_virtual_appliances_begin_create_or_update(self, resource_group) "standardLoadBalancerId": "str", }, "privateIpAddress": "str", + "privateIpAddressV6": "str", "provisioningState": "str", "sshPublicKey": "str", "virtualApplianceAsn": 0, @@ -83,7 +87,9 @@ def test_network_virtual_appliances_begin_create_or_update(self, resource_group) "name": "str", "nicType": "str", "privateIpAddress": "str", + "privateIpAddressV6": "str", "publicIpAddress": "str", + "publicIpAddressV6": "str", } ], "virtualApplianceSites": [{"id": "str"}], @@ -92,7 +98,7 @@ def test_network_virtual_appliances_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -105,7 +111,7 @@ def test_network_virtual_appliances_update_tags(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -117,7 +123,7 @@ def test_network_virtual_appliances_begin_delete(self, resource_group): response = self.client.network_virtual_appliances.begin_delete( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -128,7 +134,7 @@ def test_network_virtual_appliances_begin_delete(self, resource_group): def test_network_virtual_appliances_list_by_resource_group(self, resource_group): response = self.client.network_virtual_appliances.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -138,7 +144,7 @@ def test_network_virtual_appliances_list_by_resource_group(self, resource_group) @recorded_by_proxy def test_network_virtual_appliances_list(self, resource_group): response = self.client.network_virtual_appliances.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -150,7 +156,7 @@ def test_network_virtual_appliances_begin_restart(self, resource_group): response = self.client.network_virtual_appliances.begin_restart( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -162,7 +168,7 @@ def test_network_virtual_appliances_begin_reimage(self, resource_group): response = self.client.network_virtual_appliances.begin_reimage( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -175,7 +181,58 @@ def test_network_virtual_appliances_begin_get_boot_diagnostic_logs(self, resourc resource_group_name=resource_group.name, network_virtual_appliance_name="str", request={"consoleScreenshotStorageSasUrl": "str", "instanceId": 0, "serialConsoleStorageSasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_virtual_appliances_begin_prepare_migration(self, resource_group): + response = self.client.network_virtual_appliances.begin_prepare_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str", "marketPlaceVersion": "str"}}, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_virtual_appliances_begin_execute_migration(self, resource_group): + response = self.client.network_virtual_appliances.begin_execute_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str"}}, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_virtual_appliances_begin_commit_migration(self, resource_group): + response = self.client.network_virtual_appliances.begin_commit_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str"}}, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_virtual_appliances_begin_abort_migration(self, resource_group): + response = self.client.network_virtual_appliances.begin_abort_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations_async.py index fbb4c1d6ab95..8cb4c6eec612 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_virtual_appliances_operations_async.py @@ -25,7 +25,7 @@ async def test_network_virtual_appliances_get(self, resource_group): response = await self.client.network_virtual_appliances.get( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,7 +51,9 @@ async def test_network_virtual_appliances_begin_create_or_update(self, resource_ "name": "str", "properties": { "additionalNics": [{"hasPublicIp": bool, "name": "str"}], + "addressFamily": ["str"], "addressPrefix": "str", + "addressPrefixV6": "str", "bootStrapConfigurationBlobs": ["str"], "cloudInitConfiguration": "str", "cloudInitConfigurationBlobs": ["str"], @@ -59,6 +61,11 @@ async def test_network_virtual_appliances_begin_create_or_update(self, resource_ "deploymentType": "str", "inboundSecurityRules": [{"id": "str"}], "internetIngressPublicIps": [{"id": "str"}], + "migrationStatus": { + "migrationPhase": "str", + "migrationPhaseStatus": "str", + "migrationType": "str", + }, "networkProfile": { "networkInterfaceConfigurations": [ { @@ -77,6 +84,7 @@ async def test_network_virtual_appliances_begin_create_or_update(self, resource_ "standardLoadBalancerId": "str", }, "privateIpAddress": "str", + "privateIpAddressV6": "str", "provisioningState": "str", "sshPublicKey": "str", "virtualApplianceAsn": 0, @@ -87,7 +95,9 @@ async def test_network_virtual_appliances_begin_create_or_update(self, resource_ "name": "str", "nicType": "str", "privateIpAddress": "str", + "privateIpAddressV6": "str", "publicIpAddress": "str", + "publicIpAddressV6": "str", } ], "virtualApplianceSites": [{"id": "str"}], @@ -96,7 +106,7 @@ async def test_network_virtual_appliances_begin_create_or_update(self, resource_ "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -110,7 +120,7 @@ async def test_network_virtual_appliances_update_tags(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -123,7 +133,7 @@ async def test_network_virtual_appliances_begin_delete(self, resource_group): await self.client.network_virtual_appliances.begin_delete( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -135,7 +145,7 @@ async def test_network_virtual_appliances_begin_delete(self, resource_group): async def test_network_virtual_appliances_list_by_resource_group(self, resource_group): response = self.client.network_virtual_appliances.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -145,7 +155,7 @@ async def test_network_virtual_appliances_list_by_resource_group(self, resource_ @recorded_by_proxy_async async def test_network_virtual_appliances_list(self, resource_group): response = self.client.network_virtual_appliances.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -158,7 +168,7 @@ async def test_network_virtual_appliances_begin_restart(self, resource_group): await self.client.network_virtual_appliances.begin_restart( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -172,7 +182,7 @@ async def test_network_virtual_appliances_begin_reimage(self, resource_group): await self.client.network_virtual_appliances.begin_reimage( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -187,7 +197,66 @@ async def test_network_virtual_appliances_begin_get_boot_diagnostic_logs(self, r resource_group_name=resource_group.name, network_virtual_appliance_name="str", request={"consoleScreenshotStorageSasUrl": "str", "instanceId": 0, "serialConsoleStorageSasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_virtual_appliances_begin_prepare_migration(self, resource_group): + response = await ( + await self.client.network_virtual_appliances.begin_prepare_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str", "marketPlaceVersion": "str"}}, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_virtual_appliances_begin_execute_migration(self, resource_group): + response = await ( + await self.client.network_virtual_appliances.begin_execute_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str"}}, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_virtual_appliances_begin_commit_migration(self, resource_group): + response = await ( + await self.client.network_virtual_appliances.begin_commit_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + body={"properties": {"migrationType": "str"}}, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_virtual_appliances_begin_abort_migration(self, resource_group): + response = await ( + await self.client.network_virtual_appliances.begin_abort_migration( + resource_group_name=resource_group.name, + network_virtual_appliance_name="str", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations.py index bcf915ece86f..dfdd7af88dff 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations.py @@ -24,7 +24,7 @@ def test_network_watchers_get(self, resource_group): response = self.client.network_watchers.get( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_network_watchers_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_network_watchers_update_tags(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_network_watchers_begin_delete(self, resource_group): response = self.client.network_watchers.begin_delete( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -81,7 +81,7 @@ def test_network_watchers_begin_delete(self, resource_group): def test_network_watchers_list(self, resource_group): response = self.client.network_watchers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_network_watchers_list(self, resource_group): @recorded_by_proxy def test_network_watchers_list_all(self, resource_group): response = self.client.network_watchers.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -108,7 +108,7 @@ def test_network_watchers_get_topology(self, resource_group): "targetSubnet": {"id": "str"}, "targetVirtualNetwork": {"id": "str"}, }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -130,7 +130,7 @@ def test_network_watchers_begin_verify_ip_flow(self, resource_group): "targetResourceId": "str", "targetNicResourceId": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -148,7 +148,7 @@ def test_network_watchers_begin_get_next_hop(self, resource_group): "targetResourceId": "str", "targetNicResourceId": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -161,7 +161,7 @@ def test_network_watchers_begin_get_vm_security_rules(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -174,7 +174,7 @@ def test_network_watchers_begin_get_troubleshooting(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"properties": {"storageId": "str", "storagePath": "str"}, "targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -187,7 +187,7 @@ def test_network_watchers_begin_get_troubleshooting_result(self, resource_group) resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -225,7 +225,7 @@ def test_network_watchers_begin_set_flow_log_configuration(self, resource_group) "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -238,7 +238,7 @@ def test_network_watchers_begin_get_flow_log_status(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -263,7 +263,7 @@ def test_network_watchers_begin_check_connectivity(self, resource_group): } }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -282,7 +282,7 @@ def test_network_watchers_begin_get_azure_reachability_report(self, resource_gro "azureLocations": ["str"], "providers": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -295,7 +295,7 @@ def test_network_watchers_begin_list_available_providers(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"azureLocations": ["str"], "city": "str", "country": "str", "state": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -320,7 +320,123 @@ def test_network_watchers_begin_get_network_configuration_diagnostic(self, resou "targetResourceId": "str", "verbosityLevel": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_begin_connection_analyzers_create(self, resource_group): + response = self.client.network_watchers.begin_connection_analyzers_create( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + body={ + "location": "str", + "properties": { + "destination": {"type": "str", "address": "str", "port": 0, "resourceId": "str"}, + "diagnosticOperations": ["str"], + "source": {"type": "str", "address": "str", "port": 0, "resourceId": "str"}, + "diagnosticOperationsSettings": { + "connectivityCheckSettings": {"generatePath": bool, "preferredIPVersion": "str"}, + "expressRouteDiagnosticsSettings": {"bandwidth": 0.0, "erCircuitResourceId": "str"}, + }, + "expiryInDays": 0, + "outputSettings": {"storageAccountSettings": {"storageAccountId": "str", "path": "str"}}, + "protocolSettings": { + "httpConfiguration": { + "headers": [{"name": "str", "value": "str"}], + "method": "str", + "validStatusCodes": [0], + }, + "protocol": "str", + }, + "provisioningState": "str", + "requestTime": "2020-02-20 00:00:00", + "status": "str", + }, + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_connection_analyzers_get(self, resource_group): + response = self.client.network_watchers.connection_analyzers_get( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_begin_connection_analyzers_delete(self, resource_group): + response = self.client.network_watchers.begin_connection_analyzers_delete( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_connection_analyzers_update_tags(self, resource_group): + response = self.client.network_watchers.connection_analyzers_update_tags( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + body={"tags": {"str": "str"}}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_connection_analyzers_list(self, resource_group): + response = self.client.network_watchers.connection_analyzers_list( + resource_group_name=resource_group.name, + network_watcher_name="str", + api_version="2025-09-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_network_watchers_begin_connection_analyzers_query(self, resource_group): + response = self.client.network_watchers.begin_connection_analyzers_query( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations_async.py index 870915d13982..278f8e671c42 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_network_watchers_operations_async.py @@ -25,7 +25,7 @@ async def test_network_watchers_get(self, resource_group): response = await self.client.network_watchers.get( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -46,7 +46,7 @@ async def test_network_watchers_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ async def test_network_watchers_update_tags(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ async def test_network_watchers_begin_delete(self, resource_group): await self.client.network_watchers.begin_delete( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -84,7 +84,7 @@ async def test_network_watchers_begin_delete(self, resource_group): async def test_network_watchers_list(self, resource_group): response = self.client.network_watchers.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -94,7 +94,7 @@ async def test_network_watchers_list(self, resource_group): @recorded_by_proxy_async async def test_network_watchers_list_all(self, resource_group): response = self.client.network_watchers.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -111,7 +111,7 @@ async def test_network_watchers_get_topology(self, resource_group): "targetSubnet": {"id": "str"}, "targetVirtualNetwork": {"id": "str"}, }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -134,7 +134,7 @@ async def test_network_watchers_begin_verify_ip_flow(self, resource_group): "targetResourceId": "str", "targetNicResourceId": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -154,7 +154,7 @@ async def test_network_watchers_begin_get_next_hop(self, resource_group): "targetResourceId": "str", "targetNicResourceId": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -169,7 +169,7 @@ async def test_network_watchers_begin_get_vm_security_rules(self, resource_group resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -184,7 +184,7 @@ async def test_network_watchers_begin_get_troubleshooting(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"properties": {"storageId": "str", "storagePath": "str"}, "targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -199,7 +199,7 @@ async def test_network_watchers_begin_get_troubleshooting_result(self, resource_ resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -239,7 +239,7 @@ async def test_network_watchers_begin_set_flow_log_configuration(self, resource_ "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -254,7 +254,7 @@ async def test_network_watchers_begin_get_flow_log_status(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", parameters={"targetResourceId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -281,7 +281,7 @@ async def test_network_watchers_begin_check_connectivity(self, resource_group): } }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -302,7 +302,7 @@ async def test_network_watchers_begin_get_azure_reachability_report(self, resour "azureLocations": ["str"], "providers": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -317,7 +317,7 @@ async def test_network_watchers_begin_list_available_providers(self, resource_gr resource_group_name=resource_group.name, network_watcher_name="str", parameters={"azureLocations": ["str"], "city": "str", "country": "str", "state": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -344,7 +344,129 @@ async def test_network_watchers_begin_get_network_configuration_diagnostic(self, "targetResourceId": "str", "verbosityLevel": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_begin_connection_analyzers_create(self, resource_group): + response = await ( + await self.client.network_watchers.begin_connection_analyzers_create( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + body={ + "location": "str", + "properties": { + "destination": {"type": "str", "address": "str", "port": 0, "resourceId": "str"}, + "diagnosticOperations": ["str"], + "source": {"type": "str", "address": "str", "port": 0, "resourceId": "str"}, + "diagnosticOperationsSettings": { + "connectivityCheckSettings": {"generatePath": bool, "preferredIPVersion": "str"}, + "expressRouteDiagnosticsSettings": {"bandwidth": 0.0, "erCircuitResourceId": "str"}, + }, + "expiryInDays": 0, + "outputSettings": {"storageAccountSettings": {"storageAccountId": "str", "path": "str"}}, + "protocolSettings": { + "httpConfiguration": { + "headers": [{"name": "str", "value": "str"}], + "method": "str", + "validStatusCodes": [0], + }, + "protocol": "str", + }, + "provisioningState": "str", + "requestTime": "2020-02-20 00:00:00", + "status": "str", + }, + "etag": "str", + "id": "str", + "name": "str", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_connection_analyzers_get(self, resource_group): + response = await self.client.network_watchers.connection_analyzers_get( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_begin_connection_analyzers_delete(self, resource_group): + response = await ( + await self.client.network_watchers.begin_connection_analyzers_delete( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_connection_analyzers_update_tags(self, resource_group): + response = await self.client.network_watchers.connection_analyzers_update_tags( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + body={"tags": {"str": "str"}}, + api_version="2025-09-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_connection_analyzers_list(self, resource_group): + response = self.client.network_watchers.connection_analyzers_list( + resource_group_name=resource_group.name, + network_watcher_name="str", + api_version="2025-09-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_network_watchers_begin_connection_analyzers_query(self, resource_group): + response = await ( + await self.client.network_watchers.begin_connection_analyzers_query( + resource_group_name=resource_group.name, + network_watcher_name="str", + connection_analyzer_name="str", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations.py index 655932741a98..e0bdabda00e5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations_async.py index 8a1acd6ab100..b8ed3dee73e5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations.py index dabc152c44d9..bde40874a6f3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations.py @@ -24,7 +24,7 @@ def test_p2_svpn_gateways_get(self, resource_group): response = self.client.p2_svpn_gateways.get( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -113,7 +113,7 @@ def test_p2_svpn_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -126,7 +126,7 @@ def test_p2_svpn_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", p2_s_vpn_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -138,7 +138,7 @@ def test_p2_svpn_gateways_begin_delete(self, resource_group): response = self.client.p2_svpn_gateways.begin_delete( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -149,7 +149,7 @@ def test_p2_svpn_gateways_begin_delete(self, resource_group): def test_p2_svpn_gateways_list_by_resource_group(self, resource_group): response = self.client.p2_svpn_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -159,7 +159,7 @@ def test_p2_svpn_gateways_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_p2_svpn_gateways_list(self, resource_group): response = self.client.p2_svpn_gateways.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -171,7 +171,7 @@ def test_p2_svpn_gateways_begin_reset(self, resource_group): response = self.client.p2_svpn_gateways.begin_reset( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -184,7 +184,7 @@ def test_p2_svpn_gateways_begin_generate_vpn_profile(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", parameters={"authenticationMethod": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -196,7 +196,7 @@ def test_p2_svpn_gateways_begin_get_p2_s_vpn_connection_health(self, resource_gr response = self.client.p2_svpn_gateways.begin_get_p2_s_vpn_connection_health( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -209,7 +209,7 @@ def test_p2_svpn_gateways_begin_get_p2_s_vpn_connection_health_detailed(self, re resource_group_name=resource_group.name, gateway_name="str", request={"outputBlobSasUrl": "str", "vpnUserNamesFilter": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -222,7 +222,7 @@ def test_p2_svpn_gateways_begin_disconnect_p2_s_vpn_connections(self, resource_g resource_group_name=resource_group.name, p2_s_vpn_gateway_name="str", request={"vpnConnectionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations_async.py index 91b452db20ca..bf2817ca1a0e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_p2_svpn_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_p2_svpn_gateways_get(self, resource_group): response = await self.client.p2_svpn_gateways.get( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ async def test_p2_svpn_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -130,7 +130,7 @@ async def test_p2_svpn_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", p2_s_vpn_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -144,7 +144,7 @@ async def test_p2_svpn_gateways_begin_delete(self, resource_group): await self.client.p2_svpn_gateways.begin_delete( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -156,7 +156,7 @@ async def test_p2_svpn_gateways_begin_delete(self, resource_group): async def test_p2_svpn_gateways_list_by_resource_group(self, resource_group): response = self.client.p2_svpn_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -166,7 +166,7 @@ async def test_p2_svpn_gateways_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_p2_svpn_gateways_list(self, resource_group): response = self.client.p2_svpn_gateways.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -179,7 +179,7 @@ async def test_p2_svpn_gateways_begin_reset(self, resource_group): await self.client.p2_svpn_gateways.begin_reset( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -194,7 +194,7 @@ async def test_p2_svpn_gateways_begin_generate_vpn_profile(self, resource_group) resource_group_name=resource_group.name, gateway_name="str", parameters={"authenticationMethod": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -208,7 +208,7 @@ async def test_p2_svpn_gateways_begin_get_p2_s_vpn_connection_health(self, resou await self.client.p2_svpn_gateways.begin_get_p2_s_vpn_connection_health( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -223,7 +223,7 @@ async def test_p2_svpn_gateways_begin_get_p2_s_vpn_connection_health_detailed(se resource_group_name=resource_group.name, gateway_name="str", request={"outputBlobSasUrl": "str", "vpnUserNamesFilter": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -238,7 +238,7 @@ async def test_p2_svpn_gateways_begin_disconnect_p2_s_vpn_connections(self, reso resource_group_name=resource_group.name, p2_s_vpn_gateway_name="str", request={"vpnConnectionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py index cec5f0f70e04..3c38174fdb8a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py @@ -52,7 +52,7 @@ def test_packet_captures_begin_create(self, resource_group): "totalBytesPerSession": 0, } }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_packet_captures_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_packet_captures_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_packet_captures_begin_stop(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_packet_captures_begin_get_status(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_packet_captures_list(self, resource_group): response = self.client.packet_captures.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py index 837541cfa167..aeea12a8f9bd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py @@ -54,7 +54,7 @@ async def test_packet_captures_begin_create(self, resource_group): "totalBytesPerSession": 0, } }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -68,7 +68,7 @@ async def test_packet_captures_get(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ async def test_packet_captures_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -97,7 +97,7 @@ async def test_packet_captures_begin_stop(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -112,7 +112,7 @@ async def test_packet_captures_begin_get_status(self, resource_group): resource_group_name=resource_group.name, network_watcher_name="str", packet_capture_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -125,7 +125,7 @@ async def test_packet_captures_list(self, resource_group): response = self.client.packet_captures.list( resource_group_name=resource_group.name, network_watcher_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations.py index 07acdd036083..262e0e6e84d5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations.py @@ -26,7 +26,7 @@ def test_peer_express_route_circuit_connections_get(self, resource_group): circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ def test_peer_express_route_circuit_connections_list(self, resource_group): resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations_async.py index 935fae9e9749..f9db03a9da4b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_peer_express_route_circuit_connections_operations_async.py @@ -27,7 +27,7 @@ async def test_peer_express_route_circuit_connections_get(self, resource_group): circuit_name="str", peering_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ async def test_peer_express_route_circuit_connections_list(self, resource_group) resource_group_name=resource_group.name, circuit_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations.py index 10f4ad01e162..6cbd3be13302 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations.py @@ -25,7 +25,7 @@ def test_private_dns_zone_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, private_endpoint_name="str", private_dns_zone_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_private_dns_zone_groups_get(self, resource_group): resource_group_name=resource_group.name, private_endpoint_name="str", private_dns_zone_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_private_dns_zone_groups_begin_create_or_update(self, resource_group): "provisioningState": "str", }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_private_dns_zone_groups_list(self, resource_group): response = self.client.private_dns_zone_groups.list( private_endpoint_name="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations_async.py index 93969e1bc6ac..5fc7e7f62f33 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_dns_zone_groups_operations_async.py @@ -27,7 +27,7 @@ async def test_private_dns_zone_groups_begin_delete(self, resource_group): resource_group_name=resource_group.name, private_endpoint_name="str", private_dns_zone_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -41,7 +41,7 @@ async def test_private_dns_zone_groups_get(self, resource_group): resource_group_name=resource_group.name, private_endpoint_name="str", private_dns_zone_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -81,7 +81,7 @@ async def test_private_dns_zone_groups_begin_create_or_update(self, resource_gro "provisioningState": "str", }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -94,7 +94,7 @@ async def test_private_dns_zone_groups_list(self, resource_group): response = self.client.private_dns_zone_groups.list( private_endpoint_name="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations.py index a6bbe77e1f73..c6347086037a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations.py @@ -25,7 +25,7 @@ def test_private_endpoints_get(self, resource_group): response = self.client.private_endpoints.get( resource_group_name=resource_group.name, private_endpoint_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -603,7 +603,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -635,6 +641,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -715,7 +722,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -747,6 +760,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1047,6 +1061,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1464,7 +1479,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1496,6 +1517,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1589,6 +1611,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1640,6 +1663,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2222,7 +2246,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2254,6 +2284,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2495,7 +2526,11 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2538,6 +2573,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2841,6 +2877,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3244,7 +3281,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3276,6 +3319,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3364,7 +3408,11 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3407,6 +3455,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3751,6 +3800,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4160,7 +4210,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4192,6 +4248,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4285,6 +4342,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4334,6 +4392,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5172,7 +5231,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5204,6 +5269,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5296,6 +5362,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5345,6 +5412,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5774,7 +5842,9 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5806,6 +5876,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6098,7 +6169,13 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6130,6 +6207,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6152,6 +6230,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6203,6 +6282,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6252,6 +6332,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6334,6 +6415,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6380,7 +6462,11 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6421,6 +6507,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6483,6 +6570,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6534,6 +6622,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6581,6 +6670,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6776,6 +6866,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6823,6 +6914,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7026,7 +7118,7 @@ def test_private_endpoints_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7038,7 +7130,7 @@ def test_private_endpoints_begin_delete(self, resource_group): response = self.client.private_endpoints.begin_delete( resource_group_name=resource_group.name, private_endpoint_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -7049,7 +7141,7 @@ def test_private_endpoints_begin_delete(self, resource_group): def test_private_endpoints_list(self, resource_group): response = self.client.private_endpoints.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -7059,7 +7151,7 @@ def test_private_endpoints_list(self, resource_group): @recorded_by_proxy def test_private_endpoints_list_by_subscription(self, resource_group): response = self.client.private_endpoints.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations_async.py index 0601dd548999..0595c1da38e6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_endpoints_operations_async.py @@ -26,7 +26,7 @@ async def test_private_endpoints_get(self, resource_group): response = await self.client.private_endpoints.get( resource_group_name=resource_group.name, private_endpoint_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -620,7 +620,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -652,6 +658,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -739,7 +746,11 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -780,6 +791,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1083,6 +1095,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1516,7 +1529,11 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1557,6 +1574,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1650,6 +1668,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1715,6 +1734,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2308,7 +2328,11 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2349,6 +2373,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2595,6 +2620,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2642,6 +2668,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2954,6 +2981,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3361,7 +3389,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3393,6 +3427,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3486,6 +3521,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3533,6 +3569,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3886,6 +3923,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4303,7 +4341,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4335,6 +4379,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4428,6 +4473,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4479,6 +4525,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5335,7 +5382,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5367,6 +5420,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5459,6 +5513,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5510,6 +5565,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5949,7 +6005,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5981,6 +6043,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6273,7 +6336,13 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6305,6 +6374,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6329,6 +6399,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6384,6 +6455,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6435,6 +6507,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6519,6 +6592,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6565,7 +6639,11 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6608,6 +6686,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6670,6 +6749,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6721,6 +6801,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6770,6 +6851,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6972,6 +7054,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7021,6 +7104,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7227,7 +7311,7 @@ async def test_private_endpoints_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7241,7 +7325,7 @@ async def test_private_endpoints_begin_delete(self, resource_group): await self.client.private_endpoints.begin_delete( resource_group_name=resource_group.name, private_endpoint_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -7253,7 +7337,7 @@ async def test_private_endpoints_begin_delete(self, resource_group): async def test_private_endpoints_list(self, resource_group): response = self.client.private_endpoints.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -7263,7 +7347,7 @@ async def test_private_endpoints_list(self, resource_group): @recorded_by_proxy_async async def test_private_endpoints_list_by_subscription(self, resource_group): response = self.client.private_endpoints.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations.py index a06587b8c97d..28fc3e55529a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations.py @@ -25,7 +25,7 @@ def test_private_link_services_get(self, resource_group): response = self.client.private_link_services.get( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -132,7 +132,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -164,6 +170,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -469,7 +476,11 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -512,6 +523,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -536,6 +548,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -597,6 +610,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -664,6 +678,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -821,6 +836,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -882,6 +898,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -947,6 +964,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1151,6 +1169,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1216,6 +1235,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1576,6 +1596,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1623,6 +1644,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1647,6 +1669,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1708,6 +1731,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1775,6 +1799,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2020,6 +2045,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2081,6 +2107,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2148,6 +2175,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2362,6 +2390,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2429,6 +2458,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2609,6 +2639,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4186,7 +4217,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4218,6 +4249,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4296,7 +4328,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4328,6 +4366,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4633,7 +4672,11 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4676,6 +4719,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5011,6 +5055,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5076,6 +5121,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5436,6 +5482,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5483,6 +5530,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5912,6 +5960,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5979,6 +6028,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6761,7 +6811,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6793,6 +6849,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6873,7 +6930,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6905,6 +6968,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7290,6 +7354,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -7808,7 +7873,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -7840,6 +7911,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7933,6 +8005,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7984,6 +8057,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8657,7 +8731,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -8689,6 +8769,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9057,7 +9138,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -9089,6 +9176,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9399,6 +9487,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -9909,7 +9998,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -9941,6 +10036,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -10034,6 +10130,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10083,6 +10180,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11113,7 +11211,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11145,6 +11249,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11237,6 +11342,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11286,6 +11392,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12327,7 +12434,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -12359,6 +12472,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -12451,6 +12565,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12502,6 +12617,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12843,6 +12959,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13303,6 +13420,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13354,6 +13472,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13456,6 +13575,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13523,6 +13643,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14148,6 +14269,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14199,6 +14321,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14370,6 +14493,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -14826,6 +14950,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14875,6 +15000,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14975,6 +15101,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -15042,6 +15169,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15980,6 +16108,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -16029,6 +16158,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -16128,6 +16258,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -16195,6 +16326,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -16655,7 +16787,13 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -16687,6 +16825,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -17013,6 +17152,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17062,6 +17202,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17089,6 +17230,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -17150,6 +17292,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17217,6 +17360,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17295,6 +17439,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -17356,6 +17501,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17423,6 +17569,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17639,6 +17786,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17706,6 +17854,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17935,7 +18084,7 @@ def test_private_link_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -17947,7 +18096,7 @@ def test_private_link_services_begin_delete(self, resource_group): response = self.client.private_link_services.begin_delete( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -17958,7 +18107,7 @@ def test_private_link_services_begin_delete(self, resource_group): def test_private_link_services_list(self, resource_group): response = self.client.private_link_services.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -17968,7 +18117,7 @@ def test_private_link_services_list(self, resource_group): @recorded_by_proxy def test_private_link_services_list_by_subscription(self, resource_group): response = self.client.private_link_services.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -17981,7 +18130,7 @@ def test_private_link_services_get_private_endpoint_connection(self, resource_gr resource_group_name=resource_group.name, service_name="str", pe_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -18587,7 +18736,13 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -18619,6 +18774,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -18706,7 +18862,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -18749,6 +18909,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -19056,6 +19217,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -19505,7 +19667,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -19548,6 +19714,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -19641,6 +19808,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -19708,6 +19876,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -20305,7 +20474,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -20348,6 +20521,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -20596,6 +20770,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -20645,6 +20820,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -20970,6 +21146,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -21379,7 +21556,13 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -21411,6 +21594,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -21504,6 +21688,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -21553,6 +21738,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -21901,6 +22087,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -22334,7 +22521,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -22375,6 +22566,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -22468,6 +22660,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -22533,6 +22726,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -23413,7 +23607,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -23454,6 +23652,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -23546,6 +23745,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -23611,6 +23811,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -24054,7 +24255,13 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -24086,6 +24293,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -24386,7 +24594,11 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -24427,6 +24639,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -24451,6 +24664,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -24512,6 +24726,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -24577,6 +24792,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -24661,6 +24877,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -24712,6 +24929,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -24759,6 +24977,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -24805,6 +25024,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -24860,6 +25080,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -24911,6 +25132,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -25115,6 +25337,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -25166,6 +25389,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -25382,7 +25606,7 @@ def test_private_link_services_update_private_endpoint_connection(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -25395,7 +25619,7 @@ def test_private_link_services_begin_delete_private_endpoint_connection(self, re resource_group_name=resource_group.name, service_name="str", pe_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -25407,7 +25631,7 @@ def test_private_link_services_list_private_endpoint_connections(self, resource_ response = self.client.private_link_services.list_private_endpoint_connections( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -25419,7 +25643,7 @@ def test_private_link_services_begin_check_private_link_service_visibility(self, response = self.client.private_link_services.begin_check_private_link_service_visibility( location="str", parameters={"privateLinkServiceAlias": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -25432,7 +25656,7 @@ def test_private_link_services_begin_check_private_link_service_visibility_by_re location="str", resource_group_name=resource_group.name, parameters={"privateLinkServiceAlias": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -25443,7 +25667,7 @@ def test_private_link_services_begin_check_private_link_service_visibility_by_re def test_private_link_services_list_auto_approved_private_link_services(self, resource_group): response = self.client.private_link_services.list_auto_approved_private_link_services( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -25455,7 +25679,7 @@ def test_private_link_services_list_auto_approved_private_link_services_by_resou response = self.client.private_link_services.list_auto_approved_private_link_services_by_resource_group( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations_async.py index 92d00acb5547..192736243521 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_private_link_services_operations_async.py @@ -26,7 +26,7 @@ async def test_private_link_services_get(self, resource_group): response = await self.client.private_link_services.get( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -134,7 +134,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -166,6 +172,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -488,6 +495,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -535,6 +543,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -559,6 +568,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -620,6 +630,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -687,6 +698,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -846,6 +858,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -907,6 +920,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -974,6 +988,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1188,6 +1203,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1255,6 +1271,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1619,6 +1636,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1668,6 +1686,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1695,6 +1714,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1756,6 +1776,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1823,6 +1844,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2078,6 +2100,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2139,6 +2162,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2206,6 +2230,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2422,6 +2447,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2489,6 +2515,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2673,6 +2700,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4266,7 +4294,9 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4298,6 +4328,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4376,7 +4407,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4408,6 +4445,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4730,6 +4768,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4777,6 +4816,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5120,6 +5160,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5187,6 +5228,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5551,6 +5593,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5600,6 +5643,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6040,6 +6084,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6107,6 +6152,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6908,7 +6954,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6940,6 +6992,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7027,7 +7080,11 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -7068,6 +7125,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7456,6 +7514,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -7992,7 +8051,11 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -8033,6 +8096,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -8126,6 +8190,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8191,6 +8256,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8875,7 +8941,11 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -8916,6 +8986,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9284,7 +9355,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -9316,6 +9393,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -9629,6 +9707,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -10147,7 +10226,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -10179,6 +10264,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -10272,6 +10358,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10323,6 +10410,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11371,7 +11459,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -11403,6 +11497,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -11495,6 +11590,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11546,6 +11642,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12617,7 +12714,11 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -12658,6 +12759,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -12750,6 +12852,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12815,6 +12918,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13160,6 +13264,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13626,6 +13731,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13691,6 +13797,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13795,6 +13902,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13862,6 +13970,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14502,6 +14611,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14567,6 +14677,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14740,6 +14851,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -15200,6 +15312,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -15251,6 +15364,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15353,6 +15467,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -15420,6 +15535,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -16370,6 +16486,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -16421,6 +16538,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -16522,6 +16640,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -16589,6 +16708,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17059,7 +17179,13 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -17091,6 +17217,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -17422,6 +17549,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17473,6 +17601,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17500,6 +17629,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -17569,6 +17699,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17636,6 +17767,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -17714,6 +17846,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -17775,6 +17908,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -17842,6 +17976,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -18062,6 +18197,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -18129,6 +18265,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -18360,7 +18497,7 @@ async def test_private_link_services_begin_create_or_update(self, resource_group "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -18374,7 +18511,7 @@ async def test_private_link_services_begin_delete(self, resource_group): await self.client.private_link_services.begin_delete( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -18386,7 +18523,7 @@ async def test_private_link_services_begin_delete(self, resource_group): async def test_private_link_services_list(self, resource_group): response = self.client.private_link_services.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -18396,7 +18533,7 @@ async def test_private_link_services_list(self, resource_group): @recorded_by_proxy_async async def test_private_link_services_list_by_subscription(self, resource_group): response = self.client.private_link_services.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -18409,7 +18546,7 @@ async def test_private_link_services_get_private_endpoint_connection(self, resou resource_group_name=resource_group.name, service_name="str", pe_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -19015,7 +19152,13 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -19047,6 +19190,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -19134,7 +19278,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -19177,6 +19325,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -19484,6 +19633,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -19933,7 +20083,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -19976,6 +20130,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -20069,6 +20224,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -20136,6 +20292,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -20733,7 +20890,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -20776,6 +20937,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -21024,6 +21186,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -21073,6 +21236,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -21398,6 +21562,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -21807,7 +21972,13 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -21839,6 +22010,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -21932,6 +22104,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -21981,6 +22154,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -22329,6 +22503,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -22762,7 +22937,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -22803,6 +22982,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -22896,6 +23076,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -22961,6 +23142,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -23841,7 +24023,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -23882,6 +24068,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -23974,6 +24161,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -24039,6 +24227,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -24482,7 +24671,13 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -24514,6 +24709,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -24814,7 +25010,11 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -24855,6 +25055,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -24879,6 +25080,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -24940,6 +25142,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -25005,6 +25208,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -25089,6 +25293,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -25140,6 +25345,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -25187,6 +25393,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -25233,6 +25440,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -25288,6 +25496,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -25339,6 +25548,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -25543,6 +25753,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -25594,6 +25805,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -25810,7 +26022,7 @@ async def test_private_link_services_update_private_endpoint_connection(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -25824,7 +26036,7 @@ async def test_private_link_services_begin_delete_private_endpoint_connection(se resource_group_name=resource_group.name, service_name="str", pe_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -25837,7 +26049,7 @@ async def test_private_link_services_list_private_endpoint_connections(self, res response = self.client.private_link_services.list_private_endpoint_connections( resource_group_name=resource_group.name, service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -25850,7 +26062,7 @@ async def test_private_link_services_begin_check_private_link_service_visibility await self.client.private_link_services.begin_check_private_link_service_visibility( location="str", parameters={"privateLinkServiceAlias": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -25867,7 +26079,7 @@ async def test_private_link_services_begin_check_private_link_service_visibility location="str", resource_group_name=resource_group.name, parameters={"privateLinkServiceAlias": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -25879,7 +26091,7 @@ async def test_private_link_services_begin_check_private_link_service_visibility async def test_private_link_services_list_auto_approved_private_link_services(self, resource_group): response = self.client.private_link_services.list_auto_approved_private_link_services( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -25893,7 +26105,7 @@ async def test_private_link_services_list_auto_approved_private_link_services_by response = self.client.private_link_services.list_auto_approved_private_link_services_by_resource_group( location="str", resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations.py index a0c4df543264..0e0ba8d4ecb8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations.py @@ -29,7 +29,7 @@ def test_public_ip_addresses_get_cloud_service_public_ip_address(self, resource_ network_interface_name="str", ip_configuration_name="str", public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -44,7 +44,7 @@ def test_public_ip_addresses_list_cloud_service_role_instance_public_ip_addresse role_instance_name="str", network_interface_name="str", ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_public_ip_addresses_get(self, resource_group): response = self.client.public_ip_addresses.get( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -442,6 +442,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -620,6 +621,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -777,6 +779,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1259,6 +1262,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1518,6 +1522,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1586,6 +1591,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1922,7 +1928,7 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1954,13 +1960,14 @@ def test_public_ip_addresses_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1973,7 +1980,7 @@ def test_public_ip_addresses_update_tags(self, resource_group): resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -1985,7 +1992,7 @@ def test_public_ip_addresses_begin_delete(self, resource_group): response = self.client.public_ip_addresses.begin_delete( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1996,7 +2003,7 @@ def test_public_ip_addresses_begin_delete(self, resource_group): def test_public_ip_addresses_list(self, resource_group): response = self.client.public_ip_addresses.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2006,7 +2013,7 @@ def test_public_ip_addresses_list(self, resource_group): @recorded_by_proxy def test_public_ip_addresses_list_all(self, resource_group): response = self.client.public_ip_addresses.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2018,7 +2025,7 @@ def test_public_ip_addresses_begin_ddos_protection_status(self, resource_group): response = self.client.public_ip_addresses.begin_ddos_protection_status( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2031,7 +2038,7 @@ def test_public_ip_addresses_begin_reserve_cloud_service_public_ip_address(self, resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"isRollback": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2044,7 +2051,7 @@ def test_public_ip_addresses_begin_disassociate_cloud_service_reserved_public_ip resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"publicIpArmId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2056,7 +2063,7 @@ def test_public_ip_addresses_list_cloud_service_public_ip_addresses(self, resour response = self.client.public_ip_addresses.list_cloud_service_public_ip_addresses( resource_group_name=resource_group.name, cloud_service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations_async.py index 6f646efc152c..a7193a7fa946 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_addresses_operations_async.py @@ -30,7 +30,7 @@ async def test_public_ip_addresses_get_cloud_service_public_ip_address(self, res network_interface_name="str", ip_configuration_name="str", public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ async def test_public_ip_addresses_list_cloud_service_role_instance_public_ip_ad role_instance_name="str", network_interface_name="str", ip_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_public_ip_addresses_get(self, resource_group): response = await self.client.public_ip_addresses.get( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -449,6 +449,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -629,6 +630,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -786,6 +788,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1288,6 +1291,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1556,6 +1560,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1628,6 +1633,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1974,7 +1980,7 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2006,13 +2012,14 @@ async def test_public_ip_addresses_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2026,7 +2033,7 @@ async def test_public_ip_addresses_update_tags(self, resource_group): resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2039,7 +2046,7 @@ async def test_public_ip_addresses_begin_delete(self, resource_group): await self.client.public_ip_addresses.begin_delete( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2051,7 +2058,7 @@ async def test_public_ip_addresses_begin_delete(self, resource_group): async def test_public_ip_addresses_list(self, resource_group): response = self.client.public_ip_addresses.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2061,7 +2068,7 @@ async def test_public_ip_addresses_list(self, resource_group): @recorded_by_proxy_async async def test_public_ip_addresses_list_all(self, resource_group): response = self.client.public_ip_addresses.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2074,7 +2081,7 @@ async def test_public_ip_addresses_begin_ddos_protection_status(self, resource_g await self.client.public_ip_addresses.begin_ddos_protection_status( resource_group_name=resource_group.name, public_ip_address_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2089,7 +2096,7 @@ async def test_public_ip_addresses_begin_reserve_cloud_service_public_ip_address resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"isRollback": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2104,7 +2111,7 @@ async def test_public_ip_addresses_begin_disassociate_cloud_service_reserved_pub resource_group_name=resource_group.name, public_ip_address_name="str", parameters={"publicIpArmId": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2117,7 +2124,7 @@ async def test_public_ip_addresses_list_cloud_service_public_ip_addresses(self, response = self.client.public_ip_addresses.list_cloud_service_public_ip_addresses( resource_group_name=resource_group.name, cloud_service_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations.py index 039f48ab248f..c74cc37f249f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations.py @@ -24,7 +24,7 @@ def test_public_ip_prefixes_get(self, resource_group): response = self.client.public_ip_prefixes.get( resource_group_name=resource_group.name, public_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_public_ip_prefixes_begin_create_or_update(self, resource_group): "properties": { "customIPPrefix": {"id": "str"}, "ipPrefix": "str", - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "loadBalancerFrontendIpConfiguration": {"id": "str"}, "natGateway": { "etag": "str", @@ -75,13 +75,14 @@ def test_public_ip_prefixes_begin_create_or_update(self, resource_group): "publicIPAddressVersion": "str", "publicIPAddresses": [{"id": "str"}], "resourceGuid": "str", + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,7 +95,7 @@ def test_public_ip_prefixes_update_tags(self, resource_group): resource_group_name=resource_group.name, public_ip_prefix_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -106,7 +107,7 @@ def test_public_ip_prefixes_begin_delete(self, resource_group): response = self.client.public_ip_prefixes.begin_delete( resource_group_name=resource_group.name, public_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +118,7 @@ def test_public_ip_prefixes_begin_delete(self, resource_group): def test_public_ip_prefixes_list(self, resource_group): response = self.client.public_ip_prefixes.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -127,7 +128,7 @@ def test_public_ip_prefixes_list(self, resource_group): @recorded_by_proxy def test_public_ip_prefixes_list_all(self, resource_group): response = self.client.public_ip_prefixes.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations_async.py index 11774ae0ec80..bc5abe8c31b9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_public_ip_prefixes_operations_async.py @@ -25,7 +25,7 @@ async def test_public_ip_prefixes_get(self, resource_group): response = await self.client.public_ip_prefixes.get( resource_group_name=resource_group.name, public_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_public_ip_prefixes_begin_create_or_update(self, resource_group): "properties": { "customIPPrefix": {"id": "str"}, "ipPrefix": "str", - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "loadBalancerFrontendIpConfiguration": {"id": "str"}, "natGateway": { "etag": "str", @@ -77,13 +77,14 @@ async def test_public_ip_prefixes_begin_create_or_update(self, resource_group): "publicIPAddressVersion": "str", "publicIPAddresses": [{"id": "str"}], "resourceGuid": "str", + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -97,7 +98,7 @@ async def test_public_ip_prefixes_update_tags(self, resource_group): resource_group_name=resource_group.name, public_ip_prefix_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -110,7 +111,7 @@ async def test_public_ip_prefixes_begin_delete(self, resource_group): await self.client.public_ip_prefixes.begin_delete( resource_group_name=resource_group.name, public_ip_prefix_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -122,7 +123,7 @@ async def test_public_ip_prefixes_begin_delete(self, resource_group): async def test_public_ip_prefixes_list(self, resource_group): response = self.client.public_ip_prefixes.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -132,7 +133,7 @@ async def test_public_ip_prefixes_list(self, resource_group): @recorded_by_proxy_async async def test_public_ip_prefixes_list_all(self, resource_group): response = self.client.public_ip_prefixes.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations.py index 3da06a247ec2..55aae1459100 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations.py @@ -26,7 +26,7 @@ def test_reachability_analysis_intents_get(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_reachability_analysis_intents_create(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -80,7 +80,7 @@ def test_reachability_analysis_intents_delete(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ def test_reachability_analysis_intents_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations_async.py index 722c70423772..7ddfb0f3b292 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_intents_operations_async.py @@ -27,7 +27,7 @@ async def test_reachability_analysis_intents_get(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_reachability_analysis_intents_create(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -81,7 +81,7 @@ async def test_reachability_analysis_intents_delete(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -94,7 +94,7 @@ async def test_reachability_analysis_intents_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations.py index 9995a191592a..df29e43b3e7a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations.py @@ -26,7 +26,7 @@ def test_reachability_analysis_runs_get(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_run_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_reachability_analysis_runs_create(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_reachability_analysis_runs_begin_delete(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_run_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_reachability_analysis_runs_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations_async.py index 8ace77e55cb0..c59e063d79c6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_reachability_analysis_runs_operations_async.py @@ -27,7 +27,7 @@ async def test_reachability_analysis_runs_get(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_run_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ async def test_reachability_analysis_runs_create(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ async def test_reachability_analysis_runs_begin_delete(self, resource_group): network_manager_name="str", workspace_name="str", reachability_analysis_run_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -102,7 +102,7 @@ async def test_reachability_analysis_runs_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations.py index 9934ade61d31..3d6422515d84 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations.py @@ -25,7 +25,7 @@ def test_resource_navigation_links_list(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations_async.py index 09104037e248..7c56d85b775a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_resource_navigation_links_operations_async.py @@ -26,7 +26,7 @@ async def test_resource_navigation_links_list(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations.py index d08de1f5c13b..fe6b19196edf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations.py @@ -25,7 +25,7 @@ def test_route_filter_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_route_filter_rules_get(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_route_filter_rules_begin_create_or_update(self, resource_group): "provisioningState": "str", }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_route_filter_rules_list_by_route_filter(self, resource_group): response = self.client.route_filter_rules.list_by_route_filter( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations_async.py index f069225c88ba..c72255bf5f37 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filter_rules_operations_async.py @@ -27,7 +27,7 @@ async def test_route_filter_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -41,7 +41,7 @@ async def test_route_filter_rules_get(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_route_filter_rules_begin_create_or_update(self, resource_group): "provisioningState": "str", }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_route_filter_rules_list_by_route_filter(self, resource_group): response = self.client.route_filter_rules.list_by_route_filter( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations.py index 1d2ba5191ab7..925d0bb352fc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations.py @@ -24,7 +24,7 @@ def test_route_filters_get(self, resource_group): response = self.client.route_filters.get( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -273,7 +273,7 @@ def test_route_filters_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -286,7 +286,7 @@ def test_route_filters_update_tags(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -298,7 +298,7 @@ def test_route_filters_begin_delete(self, resource_group): response = self.client.route_filters.begin_delete( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -309,7 +309,7 @@ def test_route_filters_begin_delete(self, resource_group): def test_route_filters_list_by_resource_group(self, resource_group): response = self.client.route_filters.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -319,7 +319,7 @@ def test_route_filters_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_route_filters_list(self, resource_group): response = self.client.route_filters.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations_async.py index 3935349a3e50..e3b3464e8245 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_filters_operations_async.py @@ -25,7 +25,7 @@ async def test_route_filters_get(self, resource_group): response = await self.client.route_filters.get( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -275,7 +275,7 @@ async def test_route_filters_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -289,7 +289,7 @@ async def test_route_filters_update_tags(self, resource_group): resource_group_name=resource_group.name, route_filter_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -302,7 +302,7 @@ async def test_route_filters_begin_delete(self, resource_group): await self.client.route_filters.begin_delete( resource_group_name=resource_group.name, route_filter_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -314,7 +314,7 @@ async def test_route_filters_begin_delete(self, resource_group): async def test_route_filters_list_by_resource_group(self, resource_group): response = self.client.route_filters.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -324,7 +324,7 @@ async def test_route_filters_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_route_filters_list(self, resource_group): response = self.client.route_filters.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations.py index 71e8655ce116..2dba9f363572 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations.py @@ -25,7 +25,7 @@ def test_route_maps_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_map_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_route_maps_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_route_maps_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_map_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,7 +94,7 @@ def test_route_maps_list(self, resource_group): response = self.client.route_maps.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations_async.py index 30649de33a5c..8c7d21497825 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_maps_operations_async.py @@ -26,7 +26,7 @@ async def test_route_maps_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_map_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -73,7 +73,7 @@ async def test_route_maps_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -88,7 +88,7 @@ async def test_route_maps_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_map_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -101,7 +101,7 @@ async def test_route_maps_list(self, resource_group): response = self.client.route_maps.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations.py index 259cfbafbc48..9ce12817698c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations.py @@ -25,7 +25,7 @@ def test_route_tables_get(self, resource_group): response = self.client.route_tables.get( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -135,7 +135,13 @@ def test_route_tables_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -167,6 +173,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -459,7 +466,13 @@ def test_route_tables_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -491,6 +504,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -515,6 +529,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -570,6 +585,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -621,6 +637,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -788,6 +805,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -834,7 +852,11 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -877,6 +899,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1028,6 +1051,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1079,6 +1103,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1128,6 +1153,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1330,6 +1356,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1379,6 +1406,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1712,7 +1740,11 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1753,6 +1785,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1777,6 +1810,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1838,6 +1872,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1903,6 +1938,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2149,6 +2185,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2200,6 +2237,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2247,6 +2285,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2311,6 +2350,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2366,6 +2406,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2417,6 +2458,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2621,6 +2663,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2672,6 +2715,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2814,7 +2858,7 @@ def test_route_tables_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2827,7 +2871,7 @@ def test_route_tables_update_tags(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2839,7 +2883,7 @@ def test_route_tables_begin_delete(self, resource_group): response = self.client.route_tables.begin_delete( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2850,7 +2894,7 @@ def test_route_tables_begin_delete(self, resource_group): def test_route_tables_list(self, resource_group): response = self.client.route_tables.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2860,7 +2904,7 @@ def test_route_tables_list(self, resource_group): @recorded_by_proxy def test_route_tables_list_all(self, resource_group): response = self.client.route_tables.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations_async.py index 5c86c2b4b4b7..4f94eed615a3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_route_tables_operations_async.py @@ -26,7 +26,7 @@ async def test_route_tables_get(self, resource_group): response = await self.client.route_tables.get( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -137,7 +137,13 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -169,6 +175,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -469,7 +476,11 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -510,6 +521,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -534,6 +546,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -595,6 +608,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -660,6 +674,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -827,6 +842,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -878,6 +894,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -925,6 +942,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1078,6 +1096,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1133,6 +1152,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1184,6 +1204,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1388,6 +1409,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1439,6 +1461,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1780,7 +1803,11 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1823,6 +1850,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1847,6 +1875,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1908,6 +1937,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1975,6 +2005,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2223,6 +2254,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2274,6 +2306,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2323,6 +2356,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2390,6 +2424,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2451,6 +2486,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2516,6 +2552,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2720,6 +2757,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2785,6 +2823,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2929,7 +2968,7 @@ async def test_route_tables_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2943,7 +2982,7 @@ async def test_route_tables_update_tags(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2956,7 +2995,7 @@ async def test_route_tables_begin_delete(self, resource_group): await self.client.route_tables.begin_delete( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2968,7 +3007,7 @@ async def test_route_tables_begin_delete(self, resource_group): async def test_route_tables_list(self, resource_group): response = self.client.route_tables.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2978,7 +3017,7 @@ async def test_route_tables_list(self, resource_group): @recorded_by_proxy_async async def test_route_tables_list_all(self, resource_group): response = self.client.route_tables.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations.py index dd59add7cc2d..7bbbe39cb2c3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations.py @@ -25,7 +25,7 @@ def test_routes_get(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", route_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_routes_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_routes_begin_delete(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", route_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_routes_list(self, resource_group): response = self.client.routes.list( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations_async.py index 94907b361412..64bd44b9b800 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routes_operations_async.py @@ -26,7 +26,7 @@ async def test_routes_get(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", route_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_routes_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -69,7 +69,7 @@ async def test_routes_begin_delete(self, resource_group): resource_group_name=resource_group.name, route_table_name="str", route_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -82,7 +82,7 @@ async def test_routes_list(self, resource_group): response = self.client.routes.list( resource_group_name=resource_group.name, route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations.py index 9a5b33beb53c..78ffe25c58d9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations.py @@ -25,7 +25,7 @@ def test_routing_intent_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", routing_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -48,7 +48,7 @@ def test_routing_intent_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -61,7 +61,7 @@ def test_routing_intent_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", routing_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -73,7 +73,7 @@ def test_routing_intent_list(self, resource_group): response = self.client.routing_intent.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations_async.py index 12f28e582855..dce235ac6caf 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_intent_operations_async.py @@ -26,7 +26,7 @@ async def test_routing_intent_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", routing_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ async def test_routing_intent_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -65,7 +65,7 @@ async def test_routing_intent_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", routing_intent_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -78,7 +78,7 @@ async def test_routing_intent_list(self, resource_group): response = self.client.routing_intent.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations.py index 977a1079b240..e80232e49688 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations.py @@ -26,7 +26,7 @@ def test_routing_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ def test_routing_rule_collections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_routing_rule_collections_begin_delete(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_routing_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations_async.py index e0ed7f576e2b..21eef17b7465 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rule_collections_operations_async.py @@ -27,7 +27,7 @@ async def test_routing_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -62,7 +62,7 @@ async def test_routing_rule_collections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_routing_rule_collections_begin_delete(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_routing_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations.py index 1a11186d141c..dc1fe6a10364 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations.py @@ -27,7 +27,7 @@ def test_routing_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_routing_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_routing_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_routing_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations_async.py index 72c4100e0534..5b2fbcfb5be1 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_routing_rules_operations_async.py @@ -28,7 +28,7 @@ async def test_routing_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_routing_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -80,7 +80,7 @@ async def test_routing_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +95,7 @@ async def test_routing_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations.py index 6acfe05318f8..4065bc676422 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations.py @@ -25,7 +25,7 @@ def test_scope_connections_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", scope_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_scope_connections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_scope_connections_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", scope_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_scope_connections_list(self, resource_group): response = self.client.scope_connections.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations_async.py index b3cdaa06876f..249e503f0416 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_scope_connections_operations_async.py @@ -26,7 +26,7 @@ async def test_scope_connections_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", scope_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_scope_connections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_scope_connections_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", scope_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_scope_connections_list(self, resource_group): response = self.client.scope_connections.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations.py index 1182f4f126d7..e76d6052bc40 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations.py @@ -25,7 +25,7 @@ def test_security_admin_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ def test_security_admin_configurations_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_security_admin_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -84,7 +84,7 @@ def test_security_admin_configurations_list(self, resource_group): response = self.client.security_admin_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations_async.py index 2dd9d1755816..cbdd94f98b9a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_admin_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_security_admin_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ async def test_security_admin_configurations_create_or_update(self, resource_gro }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ async def test_security_admin_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -87,7 +87,7 @@ async def test_security_admin_configurations_list(self, resource_group): response = self.client.security_admin_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations.py index 02089f51d307..398e382608dd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations.py @@ -24,7 +24,7 @@ def test_security_partner_providers_get(self, resource_group): response = self.client.security_partner_providers.get( resource_group_name=resource_group.name, security_partner_provider_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_security_partner_providers_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_security_partner_providers_update_tags(self, resource_group): resource_group_name=resource_group.name, security_partner_provider_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_security_partner_providers_begin_delete(self, resource_group): response = self.client.security_partner_providers.begin_delete( resource_group_name=resource_group.name, security_partner_provider_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_security_partner_providers_begin_delete(self, resource_group): def test_security_partner_providers_list_by_resource_group(self, resource_group): response = self.client.security_partner_providers.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_security_partner_providers_list_by_resource_group(self, resource_group) @recorded_by_proxy def test_security_partner_providers_list(self, resource_group): response = self.client.security_partner_providers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations_async.py index 8cba01f6e512..f38681bfeed3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_partner_providers_operations_async.py @@ -25,7 +25,7 @@ async def test_security_partner_providers_get(self, resource_group): response = await self.client.security_partner_providers.get( resource_group_name=resource_group.name, security_partner_provider_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_security_partner_providers_begin_create_or_update(self, resource_ "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -66,7 +66,7 @@ async def test_security_partner_providers_update_tags(self, resource_group): resource_group_name=resource_group.name, security_partner_provider_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_security_partner_providers_begin_delete(self, resource_group): await self.client.security_partner_providers.begin_delete( resource_group_name=resource_group.name, security_partner_provider_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_security_partner_providers_begin_delete(self, resource_group): async def test_security_partner_providers_list_by_resource_group(self, resource_group): response = self.client.security_partner_providers.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ async def test_security_partner_providers_list_by_resource_group(self, resource_ @recorded_by_proxy_async async def test_security_partner_providers_list(self, resource_group): response = self.client.security_partner_providers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations.py index 0a1da116dbb8..dc55b7f0b8a8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations.py @@ -25,7 +25,7 @@ def test_security_rules_get(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_security_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -95,7 +95,7 @@ def test_security_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -107,7 +107,7 @@ def test_security_rules_list(self, resource_group): response = self.client.security_rules.list( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations_async.py index 0e8043a5e277..b7e93a875ae8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_security_rules_get(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -84,7 +84,7 @@ async def test_security_rules_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -99,7 +99,7 @@ async def test_security_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_security_group_name="str", security_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -112,7 +112,7 @@ async def test_security_rules_list(self, resource_group): response = self.client.security_rules.list( resource_group_name=resource_group.name, network_security_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations.py index b1a07488b3da..79d8338dd13a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations.py @@ -25,7 +25,7 @@ def test_security_user_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_security_user_configurations_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_security_user_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_security_user_configurations_list(self, resource_group): response = self.client.security_user_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations_async.py index 354775da8b90..3821ff9b8605 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_configurations_operations_async.py @@ -26,7 +26,7 @@ async def test_security_user_configurations_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_security_user_configurations_create_or_update(self, resource_grou }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ async def test_security_user_configurations_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -81,7 +81,7 @@ async def test_security_user_configurations_list(self, resource_group): response = self.client.security_user_configurations.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations.py index 16aeb838370d..929b6ecf3a5b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations.py @@ -26,7 +26,7 @@ def test_security_user_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_security_user_rule_collections_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_security_user_rule_collections_begin_delete(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_security_user_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations_async.py index 4d33c201e52d..943edbe84a77 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rule_collections_operations_async.py @@ -27,7 +27,7 @@ async def test_security_user_rule_collections_get(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_security_user_rule_collections_create_or_update(self, resource_gr }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_security_user_rule_collections_begin_delete(self, resource_group) network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -90,7 +90,7 @@ async def test_security_user_rule_collections_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations.py index d4b88c7480a0..2f9c3a53c4d0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations.py @@ -27,7 +27,7 @@ def test_security_user_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_security_user_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_security_user_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_security_user_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations_async.py index 2c47a0b170c1..fb3cb96248c7 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_security_user_rules_operations_async.py @@ -28,7 +28,7 @@ async def test_security_user_rules_get(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ async def test_security_user_rules_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -84,7 +84,7 @@ async def test_security_user_rules_begin_delete(self, resource_group): configuration_name="str", rule_collection_name="str", rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -99,7 +99,7 @@ async def test_security_user_rules_list(self, resource_group): network_manager_name="str", configuration_name="str", rule_collection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations.py index 3b14214cd8fa..e52a55536d08 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations.py @@ -25,7 +25,7 @@ def test_service_association_links_list(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations_async.py index c350e1e29fc0..7d84f436a70c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_association_links_operations_async.py @@ -26,7 +26,7 @@ async def test_service_association_links_list(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations.py index d1772d2c9bae..448851311f5e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations.py @@ -25,7 +25,7 @@ def test_service_endpoint_policies_get(self, resource_group): response = self.client.service_endpoint_policies.get( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -134,7 +134,13 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -166,6 +172,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -458,7 +465,13 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -490,6 +503,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -514,6 +528,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -569,6 +584,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -620,6 +636,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -787,6 +804,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -833,7 +851,11 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -876,6 +898,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1027,6 +1050,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1078,6 +1102,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1127,6 +1152,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1329,6 +1355,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1378,6 +1405,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1711,7 +1739,11 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1752,6 +1784,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1776,6 +1809,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1837,6 +1871,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1902,6 +1937,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2148,6 +2184,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2199,6 +2236,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2246,6 +2284,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2310,6 +2349,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2365,6 +2405,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2416,6 +2457,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2620,6 +2662,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2671,6 +2714,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2812,7 +2856,7 @@ def test_service_endpoint_policies_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2825,7 +2869,7 @@ def test_service_endpoint_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, service_endpoint_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2837,7 +2881,7 @@ def test_service_endpoint_policies_begin_delete(self, resource_group): response = self.client.service_endpoint_policies.begin_delete( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2848,7 +2892,7 @@ def test_service_endpoint_policies_begin_delete(self, resource_group): def test_service_endpoint_policies_list_by_resource_group(self, resource_group): response = self.client.service_endpoint_policies.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2858,7 +2902,7 @@ def test_service_endpoint_policies_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_service_endpoint_policies_list(self, resource_group): response = self.client.service_endpoint_policies.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations_async.py index 7df1e52fac72..1e99b7a87b54 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policies_operations_async.py @@ -26,7 +26,7 @@ async def test_service_endpoint_policies_get(self, resource_group): response = await self.client.service_endpoint_policies.get( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -136,7 +136,13 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -168,6 +174,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -468,7 +475,11 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -509,6 +520,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -533,6 +545,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -594,6 +607,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -659,6 +673,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -826,6 +841,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -877,6 +893,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -924,6 +941,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1077,6 +1095,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1132,6 +1151,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1183,6 +1203,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1387,6 +1408,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1438,6 +1460,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1779,7 +1802,11 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1822,6 +1849,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1846,6 +1874,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1907,6 +1936,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1974,6 +2004,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2222,6 +2253,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2273,6 +2305,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2322,6 +2355,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2389,6 +2423,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2450,6 +2485,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2515,6 +2551,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2719,6 +2756,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2784,6 +2822,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2927,7 +2966,7 @@ async def test_service_endpoint_policies_begin_create_or_update(self, resource_g "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2941,7 +2980,7 @@ async def test_service_endpoint_policies_update_tags(self, resource_group): resource_group_name=resource_group.name, service_endpoint_policy_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2954,7 +2993,7 @@ async def test_service_endpoint_policies_begin_delete(self, resource_group): await self.client.service_endpoint_policies.begin_delete( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2966,7 +3005,7 @@ async def test_service_endpoint_policies_begin_delete(self, resource_group): async def test_service_endpoint_policies_list_by_resource_group(self, resource_group): response = self.client.service_endpoint_policies.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2976,7 +3015,7 @@ async def test_service_endpoint_policies_list_by_resource_group(self, resource_g @recorded_by_proxy_async async def test_service_endpoint_policies_list(self, resource_group): response = self.client.service_endpoint_policies.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations.py index 022c04c8f90c..903883778db4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations.py @@ -25,7 +25,7 @@ def test_service_endpoint_policy_definitions_get(self, resource_group): resource_group_name=resource_group.name, service_endpoint_policy_name="str", service_endpoint_policy_definition_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_service_endpoint_policy_definitions_begin_create_or_update(self, resour }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_service_endpoint_policy_definitions_begin_delete(self, resource_group): resource_group_name=resource_group.name, service_endpoint_policy_name="str", service_endpoint_policy_definition_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_service_endpoint_policy_definitions_list_by_resource_group(self, resour response = self.client.service_endpoint_policy_definitions.list_by_resource_group( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations_async.py index 51959f612432..9ac778eccdc9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_endpoint_policy_definitions_operations_async.py @@ -26,7 +26,7 @@ async def test_service_endpoint_policy_definitions_get(self, resource_group): resource_group_name=resource_group.name, service_endpoint_policy_name="str", service_endpoint_policy_definition_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_service_endpoint_policy_definitions_begin_create_or_update(self, }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_service_endpoint_policy_definitions_begin_delete(self, resource_g resource_group_name=resource_group.name, service_endpoint_policy_name="str", service_endpoint_policy_definition_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_service_endpoint_policy_definitions_list_by_resource_group(self, response = self.client.service_endpoint_policy_definitions.list_by_resource_group( resource_group_name=resource_group.name, service_endpoint_policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations.py index 74984f999ea6..11b38928f2b0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations.py @@ -25,7 +25,7 @@ def test_service_gateways_get(self, resource_group): response = self.client.service_gateways.get( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -119,7 +119,13 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -151,6 +157,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -443,7 +450,13 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -475,6 +488,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -499,6 +513,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -554,6 +569,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -605,6 +621,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -772,6 +789,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -818,7 +836,11 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -861,6 +883,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1012,6 +1035,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1063,6 +1087,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1112,6 +1137,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1314,6 +1340,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1363,6 +1390,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1696,7 +1724,11 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1737,6 +1769,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1761,6 +1794,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1822,6 +1856,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1887,6 +1922,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2133,6 +2169,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2184,6 +2221,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2231,6 +2269,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2295,6 +2334,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2350,6 +2390,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2401,6 +2442,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2605,6 +2647,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2656,6 +2699,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2898,7 +2942,13 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2930,6 +2980,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3222,7 +3273,13 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3254,6 +3311,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3278,6 +3336,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3333,6 +3392,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3384,6 +3444,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3551,6 +3612,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3597,7 +3659,11 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3640,6 +3706,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3791,6 +3858,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3842,6 +3910,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3891,6 +3960,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4093,6 +4163,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4142,6 +4213,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4475,7 +4547,11 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4516,6 +4592,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4540,6 +4617,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4601,6 +4679,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4666,6 +4745,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4912,6 +4992,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4963,6 +5044,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5010,6 +5092,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5074,6 +5157,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5129,6 +5213,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5180,6 +5265,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5384,6 +5470,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5435,6 +5522,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5740,7 +5828,13 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -5772,6 +5866,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6077,7 +6172,11 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -6120,6 +6219,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6144,6 +6244,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6205,6 +6306,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6272,6 +6374,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6441,6 +6544,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -6492,6 +6596,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6541,6 +6646,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6697,6 +6803,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6758,6 +6865,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6823,6 +6931,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7027,6 +7136,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7092,6 +7202,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7452,6 +7563,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7499,6 +7611,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7523,6 +7636,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7584,6 +7698,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7651,6 +7766,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7910,6 +8026,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7965,6 +8082,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8016,6 +8134,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8083,6 +8202,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -8144,6 +8264,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8211,6 +8332,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8425,6 +8547,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8492,6 +8615,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8759,7 +8883,7 @@ def test_service_gateways_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -8772,7 +8896,7 @@ def test_service_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, service_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -8784,7 +8908,7 @@ def test_service_gateways_begin_delete(self, resource_group): response = self.client.service_gateways.begin_delete( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -8795,7 +8919,7 @@ def test_service_gateways_begin_delete(self, resource_group): def test_service_gateways_list(self, resource_group): response = self.client.service_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -8805,7 +8929,7 @@ def test_service_gateways_list(self, resource_group): @recorded_by_proxy def test_service_gateways_list_all(self, resource_group): response = self.client.service_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -8813,8 +8937,8 @@ def test_service_gateways_list_all(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_service_gateways_begin_update_address_locations(self, resource_group): - response = self.client.service_gateways.begin_update_address_locations( + def test_service_gateways_update_address_locations(self, resource_group): + response = self.client.service_gateways.update_address_locations( resource_group_name=resource_group.name, service_gateway_name="str", parameters={ @@ -8827,16 +8951,16 @@ def test_service_gateways_begin_update_address_locations(self, resource_group): } ], }, - api_version="2025-07-01", - ).result() # call '.result()' to poll until service return final result + api_version="2025-09-01", + ) # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_service_gateways_begin_update_services(self, resource_group): - response = self.client.service_gateways.begin_update_services( + def test_service_gateways_update_services(self, resource_group): + response = self.client.service_gateways.update_services( resource_group_name=resource_group.name, service_gateway_name="str", parameters={ @@ -9322,6 +9446,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -9521,6 +9646,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10018,6 +10144,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10116,6 +10243,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10330,7 +10458,13 @@ def test_service_gateways_begin_update_services(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -10362,6 +10496,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -10454,6 +10589,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10501,6 +10637,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -10802,6 +10939,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10871,6 +11009,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10938,6 +11077,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11114,6 +11254,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11183,6 +11324,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11250,6 +11392,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11699,6 +11842,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11768,6 +11912,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11835,6 +11980,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11916,6 +12062,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11985,6 +12132,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12052,6 +12200,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12252,6 +12401,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -13488,6 +13638,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13535,6 +13686,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -13628,6 +13780,7 @@ def test_service_gateways_begin_update_services(self, resource_group): "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13695,6 +13848,7 @@ def test_service_gateways_begin_update_services(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14887,8 +15041,8 @@ def test_service_gateways_begin_update_services(self, resource_group): } ], }, - api_version="2025-07-01", - ).result() # call '.result()' to poll until service return final result + api_version="2025-09-01", + ) # please add some check logic here by yourself # ... @@ -14899,7 +15053,7 @@ def test_service_gateways_get_address_locations(self, resource_group): response = self.client.service_gateways.get_address_locations( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -14911,7 +15065,7 @@ def test_service_gateways_get_services(self, resource_group): response = self.client.service_gateways.get_services( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations_async.py index 2402337d3628..45092abb780f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_gateways_operations_async.py @@ -26,7 +26,7 @@ async def test_service_gateways_get(self, resource_group): response = await self.client.service_gateways.get( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -121,7 +121,13 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -153,6 +159,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -453,7 +460,11 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -494,6 +505,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -518,6 +530,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -579,6 +592,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -644,6 +658,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -811,6 +826,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -862,6 +878,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -909,6 +926,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1062,6 +1080,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1117,6 +1136,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1168,6 +1188,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1372,6 +1393,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1423,6 +1445,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1764,7 +1787,11 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1807,6 +1834,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1831,6 +1859,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1892,6 +1921,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1959,6 +1989,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2207,6 +2238,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2258,6 +2290,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2307,6 +2340,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2374,6 +2408,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2435,6 +2470,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2500,6 +2536,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2704,6 +2741,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2769,6 +2807,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3013,7 +3052,13 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3045,6 +3090,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3345,7 +3391,11 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3386,6 +3436,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3410,6 +3461,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3471,6 +3523,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3536,6 +3589,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3703,6 +3757,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3754,6 +3809,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3801,6 +3857,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3954,6 +4011,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4009,6 +4067,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4060,6 +4119,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4264,6 +4324,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4315,6 +4376,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4656,7 +4718,11 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4699,6 +4765,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4723,6 +4790,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4784,6 +4852,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4851,6 +4920,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5099,6 +5169,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5150,6 +5221,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5199,6 +5271,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5266,6 +5339,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5327,6 +5401,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5392,6 +5467,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5596,6 +5672,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5661,6 +5738,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5970,7 +6048,13 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -6002,6 +6086,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6324,6 +6409,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6371,6 +6457,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -6395,6 +6482,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6456,6 +6544,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6523,6 +6612,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6696,6 +6786,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -6751,6 +6842,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -6802,6 +6894,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6966,6 +7059,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7027,6 +7121,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7094,6 +7189,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7308,6 +7404,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7375,6 +7472,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7739,6 +7837,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7788,6 +7887,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7815,6 +7915,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -7876,6 +7977,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7943,6 +8045,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8215,6 +8318,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -8276,6 +8380,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8341,6 +8446,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8408,6 +8514,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -8469,6 +8576,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8536,6 +8644,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8752,6 +8861,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8819,6 +8929,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9090,7 +9201,7 @@ async def test_service_gateways_begin_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -9104,7 +9215,7 @@ async def test_service_gateways_update_tags(self, resource_group): resource_group_name=resource_group.name, service_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -9117,7 +9228,7 @@ async def test_service_gateways_begin_delete(self, resource_group): await self.client.service_gateways.begin_delete( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -9129,7 +9240,7 @@ async def test_service_gateways_begin_delete(self, resource_group): async def test_service_gateways_list(self, resource_group): response = self.client.service_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -9139,7 +9250,7 @@ async def test_service_gateways_list(self, resource_group): @recorded_by_proxy_async async def test_service_gateways_list_all(self, resource_group): response = self.client.service_gateways.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -9147,779 +9258,873 @@ async def test_service_gateways_list_all(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_service_gateways_begin_update_address_locations(self, resource_group): - response = await ( - await self.client.service_gateways.begin_update_address_locations( - resource_group_name=resource_group.name, - service_gateway_name="str", - parameters={ - "action": "str", - "addressLocations": [ - { - "addressLocation": "str", - "addressUpdateAction": "str", - "addresses": [{"address": "str", "services": ["str"]}], - } - ], - }, - api_version="2025-07-01", - ) - ).result() # call '.result()' to poll until service return final result + async def test_service_gateways_update_address_locations(self, resource_group): + response = await self.client.service_gateways.update_address_locations( + resource_group_name=resource_group.name, + service_gateway_name="str", + parameters={ + "action": "str", + "addressLocations": [ + { + "addressLocation": "str", + "addressUpdateAction": "str", + "addresses": [{"address": "str", "services": ["str"]}], + } + ], + }, + api_version="2025-09-01", + ) # please add some check logic here by yourself # ... @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_service_gateways_begin_update_services(self, resource_group): - response = await ( - await self.client.service_gateways.begin_update_services( - resource_group_name=resource_group.name, - service_gateway_name="str", - parameters={ - "action": "str", - "serviceRequests": [ - { - "isDelete": bool, - "service": { - "name": "str", - "properties": { - "isDefault": bool, - "loadBalancerBackendPools": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "backendIPConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "applicationGatewayBackendAddressPools": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "backendAddresses": [ - {"fqdn": "str", "ipAddress": "str"} - ], - "backendIPConfigurations": [...], - "provisioningState": "str", - }, - "type": "str", - } - ], - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "gatewayLoadBalancer": {"id": "str"}, - "loadBalancerBackendAddressPools": [...], - "loadBalancerInboundNatRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "backendAddressPool": {"id": "str"}, - "backendIPConfiguration": ..., - "backendPort": 0, - "enableFloatingIP": bool, - "enableTcpReset": bool, - "frontendIPConfiguration": {"id": "str"}, - "frontendPort": 0, - "frontendPortRangeEnd": 0, - "frontendPortRangeStart": 0, - "idleTimeoutInMinutes": 0, - "protocol": "str", - "provisioningState": "str", - }, - "type": "str", - } - ], - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressPrefixLength": 0, - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "privateLinkConnectionProperties": { - "fqdns": ["str"], - "groupId": "str", - "requiredMemberName": "str", - }, - "provisioningState": "str", - "publicIPAddress": { + async def test_service_gateways_update_services(self, resource_group): + response = await self.client.service_gateways.update_services( + resource_group_name=resource_group.name, + service_gateway_name="str", + parameters={ + "action": "str", + "serviceRequests": [ + { + "isDelete": bool, + "service": { + "name": "str", + "properties": { + "isDefault": bool, + "loadBalancerBackendPools": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "backendIPConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "applicationGatewayBackendAddressPools": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "backendAddresses": [ + {"fqdn": "str", "ipAddress": "str"} + ], + "backendIPConfigurations": [...], + "provisioningState": "str", + }, + "type": "str", + } + ], + "applicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "location": "str", "name": "str", "properties": { - "ddosSettings": { - "ddosCustomPolicy": {"id": "str"}, - "ddosProtectionPlan": {"id": "str"}, - "protectionMode": "str", - }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", - }, + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "gatewayLoadBalancer": {"id": "str"}, + "loadBalancerBackendAddressPools": [...], + "loadBalancerInboundNatRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "backendAddressPool": {"id": "str"}, + "backendIPConfiguration": ..., + "backendPort": 0, + "enableFloatingIP": bool, + "enableTcpReset": bool, + "frontendIPConfiguration": {"id": "str"}, + "frontendPort": 0, + "frontendPortRangeEnd": 0, + "frontendPortRangeStart": 0, "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "addressPrefix": "str", - "addressPrefixes": ["str"], - "applicationGatewayIPConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": {"id": "str"}, - }, - "type": "str", - } - ], - "defaultOutboundAccess": bool, - "delegations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "actions": ["str"], - "provisioningState": "str", - "serviceName": "str", - }, - "type": "str", - } - ], - "ipAllocations": [{"id": "str"}], - "ipConfigurationProfiles": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "ipConfigurations": [...], - "ipamPoolPrefixAllocations": [ - { - "allocatedAddressPrefixes": [ - "str" - ], - "numberOfIpAddresses": "str", - "pool": {"id": "str"}, - } - ], - "natGateway": {"id": "str"}, - "networkSecurityGroup": { + "protocol": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressPrefixLength": 0, + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "privateLinkConnectionProperties": { + "fqdns": ["str"], + "groupId": "str", + "requiredMemberName": "str", + }, + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": {"name": "str", "type": "str"}, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": {"id": "str"}, + "ddosProtectionPlan": {"id": "str"}, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "addressPrefix": "str", + "addressPrefixes": ["str"], + "applicationGatewayIPConfigurations": [ + { "etag": "str", "id": "str", - "location": "str", "name": "str", "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, + "provisioningState": "str", + "subnet": {"id": "str"}, + }, + "type": "str", + } + ], + "defaultOutboundAccess": bool, + "delegations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "actions": ["str"], + "provisioningState": "str", + "serviceName": "str", + }, + "type": "str", + } + ], + "ipAllocations": [{"id": "str"}], + "ipConfigurationProfiles": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "ipConfigurations": [...], + "ipamPoolPrefixAllocations": [ + { + "allocatedAddressPrefixes": [ + "str" + ], + "numberOfIpAddresses": "str", + "pool": {"id": "str"}, + } + ], + "natGateway": {"id": "str"}, + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } - }, - "format": { - "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { "enabled": bool, - }, - "targetResourceGuid": "str", - }, - "tags": { - "str": "str" + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", + "format": { "type": "str", + "version": 0, }, - "id": "str", - "location": "str", + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" - ], - "dnsServers": [ - "str" - ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "ipConfigurations": [ - ... + "dnsServers": [ + "str" ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": ..., - "nicType": "str", - "primary": bool, - "privateEndpoint": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", + }, + "dscpConfiguration": { + "id": "str" + }, + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": ..., + "nicType": "str", + "primary": bool, + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ "str" ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" - }, - "type": "str", + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., }, - "privateLinkService": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateLinkService": { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ + "str" + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "publicIPPrefix": { + } + ], + "inboundNatRules": [ + { "id": "str" - }, - "subnet": ..., - }, - "type": "str", - "zones": [ - "str" + } ], - } - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., + }, + "type": "str", + "zones": [ + "str" + ], + } + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ "str" ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" - }, - "type": "str", + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., }, - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "tags": { + "str": "str" }, - "provisioningState": "str", + "type": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, - }, - "tags": { - "str": "str" + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] }, - "type": "str", }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "destinationLoadBalancerFrontEndIPConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { - "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "publicIPPrefix": { + "tags": { + "str": "str" + }, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "destinationLoadBalancerFrontEndIPConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { "id": "str" - }, - "subnet": ..., + } }, - "type": "str", - "zones": [ - "str" + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., }, - "destinationNetworkInterfaceIPConfiguration": ..., - "destinationPort": 0, - "networkInterfaceTapConfigurations": [ - ... + "type": "str", + "zones": [ + "str" ], - "provisioningState": "str", - "resourceGuid": "str", }, - "tags": { - "str": "str" - }, - "type": "str", + "destinationNetworkInterfaceIPConfiguration": ..., + "destinationPort": 0, + "networkInterfaceTapConfigurations": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", }, + "tags": { + "str": "str" + }, + "type": "str", }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", + }, + "type": "str", + } + ], + "virtualMachine": { + "id": "str" + }, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "privateEndpointNetworkPolicies": "str", + "privateEndpoints": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", }, "tags": { "str": "str" @@ -9927,3284 +10132,3276 @@ async def test_service_gateways_begin_update_services(self, resource_group): "type": "str", } ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ + "billingSku": "str", + "customDnsConfigs": [ { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ "str" ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "requestMessage": "str", }, "type": "str", } ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - }, - "privateEndpointNetworkPolicies": "str", - "privateEndpoints": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" - ], - "dnsServers": [ - "str" - ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ + "dnsServers": [ "str" ], - "ipConfigurations": [ - ... - ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", + }, + "dscpConfiguration": { + "id": "str" + }, + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } - }, - "format": { - "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { "enabled": bool, - }, - "targetResourceGuid": "str", + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "tags": { - "str": "str" + "format": { + "type": "str", + "version": 0, }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - ... - ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, }, - "type": "str", - } - ], - "subnets": [ - ... - ], - }, - "tags": { - "str": "str" - }, - "type": "str", - }, - "nicType": "str", - "primary": bool, - "privateEndpoint": ..., - "privateLinkService": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ - "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { - "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "publicIPPrefix": { - "id": "str" - }, - "subnet": ..., - }, - "type": "str", - "zones": [ + "targetResourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ "str" ], - } - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": ..., - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "provisioningState": "str", - }, - "type": "str", - } - ], - "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, - }, - "tags": { - "str": "str" - }, - "type": "str", - }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "destinationLoadBalancerFrontEndIPConfiguration": { + "destinationApplicationSecurityGroups": [ + { "etag": "str", "id": "str", + "location": "str", "name": "str", "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { - "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", "provisioningState": "str", - "publicIPAddress": ..., - "publicIPPrefix": { - "id": "str" - }, - "subnet": ..., + "resourceGuid": "str", + }, + "tags": { + "str": "str" }, "type": "str", - "zones": [ - "str" - ], - }, - "destinationNetworkInterfaceIPConfiguration": ..., - "destinationPort": 0, - "networkInterfaceTapConfigurations": [ - ... - ], - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], }, - }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" + "type": "str", + } + ], + "subnets": [ + ... + ], }, - "vnetEncryptionSupported": bool, - "workloadType": "str", - }, - "tags": { - "str": "str" + "tags": { + "str": "str" + }, + "type": "str", }, - "type": "str", - } - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "nicType": "str", + "primary": bool, + "privateEndpoint": ..., + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ + "str" + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., + }, + "type": "str", + "zones": [ + "str" + ], + } + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": ..., + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] + }, + }, + "tags": { + "str": "str" + }, + "type": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "privateLinkServiceNetworkPolicies": "str", - "provisioningState": "str", - "purpose": "str", - "resourceNavigationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "link": "str", - "linkedResourceType": "str", - "provisioningState": "str", - }, - "type": "str", - } - ], - "routeTable": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "disableBgpRoutePropagation": bool, - "disablePeeringRoute": "str", - "provisioningState": "str", - "resourceGuid": "str", - "routes": [ + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "destinationLoadBalancerFrontEndIPConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., + }, + "type": "str", + "zones": [ + "str" + ], + }, + "destinationNetworkInterfaceIPConfiguration": ..., + "destinationPort": 0, + "networkInterfaceTapConfigurations": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + }, + "type": "str", + } + ], + "virtualMachine": { + "id": "str" + }, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "privateLinkServiceConnections": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "nextHopType": "str", - "addressPrefix": "str", - "hasBgpOverride": bool, - "nextHop": { - "nextHopIpAddresses": [ - "str" - ] + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "nextHopIpAddress": "str", + "privateLinkServiceId": "str", "provisioningState": "str", + "requestMessage": "str", }, "type": "str", } ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - }, - "serviceAssociationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "allowDelete": bool, - "link": "str", - "linkedResourceType": "str", - "locations": ["str"], - "provisioningState": "str", - }, - "type": "str", - } - ], - "serviceEndpointPolicies": [ - { - "etag": "str", - "id": "str", - "kind": "str", - "location": "str", - "name": "str", - "properties": { - "contextualServiceEndpointPolicies": [ - "str" - ], - "provisioningState": "str", - "resourceGuid": "str", - "serviceAlias": "str", - "serviceEndpointPolicyDefinitions": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "description": "str", - "provisioningState": "str", - "service": "str", - "serviceResources": [ - "str" - ], - }, - "type": "str", - } - ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "serviceEndpoints": [ - { - "locations": ["str"], - "networkIdentifier": { - "id": "str" - }, "provisioningState": "str", - "service": "str", - } - ], - "serviceGateway": {"id": "str"}, - "sharingScope": "str", - }, - "type": "str", - }, - }, - }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [{"id": "str"}], - "publicIpAddressesV6": [{"id": "str"}], - "publicIpPrefixes": [{"id": "str"}], - "publicIpPrefixesV6": [{"id": "str"}], - "resourceGuid": "str", - "serviceGateway": {"id": "str"}, - "sourceVirtualNetwork": {"id": "str"}, - "subnets": [{"id": "str"}], - }, - "sku": {"name": "str"}, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": {"id": "str"}, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": {"name": "str", "tier": "str"}, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - "subnet": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "addressPrefix": "str", - "addressPrefixes": ["str"], - "applicationGatewayIPConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": {"id": "str"}, - }, - "type": "str", - } - ], - "defaultOutboundAccess": bool, - "delegations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "actions": ["str"], - "provisioningState": "str", - "serviceName": "str", - }, - "type": "str", - } - ], - "ipAllocations": [{"id": "str"}], - "ipConfigurationProfiles": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", - }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", - }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": ..., - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - {"id": "str"} - ], - "publicIpAddressesV6": [ - {"id": "str"} - ], - "publicIpPrefixes": [ - {"id": "str"} - ], - "publicIpPrefixesV6": [ - {"id": "str"} - ], - "resourceGuid": "str", - "serviceGateway": { - "id": "str" - }, - "sourceVirtualNetwork": { - "id": "str" - }, - "subnets": [ - {"id": "str"} - ], - }, - "sku": {"name": "str"}, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], + "subnet": ..., }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": {"id": "str"}, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": { + "tags": {"str": "str"}, + "type": "str", + } + ], + "privateLinkServiceNetworkPolicies": "str", + "provisioningState": "str", + "purpose": "str", + "resourceNavigationLinks": [ + { + "etag": "str", + "id": "str", "name": "str", - "tier": "str", - }, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - "subnet": ..., - }, - } - ], - "ipamPoolPrefixAllocations": [ - { - "allocatedAddressPrefixes": ["str"], - "numberOfIpAddresses": "str", - "pool": {"id": "str"}, - } - ], - "natGateway": {"id": "str"}, - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { + "properties": { + "link": "str", + "linkedResourceType": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "routeTable": { "etag": "str", "id": "str", + "location": "str", "name": "str", "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], + "disableBgpRoutePropagation": bool, + "disablePeeringRoute": "str", "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ + "resourceGuid": "str", + "routes": [ { "etag": "str", "id": "str", - "location": "str", "name": "str", "properties": { + "nextHopType": "str", + "addressPrefix": "str", + "hasBgpOverride": bool, + "nextHop": { + "nextHopIpAddresses": [ + "str" + ] + }, + "nextHopIpAddress": "str", "provisioningState": "str", - "resourceGuid": "str", }, - "tags": {"str": "str"}, "type": "str", } ], - "sourcePortRange": "str", - "sourcePortRanges": ["str"], + "subnets": [...], }, + "tags": {"str": "str"}, "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", + }, + "serviceAssociationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "allowDelete": bool, + "link": "str", + "linkedResourceType": "str", + "locations": ["str"], + "provisioningState": "str", + }, "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } + } + ], + "serviceEndpointPolicies": [ + { + "etag": "str", + "id": "str", + "kind": "str", + "location": "str", + "name": "str", + "properties": { + "contextualServiceEndpointPolicies": [ + "str" + ], + "provisioningState": "str", + "resourceGuid": "str", + "serviceAlias": "str", + "serviceEndpointPolicyDefinitions": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "description": "str", + "provisioningState": "str", + "service": "str", + "serviceResources": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [...], }, - }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } + "tags": {"str": "str"}, + "type": "str", + } + ], + "serviceEndpoints": [ + { + "locations": ["str"], + "networkIdentifier": { + "id": "str" }, - "format": { - "type": "str", - "version": 0, + "provisioningState": "str", + "service": "str", + } + ], + "serviceGateway": {"id": "str"}, + "sharingScope": "str", + }, + "type": "str", + }, + }, + }, + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [{"id": "str"}], + "publicIpAddressesV6": [{"id": "str"}], + "publicIpPrefixes": [{"id": "str"}], + "publicIpPrefixesV6": [{"id": "str"}], + "resourceGuid": "str", + "serviceGateway": {"id": "str"}, + "sourceVirtualNetwork": {"id": "str"}, + "subnets": [{"id": "str"}], + }, + "sku": {"name": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": {"id": "str"}, + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, + }, + "sku": {"name": "str", "tier": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "subnet": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "addressPrefix": "str", + "addressPrefixes": ["str"], + "applicationGatewayIPConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": {"id": "str"}, + }, + "type": "str", + } + ], + "defaultOutboundAccess": bool, + "delegations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "actions": ["str"], + "provisioningState": "str", + "serviceName": "str", + }, + "type": "str", + } + ], + "ipAllocations": [{"id": "str"}], + "ipConfigurationProfiles": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, - "enabled": bool, + "ddosProtectionPlan": { + "id": "str" }, - "targetResourceGuid": "str", + "protectionMode": "str", }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": ..., + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + {"id": "str"} ], - "dnsServers": ["str"], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" + "publicIpAddressesV6": [ + {"id": "str"} + ], + "publicIpPrefixes": [ + {"id": "str"} + ], + "publicIpPrefixesV6": [ + {"id": "str"} + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" + }, + "sourceVirtualNetwork": { + "id": "str" + }, + "subnets": [{"id": "str"}], }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": ["str"], - "ipConfigurations": [...], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": ..., - "nicType": "str", - "primary": bool, - "privateEndpoint": { + "sku": {"name": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": {"id": "str"}, + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, + }, + "sku": {"name": "str", "tier": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "subnet": ..., + }, + } + ], + "ipamPoolPrefixAllocations": [ + { + "allocatedAddressPrefixes": ["str"], + "numberOfIpAddresses": "str", + "pool": {"id": "str"}, + } + ], + "natGateway": {"id": "str"}, + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": ["str"], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": ["str"], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": ["str"], + }, + "type": "str", + } + ], + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } + }, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { + "enabled": bool, + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } + }, + "format": { + "type": "str", + "version": 0, + }, + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": ["str"], + "dnsServers": ["str"], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", + }, + "dscpConfiguration": {"id": "str"}, + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": ["str"], + "ipConfigurations": [...], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": ..., + "nicType": "str", + "primary": bool, + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ "str" ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [...], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": {"str": "str"}, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": {"str": "str"}, + "type": "str", + }, + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", "type": "str", }, - "privateLinkService": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": ["str"] }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": ["str"], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": ["str"], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", - }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", - }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": ..., - }, - }, - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - { - "id": "str" - } - ], - "publicIpAddressesV6": [ - { - "id": "str" - } - ], - "publicIpPrefixes": [ - { - "id": "str" - } - ], - "publicIpPrefixesV6": [ - { - "id": "str" - } - ], - "resourceGuid": "str", - "serviceGateway": { - "id": "str" - }, - "sourceVirtualNetwork": { - "id": "str" - }, - "subnets": [ - { - "id": "str" - } - ], - }, - "sku": { - "name": "str" - }, - "tags": { - "str": "str" - }, - "type": "str", - "zones": [ - "str" - ], + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": { + "ddosProtectionPlan": { "id": "str" }, - "resourceGuid": "str", - "servicePublicIPAddress": ..., + "protectionMode": "str", }, - "sku": { - "name": "str", - "tier": "str", + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", }, - "tags": { - "str": "str" + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": ..., + }, }, - "type": "str", - "zones": [ - "str" + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], - }, - "publicIPPrefix": { - "id": "str" - }, - "subnet": ..., - }, - "type": "str", - "zones": [ - "str" - ], - } - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": { - "etag": "str", - "extendedLocation": { + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + { + "id": "str" + } + ], + "publicIpAddressesV6": [ + { + "id": "str" + } + ], + "publicIpPrefixes": [ + { + "id": "str" + } + ], + "publicIpPrefixesV6": [ + { + "id": "str" + } + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" + }, + "sourceVirtualNetwork": { + "id": "str" + }, + "subnets": [ + { + "id": "str" + } + ], + }, + "sku": { + "name": "str" + }, + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" ], - "provisioningState": "str", - "subnet": ..., }, - "tags": { - "str": "str" + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": { + "id": "str" }, - "type": "str", + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "sku": { + "name": "str", + "tier": "str", }, - "provisioningState": "str", + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, - }, - "tags": {"str": "str"}, - "type": "str", - }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "destinationLoadBalancerFrontEndIPConfiguration": { - "etag": "str", - "id": "str", + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., + }, + "type": "str", + "zones": ["str"], + } + ], + "networkInterfaces": [...], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { - "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", "location": "str", "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": ["str"] + }, + }, + "tags": {"str": "str"}, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "destinationLoadBalancerFrontEndIPConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", + "ddosProtectionPlan": { + "id": "str" }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": ..., - }, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": ..., }, - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - { - "id": "str" - } - ], - "publicIpAddressesV6": [ - { - "id": "str" - } - ], - "publicIpPrefixes": [ - { - "id": "str" - } - ], - "publicIpPrefixesV6": [ - { - "id": "str" - } - ], - "resourceGuid": "str", - "serviceGateway": { + }, + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + { "id": "str" - }, - "sourceVirtualNetwork": { + } + ], + "publicIpAddressesV6": [ + { "id": "str" - }, - "subnets": [ - { - "id": "str" - } - ], - }, - "sku": { - "name": "str" + } + ], + "publicIpPrefixes": [ + { + "id": "str" + } + ], + "publicIpPrefixesV6": [ + { + "id": "str" + } + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" }, - "tags": { - "str": "str" + "sourceVirtualNetwork": { + "id": "str" }, - "type": "str", - "zones": [ - "str" + "subnets": [ + { + "id": "str" + } ], }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str" }, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": { - "name": "str", - "tier": "str", + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "tags": { - "str": "str" + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": { + "id": "str" }, - "type": "str", - "zones": [ - "str" - ], + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str", + "tier": "str", }, - "subnet": ..., + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "type": "str", - "zones": [ - "str" - ], + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., }, - "destinationNetworkInterfaceIPConfiguration": ..., - "destinationPort": 0, - "networkInterfaceTapConfigurations": [ - ... + "type": "str", + "zones": [ + "str" ], - "provisioningState": "str", - "resourceGuid": "str", }, - "tags": { - "str": "str" - }, - "type": "str", + "destinationNetworkInterfaceIPConfiguration": ..., + "destinationPort": 0, + "networkInterfaceTapConfigurations": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", }, + "tags": { + "str": "str" + }, + "type": "str", }, - "type": "str", - } - ], - "virtualMachine": {"id": "str"}, - "vnetEncryptionSupported": bool, - "workloadType": "str", + }, + "type": "str", + } + ], + "virtualMachine": {"id": "str"}, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": ["str"], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": ["str"], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": ["str"], + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "privateEndpointNetworkPolicies": "str", + "privateEndpoints": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", }, "tags": {"str": "str"}, "type": "str", } ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ + "billingSku": "str", + "customDnsConfigs": [ + {"fqdn": "str", "ipAddresses": ["str"]} + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], + "groupIds": ["str"], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": ["str"], + "requestMessage": "str", }, "type": "str", } ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - }, - "privateEndpointNetworkPolicies": "str", - "privateEndpoints": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": {"str": "str"}, "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": ["str"], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ + "str" + ], + "dnsServers": ["str"], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": ["str"], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "dscpConfiguration": { + "id": "str" }, - "type": "str", - } - ], - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": ["str"], + "ipConfigurations": [...], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } ], - "dnsServers": ["str"], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": ["str"], - "ipConfigurations": [...], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } - }, - "format": { - "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { "enabled": bool, - }, - "targetResourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - ... - ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, - "type": "str", - } - ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - }, - "nicType": "str", - "primary": bool, - "privateEndpoint": ..., - "privateLinkService": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": ["str"], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { - "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { + "format": { + "type": "str", + "version": 0, + }, + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "nicType": "str", + "primary": bool, + "privateEndpoint": ..., + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": ["str"], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + } + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", + "ddosProtectionPlan": { + "id": "str" }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": ..., - }, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": ..., }, - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - { - "id": "str" - } - ], - "publicIpAddressesV6": [ - { - "id": "str" - } - ], - "publicIpPrefixes": [ - { - "id": "str" - } - ], - "publicIpPrefixesV6": [ - { - "id": "str" - } - ], - "resourceGuid": "str", - "serviceGateway": { + }, + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + { "id": "str" - }, - "sourceVirtualNetwork": { + } + ], + "publicIpAddressesV6": [ + { "id": "str" - }, - "subnets": [ - { - "id": "str" - } - ], - }, - "sku": { - "name": "str" + } + ], + "publicIpPrefixes": [ + { + "id": "str" + } + ], + "publicIpPrefixesV6": [ + { + "id": "str" + } + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" }, - "tags": { - "str": "str" + "sourceVirtualNetwork": { + "id": "str" }, - "type": "str", - "zones": [ - "str" + "subnets": [ + { + "id": "str" + } ], }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str" }, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": { - "name": "str", - "tier": "str", + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "tags": { - "str": "str" + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": { + "id": "str" }, - "type": "str", - "zones": [ - "str" - ], + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str", + "tier": "str", }, - "subnet": ..., - }, - "type": "str", - "zones": [ - "str" - ], - } - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": ..., - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", + "tags": { + "str": "str" }, - "provisioningState": "str", + "type": "str", + "zones": [ + "str" + ], }, - "type": "str", - } - ], - "provisioningState": "str", - "visibility": { - "subscriptions": [ + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., + }, + "type": "str", + "zones": [ "str" - ] - }, + ], + } + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": ..., + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] }, - "tags": {"str": "str"}, - "type": "str", }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "destinationLoadBalancerFrontEndIPConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - } - }, - "gatewayLoadBalancer": { + "tags": {"str": "str"}, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "destinationLoadBalancerFrontEndIPConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { "id": "str" - }, - "inboundNatPools": [ - { - "id": "str" - } - ], - "inboundNatRules": [ - { - "id": "str" - } - ], - "loadBalancingRules": [ - { - "id": "str" - } - ], - "outboundRules": [ - { - "id": "str" - } - ], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", + } + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": { + "id": "str" + }, + "inboundNatPools": [ + { + "id": "str" + } + ], + "inboundNatRules": [ + { + "id": "str" + } + ], + "loadBalancingRules": [ + { + "id": "str" + } + ], + "outboundRules": [ + { + "id": "str" + } + ], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", + "ddosProtectionPlan": { + "id": "str" }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": ..., - }, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": ..., }, - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - { - "id": "str" - } - ], - "publicIpAddressesV6": [ - { - "id": "str" - } - ], - "publicIpPrefixes": [ - { - "id": "str" - } - ], - "publicIpPrefixesV6": [ - { - "id": "str" - } - ], - "resourceGuid": "str", - "serviceGateway": { + }, + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + { "id": "str" - }, - "sourceVirtualNetwork": { + } + ], + "publicIpAddressesV6": [ + { "id": "str" - }, - "subnets": [ - { - "id": "str" - } - ], - }, - "sku": { - "name": "str" + } + ], + "publicIpPrefixes": [ + { + "id": "str" + } + ], + "publicIpPrefixesV6": [ + { + "id": "str" + } + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" }, - "tags": { - "str": "str" + "sourceVirtualNetwork": { + "id": "str" }, - "type": "str", - "zones": [ - "str" + "subnets": [ + { + "id": "str" + } ], }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str" }, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": { - "name": "str", - "tier": "str", + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "tags": { - "str": "str" + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": { + "id": "str" }, - "type": "str", - "zones": [ - "str" - ], + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, - "publicIPPrefix": { - "id": "str" + "sku": { + "name": "str", + "tier": "str", }, - "subnet": ..., + "tags": { + "str": "str" + }, + "type": "str", + "zones": [ + "str" + ], }, - "type": "str", - "zones": [ - "str" - ], + "publicIPPrefix": { + "id": "str" + }, + "subnet": ..., }, - "destinationNetworkInterfaceIPConfiguration": ..., - "destinationPort": 0, - "networkInterfaceTapConfigurations": [ - ... + "type": "str", + "zones": [ + "str" ], - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" }, - "type": "str", + "destinationNetworkInterfaceIPConfiguration": ..., + "destinationPort": 0, + "networkInterfaceTapConfigurations": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" }, + "type": "str", }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": ["str"], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "privateLinkServiceNetworkPolicies": "str", - "provisioningState": "str", - "purpose": "str", - "resourceNavigationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "link": "str", - "linkedResourceType": "str", - "provisioningState": "str", - }, - "type": "str", - } - ], - "routeTable": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "disableBgpRoutePropagation": bool, - "disablePeeringRoute": "str", - "provisioningState": "str", - "resourceGuid": "str", - "routes": [ + }, + "type": "str", + } + ], + "virtualMachine": {"id": "str"}, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "privateLinkServiceConnections": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "nextHopType": "str", - "addressPrefix": "str", - "hasBgpOverride": bool, - "nextHop": { - "nextHopIpAddresses": [ - "str" - ] + "groupIds": ["str"], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "nextHopIpAddress": "str", + "privateLinkServiceId": "str", "provisioningState": "str", + "requestMessage": "str", }, "type": "str", } ], - "subnets": [...], + "provisioningState": "str", + "subnet": ..., }, "tags": {"str": "str"}, "type": "str", - }, - "serviceAssociationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "allowDelete": bool, - "link": "str", - "linkedResourceType": "str", - "locations": ["str"], - "provisioningState": "str", - }, - "type": "str", - } - ], - "serviceEndpointPolicies": [ - { - "etag": "str", - "id": "str", - "kind": "str", - "location": "str", - "name": "str", - "properties": { - "contextualServiceEndpointPolicies": [ - "str" - ], - "provisioningState": "str", - "resourceGuid": "str", - "serviceAlias": "str", - "serviceEndpointPolicyDefinitions": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "description": "str", - "provisioningState": "str", - "service": "str", - "serviceResources": ["str"], - }, - "type": "str", - } - ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "serviceEndpoints": [ - { - "locations": ["str"], - "networkIdentifier": {"id": "str"}, + } + ], + "privateLinkServiceNetworkPolicies": "str", + "provisioningState": "str", + "purpose": "str", + "resourceNavigationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "link": "str", + "linkedResourceType": "str", "provisioningState": "str", - "service": "str", - } - ], - "serviceGateway": {"id": "str"}, - "sharingScope": "str", - }, - "type": "str", - }, - "virtualNetworkTaps": [ - { + }, + "type": "str", + } + ], + "routeTable": { "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "destinationLoadBalancerFrontEndIPConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": {"id": "str"} + "disableBgpRoutePropagation": bool, + "disablePeeringRoute": "str", + "provisioningState": "str", + "resourceGuid": "str", + "routes": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "nextHopType": "str", + "addressPrefix": "str", + "hasBgpOverride": bool, + "nextHop": { + "nextHopIpAddresses": ["str"] + }, + "nextHopIpAddress": "str", + "provisioningState": "str", }, - "gatewayLoadBalancer": {"id": "str"}, - "inboundNatPools": [{"id": "str"}], - "inboundNatRules": [{"id": "str"}], - "loadBalancingRules": [{"id": "str"}], - "outboundRules": [{"id": "str"}], - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "serviceAssociationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "allowDelete": bool, + "link": "str", + "linkedResourceType": "str", + "locations": ["str"], + "provisioningState": "str", + }, + "type": "str", + } + ], + "serviceEndpointPolicies": [ + { + "etag": "str", + "id": "str", + "kind": "str", + "location": "str", + "name": "str", + "properties": { + "contextualServiceEndpointPolicies": [ + "str" + ], + "provisioningState": "str", + "resourceGuid": "str", + "serviceAlias": "str", + "serviceEndpointPolicyDefinitions": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", - "location": "str", "name": "str", "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", - }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", + "description": "str", + "provisioningState": "str", + "service": "str", + "serviceResources": ["str"], + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "serviceEndpoints": [ + { + "locations": ["str"], + "networkIdentifier": {"id": "str"}, + "provisioningState": "str", + "service": "str", + } + ], + "serviceGateway": {"id": "str"}, + "sharingScope": "str", + }, + "type": "str", + }, + "virtualNetworkTaps": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "destinationLoadBalancerFrontEndIPConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": {"id": "str"} + }, + "enableConnectionTracking": bool, + "gatewayLoadBalancer": {"id": "str"}, + "inboundNatPools": [{"id": "str"}], + "inboundNatRules": [{"id": "str"}], + "loadBalancingRules": [{"id": "str"}], + "outboundRules": [{"id": "str"}], + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": ..., - "subnet": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "addressPrefix": "str", - "addressPrefixes": [ - "str" - ], - "applicationGatewayIPConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": { - "id": "str" - }, - }, - "type": "str", - } - ], - "defaultOutboundAccess": bool, - "delegations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "actions": [ - "str" - ], - "provisioningState": "str", - "serviceName": "str", - }, - "type": "str", - } - ], - "ipAllocations": [ - { - "id": "str" - } - ], - "ipConfigurationProfiles": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": ..., + "ddosProtectionPlan": { + "id": "str" + }, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": ..., + "subnet": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "addressPrefix": "str", + "addressPrefixes": [ + "str" + ], + "applicationGatewayIPConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": { + "id": "str" }, - "type": "str", - } - ], - "ipConfigurations": [ - ... - ], - "ipamPoolPrefixAllocations": [ - { - "allocatedAddressPrefixes": [ + }, + "type": "str", + } + ], + "defaultOutboundAccess": bool, + "delegations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "actions": [ "str" ], - "numberOfIpAddresses": "str", - "pool": { - "id": "str" - }, - } - ], - "natGateway": { - "id": "str" - }, - "networkSecurityGroup": { + "provisioningState": "str", + "serviceName": "str", + }, + "type": "str", + } + ], + "ipAllocations": [ + {"id": "str"} + ], + "ipConfigurationProfiles": [ + { "etag": "str", "id": "str", - "location": "str", "name": "str", "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "ipConfigurations": [ + ... + ], + "ipamPoolPrefixAllocations": [ + { + "allocatedAddressPrefixes": [ + "str" + ], + "numberOfIpAddresses": "str", + "pool": { + "id": "str" + }, + } + ], + "natGateway": { + "id": "str" + }, + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } + }, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { + "enabled": bool, + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } + }, + "format": { + "type": "str", + "version": 0, + }, + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ + "dnsServers": [ "str" ], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", }, - "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "dscpConfiguration": { + "id": "str" }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": ..., + "nicType": "str", + "primary": bool, + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", }, - "format": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", "type": "str", - "version": 0, }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, - "enabled": bool, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ + "str" + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + ... + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] + }, + }, + "tags": { + "str": "str" }, - "targetResourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", "type": "str", }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" - ], - "dnsServers": [ - "str" - ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ - "str" - ], - "ipConfigurations": [ - ... - ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": ..., - "nicType": "str", - "primary": bool, - "privateEndpoint": { + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", - "location": "str", "name": "str", "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" + "virtualNetworkTap": ..., }, "type": "str", - }, - "privateLinkService": { + } + ], + "virtualMachine": { + "id": "str" + }, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", "location": "str", "name": "str", "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ - "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - ... - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" - }, - "type": "str", - }, - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "provisioningState": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, + "resourceGuid": "str", }, "tags": { "str": "str" }, "type": "str", - }, + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [ + ... + ], + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateEndpointNetworkPolicies": "str", + "privateEndpoints": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { "provisioningState": "str", "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": ..., - }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", }, "tags": { "str": "str" @@ -13212,629 +13409,822 @@ async def test_service_gateways_begin_update_services(self, resource_group): "type": "str", } ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ + "groupIds": [ "str" ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "requestMessage": "str", }, "type": "str", } ], - "subnets": [ - ... - ], - }, - "tags": { - "str": "str" - }, - "type": "str", - }, - "privateEndpointNetworkPolicies": "str", - "privateEndpoints": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "dnsServers": [ + "str" + ], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", }, - "type": "str", - } - ], - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { + "dscpConfiguration": { + "id": "str" + }, + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" - ], - "dnsServers": [ - "str" + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ - "str" - ], - "ipConfigurations": [ - ... - ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } - }, - "format": { - "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { "enabled": bool, - }, - "targetResourceGuid": "str", + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "tags": { - "str": "str" + "format": { + "type": "str", + "version": 0, }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - ... - ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [ + ... + ], + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "nicType": "str", + "primary": bool, + "privateEndpoint": ..., + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ + "str" + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + ... + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": ..., + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "subnets": [ - ... - ], - }, - "tags": { - "str": "str" + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] }, - "type": "str", }, - "nicType": "str", - "primary": bool, - "privateEndpoint": ..., - "privateLinkService": { + "tags": { + "str": "str" + }, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", - "location": "str", "name": "str", "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ - "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - ... - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": ..., - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "provisioningState": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, - }, - "tags": { - "str": "str" + "virtualNetworkTap": ..., }, "type": "str", - }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": ..., - }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", - }, - "tags": { - "str": "str" + } + ], + "virtualMachine": { + "id": "str" }, - "type": "str", - } - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "privateLinkServiceNetworkPolicies": "str", - "provisioningState": "str", - "purpose": "str", - "resourceNavigationLinks": [ + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "privateLinkServiceNetworkPolicies": "str", + "provisioningState": "str", + "purpose": "str", + "resourceNavigationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "link": "str", + "linkedResourceType": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "routeTable": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "disableBgpRoutePropagation": bool, + "disablePeeringRoute": "str", + "provisioningState": "str", + "resourceGuid": "str", + "routes": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "nextHopType": "str", + "addressPrefix": "str", + "hasBgpOverride": bool, + "nextHop": { + "nextHopIpAddresses": [ + "str" + ] + }, + "nextHopIpAddress": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "subnets": [ + ... + ], + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "serviceAssociationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "allowDelete": bool, + "link": "str", + "linkedResourceType": "str", + "locations": [ + "str" + ], + "provisioningState": "str", + }, + "type": "str", + } + ], + "serviceEndpointPolicies": [ + { + "etag": "str", + "id": "str", + "kind": "str", + "location": "str", + "name": "str", + "properties": { + "contextualServiceEndpointPolicies": [ + "str" + ], + "provisioningState": "str", + "resourceGuid": "str", + "serviceAlias": "str", + "serviceEndpointPolicyDefinitions": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "description": "str", + "provisioningState": "str", + "service": "str", + "serviceResources": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [ + ... + ], + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "serviceEndpoints": [ + { + "locations": [ + "str" + ], + "networkIdentifier": { + "id": "str" + }, + "provisioningState": "str", + "service": "str", + } + ], + "serviceGateway": { + "id": "str" + }, + "sharingScope": "str", + }, + "type": "str", + }, + }, + }, + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "idleTimeoutInMinutes": 0, + "nat64": "str", + "provisioningState": "str", + "publicIpAddresses": [ + {"id": "str"} + ], + "publicIpAddressesV6": [ + {"id": "str"} + ], + "publicIpPrefixes": [ + {"id": "str"} + ], + "publicIpPrefixesV6": [ + {"id": "str"} + ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" + }, + "sourceVirtualNetwork": { + "id": "str" + }, + "subnets": [{"id": "str"}], + }, + "sku": {"name": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": {"id": "str"}, + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, + }, + "sku": {"name": "str", "tier": "str"}, + "tags": {"str": "str"}, + "type": "str", + "zones": ["str"], + }, + "publicIPPrefix": {"id": "str"}, + "subnet": { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "addressPrefix": "str", + "addressPrefixes": ["str"], + "applicationGatewayIPConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": {"id": "str"}, + }, + "type": "str", + } + ], + "defaultOutboundAccess": bool, + "delegations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "actions": ["str"], + "provisioningState": "str", + "serviceName": "str", + }, + "type": "str", + } + ], + "ipAllocations": [{"id": "str"}], + "ipConfigurationProfiles": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "privateIPAddress": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "publicIPAddress": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "ddosSettings": { + "ddosCustomPolicy": { + "id": "str" + }, + "ddosProtectionPlan": { + "id": "str" + }, + "protectionMode": "str", + }, + "deleteOption": "str", + "dnsSettings": { + "domainNameLabel": "str", + "domainNameLabelScope": "str", + "fqdn": "str", + "reverseFqdn": "str", + }, + "idleTimeoutInMinutes": 0, + "ipAddress": "str", + "ipConfiguration": ..., + "ipTags": [ { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "link": "str", - "linkedResourceType": "str", - "provisioningState": "str", - }, - "type": "str", + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", } ], - "routeTable": { + "linkedPublicIPAddress": ..., + "migrationPhase": "str", + "natGateway": { "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "disableBgpRoutePropagation": bool, - "disablePeeringRoute": "str", + "idleTimeoutInMinutes": 0, + "nat64": "str", "provisioningState": "str", - "resourceGuid": "str", - "routes": [ + "publicIpAddresses": [ { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "nextHopType": "str", - "addressPrefix": "str", - "hasBgpOverride": bool, - "nextHop": { - "nextHopIpAddresses": [ - "str" - ] - }, - "nextHopIpAddress": "str", - "provisioningState": "str", - }, - "type": "str", + "id": "str" + } + ], + "publicIpAddressesV6": [ + { + "id": "str" + } + ], + "publicIpPrefixes": [ + { + "id": "str" + } + ], + "publicIpPrefixesV6": [ + { + "id": "str" } ], + "resourceGuid": "str", + "serviceGateway": { + "id": "str" + }, + "sourceVirtualNetwork": { + "id": "str" + }, "subnets": [ - ... + { + "id": "str" + } ], }, + "sku": { + "name": "str" + }, "tags": { "str": "str" }, "type": "str", + "zones": [ + "str" + ], }, - "serviceAssociationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "allowDelete": bool, - "link": "str", - "linkedResourceType": "str", - "locations": [ - "str" - ], - "provisioningState": "str", - }, - "type": "str", - } + "provisioningState": "str", + "publicIPAddressVersion": "str", + "publicIPAllocationMethod": "str", + "publicIPPrefix": { + "id": "str" + }, + "resourceGuid": "str", + "servicePublicIPAddress": ..., + "upgradedToV2": bool, + }, + "sku": { + "name": "str", + "tier": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + "zones": ["str"], + }, + "subnet": ..., + }, + } + ], + "ipamPoolPrefixAllocations": [ + { + "allocatedAddressPrefixes": [ + "str" + ], + "numberOfIpAddresses": "str", + "pool": {"id": "str"}, + } + ], + "natGateway": {"id": "str"}, + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" ], - "serviceEndpointPolicies": [ + "destinationApplicationSecurityGroups": [ { "etag": "str", "id": "str", - "kind": "str", "location": "str", "name": "str", "properties": { - "contextualServiceEndpointPolicies": [ - "str" - ], "provisioningState": "str", "resourceGuid": "str", - "serviceAlias": "str", - "serviceEndpointPolicyDefinitions": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "description": "str", - "provisioningState": "str", - "service": "str", - "serviceResources": [ - "str" - ], - }, - "type": "str", - } - ], - "subnets": [ - ... - ], }, "tags": { "str": "str" @@ -13842,731 +14232,527 @@ async def test_service_gateways_begin_update_services(self, resource_group): "type": "str", } ], - "serviceEndpoints": [ - { - "locations": [ - "str" - ], - "networkIdentifier": { - "id": "str" - }, - "provisioningState": "str", - "service": "str", - } + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" ], - "serviceGateway": { - "id": "str" - }, - "sharingScope": "str", - }, - "type": "str", - }, - }, - }, - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", - "provisioningState": "str", - "publicIpAddresses": [ - {"id": "str"} - ], - "publicIpAddressesV6": [ - {"id": "str"} - ], - "publicIpPrefixes": [ - {"id": "str"} - ], - "publicIpPrefixesV6": [ - {"id": "str"} - ], - "resourceGuid": "str", - "serviceGateway": { - "id": "str" - }, - "sourceVirtualNetwork": { - "id": "str" - }, - "subnets": [ - {"id": "str"} - ], - }, - "sku": {"name": "str"}, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": {"id": "str"}, - "resourceGuid": "str", - "servicePublicIPAddress": ..., - }, - "sku": { - "name": "str", - "tier": "str", - }, - "tags": {"str": "str"}, - "type": "str", - "zones": ["str"], - }, - "publicIPPrefix": {"id": "str"}, - "subnet": { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "addressPrefix": "str", - "addressPrefixes": ["str"], - "applicationGatewayIPConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": { - "id": "str" - }, - }, - "type": "str", - } - ], - "defaultOutboundAccess": bool, - "delegations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "actions": ["str"], - "provisioningState": "str", - "serviceName": "str", - }, - "type": "str", - } - ], - "ipAllocations": [ - {"id": "str"} - ], - "ipConfigurationProfiles": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "privateIPAddress": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "publicIPAddress": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "ddosSettings": { - "ddosCustomPolicy": { - "id": "str" - }, - "ddosProtectionPlan": { - "id": "str" - }, - "protectionMode": "str", - }, - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - "fqdn": "str", - "reverseFqdn": "str", - }, - "idleTimeoutInMinutes": 0, - "ipAddress": "str", - "ipConfiguration": ..., - "ipTags": [ - { - "ipTagType": "str", - "tag": "str", - } - ], - "linkedPublicIPAddress": ..., - "migrationPhase": "str", - "natGateway": { + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "idleTimeoutInMinutes": 0, - "nat64": "str", "provisioningState": "str", - "publicIpAddresses": [ - { - "id": "str" - } - ], - "publicIpAddressesV6": [ - { - "id": "str" - } - ], - "publicIpPrefixes": [ - { - "id": "str" - } - ], - "publicIpPrefixesV6": [ - { - "id": "str" - } - ], "resourceGuid": "str", - "serviceGateway": { - "id": "str" - }, - "sourceVirtualNetwork": { - "id": "str" - }, - "subnets": [ - { - "id": "str" - } - ], - }, - "sku": { - "name": "str" }, "tags": { "str": "str" }, "type": "str", - "zones": [ - "str" - ], - }, - "provisioningState": "str", - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": { - "id": "str" - }, - "resourceGuid": "str", - "servicePublicIPAddress": ..., + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", + "type": "str", + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "sku": { - "name": "str", - "tier": "str", + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { + "enabled": bool, + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "tags": { - "str": "str" + "format": { + "type": "str", + "version": 0, }, - "type": "str", - "zones": [ - "str" - ], + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", }, - "subnet": ..., - }, - } - ], - "ipamPoolPrefixAllocations": [ - { - "allocatedAddressPrefixes": [ - "str" - ], - "numberOfIpAddresses": "str", - "pool": {"id": "str"}, - } - ], - "natGateway": {"id": "str"}, - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ + "dnsServers": [ "str" ], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", }, - "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } + "dscpConfiguration": { + "id": "str" + }, + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": ..., + "nicType": "str", + "primary": bool, + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., }, - }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } + "tags": { + "str": "str" }, - "format": { + "type": "str", + }, + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, - "enabled": bool, }, - "targetResourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { + "id": "str", + "location": "str", "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ "str" ], - "dnsServers": [ - "str" + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ - "str" - ], - "ipConfigurations": [ - ... - ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": ..., - "nicType": "str", - "primary": bool, - "privateEndpoint": { + "loadBalancerFrontendIpConfigurations": [ + ... + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "networkInterfaces": [ + ... + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] + }, + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": ..., }, + "type": "str", + } + ], + "virtualMachine": { + "id": "str" + }, + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", "id": "str", "location": "str", "name": "str", "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "subnet": ..., + "resourceGuid": "str", }, "tags": { "str": "str" }, "type": "str", - }, - "privateLinkService": { + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", "location": "str", "name": "str", "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ - "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - ... - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", - "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, - "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "networkInterfaces": [ - ... - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", - }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": { - "str": "str" - }, - "type": "str", - }, - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "provisioningState": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, + "resourceGuid": "str", }, "tags": { "str": "str" }, "type": "str", - }, + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "privateEndpointNetworkPolicies": "str", + "privateEndpoints": [ + { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "applicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { "provisioningState": "str", "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": ..., - }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", }, "tags": { "str": "str" @@ -14574,560 +14760,511 @@ async def test_service_gateways_begin_update_services(self, resource_group): "type": "str", } ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ + "billingSku": "str", + "customDnsConfigs": [ + { + "fqdn": "str", + "ipAddresses": [ + "str" + ], + } + ], + "customNetworkInterfaceName": "str", + "ipConfigurations": [ + { + "etag": "str", + "name": "str", + "properties": { + "groupId": "str", + "memberName": "str", + "privateIPAddress": "str", + }, + "type": "str", + } + ], + "ipVersionType": "str", + "manualPrivateLinkServiceConnections": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ + "groupIds": [ "str" ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "requestMessage": "str", }, "type": "str", } ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - }, - "privateEndpointNetworkPolicies": "str", - "privateEndpoints": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "applicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "billingSku": "str", - "customDnsConfigs": [ - { - "fqdn": "str", - "ipAddresses": [ - "str" - ], - } - ], - "customNetworkInterfaceName": "str", - "ipConfigurations": [ - { - "etag": "str", + "networkInterfaces": [ + { + "etag": "str", + "extendedLocation": { "name": "str", - "properties": { - "groupId": "str", - "memberName": "str", - "privateIPAddress": "str", - }, "type": "str", - } - ], - "ipVersionType": "str", - "manualPrivateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "auxiliaryMode": "str", + "auxiliarySku": "str", + "defaultOutboundConnectivityEnabled": bool, + "disableTcpStateTracking": bool, + "dnsSettings": { + "appliedDnsServers": [ "str" ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + "dnsServers": [ + "str" + ], + "internalDnsNameLabel": "str", + "internalDomainNameSuffix": "str", + "internalFqdn": "str", }, - "type": "str", - } - ], - "networkInterfaces": [ - { - "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", + "dscpConfiguration": { + "id": "str" }, - "id": "str", - "location": "str", - "name": "str", - "properties": { - "auxiliaryMode": "str", - "auxiliarySku": "str", - "defaultOutboundConnectivityEnabled": bool, - "disableTcpStateTracking": bool, - "dnsSettings": { - "appliedDnsServers": [ - "str" - ], - "dnsServers": [ - "str" + "enableAcceleratedNetworking": bool, + "enableIPForwarding": bool, + "hostedWorkloads": [ + "str" + ], + "ipConfigurations": [ + ... + ], + "macAddress": "str", + "migrationPhase": "str", + "networkSecurityGroup": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "defaultSecurityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } ], - "internalDnsNameLabel": "str", - "internalDomainNameSuffix": "str", - "internalFqdn": "str", - }, - "dscpConfiguration": { - "id": "str" - }, - "enableAcceleratedNetworking": bool, - "enableIPForwarding": bool, - "hostedWorkloads": [ - "str" - ], - "ipConfigurations": [ - ... - ], - "macAddress": "str", - "migrationPhase": "str", - "networkSecurityGroup": { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "defaultSecurityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", - "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], - }, + "flowLogs": [ + { + "etag": "str", + "id": "str", + "identity": { + "principalId": "str", + "tenantId": "str", "type": "str", - } - ], - "flowLogs": [ - { - "etag": "str", - "id": "str", - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": { - "str": { - "clientId": "str", - "principalId": "str", - } - }, + "userAssignedIdentities": { + "str": { + "clientId": "str", + "principalId": "str", + } }, - "location": "str", - "name": "str", - "properties": { - "storageId": "str", - "targetResourceId": "str", - "enabled": bool, - "enabledFilteringCriteria": "str", - "flowAnalyticsConfiguration": { - "networkWatcherFlowAnalyticsConfiguration": { - "enabled": bool, - "trafficAnalyticsInterval": 0, - "workspaceId": "str", - "workspaceRegion": "str", - "workspaceResourceId": "str", - } - }, - "format": { - "type": "str", - "version": 0, - }, - "provisioningState": "str", - "recordTypes": "str", - "retentionPolicy": { - "days": 0, + }, + "location": "str", + "name": "str", + "properties": { + "storageId": "str", + "targetResourceId": "str", + "enabled": bool, + "enabledFilteringCriteria": "str", + "flowAnalyticsConfiguration": { + "networkWatcherFlowAnalyticsConfiguration": { "enabled": bool, - }, - "targetResourceGuid": "str", + "trafficAnalyticsInterval": 0, + "workspaceId": "str", + "workspaceRegion": "str", + "workspaceResourceId": "str", + } }, - "tags": { - "str": "str" + "format": { + "type": "str", + "version": 0, }, - "type": "str", - } - ], - "flushConnection": bool, - "networkInterfaces": [ - ... - ], - "provisioningState": "str", - "resourceGuid": "str", - "securityRules": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "access": "str", - "direction": "str", - "priority": 0, - "protocol": "str", + "provisioningState": "str", + "recordTypes": "str", + "retentionPolicy": { + "days": 0, + "enabled": bool, + }, + "targetResourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "flushConnection": bool, + "networkInterfaces": [ + ... + ], + "provisioningState": "str", + "resourceGuid": "str", + "securityRules": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "access": "str", + "direction": "str", + "priority": 0, + "protocol": "str", + "description": "str", + "destinationAddressPrefix": "str", + "destinationAddressPrefixes": [ + "str" + ], + "destinationApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "destinationPortRange": "str", + "destinationPortRanges": [ + "str" + ], + "provisioningState": "str", + "sourceAddressPrefix": "str", + "sourceAddressPrefixes": [ + "str" + ], + "sourceApplicationSecurityGroups": [ + { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "sourcePortRange": "str", + "sourcePortRanges": [ + "str" + ], + }, + "type": "str", + } + ], + "subnets": [ + ... + ], + }, + "tags": { + "str": "str" + }, + "type": "str", + }, + "nicType": "str", + "primary": bool, + "privateEndpoint": ..., + "privateLinkService": { + "etag": "str", + "extendedLocation": { + "name": "str", + "type": "str", + }, + "id": "str", + "location": "str", + "name": "str", + "properties": { + "accessMode": "str", + "alias": "str", + "autoApproval": { + "subscriptions": [ + "str" + ] + }, + "destinationIPAddress": "str", + "enableProxyProtocol": bool, + "fqdns": [ + "str" + ], + "ipConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "primary": bool, + "privateIPAddress": "str", + "privateIPAddressVersion": "str", + "privateIPAllocationMethod": "str", + "provisioningState": "str", + "subnet": ..., + }, + "type": "str", + } + ], + "loadBalancerFrontendIpConfigurations": [ + ... + ], + "networkInterfaces": [ + ... + ], + "privateEndpointConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "linkIdentifier": "str", + "privateEndpoint": ..., + "privateEndpointLocation": "str", + "privateLinkServiceConnectionState": { + "actionsRequired": "str", "description": "str", - "destinationAddressPrefix": "str", - "destinationAddressPrefixes": [ - "str" - ], - "destinationApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "destinationPortRange": "str", - "destinationPortRanges": [ - "str" - ], - "provisioningState": "str", - "sourceAddressPrefix": "str", - "sourceAddressPrefixes": [ - "str" - ], - "sourceApplicationSecurityGroups": [ - { - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "resourceGuid": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "sourcePortRange": "str", - "sourcePortRanges": [ - "str" - ], + "status": "str", }, - "type": "str", - } - ], - "subnets": [ - ... - ], - }, - "tags": { - "str": "str" + "provisioningState": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "visibility": { + "subscriptions": [ + "str" + ] }, - "type": "str", }, - "nicType": "str", - "primary": bool, - "privateEndpoint": ..., - "privateLinkService": { + "tags": { + "str": "str" + }, + "type": "str", + }, + "provisioningState": "str", + "resourceGuid": "str", + "tapConfigurations": [ + { "etag": "str", - "extendedLocation": { - "name": "str", - "type": "str", - }, "id": "str", - "location": "str", "name": "str", "properties": { - "accessMode": "str", - "alias": "str", - "autoApproval": { - "subscriptions": [ - "str" - ] - }, - "destinationIPAddress": "str", - "enableProxyProtocol": bool, - "fqdns": [ - "str" - ], - "ipConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "primary": bool, - "privateIPAddress": "str", - "privateIPAddressVersion": "str", - "privateIPAllocationMethod": "str", - "provisioningState": "str", - "subnet": ..., - }, - "type": "str", - } - ], - "loadBalancerFrontendIpConfigurations": [ - ... - ], - "networkInterfaces": [ - ... - ], - "privateEndpointConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "linkIdentifier": "str", - "privateEndpoint": ..., - "privateEndpointLocation": "str", - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "provisioningState": "str", - }, - "type": "str", - } - ], "provisioningState": "str", - "visibility": { - "subscriptions": [ - "str" - ] - }, - }, - "tags": { - "str": "str" + "virtualNetworkTap": ..., }, "type": "str", - }, - "provisioningState": "str", - "resourceGuid": "str", - "tapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": ..., - }, - "type": "str", - } - ], - "virtualMachine": { - "id": "str" - }, - "vnetEncryptionSupported": bool, - "workloadType": "str", - }, - "tags": { - "str": "str" - }, - "type": "str", - } - ], - "privateLinkServiceConnections": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "groupIds": [ - "str" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "str", - "description": "str", - "status": "str", - }, - "privateLinkServiceId": "str", - "provisioningState": "str", - "requestMessage": "str", + } + ], + "virtualMachine": { + "id": "str" }, - "type": "str", - } - ], - "provisioningState": "str", - "subnet": ..., - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "privateLinkServiceNetworkPolicies": "str", - "provisioningState": "str", - "purpose": "str", - "resourceNavigationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "link": "str", - "linkedResourceType": "str", - "provisioningState": "str", - }, - "type": "str", - } - ], - "routeTable": { + "vnetEncryptionSupported": bool, + "workloadType": "str", + }, + "tags": { + "str": "str" + }, + "type": "str", + } + ], + "privateLinkServiceConnections": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "groupIds": [ + "str" + ], + "privateLinkServiceConnectionState": { + "actionsRequired": "str", + "description": "str", + "status": "str", + }, + "privateLinkServiceId": "str", + "provisioningState": "str", + "requestMessage": "str", + }, + "type": "str", + } + ], + "provisioningState": "str", + "subnet": ..., + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + "privateLinkServiceNetworkPolicies": "str", + "provisioningState": "str", + "purpose": "str", + "resourceNavigationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "link": "str", + "linkedResourceType": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "routeTable": { + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "disableBgpRoutePropagation": bool, + "disablePeeringRoute": "str", + "provisioningState": "str", + "resourceGuid": "str", + "routes": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "nextHopType": "str", + "addressPrefix": "str", + "hasBgpOverride": bool, + "nextHop": { + "nextHopIpAddresses": [ + "str" + ] + }, + "nextHopIpAddress": "str", + "provisioningState": "str", + }, + "type": "str", + } + ], + "subnets": [...], + }, + "tags": {"str": "str"}, + "type": "str", + }, + "serviceAssociationLinks": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "allowDelete": bool, + "link": "str", + "linkedResourceType": "str", + "locations": ["str"], + "provisioningState": "str", + }, + "type": "str", + } + ], + "serviceEndpointPolicies": [ + { "etag": "str", "id": "str", + "kind": "str", "location": "str", "name": "str", "properties": { - "disableBgpRoutePropagation": bool, - "disablePeeringRoute": "str", + "contextualServiceEndpointPolicies": [ + "str" + ], "provisioningState": "str", "resourceGuid": "str", - "routes": [ + "serviceAlias": "str", + "serviceEndpointPolicyDefinitions": [ { "etag": "str", "id": "str", "name": "str", "properties": { - "nextHopType": "str", - "addressPrefix": "str", - "hasBgpOverride": bool, - "nextHop": { - "nextHopIpAddresses": [ - "str" - ] - }, - "nextHopIpAddress": "str", + "description": "str", "provisioningState": "str", + "service": "str", + "serviceResources": [ + "str" + ], }, "type": "str", } @@ -15136,150 +15273,97 @@ async def test_service_gateways_begin_update_services(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - }, - "serviceAssociationLinks": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "allowDelete": bool, - "link": "str", - "linkedResourceType": "str", - "locations": [ - "str" - ], - "provisioningState": "str", - }, - "type": "str", - } - ], - "serviceEndpointPolicies": [ - { - "etag": "str", - "id": "str", - "kind": "str", - "location": "str", - "name": "str", - "properties": { - "contextualServiceEndpointPolicies": [ - "str" - ], - "provisioningState": "str", - "resourceGuid": "str", - "serviceAlias": "str", - "serviceEndpointPolicyDefinitions": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "description": "str", - "provisioningState": "str", - "service": "str", - "serviceResources": [ - "str" - ], - }, - "type": "str", - } - ], - "subnets": [...], - }, - "tags": {"str": "str"}, - "type": "str", - } - ], - "serviceEndpoints": [ - { - "locations": ["str"], - "networkIdentifier": { - "id": "str" - }, - "provisioningState": "str", - "service": "str", - } - ], - "serviceGateway": {"id": "str"}, - "sharingScope": "str", - }, - "type": "str", + } + ], + "serviceEndpoints": [ + { + "locations": ["str"], + "networkIdentifier": { + "id": "str" + }, + "provisioningState": "str", + "service": "str", + } + ], + "serviceGateway": {"id": "str"}, + "sharingScope": "str", }, + "type": "str", }, - "type": "str", - "zones": ["str"], }, - "destinationNetworkInterfaceIPConfiguration": ..., - "destinationPort": 0, - "networkInterfaceTapConfigurations": [ - { - "etag": "str", - "id": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "virtualNetworkTap": ..., - }, - "type": "str", - } - ], - "provisioningState": "str", - "resourceGuid": "str", + "type": "str", + "zones": ["str"], }, - "tags": {"str": "str"}, - "type": "str", - } - ], - }, - "type": "str", - } - ], - "drainPeriodInSeconds": 0, - "inboundNatRules": [{"id": "str"}], - "loadBalancerBackendAddresses": [ - { - "name": "str", - "properties": { - "adminState": "str", - "inboundNatRulesPortMapping": [ - { - "backendPort": 0, - "frontendPort": 0, - "inboundNatRuleName": "str", - } - ], - "ipAddress": "str", - "loadBalancerFrontendIPConfiguration": {"id": "str"}, - "networkInterfaceIPConfiguration": {"id": "str"}, - "subnet": {"id": "str"}, - "virtualNetwork": {"id": "str"}, - }, - } - ], - "loadBalancingRules": [{"id": "str"}], - "location": "str", - "outboundRule": {"id": "str"}, - "outboundRules": [{"id": "str"}], - "provisioningState": "str", - "syncMode": "str", - "tunnelInterfaces": [ - {"identifier": 0, "port": 0, "protocol": "str", "type": "str"} - ], - "virtualNetwork": {"id": "str"}, - }, - "type": "str", - } - ], - "publicNatGatewayId": "str", - "serviceType": "str", - }, + "destinationNetworkInterfaceIPConfiguration": ..., + "destinationPort": 0, + "networkInterfaceTapConfigurations": [ + { + "etag": "str", + "id": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "virtualNetworkTap": ..., + }, + "type": "str", + } + ], + "provisioningState": "str", + "resourceGuid": "str", + }, + "tags": {"str": "str"}, + "type": "str", + } + ], + }, + "type": "str", + } + ], + "drainPeriodInSeconds": 0, + "inboundNatRules": [{"id": "str"}], + "loadBalancerBackendAddresses": [ + { + "name": "str", + "properties": { + "adminState": "str", + "inboundNatRulesPortMapping": [ + { + "backendPort": 0, + "frontendPort": 0, + "inboundNatRuleName": "str", + } + ], + "ipAddress": "str", + "loadBalancerFrontendIPConfiguration": {"id": "str"}, + "networkInterfaceIPConfiguration": {"id": "str"}, + "subnet": {"id": "str"}, + "virtualNetwork": {"id": "str"}, + }, + } + ], + "loadBalancingRules": [{"id": "str"}], + "location": "str", + "outboundRule": {"id": "str"}, + "outboundRules": [{"id": "str"}], + "provisioningState": "str", + "syncMode": "str", + "tunnelInterfaces": [ + {"identifier": 0, "port": 0, "protocol": "str", "type": "str"} + ], + "virtualNetwork": {"id": "str"}, + }, + "type": "str", + } + ], + "publicNatGatewayId": "str", + "serviceType": "str", }, - } - ], - }, - api_version="2025-07-01", - ) - ).result() # call '.result()' to poll until service return final result + }, + } + ], + }, + api_version="2025-09-01", + ) # please add some check logic here by yourself # ... @@ -15290,7 +15374,7 @@ async def test_service_gateways_get_address_locations(self, resource_group): response = self.client.service_gateways.get_address_locations( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -15302,7 +15386,7 @@ async def test_service_gateways_get_services(self, resource_group): response = self.client.service_gateways.get_services( resource_group_name=resource_group.name, service_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations.py index ff8420ce8dad..a81204f771ae 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_service_tag_information_list(self, resource_group): response = self.client.service_tag_information.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations_async.py index cb697901a286..6a88afdfd6c8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tag_information_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_service_tag_information_list(self, resource_group): response = self.client.service_tag_information.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations.py index ef746a51619f..a54fefea708f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_service_tags_list(self, resource_group): response = self.client.service_tags.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations_async.py index 8563dacaf873..af542bdd3896 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_service_tags_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_service_tags_list(self, resource_group): response = await self.client.service_tags.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations.py index 47ed29ff7507..30e760f8759e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations.py @@ -26,7 +26,7 @@ def test_static_cidrs_get(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ def test_static_cidrs_create(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ def test_static_cidrs_begin_delete(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_static_cidrs_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations_async.py index 87a3a37112f7..ed030dd7687e 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_cidrs_operations_async.py @@ -27,7 +27,7 @@ async def test_static_cidrs_get(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -41,7 +41,7 @@ async def test_static_cidrs_create(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_static_cidrs_begin_delete(self, resource_group): network_manager_name="str", pool_name="str", static_cidr_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -70,7 +70,7 @@ async def test_static_cidrs_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", pool_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations.py index 1d0426d389e1..c9ca07c9bce4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations.py @@ -26,7 +26,7 @@ def test_static_members_get(self, resource_group): network_manager_name="str", network_group_name="str", static_member_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -55,7 +55,7 @@ def test_static_members_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ def test_static_members_delete(self, resource_group): network_manager_name="str", network_group_name="str", static_member_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_static_members_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations_async.py index 3180e9972302..0cd95e6e4cd6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_static_members_operations_async.py @@ -27,7 +27,7 @@ async def test_static_members_get(self, resource_group): network_manager_name="str", network_group_name="str", static_member_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_static_members_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ async def test_static_members_delete(self, resource_group): network_manager_name="str", network_group_name="str", static_member_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_static_members_list(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", network_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations.py index 2f600e128316..d705d92686db 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations.py @@ -25,7 +25,7 @@ def test_subgroups_get(self, resource_group): resource_group_name=resource_group.name, interconnect_group_name="str", subgroup_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_subgroups_list(self, resource_group): response = self.client.subgroups.list( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations_async.py index 80117d888053..c6bf4848e281 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subgroups_operations_async.py @@ -26,7 +26,7 @@ async def test_subgroups_get(self, resource_group): resource_group_name=resource_group.name, interconnect_group_name="str", subgroup_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_subgroups_list(self, resource_group): response = self.client.subgroups.list( resource_group_name=resource_group.name, interconnect_group_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations.py index 7803e5c1d008..104fe8ea81b5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations.py @@ -26,7 +26,7 @@ def test_subnets_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -106,7 +106,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -138,6 +138,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -418,7 +419,13 @@ def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -450,6 +457,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -472,6 +480,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -518,7 +527,11 @@ def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -561,6 +574,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -721,6 +735,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -763,7 +778,13 @@ def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -795,6 +816,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -938,6 +960,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -984,7 +1007,11 @@ def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1025,6 +1052,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1198,7 +1226,11 @@ def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1239,6 +1271,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1555,7 +1588,13 @@ def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1587,6 +1626,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1609,6 +1649,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1660,6 +1701,7 @@ def test_subnets_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1707,6 +1749,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1942,6 +1985,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1984,7 +2028,13 @@ def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2016,6 +2066,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2078,6 +2129,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2124,7 +2176,11 @@ def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2167,6 +2223,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2345,7 +2402,11 @@ def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2388,6 +2449,7 @@ def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2548,7 +2610,7 @@ def test_subnets_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2561,7 +2623,7 @@ def test_subnets_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2573,7 +2635,7 @@ def test_subnets_list(self, resource_group): response = self.client.subnets.list( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2602,7 +2664,7 @@ def test_subnets_begin_prepare_network_policies(self, resource_group): ], "serviceName": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2616,7 +2678,7 @@ def test_subnets_begin_unprepare_network_policies(self, resource_group): virtual_network_name="str", subnet_name="str", unprepare_network_policies_request_parameters={"serviceName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations_async.py index beb6a683fdcf..f6c68e3ea1d6 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subnets_operations_async.py @@ -27,7 +27,7 @@ async def test_subnets_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -108,7 +108,9 @@ async def test_subnets_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -140,6 +142,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -422,7 +425,13 @@ async def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -454,6 +463,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -476,6 +486,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -527,6 +538,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -574,6 +586,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -734,6 +747,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -776,7 +790,13 @@ async def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -808,6 +828,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -953,6 +974,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -999,7 +1021,11 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1042,6 +1068,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1220,7 +1247,11 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1263,6 +1294,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1579,7 +1611,13 @@ async def test_subnets_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1611,6 +1649,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1633,6 +1672,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1684,6 +1724,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1733,6 +1774,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1971,6 +2013,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2017,7 +2060,11 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2058,6 +2105,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2120,6 +2168,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2171,6 +2220,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2218,6 +2268,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2413,6 +2464,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2460,6 +2512,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2620,7 +2673,7 @@ async def test_subnets_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2635,7 +2688,7 @@ async def test_subnets_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", subnet_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2648,7 +2701,7 @@ async def test_subnets_list(self, resource_group): response = self.client.subnets.list( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2678,7 +2731,7 @@ async def test_subnets_begin_prepare_network_policies(self, resource_group): ], "serviceName": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2694,7 +2747,7 @@ async def test_subnets_begin_unprepare_network_policies(self, resource_group): virtual_network_name="str", subnet_name="str", unprepare_network_policies_request_parameters={"serviceName": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations.py index 248e69cde8e9..7d3fd168285d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_subscription_network_manager_connections_get(self, resource_group): response = self.client.subscription_network_manager_connections.get( network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -49,7 +49,7 @@ def test_subscription_network_manager_connections_create_or_update(self, resourc }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_subscription_network_manager_connections_create_or_update(self, resourc def test_subscription_network_manager_connections_delete(self, resource_group): response = self.client.subscription_network_manager_connections.delete( network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_subscription_network_manager_connections_delete(self, resource_group): @recorded_by_proxy def test_subscription_network_manager_connections_list(self, resource_group): response = self.client.subscription_network_manager_connections.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations_async.py index 952a8ac6bf13..f3a876ad85c2 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_subscription_network_manager_connections_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_subscription_network_manager_connections_get(self, resource_group): response = await self.client.subscription_network_manager_connections.get( network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ async def test_subscription_network_manager_connections_create_or_update(self, r }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -61,7 +61,7 @@ async def test_subscription_network_manager_connections_create_or_update(self, r async def test_subscription_network_manager_connections_delete(self, resource_group): response = await self.client.subscription_network_manager_connections.delete( network_manager_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -71,7 +71,7 @@ async def test_subscription_network_manager_connections_delete(self, resource_gr @recorded_by_proxy_async async def test_subscription_network_manager_connections_list(self, resource_group): response = self.client.subscription_network_manager_connections.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations.py index 9ca328ee336c..4231e51d9144 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations_async.py index de8ac817fa1a..60e106c0a4cd 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_usages_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations.py index e836d855703b..3d531c3d0bc4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations.py @@ -25,7 +25,7 @@ def test_verifier_workspaces_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -55,7 +55,7 @@ def test_verifier_workspaces_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ def test_verifier_workspaces_update(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -81,7 +81,7 @@ def test_verifier_workspaces_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -93,7 +93,7 @@ def test_verifier_workspaces_list(self, resource_group): response = self.client.verifier_workspaces.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations_async.py index 6fdfdef1e87b..985bb26d2d69 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_verifier_workspaces_operations_async.py @@ -26,7 +26,7 @@ async def test_verifier_workspaces_get(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_verifier_workspaces_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ async def test_verifier_workspaces_update(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_verifier_workspaces_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_manager_name="str", workspace_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_verifier_workspaces_list(self, resource_group): response = self.client.verifier_workspaces.list( resource_group_name=resource_group.name, network_manager_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations.py index cb0f3388cdeb..21b282602a8c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations.py @@ -24,7 +24,7 @@ def test_vip_swap_get(self, resource_group): response = self.client.vip_swap.get( group_name="str", resource_name="str", - api_version="2025-07-01", + api_version="2025-09-01", singleton_resource="swap", ) @@ -38,7 +38,7 @@ def test_vip_swap_begin_create(self, resource_group): group_name="str", resource_name="str", parameters={"id": "str", "name": "str", "properties": {"slotType": "str"}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", singleton_resource="swap", ).result() # call '.result()' to poll until service return final result @@ -51,7 +51,7 @@ def test_vip_swap_list(self, resource_group): response = self.client.vip_swap.list( group_name="str", resource_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations_async.py index 6f75c2756a05..3eb1ebcadfd3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vip_swap_operations_async.py @@ -25,7 +25,7 @@ async def test_vip_swap_get(self, resource_group): response = await self.client.vip_swap.get( group_name="str", resource_name="str", - api_version="2025-07-01", + api_version="2025-09-01", singleton_resource="swap", ) @@ -40,7 +40,7 @@ async def test_vip_swap_begin_create(self, resource_group): group_name="str", resource_name="str", parameters={"id": "str", "name": "str", "properties": {"slotType": "str"}, "type": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", singleton_resource="swap", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +54,7 @@ async def test_vip_swap_list(self, resource_group): response = await self.client.vip_swap.list( group_name="str", resource_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations.py index 3229f86f8431..7e870d28098d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations.py @@ -25,7 +25,7 @@ def test_virtual_appliance_sites_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -49,7 +49,7 @@ def test_virtual_appliance_sites_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -62,7 +62,7 @@ def test_virtual_appliance_sites_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_virtual_appliance_sites_list(self, resource_group): response = self.client.virtual_appliance_sites.list( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations_async.py index 302da0eafa77..bfc683af060a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_sites_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_appliance_sites_get(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_virtual_appliance_sites_begin_create_or_update(self, resource_gro }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -66,7 +66,7 @@ async def test_virtual_appliance_sites_begin_delete(self, resource_group): resource_group_name=resource_group.name, network_virtual_appliance_name="str", site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -79,7 +79,7 @@ async def test_virtual_appliance_sites_list(self, resource_group): response = self.client.virtual_appliance_sites.list( resource_group_name=resource_group.name, network_virtual_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations.py index 491486ec5699..1b3fca714700 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_appliance_skus_get(self, resource_group): response = self.client.virtual_appliance_skus.get( sku_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_virtual_appliance_skus_get(self, resource_group): @recorded_by_proxy def test_virtual_appliance_skus_list(self, resource_group): response = self.client.virtual_appliance_skus.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations_async.py index e318f87ffeef..f8ca1f8d4214 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_appliance_skus_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_appliance_skus_get(self, resource_group): response = await self.client.virtual_appliance_skus.get( sku_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_virtual_appliance_skus_get(self, resource_group): @recorded_by_proxy_async async def test_virtual_appliance_skus_list(self, resource_group): response = self.client.virtual_appliance_skus.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations.py index 8ee2b69731ea..98380a160263 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations.py @@ -25,7 +25,7 @@ def test_virtual_hub_bgp_connection_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_virtual_hub_bgp_connection_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_virtual_hub_bgp_connection_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations_async.py index 2a6fc1e31def..9aee6b0f8765 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connection_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_hub_bgp_connection_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ async def test_virtual_hub_bgp_connection_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -84,7 +84,7 @@ async def test_virtual_hub_bgp_connection_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations.py index 121af21661f0..3286ba597ede 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations.py @@ -24,7 +24,7 @@ def test_virtual_hub_bgp_connections_list(self, resource_group): response = self.client.virtual_hub_bgp_connections.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_virtual_hub_bgp_connections_begin_list_learned_routes(self, resource_gr resource_group_name=resource_group.name, hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_virtual_hub_bgp_connections_begin_list_advertised_routes(self, resource resource_group_name=resource_group.name, hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations_async.py index 541bb50eb48c..3619d2efe36b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_bgp_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_hub_bgp_connections_list(self, resource_group): response = self.client.virtual_hub_bgp_connections.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_virtual_hub_bgp_connections_begin_list_learned_routes(self, resou resource_group_name=resource_group.name, hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +54,7 @@ async def test_virtual_hub_bgp_connections_begin_list_advertised_routes(self, re resource_group_name=resource_group.name, hub_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations.py index e40dae8c845b..9cc409e19c45 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations.py @@ -26,7 +26,7 @@ def test_virtual_hub_ip_configuration_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", ip_config_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -407,6 +407,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -589,6 +590,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -758,6 +760,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1274,6 +1277,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1553,6 +1557,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1631,6 +1636,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1979,7 +1985,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2011,6 +2017,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2088,7 +2095,9 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2120,6 +2129,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2412,7 +2422,13 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2444,6 +2460,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2466,6 +2483,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2517,6 +2535,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2566,6 +2585,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2729,6 +2749,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2775,7 +2796,11 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2816,6 +2841,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2964,6 +2990,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3015,6 +3042,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3062,6 +3090,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3257,6 +3286,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3304,6 +3334,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3626,7 +3657,13 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -3658,6 +3695,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3682,6 +3720,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3737,6 +3776,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3788,6 +3828,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4031,6 +4072,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4077,7 +4119,11 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -4120,6 +4166,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4182,6 +4229,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4233,6 +4281,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4282,6 +4331,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4484,6 +4534,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4533,6 +4584,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4703,7 +4755,7 @@ def test_virtual_hub_ip_configuration_begin_create_or_update(self, resource_grou }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -4716,7 +4768,7 @@ def test_virtual_hub_ip_configuration_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", ip_config_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -4728,7 +4780,7 @@ def test_virtual_hub_ip_configuration_list(self, resource_group): response = self.client.virtual_hub_ip_configuration.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations_async.py index 2146b6218d3d..0c39a5833081 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_ip_configuration_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_hub_ip_configuration_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", ip_config_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -416,6 +416,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -604,6 +605,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -781,6 +783,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1303,6 +1306,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1600,6 +1604,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1682,6 +1687,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2032,7 +2038,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2064,6 +2070,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2141,7 +2148,13 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2173,6 +2186,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2465,7 +2479,13 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -2497,6 +2517,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2521,6 +2542,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2576,6 +2598,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2627,6 +2650,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2794,6 +2818,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2840,7 +2865,11 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2883,6 +2912,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3034,6 +3064,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -3085,6 +3116,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3134,6 +3166,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3336,6 +3369,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3385,6 +3419,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3718,7 +3753,11 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -3759,6 +3798,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3783,6 +3823,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3844,6 +3885,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3909,6 +3951,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4155,6 +4198,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4206,6 +4250,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4253,6 +4298,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4317,6 +4363,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4372,6 +4419,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4423,6 +4471,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4627,6 +4676,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4678,6 +4728,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -4848,7 +4899,7 @@ async def test_virtual_hub_ip_configuration_begin_create_or_update(self, resourc }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -4863,7 +4914,7 @@ async def test_virtual_hub_ip_configuration_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", ip_config_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -4876,7 +4927,7 @@ async def test_virtual_hub_ip_configuration_list(self, resource_group): response = self.client.virtual_hub_ip_configuration.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations.py index 3e1a8eb99cd1..e314e6d873ba 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations.py @@ -25,7 +25,7 @@ def test_virtual_hub_route_table_v2_s_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_virtual_hub_route_table_v2_s_begin_create_or_update(self, resource_grou ], }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_virtual_hub_route_table_v2_s_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_virtual_hub_route_table_v2_s_list(self, resource_group): response = self.client.virtual_hub_route_table_v2_s.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations_async.py index 11c510b79245..189abdd0eb21 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hub_route_table_v2_soperations_async.py @@ -26,7 +26,7 @@ async def test_virtual_hub_route_table_v2_s_get(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -57,7 +57,7 @@ async def test_virtual_hub_route_table_v2_s_begin_create_or_update(self, resourc ], }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -72,7 +72,7 @@ async def test_virtual_hub_route_table_v2_s_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", route_table_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -85,7 +85,7 @@ async def test_virtual_hub_route_table_v2_s_list(self, resource_group): response = self.client.virtual_hub_route_table_v2_s.list( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations.py index b2892683b9d4..98e021fac06d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations.py @@ -24,7 +24,7 @@ def test_virtual_hubs_get(self, resource_group): response = self.client.virtual_hubs.get( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -44,6 +44,7 @@ def test_virtual_hubs_begin_create_or_update(self, resource_group): "name": "str", "properties": { "addressPrefix": "str", + "addressPrefixV6": "str", "allowBranchToBranchTraffic": bool, "azureFirewall": {"id": "str"}, "bgpConnections": [{"id": "str"}], @@ -81,13 +82,14 @@ def test_virtual_hubs_begin_create_or_update(self, resource_group): "virtualRouterAsn": 0, "virtualRouterAutoScaleConfiguration": {"minCapacity": 0}, "virtualRouterIps": ["str"], + "virtualRouterIpsV6": ["str"], "virtualWan": {"id": "str"}, "vpnGateway": {"id": "str"}, }, "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +102,7 @@ def test_virtual_hubs_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", virtual_hub_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -112,7 +114,7 @@ def test_virtual_hubs_begin_delete(self, resource_group): response = self.client.virtual_hubs.begin_delete( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -123,7 +125,7 @@ def test_virtual_hubs_begin_delete(self, resource_group): def test_virtual_hubs_list_by_resource_group(self, resource_group): response = self.client.virtual_hubs.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -133,7 +135,7 @@ def test_virtual_hubs_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_virtual_hubs_list(self, resource_group): response = self.client.virtual_hubs.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -145,7 +147,7 @@ def test_virtual_hubs_begin_get_effective_virtual_hub_routes(self, resource_grou response = self.client.virtual_hubs.begin_get_effective_virtual_hub_routes( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -158,7 +160,7 @@ def test_virtual_hubs_begin_get_inbound_routes(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", get_inbound_routes_parameters={"connectionType": "str", "resourceUri": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -171,7 +173,7 @@ def test_virtual_hubs_begin_get_outbound_routes(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", get_outbound_routes_parameters={"connectionType": "str", "resourceUri": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations_async.py index 65b95269d9eb..0279727a4b71 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_hubs_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_hubs_get(self, resource_group): response = await self.client.virtual_hubs.get( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -46,6 +46,7 @@ async def test_virtual_hubs_begin_create_or_update(self, resource_group): "name": "str", "properties": { "addressPrefix": "str", + "addressPrefixV6": "str", "allowBranchToBranchTraffic": bool, "azureFirewall": {"id": "str"}, "bgpConnections": [{"id": "str"}], @@ -83,13 +84,14 @@ async def test_virtual_hubs_begin_create_or_update(self, resource_group): "virtualRouterAsn": 0, "virtualRouterAutoScaleConfiguration": {"minCapacity": 0}, "virtualRouterIps": ["str"], + "virtualRouterIpsV6": ["str"], "virtualWan": {"id": "str"}, "vpnGateway": {"id": "str"}, }, "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -103,7 +105,7 @@ async def test_virtual_hubs_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", virtual_hub_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -116,7 +118,7 @@ async def test_virtual_hubs_begin_delete(self, resource_group): await self.client.virtual_hubs.begin_delete( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -128,7 +130,7 @@ async def test_virtual_hubs_begin_delete(self, resource_group): async def test_virtual_hubs_list_by_resource_group(self, resource_group): response = self.client.virtual_hubs.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -138,7 +140,7 @@ async def test_virtual_hubs_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_virtual_hubs_list(self, resource_group): response = self.client.virtual_hubs.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -151,7 +153,7 @@ async def test_virtual_hubs_begin_get_effective_virtual_hub_routes(self, resourc await self.client.virtual_hubs.begin_get_effective_virtual_hub_routes( resource_group_name=resource_group.name, virtual_hub_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -166,7 +168,7 @@ async def test_virtual_hubs_begin_get_inbound_routes(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", get_inbound_routes_parameters={"connectionType": "str", "resourceUri": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -181,7 +183,7 @@ async def test_virtual_hubs_begin_get_outbound_routes(self, resource_group): resource_group_name=resource_group.name, virtual_hub_name="str", get_outbound_routes_parameters={"connectionType": "str", "resourceUri": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations.py index ee3c9057e56f..df0ba3292f78 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations.py @@ -25,7 +25,7 @@ def test_virtual_network_appliances_get(self, resource_group): response = self.client.virtual_network_appliances.get( resource_group_name=resource_group.name, virtual_network_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -133,7 +133,9 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + {"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"} + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -165,6 +167,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -457,7 +460,13 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -489,6 +498,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -511,6 +521,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -562,6 +573,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -611,6 +623,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -774,6 +787,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -820,7 +834,11 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -861,6 +879,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1009,6 +1028,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1060,6 +1080,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1107,6 +1128,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1302,6 +1324,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1349,6 +1372,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1671,7 +1695,13 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1703,6 +1733,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1727,6 +1758,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1782,6 +1814,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1833,6 +1866,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2076,6 +2110,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2122,7 +2157,11 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2165,6 +2204,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2227,6 +2267,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2278,6 +2319,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2327,6 +2369,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2529,6 +2572,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2578,6 +2622,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2749,7 +2794,7 @@ def test_virtual_network_appliances_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2762,7 +2807,7 @@ def test_virtual_network_appliances_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_appliance_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2774,7 +2819,7 @@ def test_virtual_network_appliances_begin_delete(self, resource_group): response = self.client.virtual_network_appliances.begin_delete( resource_group_name=resource_group.name, virtual_network_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2785,7 +2830,7 @@ def test_virtual_network_appliances_begin_delete(self, resource_group): def test_virtual_network_appliances_list(self, resource_group): response = self.client.virtual_network_appliances.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2795,7 +2840,7 @@ def test_virtual_network_appliances_list(self, resource_group): @recorded_by_proxy def test_virtual_network_appliances_list_all(self, resource_group): response = self.client.virtual_network_appliances.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations_async.py index 1f86b2ed87ff..67b91f64af07 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_appliances_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_network_appliances_get(self, resource_group): response = await self.client.virtual_network_appliances.get( resource_group_name=resource_group.name, virtual_network_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -135,7 +135,13 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -167,6 +173,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -459,7 +466,13 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -491,6 +504,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -515,6 +529,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -570,6 +585,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -621,6 +637,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -788,6 +805,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -834,7 +852,11 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -877,6 +899,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1028,6 +1051,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1079,6 +1103,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1128,6 +1153,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1330,6 +1356,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1379,6 +1406,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1712,7 +1740,11 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1753,6 +1785,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1777,6 +1810,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1838,6 +1872,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1903,6 +1938,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2149,6 +2185,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2200,6 +2237,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2247,6 +2285,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2311,6 +2350,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2366,6 +2406,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2417,6 +2458,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2621,6 +2663,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2672,6 +2715,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2843,7 +2887,7 @@ async def test_virtual_network_appliances_begin_create_or_update(self, resource_ "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2857,7 +2901,7 @@ async def test_virtual_network_appliances_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_appliance_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2870,7 +2914,7 @@ async def test_virtual_network_appliances_begin_delete(self, resource_group): await self.client.virtual_network_appliances.begin_delete( resource_group_name=resource_group.name, virtual_network_appliance_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -2882,7 +2926,7 @@ async def test_virtual_network_appliances_begin_delete(self, resource_group): async def test_virtual_network_appliances_list(self, resource_group): response = self.client.virtual_network_appliances.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -2892,7 +2936,7 @@ async def test_virtual_network_appliances_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_network_appliances_list_all(self, resource_group): response = self.client.virtual_network_appliances.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations.py index 99f0ae4e3c73..51f3bcd1f14c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations.py @@ -24,7 +24,7 @@ def test_virtual_network_gateway_connections_get(self, resource_group): response = self.client.virtual_network_gateway_connections.get( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -513,7 +513,7 @@ def test_virtual_network_gateway_connections_begin_create_or_update(self, resour "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -526,7 +526,7 @@ def test_virtual_network_gateway_connections_begin_update_tags(self, resource_gr resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -538,7 +538,7 @@ def test_virtual_network_gateway_connections_begin_delete(self, resource_group): response = self.client.virtual_network_gateway_connections.begin_delete( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -549,7 +549,7 @@ def test_virtual_network_gateway_connections_begin_delete(self, resource_group): def test_virtual_network_gateway_connections_list(self, resource_group): response = self.client.virtual_network_gateway_connections.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -562,7 +562,7 @@ def test_virtual_network_gateway_connections_begin_set_shared_key(self, resource resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"value": "str", "id": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -574,7 +574,7 @@ def test_virtual_network_gateway_connections_get_shared_key(self, resource_group response = self.client.virtual_network_gateway_connections.get_shared_key( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -587,7 +587,7 @@ def test_virtual_network_gateway_connections_begin_reset_shared_key(self, resour resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"keyLength": 0}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -599,7 +599,7 @@ def test_virtual_network_gateway_connections_begin_start_packet_capture(self, re response = self.client.virtual_network_gateway_connections.begin_start_packet_capture( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -612,7 +612,7 @@ def test_virtual_network_gateway_connections_begin_stop_packet_capture(self, res resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"sasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -624,7 +624,7 @@ def test_virtual_network_gateway_connections_begin_get_ike_sas(self, resource_gr response = self.client.virtual_network_gateway_connections.begin_get_ike_sas( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -636,7 +636,7 @@ def test_virtual_network_gateway_connections_begin_reset_connection(self, resour response = self.client.virtual_network_gateway_connections.begin_reset_connection( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations_async.py index f23a97d629f4..988e2033f7a4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_network_gateway_connections_get(self, resource_group): response = await self.client.virtual_network_gateway_connections.get( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -525,7 +525,7 @@ async def test_virtual_network_gateway_connections_begin_create_or_update(self, "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -540,7 +540,7 @@ async def test_virtual_network_gateway_connections_begin_update_tags(self, resou resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -554,7 +554,7 @@ async def test_virtual_network_gateway_connections_begin_delete(self, resource_g await self.client.virtual_network_gateway_connections.begin_delete( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -566,7 +566,7 @@ async def test_virtual_network_gateway_connections_begin_delete(self, resource_g async def test_virtual_network_gateway_connections_list(self, resource_group): response = self.client.virtual_network_gateway_connections.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -580,7 +580,7 @@ async def test_virtual_network_gateway_connections_begin_set_shared_key(self, re resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"value": "str", "id": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -593,7 +593,7 @@ async def test_virtual_network_gateway_connections_get_shared_key(self, resource response = await self.client.virtual_network_gateway_connections.get_shared_key( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -607,7 +607,7 @@ async def test_virtual_network_gateway_connections_begin_reset_shared_key(self, resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"keyLength": 0}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -621,7 +621,7 @@ async def test_virtual_network_gateway_connections_begin_start_packet_capture(se await self.client.virtual_network_gateway_connections.begin_start_packet_capture( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -636,7 +636,7 @@ async def test_virtual_network_gateway_connections_begin_stop_packet_capture(sel resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"sasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -650,7 +650,7 @@ async def test_virtual_network_gateway_connections_begin_get_ike_sas(self, resou await self.client.virtual_network_gateway_connections.begin_get_ike_sas( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -664,7 +664,7 @@ async def test_virtual_network_gateway_connections_begin_reset_connection(self, await self.client.virtual_network_gateway_connections.begin_reset_connection( resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations.py index 284e2fc9eedb..7fe8476fb1ee 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations.py @@ -25,7 +25,7 @@ def test_virtual_network_gateway_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_virtual_network_gateway_nat_rules_begin_create_or_update(self, resource }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_virtual_network_gateway_nat_rules_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_virtual_network_gateway_nat_rules_list_by_virtual_network_gateway(self, response = self.client.virtual_network_gateway_nat_rules.list_by_virtual_network_gateway( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations_async.py index 084a5e047a91..47f9747911ba 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateway_nat_rules_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_network_gateway_nat_rules_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_virtual_network_gateway_nat_rules_begin_create_or_update(self, re }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -69,7 +69,7 @@ async def test_virtual_network_gateway_nat_rules_begin_delete(self, resource_gro resource_group_name=resource_group.name, virtual_network_gateway_name="str", nat_rule_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -82,7 +82,7 @@ async def test_virtual_network_gateway_nat_rules_list_by_virtual_network_gateway response = self.client.virtual_network_gateway_nat_rules.list_by_virtual_network_gateway( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations.py index b46b1b18dbe9..fd637362b29a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations.py @@ -24,7 +24,7 @@ def test_virtual_network_gateways_get(self, resource_group): response = self.client.virtual_network_gateways.get( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -209,7 +209,7 @@ def test_virtual_network_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -222,7 +222,7 @@ def test_virtual_network_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -234,7 +234,7 @@ def test_virtual_network_gateways_begin_delete(self, resource_group): response = self.client.virtual_network_gateways.begin_delete( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -245,7 +245,7 @@ def test_virtual_network_gateways_begin_delete(self, resource_group): def test_virtual_network_gateways_list(self, resource_group): response = self.client.virtual_network_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -257,7 +257,7 @@ def test_virtual_network_gateways_list_connections(self, resource_group): response = self.client.virtual_network_gateways.list_connections( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -269,7 +269,7 @@ def test_virtual_network_gateways_begin_reset(self, resource_group): response = self.client.virtual_network_gateways.begin_reset( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -281,7 +281,7 @@ def test_virtual_network_gateways_begin_reset_vpn_client_shared_key(self, resour response = self.client.virtual_network_gateways.begin_reset_vpn_client_shared_key( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -299,7 +299,7 @@ def test_virtual_network_gateways_begin_generatevpnclientpackage(self, resource_ "processorArchitecture": "str", "radiusServerAuthCertificate": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -317,7 +317,7 @@ def test_virtual_network_gateways_begin_generate_vpn_profile(self, resource_grou "processorArchitecture": "str", "radiusServerAuthCertificate": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -329,7 +329,7 @@ def test_virtual_network_gateways_begin_get_vpn_profile_package_url(self, resour response = self.client.virtual_network_gateways.begin_get_vpn_profile_package_url( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -341,7 +341,7 @@ def test_virtual_network_gateways_begin_get_bgp_peer_status(self, resource_group response = self.client.virtual_network_gateways.begin_get_bgp_peer_status( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -353,7 +353,7 @@ def test_virtual_network_gateways_supported_vpn_devices(self, resource_group): response = self.client.virtual_network_gateways.supported_vpn_devices( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -365,7 +365,7 @@ def test_virtual_network_gateways_list_radius_secrets(self, resource_group): response = self.client.virtual_network_gateways.list_radius_secrets( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -377,7 +377,7 @@ def test_virtual_network_gateways_begin_get_learned_routes(self, resource_group) response = self.client.virtual_network_gateways.begin_get_learned_routes( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -390,7 +390,19 @@ def test_virtual_network_gateways_begin_get_advertised_routes(self, resource_gro resource_group_name=resource_group.name, virtual_network_gateway_name="str", peer="str", - api_version="2025-07-01", + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_network_gateways_begin_get_effective_routes(self, resource_group): + response = self.client.virtual_network_gateways.begin_get_effective_routes( + resource_group_name=resource_group.name, + virtual_network_gateway_name="str", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -402,7 +414,7 @@ def test_virtual_network_gateways_begin_get_resiliency_information(self, resourc response = self.client.virtual_network_gateways.begin_get_resiliency_information( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -414,7 +426,7 @@ def test_virtual_network_gateways_begin_get_routes_information(self, resource_gr response = self.client.virtual_network_gateways.begin_get_routes_information( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -436,7 +448,7 @@ def test_virtual_network_gateways_begin_set_vpnclient_ipsec_parameters(self, res "saDataSizeKilobytes": 0, "saLifeTimeSeconds": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -448,7 +460,7 @@ def test_virtual_network_gateways_begin_get_vpnclient_ipsec_parameters(self, res response = self.client.virtual_network_gateways.begin_get_vpnclient_ipsec_parameters( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -460,7 +472,7 @@ def test_virtual_network_gateways_begin_start_packet_capture(self, resource_grou response = self.client.virtual_network_gateways.begin_start_packet_capture( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -473,7 +485,7 @@ def test_virtual_network_gateways_begin_stop_packet_capture(self, resource_group resource_group_name=resource_group.name, virtual_network_gateway_name="str", parameters={"sasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -487,7 +499,7 @@ def test_virtual_network_gateways_begin_get_failover_all_test_details(self, reso virtual_network_gateway_name="str", type="str", fetch_latest=bool, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -501,7 +513,7 @@ def test_virtual_network_gateways_begin_get_failover_single_test_details(self, r virtual_network_gateway_name="str", peering_location="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -514,7 +526,7 @@ def test_virtual_network_gateways_begin_start_express_route_site_failover_simula resource_group_name=resource_group.name, virtual_network_gateway_name="str", peering_location="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -531,7 +543,7 @@ def test_virtual_network_gateways_begin_stop_express_route_site_failover_simulat "peeringLocation": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -543,7 +555,7 @@ def test_virtual_network_gateways_begin_get_vpnclient_connection_health(self, re response = self.client.virtual_network_gateways.begin_get_vpnclient_connection_health( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -556,7 +568,7 @@ def test_virtual_network_gateways_begin_disconnect_virtual_network_gateway_vpn_c resource_group_name=resource_group.name, virtual_network_gateway_name="str", request={"vpnConnectionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -569,7 +581,7 @@ def test_virtual_network_gateways_begin_invoke_prepare_migration(self, resource_ resource_group_name=resource_group.name, virtual_network_gateway_name="str", migration_params={"migrationType": "str", "resourceUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -581,7 +593,7 @@ def test_virtual_network_gateways_begin_invoke_execute_migration(self, resource_ response = self.client.virtual_network_gateways.begin_invoke_execute_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -593,7 +605,7 @@ def test_virtual_network_gateways_begin_invoke_commit_migration(self, resource_g response = self.client.virtual_network_gateways.begin_invoke_commit_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -605,7 +617,7 @@ def test_virtual_network_gateways_begin_invoke_abort_migration(self, resource_gr response = self.client.virtual_network_gateways.begin_invoke_abort_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -618,7 +630,7 @@ def test_virtual_network_gateways_vpn_device_configuration_script(self, resource resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"deviceFamily": "str", "firmwareVersion": "str", "vendor": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations_async.py index 4ccc6007d391..d7afa510ee3a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_network_gateways_get(self, resource_group): response = await self.client.virtual_network_gateways.get( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -215,7 +215,7 @@ async def test_virtual_network_gateways_begin_create_or_update(self, resource_gr "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -230,7 +230,7 @@ async def test_virtual_network_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_gateway_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -244,7 +244,7 @@ async def test_virtual_network_gateways_begin_delete(self, resource_group): await self.client.virtual_network_gateways.begin_delete( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -256,7 +256,7 @@ async def test_virtual_network_gateways_begin_delete(self, resource_group): async def test_virtual_network_gateways_list(self, resource_group): response = self.client.virtual_network_gateways.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -268,7 +268,7 @@ async def test_virtual_network_gateways_list_connections(self, resource_group): response = self.client.virtual_network_gateways.list_connections( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -281,7 +281,7 @@ async def test_virtual_network_gateways_begin_reset(self, resource_group): await self.client.virtual_network_gateways.begin_reset( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -295,7 +295,7 @@ async def test_virtual_network_gateways_begin_reset_vpn_client_shared_key(self, await self.client.virtual_network_gateways.begin_reset_vpn_client_shared_key( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -315,7 +315,7 @@ async def test_virtual_network_gateways_begin_generatevpnclientpackage(self, res "processorArchitecture": "str", "radiusServerAuthCertificate": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -335,7 +335,7 @@ async def test_virtual_network_gateways_begin_generate_vpn_profile(self, resourc "processorArchitecture": "str", "radiusServerAuthCertificate": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -349,7 +349,7 @@ async def test_virtual_network_gateways_begin_get_vpn_profile_package_url(self, await self.client.virtual_network_gateways.begin_get_vpn_profile_package_url( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -363,7 +363,7 @@ async def test_virtual_network_gateways_begin_get_bgp_peer_status(self, resource await self.client.virtual_network_gateways.begin_get_bgp_peer_status( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -376,7 +376,7 @@ async def test_virtual_network_gateways_supported_vpn_devices(self, resource_gro response = await self.client.virtual_network_gateways.supported_vpn_devices( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -388,7 +388,7 @@ async def test_virtual_network_gateways_list_radius_secrets(self, resource_group response = await self.client.virtual_network_gateways.list_radius_secrets( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -401,7 +401,7 @@ async def test_virtual_network_gateways_begin_get_learned_routes(self, resource_ await self.client.virtual_network_gateways.begin_get_learned_routes( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -416,7 +416,21 @@ async def test_virtual_network_gateways_begin_get_advertised_routes(self, resour resource_group_name=resource_group.name, virtual_network_gateway_name="str", peer="str", - api_version="2025-07-01", + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_network_gateways_begin_get_effective_routes(self, resource_group): + response = await ( + await self.client.virtual_network_gateways.begin_get_effective_routes( + resource_group_name=resource_group.name, + virtual_network_gateway_name="str", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -430,7 +444,7 @@ async def test_virtual_network_gateways_begin_get_resiliency_information(self, r await self.client.virtual_network_gateways.begin_get_resiliency_information( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -444,7 +458,7 @@ async def test_virtual_network_gateways_begin_get_routes_information(self, resou await self.client.virtual_network_gateways.begin_get_routes_information( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -468,7 +482,7 @@ async def test_virtual_network_gateways_begin_set_vpnclient_ipsec_parameters(sel "saDataSizeKilobytes": 0, "saLifeTimeSeconds": 0, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -482,7 +496,7 @@ async def test_virtual_network_gateways_begin_get_vpnclient_ipsec_parameters(sel await self.client.virtual_network_gateways.begin_get_vpnclient_ipsec_parameters( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -496,7 +510,7 @@ async def test_virtual_network_gateways_begin_start_packet_capture(self, resourc await self.client.virtual_network_gateways.begin_start_packet_capture( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -511,7 +525,7 @@ async def test_virtual_network_gateways_begin_stop_packet_capture(self, resource resource_group_name=resource_group.name, virtual_network_gateway_name="str", parameters={"sasUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -527,7 +541,7 @@ async def test_virtual_network_gateways_begin_get_failover_all_test_details(self virtual_network_gateway_name="str", type="str", fetch_latest=bool, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -543,7 +557,7 @@ async def test_virtual_network_gateways_begin_get_failover_single_test_details(s virtual_network_gateway_name="str", peering_location="str", failover_test_id="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -558,7 +572,7 @@ async def test_virtual_network_gateways_begin_start_express_route_site_failover_ resource_group_name=resource_group.name, virtual_network_gateway_name="str", peering_location="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -577,7 +591,7 @@ async def test_virtual_network_gateways_begin_stop_express_route_site_failover_s "peeringLocation": "str", "wasSimulationSuccessful": bool, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -591,7 +605,7 @@ async def test_virtual_network_gateways_begin_get_vpnclient_connection_health(se await self.client.virtual_network_gateways.begin_get_vpnclient_connection_health( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -608,7 +622,7 @@ async def test_virtual_network_gateways_begin_disconnect_virtual_network_gateway resource_group_name=resource_group.name, virtual_network_gateway_name="str", request={"vpnConnectionIds": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -623,7 +637,7 @@ async def test_virtual_network_gateways_begin_invoke_prepare_migration(self, res resource_group_name=resource_group.name, virtual_network_gateway_name="str", migration_params={"migrationType": "str", "resourceUrl": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -637,7 +651,7 @@ async def test_virtual_network_gateways_begin_invoke_execute_migration(self, res await self.client.virtual_network_gateways.begin_invoke_execute_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -651,7 +665,7 @@ async def test_virtual_network_gateways_begin_invoke_commit_migration(self, reso await self.client.virtual_network_gateways.begin_invoke_commit_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -665,7 +679,7 @@ async def test_virtual_network_gateways_begin_invoke_abort_migration(self, resou await self.client.virtual_network_gateways.begin_invoke_abort_migration( resource_group_name=resource_group.name, virtual_network_gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -679,7 +693,7 @@ async def test_virtual_network_gateways_vpn_device_configuration_script(self, re resource_group_name=resource_group.name, virtual_network_gateway_connection_name="str", parameters={"deviceFamily": "str", "firmwareVersion": "str", "vendor": "str"}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations.py index 7bfaf0debdc0..fedf8e3c710a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations.py @@ -25,7 +25,7 @@ def test_virtual_network_peerings_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", virtual_network_peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -86,7 +86,7 @@ def test_virtual_network_peerings_begin_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_virtual_network_peerings_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", virtual_network_peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_virtual_network_peerings_list(self, resource_group): response = self.client.virtual_network_peerings.list( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations_async.py index 0e4fef8087da..a6703ff15a62 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_peerings_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_network_peerings_get(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", virtual_network_peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -104,7 +104,7 @@ async def test_virtual_network_peerings_begin_create_or_update(self, resource_gr }, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -119,7 +119,7 @@ async def test_virtual_network_peerings_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", virtual_network_peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -132,7 +132,7 @@ async def test_virtual_network_peerings_list(self, resource_group): response = self.client.virtual_network_peerings.list( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations.py index 87c2f2aa8ec4..8d77ea8c7a91 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations.py @@ -25,7 +25,7 @@ def test_virtual_network_taps_get(self, resource_group): response = self.client.virtual_network_taps.get( resource_group_name=resource_group.name, tap_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -49,6 +49,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1416,7 +1417,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1448,6 +1449,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1526,7 +1528,13 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1558,6 +1566,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1858,7 +1867,11 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1899,6 +1912,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2474,7 +2488,11 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -2517,6 +2535,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3364,6 +3383,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3928,6 +3948,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4142,7 +4163,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4174,6 +4195,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4251,7 +4273,13 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4283,6 +4311,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4549,6 +4578,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4600,6 +4630,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4647,6 +4678,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -5144,6 +5176,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -5195,6 +5228,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5244,6 +5278,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5461,7 +5496,7 @@ def test_virtual_network_taps_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5474,7 +5509,7 @@ def test_virtual_network_taps_update_tags(self, resource_group): resource_group_name=resource_group.name, tap_name="str", tap_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -5486,7 +5521,7 @@ def test_virtual_network_taps_begin_delete(self, resource_group): response = self.client.virtual_network_taps.begin_delete( resource_group_name=resource_group.name, tap_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -5497,7 +5532,7 @@ def test_virtual_network_taps_begin_delete(self, resource_group): def test_virtual_network_taps_list_by_resource_group(self, resource_group): response = self.client.virtual_network_taps.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -5507,7 +5542,7 @@ def test_virtual_network_taps_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_virtual_network_taps_list_all(self, resource_group): response = self.client.virtual_network_taps.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations_async.py index 27ee3c25432b..0c13098fb739 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_network_taps_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_network_taps_get(self, resource_group): response = await self.client.virtual_network_taps.get( resource_group_name=resource_group.name, tap_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -51,6 +51,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "name": "str", "properties": { "ddosSettings": {"ddosCustomPolicy": {"id": "str"}}, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1437,7 +1438,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1469,6 +1470,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1547,7 +1549,13 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1579,6 +1587,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1884,7 +1893,11 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1927,6 +1940,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2519,6 +2533,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2566,6 +2581,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -3429,6 +3445,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3995,6 +4012,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -4209,7 +4227,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [{"firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str"}], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4241,6 +4259,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4318,7 +4337,13 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -4350,6 +4375,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4616,6 +4642,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4667,6 +4694,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4716,6 +4744,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5225,6 +5254,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -5280,6 +5310,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5331,6 +5362,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -5548,7 +5580,7 @@ async def test_virtual_network_taps_begin_create_or_update(self, resource_group) "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5562,7 +5594,7 @@ async def test_virtual_network_taps_update_tags(self, resource_group): resource_group_name=resource_group.name, tap_name="str", tap_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -5575,7 +5607,7 @@ async def test_virtual_network_taps_begin_delete(self, resource_group): await self.client.virtual_network_taps.begin_delete( resource_group_name=resource_group.name, tap_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -5587,7 +5619,7 @@ async def test_virtual_network_taps_begin_delete(self, resource_group): async def test_virtual_network_taps_list_by_resource_group(self, resource_group): response = self.client.virtual_network_taps.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -5597,7 +5629,7 @@ async def test_virtual_network_taps_list_by_resource_group(self, resource_group) @recorded_by_proxy_async async def test_virtual_network_taps_list_all(self, resource_group): response = self.client.virtual_network_taps.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations.py index f4aebba3d6b0..46aec424eb2f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations.py @@ -25,7 +25,7 @@ def test_virtual_networks_get(self, resource_group): response = self.client.virtual_networks.get( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -170,7 +170,13 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -202,6 +208,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -494,7 +501,13 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "subnet": ..., }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -526,6 +539,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -550,6 +564,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -605,6 +620,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -656,6 +672,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -823,6 +840,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -869,7 +887,11 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -912,6 +934,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1063,6 +1086,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -1114,6 +1138,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1163,6 +1188,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1365,6 +1391,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1414,6 +1441,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1747,7 +1775,11 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1788,6 +1820,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1812,6 +1845,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1873,6 +1907,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1938,6 +1973,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2184,6 +2220,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2235,6 +2272,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2282,6 +2320,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2346,6 +2385,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2401,6 +2441,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2452,6 +2493,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2656,6 +2698,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2707,6 +2750,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2951,7 +2995,7 @@ def test_virtual_networks_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2964,7 +3008,7 @@ def test_virtual_networks_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -2976,7 +3020,7 @@ def test_virtual_networks_begin_delete(self, resource_group): response = self.client.virtual_networks.begin_delete( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -2987,7 +3031,7 @@ def test_virtual_networks_begin_delete(self, resource_group): def test_virtual_networks_list(self, resource_group): response = self.client.virtual_networks.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -2997,7 +3041,7 @@ def test_virtual_networks_list(self, resource_group): @recorded_by_proxy def test_virtual_networks_list_all(self, resource_group): response = self.client.virtual_networks.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -3010,7 +3054,7 @@ def test_virtual_networks_check_ip_address_availability(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", ip_address="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -3022,7 +3066,7 @@ def test_virtual_networks_list_usage(self, resource_group): response = self.client.virtual_networks.list_usage( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -3034,8 +3078,25 @@ def test_virtual_networks_begin_list_ddos_protection_status(self, resource_group response = self.client.virtual_networks.begin_list_ddos_protection_status( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result result = [r for r in response] # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_networks_begin_move_ip_configurations(self, resource_group): + response = self.client.virtual_networks.begin_move_ip_configurations( + resource_group_name=resource_group.name, + virtual_network_name="str", + body={ + "moveIpConfigurationItems": [ + {"sourceIpConfiguration": {"id": "str"}, "targetIpConfiguration": {"id": "str"}} + ] + }, + api_version="2025-09-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations_async.py index c096d11ad86a..79e06d5f834f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_networks_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_networks_get(self, resource_group): response = await self.client.virtual_networks.get( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -176,7 +176,13 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "idleTimeoutInMinutes": 0, "ipAddress": "str", "ipConfiguration": ..., - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -208,6 +214,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -508,7 +515,11 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -549,6 +560,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -573,6 +585,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -634,6 +647,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -699,6 +713,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -866,6 +881,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -917,6 +933,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -964,6 +981,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1117,6 +1135,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1172,6 +1191,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1223,6 +1243,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1427,6 +1448,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1478,6 +1500,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -1819,7 +1842,11 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, }, "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -1862,6 +1889,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1886,6 +1914,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1947,6 +1976,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2014,6 +2044,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2262,6 +2293,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -2313,6 +2345,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2362,6 +2395,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2429,6 +2463,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2490,6 +2525,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2555,6 +2591,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2759,6 +2796,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2824,6 +2862,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3077,7 +3116,7 @@ async def test_virtual_networks_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -3091,7 +3130,7 @@ async def test_virtual_networks_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_network_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -3104,7 +3143,7 @@ async def test_virtual_networks_begin_delete(self, resource_group): await self.client.virtual_networks.begin_delete( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -3116,7 +3155,7 @@ async def test_virtual_networks_begin_delete(self, resource_group): async def test_virtual_networks_list(self, resource_group): response = self.client.virtual_networks.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -3126,7 +3165,7 @@ async def test_virtual_networks_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_networks_list_all(self, resource_group): response = self.client.virtual_networks.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -3139,7 +3178,7 @@ async def test_virtual_networks_check_ip_address_availability(self, resource_gro resource_group_name=resource_group.name, virtual_network_name="str", ip_address="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -3151,7 +3190,7 @@ async def test_virtual_networks_list_usage(self, resource_group): response = self.client.virtual_networks.list_usage( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -3164,9 +3203,28 @@ async def test_virtual_networks_begin_list_ddos_protection_status(self, resource await self.client.virtual_networks.begin_list_ddos_protection_status( resource_group_name=resource_group.name, virtual_network_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result result = [r async for r in response] # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_networks_begin_move_ip_configurations(self, resource_group): + response = await ( + await self.client.virtual_networks.begin_move_ip_configurations( + resource_group_name=resource_group.name, + virtual_network_name="str", + body={ + "moveIpConfigurationItems": [ + {"sourceIpConfiguration": {"id": "str"}, "targetIpConfiguration": {"id": "str"}} + ] + }, + api_version="2025-09-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations.py index f9c1647a76f5..578a2ae22ab5 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations.py @@ -25,7 +25,7 @@ def test_virtual_router_peerings_get(self, resource_group): resource_group_name=resource_group.name, virtual_router_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -45,7 +45,7 @@ def test_virtual_router_peerings_begin_create_or_update(self, resource_group): "properties": {"peerAsn": 0, "peerIp": "str", "provisioningState": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_virtual_router_peerings_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_router_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_virtual_router_peerings_list(self, resource_group): response = self.client.virtual_router_peerings.list( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations_async.py index e39cb5c42aea..6c5b21766b97 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_router_peerings_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_router_peerings_get(self, resource_group): resource_group_name=resource_group.name, virtual_router_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_virtual_router_peerings_begin_create_or_update(self, resource_gro "properties": {"peerAsn": 0, "peerIp": "str", "provisioningState": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -62,7 +62,7 @@ async def test_virtual_router_peerings_begin_delete(self, resource_group): resource_group_name=resource_group.name, virtual_router_name="str", peering_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -75,7 +75,7 @@ async def test_virtual_router_peerings_list(self, resource_group): response = self.client.virtual_router_peerings.list( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations.py index 58f0188cec63..100976f2b327 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations.py @@ -24,7 +24,7 @@ def test_virtual_routers_get(self, resource_group): response = self.client.virtual_routers.get( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_virtual_routers_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_virtual_routers_begin_delete(self, resource_group): response = self.client.virtual_routers.begin_delete( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_virtual_routers_begin_delete(self, resource_group): def test_virtual_routers_list_by_resource_group(self, resource_group): response = self.client.virtual_routers.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -85,7 +85,7 @@ def test_virtual_routers_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_virtual_routers_list(self, resource_group): response = self.client.virtual_routers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations_async.py index 1b23571b61f3..f7f5071f5817 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_routers_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_routers_get(self, resource_group): response = await self.client.virtual_routers.get( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_virtual_routers_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -68,7 +68,7 @@ async def test_virtual_routers_begin_delete(self, resource_group): await self.client.virtual_routers.begin_delete( resource_group_name=resource_group.name, virtual_router_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -80,7 +80,7 @@ async def test_virtual_routers_begin_delete(self, resource_group): async def test_virtual_routers_list_by_resource_group(self, resource_group): response = self.client.virtual_routers.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -90,7 +90,7 @@ async def test_virtual_routers_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_virtual_routers_list(self, resource_group): response = self.client.virtual_routers.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations.py index 4ba9eabc3830..12249b79165f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations.py @@ -24,7 +24,7 @@ def test_virtual_wans_get(self, resource_group): response = self.client.virtual_wans.get( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ def test_virtual_wans_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -67,7 +67,7 @@ def test_virtual_wans_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_wan_name="str", wan_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_virtual_wans_begin_delete(self, resource_group): response = self.client.virtual_wans.begin_delete( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_virtual_wans_begin_delete(self, resource_group): def test_virtual_wans_list_by_resource_group(self, resource_group): response = self.client.virtual_wans.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_virtual_wans_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_virtual_wans_list(self, resource_group): response = self.client.virtual_wans.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations_async.py index 54ceab2b8fbb..d38460419cd9 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_virtual_wans_operations_async.py @@ -25,7 +25,7 @@ async def test_virtual_wans_get(self, resource_group): response = await self.client.virtual_wans.get( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ async def test_virtual_wans_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -70,7 +70,7 @@ async def test_virtual_wans_update_tags(self, resource_group): resource_group_name=resource_group.name, virtual_wan_name="str", wan_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_virtual_wans_begin_delete(self, resource_group): await self.client.virtual_wans.begin_delete( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -95,7 +95,7 @@ async def test_virtual_wans_begin_delete(self, resource_group): async def test_virtual_wans_list_by_resource_group(self, resource_group): response = self.client.virtual_wans.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_virtual_wans_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_virtual_wans_list(self, resource_group): response = self.client.virtual_wans.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations.py index abe8a842e9cf..4eee14045adc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations.py @@ -25,7 +25,7 @@ def test_vpn_connections_get(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -129,7 +129,7 @@ def test_vpn_connections_begin_create_or_update(self, resource_group): ], }, }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -142,7 +142,7 @@ def test_vpn_connections_begin_delete(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -155,7 +155,7 @@ def test_vpn_connections_begin_start_packet_capture(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -168,7 +168,7 @@ def test_vpn_connections_begin_stop_packet_capture(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -180,7 +180,7 @@ def test_vpn_connections_list_by_vpn_gateway(self, resource_group): response = self.client.vpn_connections.list_by_vpn_gateway( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations_async.py index 2e980a3dd5ae..d0342fa65c50 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_connections_operations_async.py @@ -26,7 +26,7 @@ async def test_vpn_connections_get(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -133,7 +133,7 @@ async def test_vpn_connections_begin_create_or_update(self, resource_group): ], }, }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -148,7 +148,7 @@ async def test_vpn_connections_begin_delete(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -163,7 +163,7 @@ async def test_vpn_connections_begin_start_packet_capture(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -178,7 +178,7 @@ async def test_vpn_connections_begin_stop_packet_capture(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -191,7 +191,7 @@ async def test_vpn_connections_list_by_vpn_gateway(self, resource_group): response = self.client.vpn_connections.list_by_vpn_gateway( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations.py index 7c084ee4ae9b..f98806e13ab0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations.py @@ -24,7 +24,7 @@ def test_vpn_gateways_get(self, resource_group): response = self.client.vpn_gateways.get( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -180,7 +180,7 @@ def test_vpn_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -193,7 +193,7 @@ def test_vpn_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -205,7 +205,7 @@ def test_vpn_gateways_begin_delete(self, resource_group): response = self.client.vpn_gateways.begin_delete( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -216,7 +216,7 @@ def test_vpn_gateways_begin_delete(self, resource_group): def test_vpn_gateways_list_by_resource_group(self, resource_group): response = self.client.vpn_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -226,7 +226,7 @@ def test_vpn_gateways_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_vpn_gateways_list(self, resource_group): response = self.client.vpn_gateways.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -238,7 +238,7 @@ def test_vpn_gateways_begin_reset(self, resource_group): response = self.client.vpn_gateways.begin_reset( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -250,7 +250,7 @@ def test_vpn_gateways_begin_start_packet_capture(self, resource_group): response = self.client.vpn_gateways.begin_start_packet_capture( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -262,7 +262,7 @@ def test_vpn_gateways_begin_stop_packet_capture(self, resource_group): response = self.client.vpn_gateways.begin_stop_packet_capture( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations_async.py index d6ba3481058c..8d3bd83d8130 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_gateways_operations_async.py @@ -25,7 +25,7 @@ async def test_vpn_gateways_get(self, resource_group): response = await self.client.vpn_gateways.get( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -182,7 +182,7 @@ async def test_vpn_gateways_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -197,7 +197,7 @@ async def test_vpn_gateways_begin_update_tags(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", vpn_gateway_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -211,7 +211,7 @@ async def test_vpn_gateways_begin_delete(self, resource_group): await self.client.vpn_gateways.begin_delete( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -223,7 +223,7 @@ async def test_vpn_gateways_begin_delete(self, resource_group): async def test_vpn_gateways_list_by_resource_group(self, resource_group): response = self.client.vpn_gateways.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -233,7 +233,7 @@ async def test_vpn_gateways_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_vpn_gateways_list(self, resource_group): response = self.client.vpn_gateways.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -246,7 +246,7 @@ async def test_vpn_gateways_begin_reset(self, resource_group): await self.client.vpn_gateways.begin_reset( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -260,7 +260,7 @@ async def test_vpn_gateways_begin_start_packet_capture(self, resource_group): await self.client.vpn_gateways.begin_start_packet_capture( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -274,7 +274,7 @@ async def test_vpn_gateways_begin_stop_packet_capture(self, resource_group): await self.client.vpn_gateways.begin_stop_packet_capture( resource_group_name=resource_group.name, gateway_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations.py index b86687fa2b90..12eb42e787f3 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations.py @@ -26,7 +26,7 @@ def test_vpn_link_connections_get_default_shared_key(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -46,7 +46,7 @@ def test_vpn_link_connections_begin_set_or_init_default_shared_key(self, resourc "properties": {"provisioningState": "str", "sharedKey": "str", "sharedKeyLength": 0}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_vpn_link_connections_get_all_shared_keys(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_vpn_link_connections_list_default_shared_key(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_vpn_link_connections_list_by_vpn_connection(self, resource_group): resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ def test_vpn_link_connections_begin_reset_connection(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -115,7 +115,7 @@ def test_vpn_link_connections_begin_get_ike_sas(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations_async.py index cace9c1b9143..34148968d4dc 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_link_connections_operations_async.py @@ -27,7 +27,7 @@ async def test_vpn_link_connections_get_default_shared_key(self, resource_group) gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -48,7 +48,7 @@ async def test_vpn_link_connections_begin_set_or_init_default_shared_key(self, r "properties": {"provisioningState": "str", "sharedKey": "str", "sharedKeyLength": 0}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -63,7 +63,7 @@ async def test_vpn_link_connections_get_all_shared_keys(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_vpn_link_connections_list_default_shared_key(self, resource_group gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ async def test_vpn_link_connections_list_by_vpn_connection(self, resource_group) resource_group_name=resource_group.name, gateway_name="str", connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_vpn_link_connections_begin_reset_connection(self, resource_group) gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_vpn_link_connections_begin_get_ike_sas(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations.py index 499386d93b46..9bac915ebd6b 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations.py @@ -24,7 +24,7 @@ def test_vpn_server_configurations_associated_with_virtual_wan_begin_list(self, response = self.client.vpn_server_configurations_associated_with_virtual_wan.begin_list( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations_async.py index c4658d4f2695..a020076cd012 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_associated_with_virtual_wan_operations_async.py @@ -26,7 +26,7 @@ async def test_vpn_server_configurations_associated_with_virtual_wan_begin_list( await self.client.vpn_server_configurations_associated_with_virtual_wan.begin_list( resource_group_name=resource_group.name, virtual_wan_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations.py index 500070472340..8a54d557ae37 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations.py @@ -24,7 +24,7 @@ def test_vpn_server_configurations_get(self, resource_group): response = self.client.vpn_server_configurations.get( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -175,7 +175,7 @@ def test_vpn_server_configurations_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -188,7 +188,7 @@ def test_vpn_server_configurations_update_tags(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", vpn_server_configuration_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -200,7 +200,7 @@ def test_vpn_server_configurations_begin_delete(self, resource_group): response = self.client.vpn_server_configurations.begin_delete( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -211,7 +211,7 @@ def test_vpn_server_configurations_begin_delete(self, resource_group): def test_vpn_server_configurations_list_by_resource_group(self, resource_group): response = self.client.vpn_server_configurations.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -221,7 +221,7 @@ def test_vpn_server_configurations_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_vpn_server_configurations_list(self, resource_group): response = self.client.vpn_server_configurations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -233,7 +233,7 @@ def test_vpn_server_configurations_list_radius_secrets(self, resource_group): response = self.client.vpn_server_configurations.list_radius_secrets( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations_async.py index 61754c666c3b..7cdd74ff1a6c 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_server_configurations_operations_async.py @@ -25,7 +25,7 @@ async def test_vpn_server_configurations_get(self, resource_group): response = await self.client.vpn_server_configurations.get( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -180,7 +180,7 @@ async def test_vpn_server_configurations_begin_create_or_update(self, resource_g "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -194,7 +194,7 @@ async def test_vpn_server_configurations_update_tags(self, resource_group): resource_group_name=resource_group.name, vpn_server_configuration_name="str", vpn_server_configuration_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -207,7 +207,7 @@ async def test_vpn_server_configurations_begin_delete(self, resource_group): await self.client.vpn_server_configurations.begin_delete( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -219,7 +219,7 @@ async def test_vpn_server_configurations_begin_delete(self, resource_group): async def test_vpn_server_configurations_list_by_resource_group(self, resource_group): response = self.client.vpn_server_configurations.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -229,7 +229,7 @@ async def test_vpn_server_configurations_list_by_resource_group(self, resource_g @recorded_by_proxy_async async def test_vpn_server_configurations_list(self, resource_group): response = self.client.vpn_server_configurations.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -241,7 +241,7 @@ async def test_vpn_server_configurations_list_radius_secrets(self, resource_grou response = await self.client.vpn_server_configurations.list_radius_secrets( resource_group_name=resource_group.name, vpn_server_configuration_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations.py index e03bc1c7f03a..cf6a6102dd9f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations.py @@ -26,7 +26,7 @@ def test_vpn_site_link_connections_get(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations_async.py index 21ee59de7d53..9329ffa531ed 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_link_connections_operations_async.py @@ -27,7 +27,7 @@ async def test_vpn_site_link_connections_get(self, resource_group): gateway_name="str", connection_name="str", link_connection_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations.py index 06a4e25f7d27..b08bbf2825b2 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations.py @@ -25,7 +25,7 @@ def test_vpn_site_links_get(self, resource_group): resource_group_name=resource_group.name, vpn_site_name="str", vpn_site_link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_vpn_site_links_list_by_vpn_site(self, resource_group): response = self.client.vpn_site_links.list_by_vpn_site( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations_async.py index e55c761a914d..9a9fd05ff8f4 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_site_links_operations_async.py @@ -26,7 +26,7 @@ async def test_vpn_site_links_get(self, resource_group): resource_group_name=resource_group.name, vpn_site_name="str", vpn_site_link_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_vpn_site_links_list_by_vpn_site(self, resource_group): response = self.client.vpn_site_links.list_by_vpn_site( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations.py index 54dcbb482070..380d8b6bbcd0 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations.py @@ -25,7 +25,7 @@ def test_vpn_sites_configuration_begin_download(self, resource_group): resource_group_name=resource_group.name, virtual_wan_name="str", request={"outputBlobSasUrl": "str", "vpnSites": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations_async.py index d74b90796dc7..63aab25e43b8 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_configuration_operations_async.py @@ -27,7 +27,7 @@ async def test_vpn_sites_configuration_begin_download(self, resource_group): resource_group_name=resource_group.name, virtual_wan_name="str", request={"outputBlobSasUrl": "str", "vpnSites": ["str"]}, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations.py index 9955b9dedb2a..521bcb916d07 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations.py @@ -24,7 +24,7 @@ def test_vpn_sites_get(self, resource_group): response = self.client.vpn_sites.get( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_vpn_sites_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_vpn_sites_update_tags(self, resource_group): resource_group_name=resource_group.name, vpn_site_name="str", vpn_site_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -112,7 +112,7 @@ def test_vpn_sites_begin_delete(self, resource_group): response = self.client.vpn_sites.begin_delete( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -123,7 +123,7 @@ def test_vpn_sites_begin_delete(self, resource_group): def test_vpn_sites_list_by_resource_group(self, resource_group): response = self.client.vpn_sites.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -133,7 +133,7 @@ def test_vpn_sites_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_vpn_sites_list(self, resource_group): response = self.client.vpn_sites.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations_async.py index 7400e12f3fa9..a123e7043a91 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_vpn_sites_operations_async.py @@ -25,7 +25,7 @@ async def test_vpn_sites_get(self, resource_group): response = await self.client.vpn_sites.get( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_vpn_sites_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -107,7 +107,7 @@ async def test_vpn_sites_update_tags(self, resource_group): resource_group_name=resource_group.name, vpn_site_name="str", vpn_site_parameters={"tags": {"str": "str"}}, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -120,7 +120,7 @@ async def test_vpn_sites_begin_delete(self, resource_group): await self.client.vpn_sites.begin_delete( resource_group_name=resource_group.name, vpn_site_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -132,7 +132,7 @@ async def test_vpn_sites_begin_delete(self, resource_group): async def test_vpn_sites_list_by_resource_group(self, resource_group): response = self.client.vpn_sites.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -142,7 +142,7 @@ async def test_vpn_sites_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_vpn_sites_list(self, resource_group): response = self.client.vpn_sites.list( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations.py index 76fe1057320f..85708a971d11 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations.py @@ -25,7 +25,7 @@ def test_web_application_firewall_policies_get(self, resource_group): response = self.client.web_application_firewall_policies.get( resource_group_name=resource_group.name, policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -626,6 +626,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -825,6 +826,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1322,6 +1324,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1420,6 +1423,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1634,7 +1638,13 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1666,6 +1676,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1758,6 +1769,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1805,6 +1817,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2106,6 +2119,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2175,6 +2189,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2242,6 +2257,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2418,6 +2434,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2487,6 +2504,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2554,6 +2572,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3003,6 +3022,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3072,6 +3092,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3139,6 +3160,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3220,6 +3242,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3289,6 +3312,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3356,6 +3380,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3556,6 +3581,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4792,6 +4818,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4839,6 +4866,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4932,6 +4960,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4999,6 +5028,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6255,6 +6285,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group } ], "globalConfiguration": { + "disableDefaultServerHeaderInResponse": bool, "enableRequestBuffering": bool, "enableResponseBuffering": bool, }, @@ -6996,6 +7027,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7043,6 +7075,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7135,6 +7168,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7202,6 +7236,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7555,6 +7590,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -8021,6 +8057,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8088,6 +8125,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8198,6 +8236,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8265,6 +8304,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8912,6 +8952,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8979,6 +9020,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9248,6 +9290,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9315,6 +9358,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9682,6 +9726,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10142,6 +10187,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10193,6 +10239,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10295,6 +10342,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10362,6 +10410,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10770,6 +10819,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11236,6 +11286,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11303,6 +11354,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11409,6 +11461,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11476,6 +11529,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12446,6 +12500,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12513,6 +12568,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12616,6 +12672,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12683,6 +12740,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13174,7 +13232,11 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -13217,6 +13279,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -13562,6 +13625,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13629,6 +13693,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13656,6 +13721,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13725,6 +13791,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13792,6 +13859,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13893,6 +13961,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13954,6 +14023,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14021,6 +14091,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14096,6 +14167,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -14165,6 +14237,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14232,6 +14305,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14454,6 +14528,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14521,6 +14596,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15090,7 +15166,7 @@ def test_web_application_firewall_policies_create_or_update(self, resource_group "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15102,7 +15178,7 @@ def test_web_application_firewall_policies_begin_delete(self, resource_group): response = self.client.web_application_firewall_policies.begin_delete( resource_group_name=resource_group.name, policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -15113,7 +15189,7 @@ def test_web_application_firewall_policies_begin_delete(self, resource_group): def test_web_application_firewall_policies_list(self, resource_group): response = self.client.web_application_firewall_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -15123,7 +15199,7 @@ def test_web_application_firewall_policies_list(self, resource_group): @recorded_by_proxy def test_web_application_firewall_policies_list_all(self, resource_group): response = self.client.web_application_firewall_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations_async.py index 0bb065e93aee..2741578d6360 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_application_firewall_policies_operations_async.py @@ -26,7 +26,7 @@ async def test_web_application_firewall_policies_get(self, resource_group): response = await self.client.web_application_firewall_policies.get( resource_group_name=resource_group.name, policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -627,6 +627,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -826,6 +827,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1323,6 +1325,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1421,6 +1424,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -1635,7 +1639,13 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, }, }, - "ipTags": [{"ipTagType": "str", "tag": "str"}], + "ipTags": [ + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } + ], "linkedPublicIPAddress": ..., "migrationPhase": "str", "natGateway": { @@ -1667,6 +1677,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -1759,6 +1770,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -1806,6 +1818,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -2107,6 +2120,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2176,6 +2190,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2243,6 +2258,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -2419,6 +2435,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -2488,6 +2505,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -2555,6 +2573,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3004,6 +3023,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3073,6 +3093,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3140,6 +3161,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3221,6 +3243,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -3290,6 +3313,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -3357,6 +3381,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -3557,6 +3582,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ddosSettings": { "ddosCustomPolicy": {"id": "str"} }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": {"id": "str"}, "inboundNatPools": [{"id": "str"}], "inboundNatRules": [{"id": "str"}], @@ -4793,6 +4819,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -4840,6 +4867,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -4933,6 +4961,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -5000,6 +5029,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -6256,6 +6286,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource } ], "globalConfiguration": { + "disableDefaultServerHeaderInResponse": bool, "enableRequestBuffering": bool, "enableResponseBuffering": bool, }, @@ -6997,6 +7028,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7044,6 +7076,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -7136,6 +7169,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -7203,6 +7237,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -7556,6 +7591,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -8022,6 +8058,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8089,6 +8126,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8199,6 +8237,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8266,6 +8305,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -8913,6 +8953,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -8980,6 +9021,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9249,6 +9291,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -9316,6 +9359,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -9683,6 +9727,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -10143,6 +10188,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10194,6 +10240,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10296,6 +10343,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -10363,6 +10411,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -10771,6 +10820,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -11237,6 +11287,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11304,6 +11355,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -11410,6 +11462,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -11477,6 +11530,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12447,6 +12501,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12514,6 +12569,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -12617,6 +12673,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipConfiguration": ..., "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -12684,6 +12741,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13175,7 +13233,11 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "ipAddress": "str", "ipConfiguration": ..., "ipTags": [ - {"ipTagType": "str", "tag": "str"} + { + "firstPartyServiceTagId": "str", + "ipTagType": "str", + "tag": "str", + } ], "linkedPublicIPAddress": ..., "migrationPhase": "str", @@ -13218,6 +13280,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "publicIPPrefix": {"id": "str"}, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": {"name": "str", "tier": "str"}, "tags": {"str": "str"}, @@ -13563,6 +13626,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13630,6 +13694,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13657,6 +13722,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13726,6 +13792,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -13793,6 +13860,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -13894,6 +13962,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -13955,6 +14024,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14022,6 +14092,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14097,6 +14168,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "id": "str" } }, + "enableConnectionTracking": bool, "gatewayLoadBalancer": { "id": "str" }, @@ -14166,6 +14238,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14233,6 +14306,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -14455,6 +14529,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "ipTags": [ { + "firstPartyServiceTagId": "str", "ipTagType": "str", "tag": "str", } @@ -14522,6 +14597,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource }, "resourceGuid": "str", "servicePublicIPAddress": ..., + "upgradedToV2": bool, }, "sku": { "name": "str", @@ -15091,7 +15167,7 @@ async def test_web_application_firewall_policies_create_or_update(self, resource "tags": {"str": "str"}, "type": "str", }, - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -15104,7 +15180,7 @@ async def test_web_application_firewall_policies_begin_delete(self, resource_gro await self.client.web_application_firewall_policies.begin_delete( resource_group_name=resource_group.name, policy_name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) ).result() # call '.result()' to poll until service return final result @@ -15116,7 +15192,7 @@ async def test_web_application_firewall_policies_begin_delete(self, resource_gro async def test_web_application_firewall_policies_list(self, resource_group): response = self.client.web_application_firewall_policies.list( resource_group_name=resource_group.name, - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -15126,7 +15202,7 @@ async def test_web_application_firewall_policies_list(self, resource_group): @recorded_by_proxy_async async def test_web_application_firewall_policies_list_all(self, resource_group): response = self.client.web_application_firewall_policies.list_all( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations.py index 05f50655a735..1d2c96f99d35 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_web_categories_get(self, resource_group): response = self.client.web_categories.get( name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_web_categories_get(self, resource_group): @recorded_by_proxy def test_web_categories_list_by_subscription(self, resource_group): response = self.client.web_categories.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations_async.py index 90a8bf69d7a7..f123c87c913d 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_web_categories_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_web_categories_get(self, resource_group): response = await self.client.web_categories.get( name="str", - api_version="2025-07-01", + api_version="2025-09-01", ) # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_web_categories_get(self, resource_group): @recorded_by_proxy_async async def test_web_categories_list_by_subscription(self, resource_group): response = self.client.web_categories.list_by_subscription( - api_version="2025-07-01", + api_version="2025-09-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/network/azure-mgmt-network/pyproject.toml b/sdk/network/azure-mgmt-network/pyproject.toml index dbd4dfa2fe1a..e3c0f82dcdd7 100644 --- a/sdk/network/azure-mgmt-network/pyproject.toml +++ b/sdk/network/azure-mgmt-network/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Network Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -78,7 +78,7 @@ verifytypes = false package_name = "azure-mgmt-network" package_pprint_name = "Network Management" package_doc_id = "network?view=azure-python-preview" -is_stable = true +is_stable = false is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/network/azure-mgmt-network/tsp-location.yaml b/sdk/network/azure-mgmt-network/tsp-location.yaml index 286fc95426ca..2f36c4fcda98 100644 --- a/sdk/network/azure-mgmt-network/tsp-location.yaml +++ b/sdk/network/azure-mgmt-network/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/network/resource-manager/Microsoft.Network/Network -commit: f26746d404d4f24f3a85820aec9d78a10a708a39 +commit: bd92126f09e7e3caa74f10fa1c944d1e451813ac repo: Azure/azure-rest-api-specs additionalDirectories: